joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ffe0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x28c], 0
push ebx
mov ebx, dword [esi + 0x334]
push edi
jne 0x100301c2
cmp byte [esi + 0x14b], 0xff
mov edi, 1
mov dword [esi + 0x28c], edi
jne 0x1003002f
lea eax, [esi + 0x14c]
push eax
mov eax, dword [esi + 0x160]
mov edi, esi
call fcn.10030af0
mov dword [esi + 0x15c], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x290]
cmp eax, 0xffffffff
je 0x10030083
push 4
lea ecx, [ebp - 4]
push ecx
push edi
push 6
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x100301c2
mov edx, dword [esi + 0x290]
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], edx
mov eax, dword [esi + 0x290]
add dword [esi + 0x188], edi
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x174], 0
je 0x100300c5
push ebx
push 0x170c
call fcn.10030db0
mov dword [esi + 0x17c], eax
mov dword [esi + 0x178], 0x170c
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov ecx, dword [esi + 0x17c]
mov dword [esi + 0x184], ecx
jmp 0x100300f8
mov eax, dword [esi + 0x178]
test eax, eax
jle 0x100300fe
push ebx
push eax
call fcn.10030db0
mov dword [esi + 0x17c], eax
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov edx, dword [esi + 0x17c]
mov dword [esi + 0x184], edx
add dword [esi + 0x188], edi
mov edx, dword [esi + 0x298]
test edx, edx
je 0x100301c2
mov dword [ebp - 4], edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov eax, 2
push edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 2
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x1003016d
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1003016d
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10030170
or edi, 0xffffffff
mov edx, dword [esi + 0x188]
xor eax, eax
mov dword [esi + 0x29c], edi
test edx, edx
je 0x10030194
lea ecx, [esi + 0x18c]
cmp dword [ecx], edi
je 0x10030194
inc eax
add ecx, 4
cmp eax, edx
jb 0x10030188
cmp eax, edx
jne 0x100301aa
cmp edx, 0x40
jae 0x100301aa
mov dword [esi + eax*4 + 0x18c], edi
inc dword [esi + 0x188]
mov eax, dword [esi + 0x29c]
mov ecx, dword [esi + 0x184]
cmp eax, ecx
jg 0x100301bc
mov eax, ecx
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030af0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 4], 1
call fcn.10030e50
mov esi, eax
test esi, esi
jns 0x10030b24
mov dword [edi + 0x28c], 2
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030b55
push esi
mov dword [edi + 0x28c], 2
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [edi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, ax
push 0
mov dword [ebp + 8], eax
mov word [ebp - 0xa], ax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 5
push esi
mov word [ebp - 0xc], dx
mov byte [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x10030b39
push 0
push 1
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 1
jne 0x10030b39
movzx eax, word [ebp + 8]
push 0
push eax
push ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 8]
jne 0x10030b39
mov edx, dword [edi + 0x188]
xor eax, eax
test edx, edx
je 0x10030bd3
lea ecx, [edi + 0x18c]
cmp dword [ecx], esi
je 0x10030bd3
inc eax
add ecx, 4
cmp eax, edx
jb 0x10030bc7
cmp eax, edx
jne 0x10030be9
cmp edx, 0x40
jae 0x10030be9
mov dword [edi + eax*4 + 0x18c], esi
inc dword [edi + 0x188]
mov eax, dword [edi + 0x184]
cmp esi, eax
jle 0x10030bf5
mov eax, esi
mov dword [edi + 0x184], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10030c10
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
test ebx, ebx
jle 0x10030c99
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x10030c41
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x10030c95
je 0x10030ca7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10030c95
cmp eax, 0x2733
jne 0x10030cb2
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, eax
push ecx
lea edx, [edi + 1]
push edx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 0x14
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x10030c9e
je 0x10030cbd
test ebx, ebx
jg 0x10030c26
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10030cd0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x10030d88
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10030d0c
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x10030d80
je 0x10030d96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10030d80
cmp eax, 0x2733
jne 0x10030da1
lea edx, [ebp - 8]
push edx
xor esi, esi
push esi
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 5
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x10030d8d
jne 0x10030d7d
mov eax, dword [ebp + 0xc]
add eax, 0x1388
mov dword [ebp + 0xc], eax
cmp eax, 0x4e20
jl 0x10030d80
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], esi
test ebx, ebx
jg 0x10030cf1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10030db0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x10030e19
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030e24
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10030e12
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x10030e12
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10030e50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
xor al, al
lea edi, [ebp - 0x10]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0xc], eax
jne 0x10030eaa
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10030ed4
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
test ebx, ebx
js 0x10030ed4
push 0x10
lea edx, [ebp - 0x10]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10030ee0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
add edi, 0x164
lea esi, [ebp - 0x10]
mov ecx, 0x10
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10036380
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x1005d708
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004d6a8]
or edx, dword [edi*4 + 0x1004d8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x1004daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004dca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004dda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004d6a8]
or edx, dword [ebx*4 + 0x1004d8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x1004daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004dca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004dda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10036403
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10038fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10038fb3
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x1003902d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10039001
sub eax, edi
jmp 0x10039003
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10038ff2
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10039020
sub eax, edi
jmp 0x10039022
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10039011
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003913b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x10039053
mov ebx, edx
test ebx, ebx
je 0x10039088
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x10039076
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10043a00
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x100390b0
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x100390c4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10038fb0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1003913b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003910a
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x100390eb
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1003913b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x10039124
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10044900
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10044929
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x1004d100]
inc esi
xor eax, edx
dec ecx
jne 0x10044914
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x402516
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040248f
mov ebx, eax
cmp ebx, esi
je 0x402582
cmp dword [ebp - 0x218], esi
je 0x40257b
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40261a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4025aa
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00402516
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x40262b
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x40258a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x4025f5
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.004023ae
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x402618
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d5b3
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x40263f
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x40261a
Function at 0x402935
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x48fc89
call fcn.00474ef7
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40298d
call fcn.00401bdc
mov esi, eax
jmp 0x402a86
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4029a6
call fcn.00401bdc
jmp 0x402a78
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40299c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x4029e3
mov esi, 0x8007000e
jmp 0x402a7a
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0040fbfe
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x402a07
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040ccf9
jmp 0x402a13
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x402a31
cmp dword [ebp - 0x418], esi
je 0x4029d9
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40299c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00403435
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x402a9f
lea eax, [ebp - 0x418]
call fcn.0040b8ae
mov eax, esi
call fcn.00474f53
ret 0xc
Function at 0x4151bd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xd0], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0xd8], edi
push 0xc6
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push edi
push eax
mov esi, ecx
call fcn.0046fc60
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xd4], edi
jb 0x415214
mov eax, dword [esi]
jmp 0x415216
mov eax, esi
lea ecx, [ebp - 0xd4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, edi
je 0x4152cf
push ebx
push 2
mov dword [ebp - 0xdc], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xe0], eax
jb 0x415254
mov esi, dword [esi]
push eax
push ebx
push dword [ebp - 0xd4]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4152cf
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0x49c6b8
push dword [ebp - 0xe0]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4152cf
mov eax, dword [ebp - 0xd8]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0xcc]
push str._d._d._d._d
push eax
call fcn.004139a1
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a4c4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d5b3
leave
ret
Function at 0x415e59
Capabilities:
Get geographical location

Disassembly:
push 0x30
mov eax, 0x48d492
call fcn.00474ec1
mov esi, dword [0x4bfb44]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], ebx
cmp dword [esi + 0x10], ebx
je 0x415e87
push esi
call fcn.0040a49c
mov eax, edi
jmp 0x415f34
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x38], eax
cmp eax, 0x404
je 0x415f08
cmp eax, 0xc04
je 0x415f08
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
push 0x59
push eax
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x415ecc
mov edi, 0x49e244
jmp 0x415f0d
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045c4ea
pop ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push eax
push 0x59
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x34]
push esi
call fcn.0040a51a
cmp dword [ebp - 0x34], ebx
je 0x415f1d
push dword [ebp - 0x34]
call fcn.0046e04a
pop ecx
jmp 0x415f1d
mov edi, 0x49e23c
push edi
call fcn.0046faa4
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040cee2
mov ecx, dword [ebp - 0x30]
push esi
call fcn.0040a49c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
mov eax, dword [ebp - 0x30]
call fcn.00474f44
ret
Function at 0x417755
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x48b8ae
call fcn.00474ec1
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x417775
xor eax, eax
call fcn.00474f44
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x41779d
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x41779d
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x41776d
cmp dword [esi + 0x54], edi
jne 0x4177a7
or eax, 0xffffffff
jmp 0x41776d
mov eax, esi
call fcn.00418671
cmp dword [esi + 0x44], edi
jne 0x4177c8
push dword [esi + 0x54]
movsx eax, bl
push eax
call fcn.0046fec4
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4177a2
jmp 0x417799
push edi
push 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.0040ec56
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x417883
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x4178ab
cmp eax, 1
jg 0x41788b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x417833
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x417859
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x417846
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00471378
add esp, 0x10
cmp edi, eax
jne 0x4178ab
lea eax, [ebp - 0x2d]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x4178a6
test edi, edi
jne 0x4177e7
cmp dword [ebp - 0x1c], 0x20
jae 0x4178ab
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e1fe
jmp 0x4177e7
mov edx, dword [ebp - 0x2c]
jmp 0x4177f9
cmp eax, 3
jne 0x4178ab
movsx eax, byte [ebp - 0x2d]
push dword [esi + 0x54]
push eax
call fcn.0046fec4
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x4178ae
mov esi, dword [ebp + 8]
jmp 0x4178ae
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401524
mov eax, esi
jmp 0x41776d