joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
jne 0x401244
xor eax, eax
jmp 0x40141e
cmp byte [eax], bl
je 0x40123d
push esi
push 0x448798
push eax
call fcn.0042efa0
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x401264
xor eax, eax
jmp 0x40141d
push esi
push pe_nt_image_headers32
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0042eec1
add esp, 0x10
cmp eax, edi
je 0x40127f
add ebx, eax
cmp eax, 0x100
je 0x401264
push ebp
lea ebp, [ebx + 1]
push ebp
call fcn.0042e82a
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4012ab
push esi
call fcn.0042ebe8
add esp, 4
xor eax, eax
jmp 0x40141c
push ebp
push 0
push eax
call fcn.0042efd0
push 0
push 0
push esi
call fcn.0042eaf0
push esi
push ebp
mov ebp, dword [esp + 0x34]
push 1
push ebp
call fcn.0042eec1
add esp, 0x28
cmp eax, ebx
je 0x4012e9
push ebp
call fcn.0042e8ed
push esi
call fcn.0042ebe8
add esp, 8
xor eax, eax
jmp 0x40141c
push esi
call fcn.0042ebe8
add esp, 4
mov ebx, ebp
cmp byte [ebx], 0
je 0x40140f
push 0xc
call fcn.0042e82a
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x401314
mov dword [esp + 0x10], eax
jmp 0x401317
mov dword [edi + 8], eax
mov edi, eax
test edi, edi
je 0x401437
xor eax, eax
mov dword [edi], eax
push 0xa
mov dword [edi + 4], eax
push ebx
mov dword [edi + 8], eax
mov esi, ebx
call fcn.0042e650
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40136a
mov eax, esi
mov byte [ebx], 0
add ebx, 1
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401350
sub eax, edx
test eax, eax
jle 0x40136a
cmp byte [eax + esi - 1], 0xd
jne 0x40136a
mov byte [eax + esi - 1], cl
mov al, byte [esi]
cmp al, 0x3b
jne 0x401375
mov byte [edi], 3
jmp 0x4013b0
cmp al, 0x5b
jne 0x401399
push 0x448794
push esi
call fcn.0042e710
add esp, 8
test eax, eax
je 0x401399
mov byte [edi], 1
mov byte [esi], 0
mov byte [eax], 0
add esi, 1
jmp 0x4013b0
push str._r__
push esi
call fcn.0042e710
add esp, 8
neg eax
sbb al, al
add eax, 3
mov byte [edi], al
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4013b5
sub eax, edx
add eax, 1
push eax
call fcn.0042e82a
add esp, 4
test eax, eax
mov dword [edi + 4], eax
je 0x40143e
mov ecx, esi
lea ebp, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4013d8
sub ecx, ebp
add ecx, 1
push ecx
push 0
push eax
call fcn.0042efd0
mov ecx, dword [edi + 4]
add esp, 0xc
mov al, byte [esi]
mov byte [ecx], al
add esi, 1
add ecx, 1
test al, al
jne 0x4013f5
test ebx, ebx
mov ebp, dword [esp + 0x14]
jne 0x4012f4
push ebp
call fcn.0042e8ed
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop esi
mov ecx, dword [esp + 0x114]
pop edi
pop ebx
xor ecx, esp
call fcn.0042efb3
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x401443
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0x1c]
call fcn.004011d0
push ebp
call fcn.0042e8ed
add esp, 4
xor eax, eax
jmp 0x40141c
Function at 0x404870
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 0x404889
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4048c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4048c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4048c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4048b0
cmp esi, eax
jb 0x4048ca
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 0x406800
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esi + 0x514]
push eax
push 0
push esi
push 0x40a5e0
push 0
push 0
mov dword [esi + 0x510], 1
call fcn.0043040b
lea ecx, [esi + 0x51c]
push ecx
push 0
push esi
push 0x40a470
push 0
push 0
mov dword [esi + 0x518], eax
call fcn.0043040b
add esp, 0x30
mov dword [esi + 0x520], eax
pop esi
ret 4

Function at 0x4069d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x40], eax
push 0x40
lea eax, [esp + 4]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x406a04
mov eax, 1
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042efb3
add esp, 0x44
ret 4
lea ecx, [esp]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4069ee
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
push esi
je 0x406a33
mov esi, dword [esp + 0x4c]
mov eax, edx
mov eax, dword [eax]
cmp esi, dword [eax]
je 0x406a4a
add ecx, 1
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x406a21
mov eax, 1
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042efb3
add esp, 0x44
ret 4
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042efb3
add esp, 0x44
ret 4

Function at 0x406b60
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [esp + 0x4c]
push 0x40
lea eax, [esp + 8]
push 0
push eax
call fcn.0042efd0
add esp, 0xc
push 0x40
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 4]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x406bbe
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x406bb0
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
call fcn.0042efb3
add esp, 0x44
ret 8
Function at 0x406bd0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x48
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [esp + 0x54]
push edi
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x14], 0x40
call fcn.0042efd0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [esi + 0xa5], 0
je 0x406c4e
mov eax, dword [esi + 0xe8]
push eax
add esi, 0xa6
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00406a60
test eax, eax
jne 0x406c4e
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0042efb3
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042efb3
add esp, 0x48
ret 0xc

Function at 0x406c70
Capabilities:
Get hostname

Disassembly:
sub esp, 0x48
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x58]
push edi
push 0x40
lea eax, [esp + 0x14]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x18], 0x40
call fcn.0042efd0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [esi + 0xa5], 0
je 0x406d2c
mov eax, dword [esi + 0xe8]
push eax
lea ecx, [esi + 0xa6]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00406a60
test eax, eax
jne 0x406d2c
cmp byte [esi + 0x188], al
jne 0x406d05
push ebx
mov ecx, edi
call fcn.00406ae0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0042efb3
add esp, 0x48
ret 0xc
mov eax, dword [esi + 0x18c]
test al, 1
jne 0x406ce3
movzx eax, al
pop edi
shr eax, 2
pop esi
and eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0042efb3
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042efb3
add esp, 0x48
ret 0xc

Function at 0x406d50
Capabilities:
Get hostname

Disassembly:
sub esp, 0x88
mov eax, dword [0x45bc0c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov esi, dword [esp + 0x98]
push edi
push 0x40
lea eax, [esp + 0x54]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x18], 0x40
call fcn.0042efd0
push 0x40
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0042efd0
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call fcn.00406b60
cmp byte [esi + 0x9d], 0
je 0x406dfb
mov edx, dword [esi + 0xe0]
push edx
lea ebx, [esi + 0x9e]
push ebx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00406a60
test eax, eax
je 0x406df4
mov ecx, dword [esi + 0xe0]
push ecx
push ebx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.00406a60
test eax, eax
jne 0x406dfb
mov eax, 1
jmp 0x406dfd
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042efb3
add esp, 0x88
ret 0xc
Function at 0x4084a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x444a38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x45bc0c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.0040d7ab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4084e0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
call fcn.0040d7ab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408512
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x28], 1
call fcn.0040d7ab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408541
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x28], 2
call fcn.0040bae7
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00407b60
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.004021a0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40859e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x10]
cmp dword [ebp - 0xc], 0
jle 0x408609
call fcn.0040bae7
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call fcn.004081e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
call fcn.004021a0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push 5
push 0
push edi
push ebp
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40862a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40864b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40866f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4
Function at 0x413aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x413aeb
call fcn.0040bae7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413aeb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413b06
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041365f
test ebx, ebx
mov esi, eax
je 0x413b04
test edi, edi
je 0x413b04
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x416b34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x416b7a
call fcn.0040bae7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416b7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x416bbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x416ba6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416ba6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x416bba
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41c2d7
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 0x41c305
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c323
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c241
jmp 0x41c323
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c323
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041c241
test edi, edi
mov eax, edi
jne 0x41c30d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4621cc]
test ecx, ecx
je 0x41c3e6
jmp 0x41c2d6
ret 8

