joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4144e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x414691
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x41466f
push esi
jmp 0x414530
cmp dword [edi + 4], 2
jne 0x4145e8
cmp dword [edi + 0x18], ebx
je 0x4145e8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4145e8
cmp eax, 0x10
jb 0x4145e8
push 0x20
call dword [0x44e2b4]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4145f5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x44e2b4]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4145ff
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4145d5
push eax
call dword [0x44e2c0]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x414613
cmp dword [esp + 0x10], ebx
jne 0x4145df
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x4145e6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x414530
jmp 0x41462f
mov dword [esp + 0x14], 8
jmp 0x41462f
push esi
mov dword [esp + 0x18], 8
call dword [0x44e2b8]
add esp, 4
jmp 0x41462f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x44e2b8]
push esi
call dword [0x44e2b8]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x41463f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x414669
mov eax, dword [esp + 0xc]
push eax
call fcn.00414490
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x414682
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x414ab0
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x44e2c4]
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x39c], esi
cmp esi, eax
je 0x414b6b
mov dword [edi + 0x38c], ebx
mov dword [edi + 0x394], eax
mov dword [edi + 0x398], eax
mov dword [edi + 0x390], eax
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
lea ebp, [esi + 0x10]
push ebx
mov eax, ebp
mov dword [esi + 4], 0xffffffff
call fcn.00414930
add esp, 8
test eax, eax
je 0x414b6b
mov eax, dword [edi + 0x388]
push eax
call fcn.00409180
push ebx
call dword [0x44e2c0]
add esp, 8
mov dword [edi + 0x388], eax
test eax, eax
je 0x414b6b
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x414b6b
push ebp
push 0x4149c0
call fcn.0042a210
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x414b8d
call fcn.00431fa3
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x388
push edi
call fcn.00414a50
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x419420
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x444744
push ecx
call fcn.00411f10
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004185f0
test eax, eax
jne 0x419450
mov eax, esi
jmp fcn.00418a80
ret
Function at 0x419860
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x44e330]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3b0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4198ef
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0042faa0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x41992a
push str.Received_too_short_packet
push ebx
call fcn.00411fa0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e618
add esp, 0x88
ret
mov eax, edi
call fcn.00418790
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x419943
jmp dword [eax*4 + 0x419a2c]
cmp edx, 4
jle case.0x419943.4
mov eax, edi
call fcn.004187a0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x419943.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00412280
mov edi, eax
add esp, 0x10
test edi, edi
je 0x419996
mov ecx, 5
mov eax, esi
call fcn.004197e0
mov eax, edi
jmp 0x419911
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.00426f90
jmp 0x419a02
mov eax, edi
call fcn.004187a0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x444744
push ebx
mov dword [esi + 8], edx
call fcn.00411f10
jmp 0x419a02
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00418830
add esp, 0xc
test eax, eax
je case.0x419943.4
jmp 0x419911
push str.Internal_error:_Unexpected_packet
push 0x4445a4
push ebx
call fcn.00411fa0
add esp, 0xc
push ebp
call fcn.00427050
add esp, 4
test eax, eax
je 0x41990f
mov ecx, 5
mov eax, esi
call fcn.004197e0
mov eax, 0x2a
jmp 0x419911

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

Disassembly:
push ecx
mov edx, dword [edi + 0x12c]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x41b6d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00411fa0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0041b590
add esp, 4
pop esi
pop ecx
ret
Function at 0x41cc80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x44e330]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0x130]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004123e0
add esp, 0xc
test eax, eax
jl 0x41cce9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x41ccc0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.00424dd0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41cd81
test eax, eax
jne 0x41cd0e
push 1
push eax
push esi
call fcn.004123e0
add esp, 0xc
test eax, eax
jge 0x41ccb5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00411fa0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042e618
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41cd3e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x41cd51
push str.Error_accept__ing_server_connect
jmp 0x41cd86
push str.Connection_accepted_from_server_n
push ebp
call fcn.00411f10
push 1
push ebx
mov dword [esi + 0x130], ebx
call fcn.0042a150
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042e618
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00411fa0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.0042e618
add esp, 0x18
ret
Function at 0x424dd0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x424e10
cmp ebp, ebx
jne 0x424e10
mov eax, dword [esp + 0x334]
call fcn.00424db0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x424e2b
mov esi, edi
call fcn.00426a50
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x424e5f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x424ea3
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x424e8c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x424e8c
inc eax
cmp eax, ecx
jb 0x424e81
cmp eax, ecx
jne 0x424e9d
cmp ecx, 0x40
jae 0x424e9d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x424ea3
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x424ee5
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x424eef
jne 0x424eef
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x424f59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x424f22
cmp eax, 0x2714
jne 0x424f5d
test edi, edi
jle 0x424eb4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00426a50
push edx
push eax
call fcn.00426a80
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x424eb4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x424f6b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x424f7a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x424fb1
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424f9f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424fb1
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x424fe4
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424fd2
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424fe4
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x425e90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00426a50
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00426a80
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x425f4a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00424dd0
add esp, 0xc
test eax, eax
jle 0x425f6d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00411c40
add esp, 0x10
cmp eax, 0x51
je 0x425f29
test eax, eax
jne 0x425f70
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x425f57
test eax, eax
je 0x425f6d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.00426a50
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00426a80
add esp, 0x10
cmp eax, ebx
jle 0x425ee0
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x427760
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x42776f
jmp dword [ecx*4 + 0x4277c4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x427950
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x44e330]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00432b7f
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4279b5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4279b5
lea edx, [esp]
push edx
call dword [0x44e2c0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042e618
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0042e618
add esp, 0x108
ret
jmp 0x427950
Function at 0x4279d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x44e330]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00432b7f
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4279b5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4279b5
lea edx, [esp]
push edx
call dword [0x44e2c0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042e618
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0042e618
add esp, 0x108
ret
jmp 0x427950

Function at 0x42a210
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0042f15a
add esp, 0x18
test eax, eax
je 0x42a233
cmp eax, 0xffffffff
jne 0x42a235
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x19c]
test esi, esi
jne 0x42a299
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00426a50
push edx
push eax
call fcn.00426a80
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x194], 0
je 0x42a2e6
mov eax, dword [ebx + 0x120]
mov ecx, dword [ebx + 0x11c]
push eax
push ecx
call fcn.00426a50
push edx
push eax
call fcn.00426a80
mov ecx, dword [edi + 0x194]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x42a2e8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x42adb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
cmp dword [0x44f83c], 0
push esi
jne 0x42dfb4
call fcn.0042ded8
test eax, eax
je 0x42dff7
mov eax, dword [0x44f83c]
cmp eax, 1
jne 0x42dfd5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42dff7
pop esi
ret
push eax
call dword [0x44f844]
test eax, eax
jne 0x42e03f
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 0x42dffb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44f83c]
call dword [0x44f844]
mov edi, eax
test edi, edi
je 0x42e020
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42e03c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x44f83c]
call dword [0x44f840]
add edi, 0x10
cmp edi, esi
jb 0x42e028
mov eax, edi
pop edi
pop esi
ret
jmp 0x42dfa1

Function at 0x42e618
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e330]
jne 0x42e622
repz ret
jmp fcn.00434a25
Function at 0x43c40b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043431e
and dword [ebp - 4], 0
cmp dword [0x45034c], 0
mov ebx, eax
jne 0x43c4bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43c56d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43c56d
push eax
call fcn.004342ac
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45034c], eax
call esi
push eax
call fcn.004342ac
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450350], eax
call esi
push eax
call fcn.004342ac
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450354], eax
call esi
push eax
call fcn.004342ac
pop ecx
mov dword [0x45035c], eax
test eax, eax
je 0x43c4bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004342ac
pop ecx
mov dword [0x450358], eax
mov eax, dword [0x450358]
cmp eax, ebx
je 0x43c514
cmp dword [0x45035c], ebx
je 0x43c514
push eax
call fcn.00434327
push dword [0x45035c]
mov esi, eax
call fcn.00434327
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43c514
test edi, edi
je 0x43c514
call esi
test eax, eax
je 0x43c50b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c50b
test byte [ebp - 0xc], 1
jne 0x43c514
or dword [ebp + 0x10], 0x200000
jmp 0x43c54d
mov eax, dword [0x450350]
cmp eax, ebx
je 0x43c54d
push eax
call fcn.00434327
pop ecx
test eax, eax
je 0x43c54d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43c54d
mov eax, dword [0x450354]
cmp eax, ebx
je 0x43c54d
push eax
call fcn.00434327
pop ecx
test eax, eax
je 0x43c54d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45034c]
call fcn.00434327
pop ecx
test eax, eax
je 0x43c56d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c56f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dfe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x470cbb
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.0046582e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004635ad
mov eax, dword [eax]
push 0x4b41e0
push eax
call fcn.00456434
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465ab9
test bl, bl
je 0x40e062
push 0x4b41e0
lea ecx, [esp + 0xc]
call fcn.00465e49
push 0x4b7d4c
lea ecx, [esp + 0xc]
call fcn.00465e49
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 0x40e09e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465ab9
jmp 0x40e169
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 0x40e122
lea edx, [esp + 0x7c]
push 0x4b7d48
push edx
call fcn.00456434
add esp, 8
test eax, eax
je 0x40e122
lea eax, [esp + 0x7c]
push 0x4b7d44
push eax
call fcn.00456434
add esp, 8
test eax, eax
je 0x40e122
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 0x40e0b2
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.00465ab9
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 0x40e960
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 0x40e9c2
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