joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bf17
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x49bf46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x49c067
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49c087
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x49c0c0
cmp eax, 2
jg 0x49c0c0
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b1468
push 2
push eax
call fcn.0047d1eb
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0047d1eb
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x49c2f8
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49c2d2
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x49c2f7
push ebx
push esi
call fcn.004a5437
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0049c1f2
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x49c9a7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d5304]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x49cac4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49ca24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a5437
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049c1f2
add esp, 0x18
jmp 0x49cacb
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49ca57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a5437
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49ca16
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049c96e
test eax, eax
jne 0x49ca8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a5437
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49ca17
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049c96e
test eax, eax
jne 0x49cac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a5437
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49ca87
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049c91f
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004800fc
add ebp, 0x90
leave
ret

Function at 0x49cae3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49cb28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a5437
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049c17f
add esp, 0x14
jmp 0x49cb35
push str.TCP_NODELAY_set_n
push esi
call fcn.0049c17f
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49cf8c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x49cfdf
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49cfdf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49cfb9
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49cfdf
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49cfdf
mov eax, esi
jmp 0x49cfe2
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49e0b4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x49e226
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49e20b
push ebx
push edi
jmp 0x49e0fc
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49e19f
cmp dword [esi + 0x18], 0
je 0x49e19f
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49e19f
push 0x10
pop edi
cmp eax, edi
jb 0x49e19f
push 0x20
call dword [0x4d65e8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49e1af
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4d65e8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49e1b8
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49e186
push eax
call dword [0x4d65f4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49e1c8
cmp dword [ebp - 4], 0
jne 0x49e18f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49e199
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x49e0f9
jmp 0x49e1e1
mov dword [ebp - 8], 8
jmp 0x49e1e1
push ebx
mov dword [ebp - 8], 8
call dword [0x4d65ec]
jmp 0x49e1e0
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d65ec]
push ebx
call dword [0x4d65ec]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49e1f3
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49e206
push dword [ebp - 4]
call fcn.0049e078
pop ecx
mov dword [ebp - 4], esi
jmp 0x49e21a
cmp dword [ebp - 4], esi
jne 0x49e21a
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x49e578
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4d65f8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49e62a
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.0049e434
test eax, eax
pop ecx
pop ecx
je 0x49e62a
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.00494912
push dword [ebp + 8]
call dword [0x4d65f4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49e62a
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49e62a
lea eax, [esi + 0x10]
push eax
push 0x49e4a8
call fcn.004a5c5c
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49e644
call fcn.00480ac3
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049e526
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x49e647
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a219e
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4a21d2
cmp ebx, esi
jne 0x4a21d2
mov eax, dword [ebp + 0x7c]
call fcn.004a217f
jmp 0x4a236f
cmp dword [ebp + 0x7c], edx
jle 0x4a21e7
mov edi, dword [ebp + 0x7c]
call fcn.004a3764
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4a2217
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4a226e
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a224a
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a224a
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a2238
cmp eax, dword [ebp - 0xa8]
jne 0x4a2268
cmp dword [ebp - 0xa8], 0x40
jae 0x4a2268
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a226e
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a2277
xor ebx, ebx
jmp 0x4a227a
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a2299
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a229e
jne 0x4a22a1
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4a22fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a22d4
cmp eax, 0x2714
jne 0x4a22fe
cmp dword [ebp + 0x7c], 0
jle 0x4a227d
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a3764
push edx
push eax
call fcn.004a377a
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a227d
jmp 0x4a22fe
test eax, eax
jge 0x4a2303
or eax, 0xffffffff
jmp 0x4a236f
jne 0x4a2309
xor eax, eax
jmp 0x4a236f
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a233b
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a2325
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a233b
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a236d
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a2357
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a236d
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a42bc
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a42c9
jmp dword [eax*4 + 0x4a4324]
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
mov al, byte [esp + 4]
ret

Function at 0x4a600c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4a6030
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a6061
cmp dword [esi + 8], 0
jne 0x4a6051
push 0x4b45dc
push dword [eax + 8]
call fcn.004783a7
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a6051
or eax, 0xffffffff
jmp 0x4a6087
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0047a309
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a606f
cmp edi, dword [ebp + 0xc]
jbe 0x4a6085
test ebx, ebx
jne 0x4a607f
push dword [esi + 8]
call fcn.0047842c
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x528fa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd4000]
push edi
jmp 0x528fba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x528fc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x528fb0
mov eax, 1
add ebx, ebx
jne 0x528fd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x528fe4
jne 0x529003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529003
dec eax
add ebx, ebx
jne 0x528ff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x528fc8
add ebx, ebx
jne 0x528fff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x529055
xor ecx, ecx
sub eax, 3
jb 0x52901b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52908a
sar eax, 1
mov ebp, eax
jmp 0x529026
add ebx, ebx
jne 0x529026
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x528ff4
inc ecx
add ebx, ebx
jne 0x529034
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x528ff4
add ebx, ebx
jne 0x529041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x529036
jne 0x529052
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529036
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x529074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x529066
jmp 0x528fb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x529074
add edi, ecx
jmp 0x528fb6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x529092
cmp byte [edi], 0x11
jne 0x529092
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x529097
lea edi, [esi + 0x121000]
mov eax, dword [edi]
or eax, eax
je 0x52910f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17964c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1797c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5290c4
mov ecx, edi
jns 0x5290f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1797cc]
or eax, eax
je 0x529109
mov dword [ebx], eax
add ebx, 4
jmp 0x5290e1
call dword [esi + 0x1797dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x529140
cmp al, 0xef
ja 0x529133
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x529115
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x529122
mov ebp, dword [esi + 0x1797d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x529174
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x402930
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40296d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40298d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404458
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b54
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041e8
test esi, esi
jne 0x402b8a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042d8
jmp 0x402ba8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a08
mov edi, eax
test esi, esi
je 0x402ba8
cmp dword [ebx], 0
je 0x402ba8
dec esi
jmp 0x402b91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403268
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403300
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032e0
xor eax, eax
push ebp
push 0x4032d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40331c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fe8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c048], 0
je 0x404049
cmp word [0x48c21c], 0xd7b2
jne 0x404011
cmp dword [0x48c224], 0
jbe 0x404011
mov eax, 0x48c218
call dword [0x48c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48a06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48a030], 0
jne 0x404065
push 0
push 0x48a064
push 0x48a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40419c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48c049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404164
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406464
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4064ca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404458
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e2c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064d1
lea eax, [ebp - 0x10]
call fcn.004041e8
ret

Function at 0x4089e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408a01
test al, 0x10
jne 0x408a05
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bd0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bd45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d8
jmp 0x40bd4e
mov eax, ebx
mov edx, esi
call fcn.0040423c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd58
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bd79
mov al, byte [esp]
jmp 0x40bd7b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c400
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c278
mov eax, dword [0x48b870]
cmp byte [eax], 0
je 0x40c47c
mov eax, dword [0x48b65c]
call fcn.00402c78
call fcn.00402884
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c4c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c4b2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48b5fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48c664]
call fcn.00405978
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d364
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404458
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408648
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d36b
lea eax, [ebp - 0xc]
call fcn.004041e8
ret

Function at 0x423f3c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00423d94
dec esi
jne 0x423f5e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4594c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004046a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x459518
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48b9b4]
mov dl, 1
mov eax, dword [0x458fe4]
call fcn.0040c5c0
call fcn.00403bc4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004590ec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8