Function at 0x42efb3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45bc0c]
jne 0x42efbd
repz ret
jmp fcn.004378c3
Function at 0x43ddc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00435afa
xor ebx, ebx
cmp dword [0x462f64], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43de95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43de00
xor eax, eax
jmp 0x43df59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e9b0
push edi
call esi
cmp eax, ebx
je 0x43ddf9
push eax
call fcn.00435a97
mov dword [esp], 0x44e9a0
push edi
mov dword [0x462f64], eax
call esi
push eax
call fcn.00435a97
mov dword [esp], 0x44e98c
push edi
mov dword [0x462f68], eax
call esi
push eax
call fcn.00435a97
mov dword [0x462f6c], eax
lea eax, [ebp - 8]
push eax
call fcn.00432788
test eax, eax
pop ecx
pop ecx
je 0x43de63
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00434fe2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43de95
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00435a97
cmp eax, ebx
pop ecx
mov dword [0x462f74], eax
je 0x43de95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435a97
pop ecx
mov dword [0x462f70], eax
mov eax, dword [0x462f70]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43df0e
cmp dword [0x462f74], esi
je 0x43df0e
push eax
call fcn.00435b03
pop ecx
call eax
cmp eax, ebx
je 0x43dedb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x462f74]
call fcn.00435b03
pop ecx
call eax
test eax, eax
je 0x43dedb
test byte [ebp - 0x18], 1
jne 0x43df0e
lea eax, [ebp - 0xc]
push eax
call fcn.004327bf
test eax, eax
pop ecx
je 0x43def6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00434fe2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43df05
or dword [ebp + 0x10], 0x200000
jmp 0x43df3f
or dword [ebp + 0x10], 0x40000
jmp 0x43df3f
mov eax, dword [0x462f68]
cmp eax, esi
je 0x43df3f
push eax
call fcn.00435b03
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43df3f
mov eax, dword [0x462f6c]
cmp eax, esi
je 0x43df3f
push dword [ebp - 4]
push eax
call fcn.00435b03
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x462f64]
call fcn.00435b03
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443d80
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45bc0c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00443d15
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.0042efd0
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 0x443dcf
cmp dword [ebp - 0x1c], 5
jb 0x443de7
jmp 0x443de3
cmp dword [ebp - 0x10], 1
jne 0x443de7
cmp dword [ebp - 0x1c], 4
ja 0x443de3
jne 0x443de7
cmp dword [ebp - 0x18], 0
jbe 0x443de7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44fb98
call fcn.00443be9
test eax, eax
jge 0x443e08
mov byte [0x45d000], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042efb3
add ebp, 0x78
leave
ret
Function at 0x4057f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x460d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00455c5b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405872
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00453baa
mov eax, dword [eax]
push 0x4751f0
push eax
call fcn.00446874
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00455ee6
test bl, bl
je 0x405872
push 0x4751f0
lea ecx, [esp + 0xc]
call fcn.00456276
push 0x478d40
lea ecx, [esp + 0xc]
call fcn.00456276
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4058ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00455ee6
jmp 0x405979
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405932
lea edx, [esp + 0x7c]
push 0x478d3c
push edx
call fcn.00446874
add esp, 8
test eax, eax
je 0x405932
lea eax, [esp + 0x7c]
push 0x478d38
push eax
call fcn.00446874
add esp, 8
test eax, eax
je 0x405932
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00455ee6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406170
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4061d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4061e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x460dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x47f2c4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x406318
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406246
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00455ee6
xor eax, eax
jmp 0x40638f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00456023
push esi
lea ecx, [esp + 0xc]
call fcn.004562b2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40636d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406170
test eax, eax
jne 0x40636d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00406170
test eax, eax
jne 0x40636d
lea eax, [esp + 0x14]
push 0x478d54
push eax
call fcn.004478b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40634c
lea ecx, [esp + 0x14]
push 0x478d50
push ecx
call fcn.00447830
mov esi, eax
add esp, 8
test esi, esi
jne 0x40634c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40634f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00455fd3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40625e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00455ee6
xor eax, eax
jmp 0x40638f
mov byte [esi], 0
push 0x478d4c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00455ee6
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4