joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415910
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [ebx + eax*4 + 0xc8]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41595b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41593f
xor eax, eax
pop esi
ret
push edi
push ebx
mov edi, eax
call fcn.004248a0
push eax
mov eax, dword [ebx]
push str.Send_failure:__s
call fcn.00415840
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
xor eax, eax
cmp ecx, dword [ebx + 0xcc]
mov ecx, dword [esp + 4]
push esi
sete al
push 0
push edx
push ecx
mov eax, dword [ebx + eax*4 + 0xc8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415a16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4159fc
mov edx, dword [esp + 0xc]
xor esi, esi
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [edx], esi
pop esi
dec eax
and eax, 0x37
ret
push edi
push ebx
mov edi, eax
call fcn.004248a0
push eax
mov eax, dword [ebx]
push str.Send_failure:__s
call fcn.00415840
add esp, 0xc
pop edi
mov edx, dword [esp + 0xc]
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [edx], esi
pop esi
dec eax
and eax, 0x37
ret

Function at 0x415bd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x415be5
cmp byte [eax + 0x5c], 0
mov byte [esp + 3], 1
jne 0x415bea
mov byte [esp + 3], 0
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp ebx, dword [esi + 0xcc]
push ebp
sete cl
cmp byte [esp + 7], 0
push edi
mov dword [eax], 0
mov ebp, ecx
je 0x415c69
mov eax, dword [esi + 0x180]
mov edi, dword [esi + 0x184]
sub edi, eax
cmp edi, edx
jb 0x415c1e
mov edi, edx
test edi, edi
jbe 0x415c52
mov ecx, dword [esi + 0x17c]
mov edx, dword [esp + 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0042d530
add dword [esi + 0x180], edi
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + 0x131], 0
mov dword [eax], edi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
mov eax, edx
cmp edx, 0x4000
jb 0x415c61
mov eax, 0x4000
mov ecx, dword [esi + 0x17c]
jmp 0x415c91
mov ecx, dword [esi]
mov eax, dword [ecx + 0x234]
mov ecx, eax
test eax, eax
jne 0x415c7c
mov ecx, 0x4000
cmp edx, ecx
jge 0x415c84
mov eax, edx
jmp 0x415c8d
test eax, eax
jne 0x415c8d
mov eax, 0x4000
mov ecx, dword [esp + 0x10]
cmp dword [esi + ebp*8 + 0xd4], 2
jne 0x415ca2
pop edi
or eax, 0xffffffff
pop ebp
pop ecx
ret
cmp dword [esi + 0x164], 0
jne 0x415d06
push 0
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415cd4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
pop edi
dec eax
pop ebp
pop ecx
ret
test edi, edi
jl 0x415d06
cmp byte [esp + 0xb], 0
je 0x415d00
mov edx, dword [esi + 0x17c]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
call fcn.0042d530
add esp, 0xc
mov dword [esi + 0x184], edi
mov dword [esi + 0x180], edi
mov eax, dword [esp + 0x14]
add dword [eax], edi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x415d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [esi + 0x260], 0
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xac]
push edi
je case.default.0x415d60
test eax, eax
je case.default.0x415d60
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x415d60
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x415d60
jmp dword [edx*4 + 0x415e8c]
mov ecx, str.Header
mov edx, str.from
jmp 0x415d7d
mov ecx, str.Header
mov edx, 0x4483f8
push eax
push edx
push ecx
push str.__s__s__s_
mov ecx, 0xa0
lea eax, [esp + 0x18]
call fcn.0041b670
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415da0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x415e0a
mov ecx, dword [esi + 0xe4]
push ecx
push edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x415e75
mov eax, dword [esi + 0x144]
test eax, eax
je 0x415e38
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0xb4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
pop edi
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00427d7d
add esp, 0xa4
ret
mov eax, dword [esi + 0xe0]
push eax
push 1
push 2
push 0x44723c
call fcn.0042a403
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0042a403
add esp, 0x20
jmp case.default.0x415d60
test ebx, ebx
jl 0x415e73
cmp ebx, 2
jg 0x415e73
mov eax, dword [esi + 0xe0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x44723c]
push 2
push ecx
call fcn.0042a403
mov edx, dword [esi + 0xe0]
mov eax, dword [esp + 0xc4]
push edx
push 1
push eax
push ebp
call fcn.0042a403
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
xor ecx, esp
call fcn.00427d7d
add esp, 0xa4
ret
Function at 0x41c330
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
mov ebx, dword [edi + 0xc0]
sub ecx, edx
imul ecx, ecx, 0x3e8
sub ecx, dword [edi + 0xc4]
mov eax, 0x10624dd3
imul ecx
sub esi, ebx
imul esi, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
cmp ecx, ebp
jg 0x41c440
lea ecx, [ecx]
mov ebx, dword [esp + 0x14]
mov eax, ebp
push 0xffffffffffffffff
sub eax, ecx
push ebx
call fcn.0041db20
add esp, 8
test eax, eax
jle 0x41c440
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x41c448
cmp esi, eax
je 0x41c460
test eax, eax
je 0x41c440
add dword [esp + 0x18], eax
add dword [esp + 0x24], eax
sub esi, eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
mov ebx, dword [edi + 0xc0]
sub ecx, edx
imul ecx, ecx, 0x3e8
sub ecx, dword [edi + 0xc4]
mov eax, 0x10624dd3
imul ecx
sub esi, ebx
imul esi, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
cmp ecx, ebp
jle 0x41c3a0
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
dec eax
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
pop esi
add eax, ecx
pop ebp
mov dword [edx], eax
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41ecd0
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x41ecdb
jmp dword [ecx*4 + 0x41ed30]
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 0x41eef0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0042b667
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x41ef55
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x41ef55
lea edx, [esp]
push edx
call dword [0x4511b4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00427d7d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00427d7d
add esp, 0x108
ret
Function at 0x423c50
Capabilities:
Create thread
Create udp socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x48
push 1
mov esi, eax
call dword [0x4511b8]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], 0xc
mov dword [ebp + 0x2cc], edi
cmp edi, eax
je 0x423d2b
mov dword [ebp + 0x2bc], esi
mov byte [ebp + 0x2c4], al
mov dword [ebp + 0x2c8], eax
mov dword [ebp + 0x2c0], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebx, [edi + 0x10]
push eax
mov esi, ebx
mov dword [edi + 4], 0xffffffff
call fcn.00423a20
add esp, 8
test eax, eax
je 0x423d2b
mov eax, dword [ebp + 0x2b8]
test eax, eax
je 0x423ccd
push eax
call dword [0x4511ac]
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4511b4]
add esp, 4
mov dword [ebp + 0x2b8], eax
test eax, eax
je 0x423d2b
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x423d2b
push 0
push 0
push ebx
push 0x423b10
push 0
push 0
call fcn.0042c0fe
add esp, 0x18
test eax, eax
je 0x423d18
cmp eax, 0xffffffff
jne 0x423d1a
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x423d48
call fcn.0042ba4f
mov edx, dword [eax]
mov dword [esp + 0x14], edx
lea edi, [ebp + 0x2b8]
call fcn.00423ba0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x424170
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret
Function at 0x424a70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, 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 + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x424bbc
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x424bb1
push esi
push 0x20
call dword [0x4511a8]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x424b53
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]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x424b1b
cmp dword [edi + 0x18], ebx
je 0x424b1b
push eax
mov dword [esi + 0x10], eax
call dword [0x4511a8]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x424b5d
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0042d530
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x424b33
push eax
call dword [0x4511b4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x424b67
cmp dword [esp + 0x14], ebx
jne 0x424b3d
mov dword [esp + 0x14], esi
cmp ebp, ebx
je 0x424b44
mov dword [ebp + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov ebp, esi
cmp edi, ebx
jne 0x424ab3
jmp 0x424b8a
mov dword [esp + 0x10], 8
jmp 0x424b8a
mov dword [esp + 0x10], 8
jmp 0x424b80
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 8
cmp eax, ebx
je 0x424b80
push eax
call dword [0x4511ac]
add esp, 4
push esi
call dword [0x4511ac]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x424b9a
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebx
je 0x424bad
mov eax, dword [esp + 0x10]
call fcn.00424a30
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x425e20
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, ecx
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x425e64
push ecx
sub eax, esi
lea ecx, [esp + 0xc]
call fcn.00425600
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004256a0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00427d7d
add esp, 0x68
ret
Function at 0x426650
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push ebx
mov ebx, dword [edi + 0x2c]
mov edx, dword [ebx]
push ebp
push esi
push ecx
push eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x2c]
push 0x41b640
xor esi, esi
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x3fd
call fcn.0041ac80
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, esi
je 0x4266c0
cmp eax, dword [esp + 0x18]
jne 0x4266b9
mov ecx, dword [esp + 0x14]
mov byte [ecx - 1], 0
jmp 0x4266c0
mov edx, dword [esp + 0x14]
mov byte [edx], 0
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4266c5
mov cx, word [0x448450]
mov dl, byte [0x448452]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x24]
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4266e7
sub eax, ebp
mov ebp, eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 8], esi
mov ecx, dword [eax]
add ecx, 0x48c
mov dword [edi + 0xc], ecx
mov byte [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ecx
mov ecx, dword [ebx + 0xc8]
xor eax, eax
cmp ecx, dword [ebx + 0xcc]
sete al
cmp dword [ebx + eax*8 + 0xd4], 2
jne 0x426753
or esi, 0xffffffff
mov dword [esp + 0xc], esi
jmp 0x42677c
cmp dword [ebx + 0x164], esi
je 0x426765
mov dword [esp + 0xc], 0xffffffff
jmp 0x426778
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00415910
add esp, 4
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
xor eax, eax
cmp esi, 0xffffffff
setne al
dec eax
and eax, 0x37
mov dword [esp + 0x10], eax
jne 0x42682c
mov eax, dword [ebx]
cmp byte [eax + 0x278], 0
je 0x4267b7
push ebx
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 2
mov esi, eax
call fcn.00415d10
mov esi, dword [esp + 0x18]
add esp, 0xc
cmp esi, ebp
je 0x426800
sub ebp, esi
push ebp
call dword [0x4511a8]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x4267e5
push ebp
lea edx, [esp + esi + 0x28]
push edx
push eax
call fcn.0042d530
add esp, 0xc
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
jmp 0x426828
mov eax, dword [esp + 0x20]
push str.out_of_memory
call fcn.00415840
add esp, 4
mov dword [esp + 0x10], 0x1b
jmp 0x426828
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x424]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427d7d
add esp, 0x41c
ret
Function at 0x427650
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete bl
test bl, bl
je 0x427675
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xc]
push eax
push ebp
push 1
push edi
call ecx
jmp 0x4276a7
cmp dword [esi + 8], 0
jne 0x42769a
mov edx, dword [eax + 8]
push 0x44b678
push edx
call fcn.0042b25a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x42769a
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esi + 8]
push eax
push ebp
push 1
push edi
call fcn.0042a284
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4276b4
cmp edi, ebp
jbe 0x4276d1
test bl, bl
jne 0x4276cb
mov ecx, dword [esi + 8]
push ecx
call fcn.00428b3c
add esp, 4
mov dword [esi + 8], 0
mov edx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret

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

