joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4029c6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4029b5
jg 0x402920
test edx, edx
je 0x4029b5
nop dword [eax]
call fcn.00403cf0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402974
jg 0x402937
test esi, esi
je 0x402974
cmp ebx, eax
jg 0x402947
jl 0x402941
cmp edi, esi
jae 0x402947
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040a650
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x402999
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4029af
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402920
jl 0x4029af
test edi, edi
jne 0x402920
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4029e8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4029ea
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402a68
jg 0x4029fd
test esi, esi
je 0x402a68
test eax, eax
jl 0x402a4c
jg 0x402a07
test ebx, ebx
je 0x402a4c
cmp edi, eax
jg 0x402a17
jl 0x402a11
cmp esi, ebx
jae 0x402a17
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040a650
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402a68
jg 0x402a4f
test esi, esi
je 0x402a68
jmp 0x402a4f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402a68
push eax
push esi
push 1
push edx
call fcn.0041154a
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402ab2
jl 0x402aa5
test ecx, ecx
jne 0x402ab2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402b72
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00403d10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402b1e
jg 0x402add
test esi, esi
je 0x402b1e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402af5
mov eax, dword [esp + 0x10]
jl 0x402aef
cmp eax, esi
jae 0x402af5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040a650
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402b3f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402b5b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402ac4
jl 0x402b5b
test ecx, ecx
jne 0x402ac4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402bb1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x402bb1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040a650
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x402c20
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x402bd7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x402c09
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00411ba1
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402c34
cmp edi, eax
ja 0x402be5
test ecx, ecx
je 0x402c20
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00411ba1
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402fd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40300c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40300c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4030f4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403034
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403067
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00410662
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4030c7
sub eax, 1
je 0x4030c7
sub eax, 2
jne 0x4030f4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00410662
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4030e4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041154a
add esp, 0x10
cmp edi, eax
jne 0x4030f4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402ff7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081d5
mov esp, ebp
pop ebp
ret 4
Function at 0x403a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403ada
cmp byte [esi + 0x3d], 0
je 0x403ada
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403ac8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403a90
sub eax, 1
je 0x403a94
sub eax, 2
jne 0x403ac8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403ab1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041154a
add esp, 0x10
cmp edi, eax
jne 0x403ac8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004081d5
mov esp, ebp
pop ebp
ret

Function at 0x4040c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a150
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004083e0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004091be
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d0f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cf67

Function at 0x42089e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004203f1
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x464d30]
test eax, eax
jne 0x401020
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x464d30], eax
test eax, eax
jne 0x401020
ret 8
cmp dword [0x464d34], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
jne 0x401046
push str.SetParentId
push eax
call esi
mov dword [0x464d34], eax
test eax, eax
je 0x4010bd
mov eax, dword [0x464d30]
cmp dword [0x464d38], 0
jne 0x401065
push str.SetCommand
push eax
call esi
mov dword [0x464d38], eax
test eax, eax
je 0x4010bd
mov eax, dword [0x464d30]
cmp dword [0x464d3c], 0
jne 0x401084
push str.SetGameId
push eax
call esi
mov dword [0x464d3c], eax
test eax, eax
je 0x4010bd
mov eax, dword [0x464d30]
cmp dword [0x464d40], 0
jne 0x4010a3
push str.GetDllDataLen
push eax
call esi
mov dword [0x464d40], eax
test eax, eax
je 0x4010bd
mov eax, dword [0x464d30]
cmp dword [0x464d44], 0
jne 0x4010c3
push str.GetDllData
push eax
call esi
mov dword [0x464d44], eax
test eax, eax
jne 0x4010c3
xor eax, eax
pop esi
ret 8
mov eax, dword [0x464d34]
test eax, eax
je 0x4010d6
mov ecx, dword [esp + 0xc]
push ecx
call eax
add esp, 4
xor ecx, ecx
call fcn.004010f0
mov eax, 1
pop esi
ret 8
Function at 0x401260
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x444790
push 0x4446c8
push 0
mov dword [0x444858], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401298
pop ecx
ret
push str.highlow2.exe
push 0x40
push 0x44103c
call fcn.0041c5d7
push 0x438330
push 0x40
push 0x44153c
call fcn.0041c5d7
push 0x43833c
push 0x40
push 0x4410bc
call fcn.0041c5d7
push 0x438358
push 0x40
push 0x4415bc
call fcn.0041c5d7
push str.poker7.exe
push 0x40
push 0x44113c
call fcn.0041c5d7
push 0x43838c
push 0x40
push 0x44163c
call fcn.0041c5d7
add esp, 0x48
push str.Baduki.exe
push 0x40
push 0x4411bc
call fcn.0041c5d7
push 0x4383b4
push 0x40
push 0x4416bc
call fcn.0041c5d7
push str.HOOLA3.exe
push 0x40
push 0x44123c
call fcn.0041c5d7
push 0x4383e0
push 0x40
push 0x44173c
call fcn.0041c5d7
push str.DuelPoker.exe
push 0x40
push 0x4412bc
call fcn.0041c5d7
push 0x438410
push 0x40
push 0x4417bc
call fcn.0041c5d7
add esp, 0x48
push str.PMLauncher.exe
push 0x40
push 0x44133c
call fcn.0041c5d7
push 0x438440
push 0x40
push 0x44183c
call fcn.0041c5d7
push str._PMLauncher.exe
push 0x40
push 0x4413bc
call fcn.0041c5d7
push 0x438440
push 0x40
push 0x4418bc
call fcn.0041c5d7
push str.Newbadugi.exe
push 0x40
push 0x44143c
call fcn.0041c5d7
push 0x438488
push 0x40
push 0x44193c
call fcn.0041c5d7
add esp, 0x48
push 0x100
push 0
push 0x464860
mov dword [0x441038], 9
call fcn.0041e180
add esp, 0xc
xor eax, eax
jmp 0x401400
movzx ecx, word [eax + 0x438494]
mov word [eax + 0x464864], cx
add eax, 2
test cx, cx
jne 0x401400
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + 0x438498]
mov word [eax + 0x464894], cx
add eax, 2
test cx, cx
jne 0x401420
xor eax, eax
jmp 0x401440
movzx ecx, word [eax + str.218.54.31.166]
mov word [eax + 0x464868], cx
add eax, 2
test cx, cx
jne 0x401440
mov dword [0x464890], 0x51
xor eax, eax
movzx ecx, word [eax + str.MyCom]
mov word [eax + 0x4648b2], cx
add eax, 2
test cx, cx
jne 0x401462
push esi
mov dword [0x46494c], 5
mov dword [0x464954], 0x32
call fcn.00402a70
push str.IsWow64Process
push str.kernel32
mov dword [0x464b68], eax
mov dword [0x441a3c], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014d8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
cmp eax, 1
je 0x4014d8
xor eax, eax
jmp 0x4014dc
mov eax, dword [esp + 4]
mov dword [0x441a40], eax
call fcn.00402900
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
push 0
push 0
push 0x401680
push 0
push 0
mov dword [0x48556a], 0x402260
call esi
push 0
push 0
push 0
push 0x401ac0
push 0
push 0
call esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402510
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x43fc54]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0041e180
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x4025df
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402555
sub eax, edx
sar eax, 1
je 0x4025df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041c6c8
push 0x4385bc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041c16f
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x4025df
push eax
push 1
push 0x200
push esi
call fcn.0041c9e5
mov eax, dword [esp + 0x14]
push eax
call fcn.0041c41d
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041bef3
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041bef3
add esp, 0x214
ret

Function at 0x4027c0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x4385bc
lea eax, [esp + 0x10]
push 0x464960
push eax
call fcn.0041c16f
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x4028f1
push 2
push 0
push eax
call fcn.0041ce5f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.0041d081
mov esi, eax
add esp, 4
push esi
call fcn.00411b88
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.0041ce5f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.0041c9e5
add esp, 0x10
cmp esi, eax
jne 0x4028d3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0041cda1
add esp, 4
call fcn.0041cdb3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x43a7a8]
fmul qword [0x43a7a0]
fadd qword [0x43a798]
call fcn.0041ea20
cmp esi, eax
jl 0x4028d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00402770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0041c41d
add esp, 4
push 0x464960
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0x4382cc
lea edx, [esp + 0x10]
push 0x464960
push edx
call fcn.0041c16f
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x4028f1
push eax
push esi
push 1
push edi
call fcn.0041c324
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4028e4
push eax
call fcn.0041c41d
add esp, 4
test edi, edi
je 0x4028f1
push edi
call fcn.00411b7d
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402900
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x43fc54]
xor eax, esp
mov dword [esp + 0x270], eax
push edi
xor eax, eax
push 0x62
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.0041e180
add esp, 0xc
push 0x200
lea edx, [esp + 0xc]
push 0
push edx
call fcn.0041e180
add esp, 0xc
lea edi, [esp + 8]
call fcn.00402600
test eax, eax
je 0x402a4f
xor eax, eax
nop
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x464868], cx
add eax, 2
test cx, cx
jne 0x402960
movzx eax, word [esp + 0x8c]
mov dword [0x464890], eax
xor eax, eax
jmp 0x402990
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x464894], cx
add eax, 2
test cx, cx
jne 0x402990
cmp dword [0x464b68], 3
jne 0x4029d9
push 0x104
push 0x464960
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4385e0
push 0x104
push 0x464960
call fcn.0041c6c8
add esp, 0xc
jmp 0x4029e9
push 0x464960
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x1b0]
push ecx
push 0x104
push 0x464960
call fcn.0041c6c8
add esp, 0xc
push 0x4385e4
push 0x104
push 0x464960
call fcn.0041c6c8
add esp, 0xc
call fcn.004027c0
push 0
push 0
push 0
push 0x4026a0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea edi, [esp + 0x208]
call fcn.004026d0
mov edx, edi
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov ecx, dword [esp + 0x274]
pop edi
xor ecx, esp
call fcn.0041bef3
mov esp, ebp
pop ebp
ret

Function at 0x402a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x43fc54]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0041e180
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x402b49
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x402b15
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402aee
cmp word [esp + 0x118], 4
jb 0x402b49
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041bef3
add esp, 0x120
ret
cmp eax, 2
jae 0x402af8
cmp eax, 1
jne 0x402b49
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041bef3
add esp, 0x120
ret
cmp eax, 6
jne 0x402b49
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402b3f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041bef3
add esp, 0x120
ret
cmp eax, 1
jne 0x402b49
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041bef3
add esp, 0x120
ret
Function at 0x402bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.IDR_BINARY
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402c52
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov ecx, edi
neg esi
shr ecx, 9
add esi, ecx
mov ebp, eax
mov eax, dword [esp + 0x14]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.00411b88
push esi
mov ebx, eax
push 0
push ebx
call fcn.0041e180
push edi
push ebp
push ebx
call fcn.0041db50
add esp, 0x1c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x402fd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x43fc54]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [esp + 0x14], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40300f
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40308c
push 0x22c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041e180
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
cmp eax, 1
je 0x403043
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403085
push ebx
xor edi, edi
cmp dword [esi], edi
jle 0x40306a
lea ebx, [esi + 4]
lea ecx, [ecx]
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.0041d2d8
add esp, 8
test eax, eax
je 0x4030a6
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x403050
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.DLL_Process32NextW
cmp eax, 1
je 0x403044
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041bef3
add esp, 0x234
ret
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [esp + 0x1c], 1
mov dword [esi + 0xa0c], edi
call fcn.0041c5d7
mov ecx, dword [esi + 0xa0c]
mov eax, dword [esp + 0x28]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.0041c5d7
add esp, 0x18
jmp 0x403080