joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00476d97
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004434a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00476cc5
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004734a9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004734a9
push 1
push 0
push 0
mov ecx, esi
call fcn.00473451
push 1
push 0
push 1
mov ecx, esi
call fcn.00473451
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476e09
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443c80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00476d97
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004434a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00476cc5
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443d44
cmp dword [esp + 0x40], 1
jne 0x443d42
cmp ecx, eax
jge 0x443d44
mov eax, ecx
cmp eax, 0xc8
jge 0x443d50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443b00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476e09
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4444c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4802e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004718c9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047703f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00478597
test eax, eax
je 0x4445dc
mov ecx, dword [esp + 0x3c]
call fcn.0047706c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4445a0
push edi
mov ecx, esi
call fcn.00474629
mov ecx, esi
call fcn.00444740
cmp dword [esp + 0x38], 1
jne 0x4445d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00474793
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x447000
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447033
push esi
call fcn.0044a110
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44702c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4470b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4470a2
mov eax, dword [esi + 8]
test eax, eax
je 0x447057
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44709e
cmp eax, 2
je 0x4470a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44704a
cmp eax, 3
je 0x44707d
cmp eax, 1
jne 0x44704a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44704a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44704a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004470e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4470c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004470e0
add esp, 4
pop esi
ret

Function at 0x453cb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x453d16
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x453d16
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x453cf7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4540a0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4540d8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x454d50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x454d99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x455210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00454dc0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00454e40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00454e40
lea ecx, [esi + 0xc]
call fcn.00470257
lea ecx, [esi + 0x10]
call fcn.00470257
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004563d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004563d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004563d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004702cc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004702cc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4726bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4726f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00470773
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047074b
jmp 0x472703
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473dad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473def
call fcn.00479d59
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473def
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473de6
xor eax, eax
jmp 0x473df7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473dfd
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a289
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47a2b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a2d5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a1ef
jmp 0x47a2d5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a2d5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a1ef
test edi, edi
mov eax, edi
jne 0x47a2bf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401150
lea ebx, [ebx]
cmp esi, eax
jae 0x401154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x40115a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402120
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4181e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x423688]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [0x424620], 0
jne 0x4021d6
lea eax, [esp + 8]
push 0
push eax
call fcn.00401bb0
push 0x41a368
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 0
call fcn.00402020
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40219f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 2
mov dword [0x424620], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4021d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [0x424620], 1
sete al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret
Function at 0x402330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41824b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x423688]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x423688]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
push 0x206
lea eax, [esp + 0x12]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x18], 0
call fcn.0040d320
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4023b5
push 0x41a39c
mov ecx, esi
call fcn.00402280
jmp 0x402408
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00402280
push str.TencentQQMusic_
push eax
push esi
mov dword [esp + 0x22c], 0
call fcn.00402020
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040d309
add esp, 0x21c
ret
Function at 0x403120
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40313c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x403164
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x405490
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x424628], 0
push esi
mov esi, ecx
je 0x4054a5
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.00404e70
cmp al, 1
jne 0x4054d5
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00404080
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4

Function at 0x406a80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x406a97
mov eax, dword [esi + 0x10]
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406ac2
mov ecx, dword [esi + 0x10]
pop esi
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 8]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 8], 0
pop esi
ret 4

Function at 0x406ce1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x406d62
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406d62
cmp dword [esi + 4], 0
je 0x406d62
cmp dword [esi + 0x10], 0
je 0x406d62
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x406ae0
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.0040e0a0
add esp, 0x18
test eax, eax
jne 0x406d3e
pop edi
xor al, al
pop esi
pop ecx
ret
push ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xc]
push ecx
mov ebx, eax
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x40c2e1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x423688]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040c220
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040d320
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c330
cmp dword [ebp - 0x1c], 5
jb 0x40c348
jmp 0x40c344
cmp dword [ebp - 0x10], 1
jne 0x40c348
cmp dword [ebp - 0x1c], 4
ja 0x40c344
jne 0x40c348
cmp dword [ebp - 0x18], 0
jbe 0x40c348
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41b644
call fcn.00402710
test eax, eax
jge 0x40c369
mov byte [0x424628], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d309
add ebp, 0x78
leave
ret

Function at 0x40c560
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42476c], 0
push esi
jne 0x40c4d3
call fcn.0040c3fe
test eax, eax
je 0x40c516
mov eax, dword [0x42476c]
cmp eax, 1
jne 0x40c4f4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40c516
pop esi
ret
push eax
call dword [0x424774]
test eax, eax
jne 0x40c55e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40c51a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42476c]
call dword [0x424774]
mov edi, eax
test edi, edi
je 0x40c541
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40c55d
lea edi, [esi + 0xff0]
push esi
push dword [0x42476c]
call dword [0x424770]
add esi, 0x10
cmp esi, edi
jb 0x40c547
mov eax, esi
pop edi
pop esi
ret
jmp 0x40c4c0

Function at 0x40d309
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423688]
jne 0x40d313
repz ret
jmp fcn.0041242c
Function at 0x41343c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x423f90]
je 0x413457
inc edi
cmp edi, 0x17
jb 0x413448
cmp edi, 0x17
jae 0x4135d7
push ebp
push 3
call fcn.00416a8a
cmp eax, 1
pop ecx
je 0x4135a3
push 3
call fcn.00416a8a
test eax, eax
pop ecx
jne 0x41348b
cmp dword [0x423690], 1
je 0x4135a3
cmp ebx, 0xfc
je 0x4135d6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x424c80
push ebp
call fcn.004101cd
add esp, 0xc
test eax, eax
je 0x4134c1
push esi
push esi
push esi
push esi
push esi
call fcn.0040de76
add esp, 0x14
push 0x104
mov esi, 0x424c99
push esi
push 0
mov byte [0x424d9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413505
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004101cd
add esp, 0xc
test eax, eax
je 0x413505
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040de76
add esp, 0x14
push esi
call fcn.0040e450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41354a
push esi
call fcn.0040e450
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x424f94
push 0x41bdcc
sub ecx, eax
push ecx
push eax
call fcn.004162a6
add esp, 0x14
test eax, eax
je 0x41354a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040de76
add esp, 0x14
jmp 0x41354c
xor esi, esi
push 0x41bdc8
push ebx
push ebp
call fcn.004161e9
add esp, 0xc
test eax, eax
je 0x41356c
push esi
push esi
push esi
push esi
push esi
call fcn.0040de76
add esp, 0x14
push dword [edi*8 + 0x423f94]
push ebx
push ebp
call fcn.004161e9
add esp, 0xc
test eax, eax
je 0x41358e
push esi
push esi
push esi
push esi
push esi
call fcn.0040de76
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004168cd
add esp, 0xc
jmp 0x4135d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4135d6
cmp ebp, 0xffffffff
je 0x4135d6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x423f94]
push dword [esi]
call fcn.0040e450
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4168cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411dc0
xor ebx, ebx
cmp dword [0x425270], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4169a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416a83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416a83
push eax
call fcn.00411d52
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425270], eax
call esi
push eax
call fcn.00411d52
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425274], eax
call esi
push eax
call fcn.00411d52
mov dword [0x425278], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004136c8
test eax, eax
pop ecx
pop ecx
je 0x416971
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040de76
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4169a3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411d52
cmp eax, ebx
pop ecx
mov dword [0x425280], eax
je 0x4169a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411d52
pop ecx
mov dword [0x42527c], eax
mov eax, dword [0x42527c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416a28
cmp dword [0x425280], ecx
je 0x416a28
push eax
call fcn.00411dc9
push dword [0x425280]
mov esi, eax
call fcn.00411dc9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416a28
cmp edi, ebx
je 0x416a28
call esi
cmp eax, ebx
je 0x4169f5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4169f5
test byte [ebp - 0x18], 1
jne 0x416a28
lea eax, [ebp - 0x10]
push eax
call fcn.004136ff
test eax, eax
pop ecx
je 0x416a10
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040de76
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416a1f
or dword [ebp + 0x10], 0x200000
jmp 0x416a63
or dword [ebp + 0x10], 0x40000
jmp 0x416a63
mov eax, dword [0x425274]
cmp eax, dword [ebp - 8]
je 0x416a63
push eax
call fcn.00411dc9
cmp eax, ebx
pop ecx
je 0x416a63
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416a63
mov eax, dword [0x425278]
cmp eax, dword [ebp - 8]
je 0x416a63
push eax
call fcn.00411dc9
cmp eax, ebx
pop ecx
je 0x416a63
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425270]
call fcn.00411dc9
cmp eax, ebx
pop ecx
je 0x416a83
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416a85
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret