joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4543bb
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0xc]
push 0x22c
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x254]
push 0
push eax
mov dword [ebp - 0x274], 0
call fcn.0042fec0
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x264], ebx
add esp, 0xc
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x25c], edi
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40e051
mov eax, dword [ebp - 0x26c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x40e174
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e15a
push dword [ebp - 0x270]
lea eax, [ebp - 0x230]
push ecx
mov ecx, esp
push eax
call fcn.00408150
lea eax, [ebp - 0x28]
push eax
call fcn.0040e190
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40e099
mov eax, dword [eax]
push eax
call fcn.0043d5e4
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0x255]
cmp eax, 0x10
jb 0x40e0c0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404210
cmp byte [ebp - 0x255], 0
je 0x40e13a
lea eax, [ebp - 0x24c]
cmp eax, esi
jae 0x40e108
cmp ebx, eax
ja 0x40e108
mov edi, eax
sub edi, ebx
sar edi, 2
cmp esi, dword [ebp - 0x25c]
jne 0x40e0ff
push 1
lea ecx, [ebp - 0x264]
call fcn.0040de40
mov esi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
test esi, esi
je 0x40e131
mov eax, dword [ebx + edi*4]
jmp 0x40e12f
cmp esi, edi
jne 0x40e125
push 1
lea ecx, [ebp - 0x264]
call fcn.0040de40
mov esi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
test esi, esi
je 0x40e131
mov eax, dword [ebp - 0x24c]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x260], esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x268]
call sub.KERNEL32.dll_Process32NextW
mov edi, dword [ebp - 0x25c]
test eax, eax
jne 0x40e070
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x26c]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a28a
mov esp, ebp
pop ebp
ret
Function at 0x40e280
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 0x485280
sub esp, 0xc
mov dword [0x485300], 0
mov dword [0x485304], 0
sub edx, ecx
mov eax, dword [edx + ecx]
mov dword [ecx], eax
test eax, eax
je 0x40e2b8
add ecx, 4
cmp ecx, 0x485300
jl 0x40e2a4
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push str.WWRIP.EXE
push eax
call fcn.0040dfb0
mov ebx, dword [ebp - 0xc]
add esp, 8
mov edi, dword [ebp - 8]
cmp ebx, edi
je 0x40e2f4
sub edi, ebx
xor esi, esi
sar edi, 2
test edi, edi
je 0x40e2f4
push dword [ebx + esi*4]
push 0x40df20
call dword [sym.imp.USER32.dll_EnumWindows]
inc esi
cmp esi, edi
jb 0x40e2e1
cmp dword [0x485304], 1
jg 0x40e34c
mov esi, dword [0x485300]
test ebx, ebx
je 0x40e343
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
ja 0x40e367
shl eax, 2
cmp eax, 0x1000
jb 0x40e33a
test bl, 0x1f
jne 0x40e36c
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x40e371
sub ebx, eax
cmp ebx, 4
jb 0x40e376
cmp ebx, 0x23
ja 0x40e37b
mov ebx, eax
push ebx
call fcn.0041ddb9
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Multiple_instances_of_RIP_shell_currently_running.
push 0x10
push 0x458b48
call fcn.00408fa0
add esp, 0xc
push 0
call fcn.0043b9c9
call fcn.00433921
call fcn.00433921
call fcn.00433921
call fcn.00433921
call fcn.00433921
int3

Function at 0x40e5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
add dword [0x485310], edi
lea eax, [edi + 4]
push eax
call fcn.004372d0
add esp, 4
test eax, eax
je 0x40e60e
mov ecx, dword [ebp - 4]
mov dword [eax], edi
xor ecx, ebp
add eax, 4
pop edi
call fcn.0042a28a
mov esp, ebp
pop ebp
ret
push 0
push str.wctalloc_failure
push str.FATAL_memory_allocation_error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x485310]
lea eax, [ebp - 0x54]
push edi
push str.attempted_allocation___d_bytes__heapUsage___d__win32_error___d
push eax
call fcn.004090d0
add esp, 0x14
lea eax, [ebp - 0x54]
push 0
push str.wctalloc_failure
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push str.Failure_while_allocating_memory:__u_bytes
push str.Fatal_Error
call fcn.0040b5b0
add esp, 0xc
push 0
call fcn.0043b9c9
int3
Function at 0x410250
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x485694]
push esi
test eax, eax
jne 0x4102b4
push 0x45868c
call fcn.00409ee0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x485694], eax
test eax, eax
jne 0x4102b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00408bb0
add esp, 4
push eax
push esi
push str.devices.dll
call fcn.00409de0
add esp, 4
push eax
push str.Failure_to_load__s_n_nWindows_Error__d:__s
push 0x10
push 0x458b48
call fcn.00408fa0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
ret

Function at 0x4102c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SOFTWAREWasatch
push connect
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41034a
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.HomeFolder
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
jmp 0x41034f
push 0x458c70
mov ecx, esi
call fcn.00403480
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042a28a
mov esp, ebp
pop ebp
ret

Function at 0x411ce0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x32
push 1
push edi
push ebx
call fcn.0040bdd0
add esp, 0xc
test eax, eax
jne 0x411d25
test esi, esi
js 0x411d25
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x411d2a
push 1
push edi
push ebx
dec esi
call fcn.0040bdd0
add esp, 0xc
test eax, eax
je 0x411d01
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0040b6b0
add esp, 4
push eax
push str.Disk_access_error_in_editvariable_nduring_update_of__s_nGetLastError_returned__d
call fcn.00408b30
add esp, 0xc
push 0
call fcn.0043b9c9
int3
Function at 0x412600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x485934]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x41262b
push eax
call fcn.00432931
add esp, 4
push 0x100
call fcn.004372d0
mov ebx, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [0x485934], esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
mov al, byte [edx + ebx]
mov byte [ebp + ecx - 0x104], al
inc ecx
cmp ecx, 0xfa
jl 0x412645
mov byte [ebp - 0xa], 0
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jb 0x412663
mov dword [ebp - 0x108], 0
xor edi, edi
mov ecx, 0xfa
nop
mov eax, edi
mov bl, byte [edi + esi]
xor edx, edx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x104]
add eax, dword [ebp - 0x108]
add ecx, eax
movzx ecx, cl
mov dword [ebp - 0x108], ecx
movzx eax, byte [ecx + esi]
mov byte [ecx + esi], bl
mov ecx, 0xfa
mov byte [edi + esi], al
inc edi
cmp edi, 0x100
jb 0x412680
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x485938], 0
mov dword [0x48593c], 0
pop ebx
call fcn.0042a28a
mov esp, ebp
pop ebp
ret
Function at 0x4128c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454676
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
test eax, eax
je 0x412986
push eax
lea eax, [ebp - 0x40]
push str._c:_
push eax
call fcn.00408db0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x412954
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412937
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004041b0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407f50
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x412970
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004041b0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x412995
push 1
push 0x459274
lea ecx, [ebp - 0x28]
call fcn.00403940
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412a6d
cmp dword [ebp - 0x144], 1
jne 0x412a6d
cmp dword [ebp - 0x148], 0x3e8
jbe 0x412a6d
push 0x459278
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412a6d
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412a6d
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x17c]
push edx
lea edx, [ebp - 0x174]
push edx
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push edx
push ecx
call eax
test eax, eax
je 0x412a60
mov eax, dword [ebp - 0x168]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4592e0]
mov eax, dword [ebp - 0x16c]
mulsd xmm1, qword [0x4592d0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4592e0]
addsd xmm1, xmm0
jmp 0x412af1
movsd xmm1, qword [ebp - 0x174]
jmp 0x412af1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x158]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0x158]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4592e0]
mov eax, dword [ebp - 0x15c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4592e0]
mov eax, dword [ebp - 0x160]
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4592e0]
mulsd xmm1, xmm0
mulsd xmm1, qword [0x4592c0]
mov ecx, dword [ebp - 0x14]
movsd xmm0, qword [0x4592c8]
minsd xmm0, xmm1
cvttsd2si esi, xmm0
cmp ecx, 8
jb 0x412b1e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004041b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a28a
mov esp, ebp
pop ebp
ret
Function at 0x41d6b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x47b654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1d4]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x41d6e9
call fcn.0042b744
mov esi, eax
jmp 0x41d7d4
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x41d707
call fcn.0042b744
mov esi, eax
jmp 0x41d7d4
imul eax, dword [ebp + 0x2c], 0x3e8
push eax
push 0x45911c
lea eax, [ebp - 0x34]
push 0x15
push eax
call fcn.0041d890
imul eax, dword [ebp + 0x28], 0x3e8
push eax
push 0x45911c
lea eax, [ebp - 0x1c]
push 0x15
push eax
call fcn.0041d890
add esp, 0x20
lea eax, [ebp - 0x1c]
push 0x15
push eax
push 0x1005
push 0xffff
push dword [edi]
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x41d75f
call fcn.0042b744
mov esi, eax
jmp 0x41d7d4
push 0x15
lea eax, [ebp - 0x34]
push eax
push 0x1006
push 0xffff
push dword [edi]
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x41d784
call fcn.0042b744
mov esi, eax
jmp 0x41d7d4
cmp dword [ebp + 0x20], 0x10
mov eax, 2
mov word [ebp - 0x44], ax
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call sub.WS2_32.dll_inet_addr
push dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x44]
push 0x10
push eax
push dword [edi]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x41d7cf
call fcn.0042b744
push dword [edi]
mov esi, eax
call sub.WS2_32.dll_closesocket
jmp 0x41d7d4
mov esi, 1
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x41d7e9
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404210
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a28a
mov esp, ebp
pop ebp
ret

Function at 0x41d850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jle 0x41d87b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push esi
push edi
push dword [ebx]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x41d885
sub esi, eax
add edi, eax
test esi, esi
jg 0x41d863
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.0042b744
Function at 0x42d1c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45605e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47b654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x47b6cc]
cmp eax, 0xffffffff
jne 0x42d1f6
xor ebx, ebx
jmp 0x42d1ff
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
mov dword [ebp - 4], 0
setne cl
test cl, cl
je 0x42d24b
lea edi, [ebx + 0x14]
cmp dword [edi + 4], 0
mov esi, dword [ebx + 0xc]
sete al
test al, al
je 0x42d28a
test esi, esi
jne 0x42d290
push 0x42cbe0
push 0x488080
call fcn.0042c850
mov eax, dword [0x47b6cc]
add esp, 8
cmp eax, 0xffffffff
je 0x42d24b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x42d278
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x42d278
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42d2d5
nop
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x42d2bb
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x42d290
lea edi, [ebx + 0x14]
cmp dword [ebx + 0x18], 0
je 0x42d215
nop
mov esi, dword [edi]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42d2f8
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x42d2f8
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00404590
cmp dword [ebx + 0x18], 0
jne 0x42d2e0
jmp 0x42d215

Function at 0x42d310
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x42d370
push 0
push 0
call fcn.0043dcef
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x42d339
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x42d357
cmp eax, 0xffffffff
je 0x42d357
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x4438f4
Capabilities:
Read file on windows

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

Function at 0x44616d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445e2d
Function at 0x4042b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404387
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x404387
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x404387
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x40430d
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x404387
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404352
test dl, dl
je 0x40434e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404352
add ecx, 2
add eax, 2
test dl, dl
jne 0x404332
xor eax, eax
jmp 0x404357
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404369
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x404374
inc esi
cmp esi, ebp
jae 0x404387
mov edx, dword [esp + 0x10]
jmp 0x404328
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x4045eb
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4045f6
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x40460a
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40460e
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x404647
cmp dword [edi + ecx], 0x4550
jne 0x404647
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x404647
test byte [edi + ecx + 0x16], 2
je 0x404647
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x40464c
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x404688
xor eax, eax
jmp 0x40466b
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x404691
inc edx
movzx eax, dx
cmp eax, edi
jl 0x40466b
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x404697
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x4046cf
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x4046dd
add edx, 0x20
cmp eax, edx
jne 0x4046ee
test bx, bx
je 0x404723
add esi, 2
add edi, 2
jmp 0x4046bf
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x4046fc
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40470a
add edx, 0x20
sub ecx, edx
je 0x404723
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x4046b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40473c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404815
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x404815
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x404815
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x40479b
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x404815
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4047e0
test dl, dl
je 0x4047dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4047e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4047c0
xor eax, eax
jmp 0x4047e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4047f7
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x404802
inc esi
cmp esi, ebp
jae 0x404815
mov edx, dword [esp + 0x10]
jmp 0x4047b6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8