Disassembly:
cmp dword [0x451b00], 0
push esi
jne 0x4279c5
call fcn.004278eb
test eax, eax
je 0x427a08
mov eax, dword [0x451b00]
cmp eax, 1
jne 0x4279e6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x427a08
pop esi
ret
push eax
call dword [0x451b08]
test eax, eax
jne 0x427a50
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 0x427a0c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x451b00]
call dword [0x451b08]
mov edi, eax
test edi, edi
je 0x427a31
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x427a4d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x451b00]
call dword [0x451b04]
add edi, 0x10
cmp edi, esi
jb 0x427a39
mov eax, edi
pop edi
pop esi
ret
jmp 0x4279b2

Function at 0x427d7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4504f4]
jne 0x427d87
repz ret
jmp fcn.0042c837
Function at 0x439610
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.0042ca44
and dword [ebp - 4], 0
cmp dword [0x452678], 0
mov ebx, eax
jne 0x4396c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x439772
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x439772
push eax
call fcn.0042c9d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x452678], eax
call esi
push eax
call fcn.0042c9d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45267c], eax
call esi
push eax
call fcn.0042c9d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452680], eax
call esi
push eax
call fcn.0042c9d2
pop ecx
mov dword [0x452688], eax
test eax, eax
je 0x4396c1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042c9d2
pop ecx
mov dword [0x452684], eax
mov eax, dword [0x452684]
cmp eax, ebx
je 0x439719
cmp dword [0x452688], ebx
je 0x439719
push eax
call fcn.0042ca4d
push dword [0x452688]
mov esi, eax
call fcn.0042ca4d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x439719
test edi, edi
je 0x439719
call esi
test eax, eax
je 0x439710
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x439710
test byte [ebp - 0xc], 1
jne 0x439719
or dword [ebp + 0x10], 0x200000
jmp 0x439752
mov eax, dword [0x45267c]
cmp eax, ebx
je 0x439752
push eax
call fcn.0042ca4d
pop ecx
test eax, eax
je 0x439752
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x439752
mov eax, dword [0x452680]
cmp eax, ebx
je 0x439752
push eax
call fcn.0042ca4d
pop ecx
test eax, eax
je 0x439752
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452678]
call fcn.0042ca4d
pop ecx
test eax, eax
je 0x439772
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x439774
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43da00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.0043a630
mov eax, dword [0x4504f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x234]
call fcn.004078b0
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43da44
xor eax, eax
jmp 0x43db12
lea ecx, [ebp - 0x10]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43db06
mov dword [ebp - 0xc], 0
jmp 0x43da77
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
shr edx, 2
cmp dword [ebp - 0xc], edx
jae 0x43db06
xor eax, eax
mov word [ebp - 0x1218], ax
push 0x206
push 0
lea ecx, [ebp - 0x1216]
push ecx
call fcn.00429240
add esp, 0xc
push 0x104
lea edx, [ebp - 0x1218]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + eax*4 - 0x1010]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x43db01
cmp dword [ebp - 0xc], 0
jne 0x43db01
mov eax, dword [ebp + 0x234]
push eax
lea eax, [ebp - 0x1218]
call fcn.00405850
mov ecx, dword [ebp + 0x234]
push ecx
call fcn.0043d860
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x43db12
jmp 0x43da6e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427d7d
mov esp, ebp
pop ebp
ret

Function at 0x43db30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4504f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00429240
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
call fcn.00401fa0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
call fcn.00405850
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043d860
add esp, 4
mov eax, dword [ebp + 8]
call fcn.00402570
sub eax, 1
mov edi, eax
mov eax, dword [ebp + 8]
call fcn.0040de00
movzx edx, word [eax]
cmp edx, 0x5c
je 0x43dbc4
mov eax, dword [ebp + 8]
push eax
mov eax, 0x447984
call fcn.00401bd0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427d7d
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x18]
add edx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x24]
add ecx, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
test ebx, ebx
je 0x4012e1
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012d0
test dl, dl
je 0x4012cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012b0
xor eax, eax
jmp 0x4012d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4012ea
mov edx, dword [ebp - 8]
inc esi
cmp esi, ebx
jb 0x4012a8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret