joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004064a0
mov dword [ebp - 0x82c], eax
push 0x485a00
lea ecx, [ebp - 0x830]
call fcn.00406ad0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x4083fb
mov dword [ebp - 0x840], 0
jmp 0x408463
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x408423
mov dword [ebp - 0x844], 0
jmp 0x408457
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.00464ed0
mov dword [ebp - 0x848], esp
mov edx, dword [ebp - 0x82c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [ebp - 0x848]
push edx
call fcn.004064b0
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x840], eax
mov ecx, dword [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x830]
call fcn.00401c40
push 0x485aa4
lea ecx, [ebp - 0x830]
call fcn.00401c40
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x830]
call fcn.0041a040
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4084d2
mov dword [ebp - 0x838], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x830]
call fcn.004029a0
mov eax, dword [ebp - 0x838]
jmp 0x40855c
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x1c], 0x7fe
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0
push 0
push 0x4859e4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40852e
xor eax, eax
mov word [ebp - 0x81e], ax
push 0x485abc
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40852e
mov dword [ebp - 0x828], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x830]
call fcn.004029a0
mov eax, dword [ebp - 0x83c]
lea esp, [ebp - 0x84c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret
Function at 0x40a110
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ea53
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x19
mov ecx, dword [ebp - 0x10]
call fcn.0040a870
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.004029a0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004029a0
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.004029a0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.004029a0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
call fcn.004029a0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0xc4
call fcn.004029a0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
call fcn.004029a0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.0040b520
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.004029a0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004029a0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004029a0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.004029a0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.004029a0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.004029a0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.004029a0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004029a0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004029a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004029a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004029a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004029a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004029a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004029a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004029a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004029a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004029a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.004029a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x40d4b0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40d4bc
mov al, 1
jmp 0x40d65f
mov dword [ebp - 0x10], 8
call fcn.00413e10
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00413e10
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00413dc0
add esp, 8
movzx eax, al
test eax, eax
je 0x40d4ff
xor al, al
jmp 0x40d65f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040cc40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.00415a40
mov ecx, eax
call fcn.00459340
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00409240
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.00415a40
mov ecx, eax
call fcn.00459340
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040dfc0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40d57a
cmp dword [ebp - 0x5c], 1
je 0x40d581
cmp dword [ebp - 0x5c], 3
je 0x40d61b
jmp 0x40d633
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00415a40
mov ecx, eax
call fcn.00459340
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40d5e4
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00415a40
mov ecx, eax
call fcn.00459340
push eax
call fcn.00467a8d
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40d5e4
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406bc0
mov al, byte [ebp - 0x51]
jmp 0x40d65f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40d607
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406bc0
mov al, byte [ebp - 0x52]
jmp 0x40d65f
cmp dword [ebp - 0x38], 0
jne 0x40d619
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040ccc0
jmp 0x40d64b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406bc0
mov al, byte [ebp - 0x53]
jmp 0x40d65f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406bc0
mov al, byte [ebp - 0x54]
jmp 0x40d65f
jmp 0x40d512
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret
Function at 0x4162b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f750
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x10]
call fcn.004028e0
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
push 3
mov ecx, dword [ebp + 8]
call fcn.00409240
push eax
mov ecx, dword [ebp + 8]
call fcn.00406c20
push eax
call fcn.00462830
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x416381
lea eax, [ebp - 0x1c]
push eax
call fcn.00454640
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004029a0
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.0041a040
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00462c60
add esp, 0x14
test eax, eax
jne 0x416366
mov byte [ebp - 0x15], 1
jmp 0x416375
lea ecx, [ebp - 0x10]
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00462cd0
add esp, 4
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x4163a1
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004029a0
mov al, byte [ebp - 0x1d]
jmp 0x4163d7
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004163f0
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x10]
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov cl, byte [ebp - 0x15]
mov byte [ebp - 0x1e], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004029a0
mov al, byte [ebp - 0x1e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41aa10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.0041b480
movzx eax, al
test eax, eax
je 0x41aa2f
xor al, al
jmp 0x41ab68
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0
push 0x1c
call fcn.0046461b
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call fcn.00465a8b
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
je 0x41aade
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x41aade
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00465a8b
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41aae8
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x41ab28
cmp dword [ebp + 0x14], 0
jle 0x41ab28
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00465a8b
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00464a00
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x14], edx
jmp 0x41ab3c
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0xc]
add edx, 0x10
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x41ab70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
setne al
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41b440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 4]
jne 0x41b477
mov al, 1
jmp 0x41b479
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41be60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fcdf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
call fcn.0046461b
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x41beac
mov ecx, dword [ebp - 0x1c]
call fcn.0041d620
mov dword [ebp - 0x28], eax
jmp 0x41beb3
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x4a09ac]
add edx, 1
mov dword [0x4a09ac], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4a09ac]
mov dword [eax], ecx
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0041e180
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0041d670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041d260
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x41bf60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a09ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41c600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fe28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
call fcn.0046461b
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x41c64c
mov ecx, dword [ebp - 0x1c]
call fcn.0041d620
mov dword [ebp - 0x20], eax
jmp 0x41c653
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x4a09b0]
add edx, 1
mov dword [0x4a09b0], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4a09b0]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00401c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x41c6d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a09b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41ce40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ff07
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
call fcn.0046461b
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x41ce8c
mov ecx, dword [ebp - 0x1c]
call fcn.0041d6b0
mov dword [ebp - 0x20], eax
jmp 0x41ce93
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4a09b4]
mov dword [edx], eax
mov ecx, dword [0x4a09b4]
add ecx, 1
mov dword [0x4a09b4], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00401c20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00401c20
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x41cf20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a09b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41e6c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x20
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00464570
add esp, 0xc
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 6
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2af9
je 0x41e797
cmp dword [ebp - 0xc], 0
je 0x41e73c
mov ecx, dword [ebp - 0xc]
sub ecx, 8
neg ecx
sbb ecx, ecx
and ecx, 0x2edf
add ecx, 8
mov dword [ebp - 0xc], ecx
jmp 0x41e834
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp edx, dword [ebp - 8]
jb 0x41e763
cmp dword [ebp + 0xc], 0
jne 0x41e77f
mov eax, dword [ebp - 8]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0xc], 0x7a
jmp 0x41e834
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41e834
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41e7d5
mov ecx, dword [ebp - 0xc]
sub ecx, 8
neg ecx
sbb ecx, ecx
and ecx, 0x2edf
add ecx, 8
mov dword [ebp - 0xc], ecx
jmp 0x41e834
mov edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 2
je 0x41e800
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x41e7fe
mov dword [ebp - 0xc], 0x2ee7
jmp 0x41e834
jmp 0x41e7db
push 2
push 0
push 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41e834
mov dword [ebp - 0xc], 0x2ee7
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420350
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42037f
or eax, 0xffffffff
jmp 0x4203fe
mov ecx, 2
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00464a00
add esp, 0xc
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4203ce
or eax, 0xffffffff
jmp 0x4203fe
push 0x30
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4203fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret

Function at 0x421710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [str.klwlJJSG]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x4a0bf4], eax
cmp dword [0x4a0bf4], 0
je 0x42175e
mov ecx, dword [0x4a0bf4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
call fcn.004214c0
add esp, 4
movzx eax, al
test eax, eax
je 0x42175e
xor eax, eax
jmp 0x421851
mov ecx, dword [str.klwlJJSG]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a0bf4], eax
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.004228d0
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, 0x4a1020
call fcn.00422900
mov dword [ebp - 8], eax
call fcn.0040b3c0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040b480
add eax, 0xc
mov ecx, eax
call fcn.004029f0
call fcn.0041a990
call fcn.00423750
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004215b0
add esp, 8
mov dword [ebp - 4], eax
call fcn.0040b440
cmp dword [0x4a0bf8], 0
je 0x421819
mov eax, dword [0x4a0bf8]
push eax
call fcn.004056c0
add esp, 4
mov ecx, dword [0x4a0bf8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004649f5
add esp, 4
cmp dword [0x4a0bf4], 0
je 0x42182e
mov eax, dword [0x4a0bf4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403690
mov ecx, 0x4a1020
call fcn.00422ab0
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.App_exit._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00464570
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x42e780
cmp dword [ebp - 0x11c], 5
jae 0x42e774
cmp dword [ebp - 0x11c], 4
jne 0x42e780
cmp dword [ebp - 0x118], 0x5a
jb 0x42e780
mov dword [ebp - 0x128], 0
jmp 0x42e78a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret