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

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x41612c
or eax, eax
pop esi
add esp, 0x10c
ret 0xc
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x128]
push 0
push edx
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jg 0x41617c
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x4161b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
and al, 0xfe
add esp, 0x10c
ret 0xc
jne 0x4161bd
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret 0xc

Function at 0x416380
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, ecx
push 0
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x11
push 2
push 2
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4163c9
mov dword [esi], eax
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4
lea ecx, [esp + 0x14]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4163e6
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4
mov eax, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x28]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x3c], 0
call edi
test eax, eax
je 0x416418
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4
mov edx, dword [esi]
lea ecx, [esp + 8]
push 4
push ecx
push 0x1002
push 0xffff
push edx
mov dword [esp + 0x1c], 0x10000
call edi
test eax, eax
je 0x416444
pop edi
xor al, al
pop esi
add esp, 0x1c
ret 4
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push 4
push eax
push 3
push 0
push ecx
mov dword [esp + 0x20], 0xb0
call edi
mov ecx, dword [esi]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x16]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 4], ax
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret 4
Function at 0x4164c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x416533
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push 0
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x416533
push esi
push eax
push 0x42292c
call fcn.00419737
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x4165b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4165d7
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x416670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x4165e1
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
mov byte [esi + 0x10], 0
pop esi
setne al
ret

Function at 0x4185a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004194d0
test eax, eax
jne 0x4185c2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea esi, [ebp + 0x60]
mov ecx, 0x41
lea edi, [esp + 0x1c]
xor bl, bl
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0
inc eax
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x418609
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov al, byte [ebp + 0x14]
test al, al
je 0x41861d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea edi, [ebp + 0x28]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00415ce0
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x4186b9
mov ecx, dword [0x4238f0]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x41867e
mov ecx, edi
call fcn.00417ab0
test al, al
jne 0x418678
mov ecx, edi
call fcn.00417a50
cmp eax, 0xffffffff
je 0x418678
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x418678
mov ecx, edi
call fcn.00417b40
test al, al
je 0x418678
mov bl, 1
mov ecx, dword [0x4238f0]
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x418697
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x4186b0
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x41868d
jmp 0x4186b0
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x4186a9
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x41869f
cmp dword [esi + 8], eax
je 0x4186b0
mov esi, eax
cmp esi, dword [ebp + 0x1c]
jne 0x41863e
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00415cf0
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x419520
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004194d0
test eax, eax
jne 0x419542
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea esi, [ebp + 0x44]
mov ecx, 0x41
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
xor bl, bl
push ecx
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x419589
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov al, byte [ebp + 0x14]
test al, al
je 0x41959d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea edi, [ebp + 0x28]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00415ce0
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x419639
mov ecx, dword [0x4238f0]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4195fe
mov ecx, edi
call fcn.00417ab0
test al, al
jne 0x4195f8
mov ecx, edi
call fcn.00417a50
cmp eax, 0xffffffff
je 0x4195f8
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4195f8
mov ecx, edi
call fcn.00417a60
test al, al
je 0x4195f8
mov bl, 1
mov ecx, dword [0x4238f0]
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x419617
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x419630
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x41960d
jmp 0x419630
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x419629
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x41961f
cmp dword [esi + 8], eax
je 0x419630
mov esi, eax
cmp esi, dword [ebp + 0x1c]
jne 0x4195be
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00415cf0
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x405e08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50c054], 0
je 0x405e69
cmp word [0x50c330], 0xd7b2
jne 0x405e31
cmp dword [0x50c338], 0
jbe 0x405e31
mov eax, 0x50c32c
call dword [0x50c348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405e94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x506030], 0
jne 0x405e85
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x506034], 0
je 0x40601a
mov edx, esi
mov eax, ebx
call dword [0x506034]
jmp 0x406029
mov eax, 8
call fcn.00404208
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50c055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fbc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x408c74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408ddb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406f14
cmp si, word [0x5067dc]
jb 0x408d0e
cmp si, word [0x5069dc]
ja 0x408d0e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d0e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5067dc]
jae 0x408ce8
mov edi, ebx
dec edi
jmp 0x408d09
cmp si, word [ebx*8 + 0x5067dc]
jbe 0x408cf8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d09
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5067e0]
call fcn.00408b84
jmp 0x408d0e
cmp edi, dword [ebp - 0xc]
jae 0x408cd2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408dbd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408dbd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407114
push dword [ebp - 0x164]
push 0x408df8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407114
push dword [ebp - 0x168]
push 0x408e08
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407114
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408de2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406f0c
ret
Function at 0x408f94
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409099
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50eb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x50eb74]
jne 0x408fe0
mov eax, esi
mov edx, 0x50eb78
mov ecx, 0x55
call fcn.00407114
push 0x50eb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409083
push 0x50eb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406f14
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409051
cmp byte [0x50eb58], 0
je 0x409016
mov edx, esi
mov eax, ebx
call fcn.00408e74
jmp 0x409051
mov edx, esi
mov eax, ebx
call fcn.00408c74
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409051
cmp dword [esi], 0
je 0x40903a
mov eax, esi
mov edx, 0x4090b4
call fcn.00407328
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c74
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407328
push 0x50eb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x50eb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406fa0
push eax
push 0x50eb78
call sub.kernel32.dll_lstrcpynW
push 0x50eb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090a0
lea eax, [ebp - 4]
call fcn.00406f04
ret
Function at 0x4092d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406efc
xor eax, eax
push ebp
push 0x4094bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409318
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409332
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406fa0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094a7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409500
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409534
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094a7
xor eax, eax
push ebp
push 0x4094a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004090dc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409430
mov eax, dword [ebp - 0x10]
call fcn.00404208
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004070c0
jmp 0x40947b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409574
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40947b
mov eax, dword [ebp - 0x10]
call fcn.00404208
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409574
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004070c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094a7
cmp dword [ebp - 8], 0
je 0x409496
mov eax, dword [ebp - 8]
call fcn.00404224
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094c4
lea eax, [ebp - 4]
call fcn.00406f04
ret
Function at 0x409788
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406efc
mov eax, dword [ebp - 0x21c]
call fcn.00406efc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406f14
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406fa0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409828
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40983a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409825
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4098f3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409863
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004092d8
cmp dword [ebp - 0x220], 0
je 0x40989b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040967c
pop ecx
mov ebx, eax
jmp 0x4098f3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408f94
mov eax, dword [ebp - 0x224]
call fcn.0040967c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098e6
cmp byte [0x50eb58], 0
jne 0x4098e6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408f94
mov eax, dword [ebp - 0x228]
call fcn.0040967c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098f3
push ebp
call fcn.0040972c
pop ecx
mov ebx, eax
test bl, bl
je 0x409909
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40992e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406f0c
ret

Function at 0x40cf2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x50ec50
push 0xa
push 0x40cfc0
mov eax, dword [0x50ec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cf50
call fcn.004185f8
push ebx
mov eax, dword [0x50ec40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cf67
call fcn.004185f8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cf79
call fcn.004185f8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x50ec54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x50ec58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x50ec5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x50ec60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x50ec64], ecx
add edx, dword [eax + 0x14]
mov dword [0x50ec68], edx
pop esi
pop ebx
ret
Function at 0x410728
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4107d1
test eax, edx
je 0x4107d4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410751
push edx
mov edx, eax
mov eax, esp
call fcn.00407130
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410767
push eax
lea eax, [esp + 8]
call fcn.00407130
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410776
movzx eax, word [eax]
sub eax, ecx
jmp 0x41079d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4107b7
add ecx, 4
js 0x41078e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4107b4
push eax
mov eax, ecx
mov edx, 2
call fcn.00406094
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41079b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41079d
xor eax, eax
ret
test eax, eax
je 0x4107e4
test edx, edx
jne 0x410738
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406fa0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411ae9
test al, 0x10
jne 0x411aed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x415b38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415b71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407050
jmp 0x415b7a
mov eax, ebx
mov edx, esi
call fcn.00406f14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415b84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415ba6
movzx eax, word [esp]
jmp 0x415ba8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x416338
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41645d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416148
mov esi, eax
mov eax, dword [0x50bae8]
cmp byte [eax], 0
je 0x416405
mov eax, dword [0x50b894]
call fcn.004046b0
call fcn.00404370
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416310]
call fcn.00408670
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x416478
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416441
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x50b82c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50ec40]
call fcn.00408764
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416464
lea eax, [ebp - 4]
mov edx, dword [0x416310]
call fcn.0040867c
ret

Function at 0x417258
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41732e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f68
lea eax, [ebp - 4]
call fcn.00407918
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406fa0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417318
mov eax, ebx
call fcn.00404208
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417311
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406fa0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4172fb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417340
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4172fb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417318
mov eax, dword [ebp - 0x10]
call fcn.00404224
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417335
lea eax, [ebp - 4]
call fcn.00406f04
ret