joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100060c8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.2__SV1__.NET_CLR_1.1.4322_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000626b
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], bl
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0x98]
push eax
lea eax, [ebp - 0x214]
push str.http:___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x214]
push ebx
push 0x80000100
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10006152
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1000626b
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], bl
mov dword [ebp - 0x14], 0xfa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x314]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000625b
lea eax, [ebp - 0x314]
push 0x1000a268
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1000625b
push 0x3f
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea eax, [ebp - 0xc]
mov byte [ebp + 0xb], bl
push eax
lea eax, [ebp + 0xb]
push 1
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100061fe
cmp dword [ebp - 0xc], ebx
je 0x100061fe
mov al, byte [ebp + 0xb]
cmp al, 0xd
je 0x100061fe
cmp al, 0xa
je 0x100061fe
mov byte [ebp + edi - 0x114], al
inc edi
cmp edi, 0x15
jl 0x100061c4
push dword [ebp - 8]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x114]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x10006238
lea eax, [ebp - 0x114]
add esi, 0x18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10006256
lea eax, [ebp - 0x114]
mov byte [edi], bl
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [esi], eax
push 1
pop eax
jmp 0x1000626d
push dword [ebp - 8]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 4]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006272
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, 0x44
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
and byte [ebp - 0x44], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call esi
push dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x100062eb
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x1000633c
and word [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x44]
push eax
call esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jbe 0x1000633c
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006340
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10006342
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
test edi, edi
jle 0x10006399
push 0
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1000639e
cmp eax, 0xffffffff
je 0x1000639e
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, dword [esp + 0x18]
jl 0x10006376
push 1
pop eax
jmp 0x100063a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100063a4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100063d3
cmp dword [esi], 0x720
jne 0x100063d3
lea eax, [esi + 8]
push eax
call fcn.100060c8
pop ecx
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.10006272
pop ecx
mov dword [esi + 0x1d8], eax
test eax, eax
pop ecx
je 0x100064c6
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp + 8]
push 4
push ecx
mov ebx, 0xffff
push 0x1005
push ebx
push eax
mov dword [ebp + 8], 0x5265c00
call edi
cmp eax, 0xffffffff
je 0x100064ba
lea eax, [ebp + 8]
push 4
push eax
push 0x1006
push ebx
push dword [esi + 0x1d8]
call edi
cmp eax, 0xffffffff
je 0x100064ba
lea eax, [ebp - 4]
push 4
push eax
mov dword [ebp - 4], 0x45998782
push dword [esi + 0x1d8]
call fcn.10006346
add esp, 0xc
test eax, eax
je 0x100064ba
and byte [ebp - 0x68], 0
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x67]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push eax
call fcn.10005c5b
lea eax, [ebp - 0x68]
push 0x60
push eax
call fcn.10005c42
lea eax, [ebp - 0x68]
push 0x60
push eax
push dword [esi + 0x1d8]
call fcn.10006346
add esp, 0x1c
test eax, eax
je 0x100064ba
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 4
push eax
push dword [esi + 0x1d8]
call fcn.10006365
add esp, 0xc
test eax, eax
jne 0x100064ca
push dword [esi + 0x1d8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100064cd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100068b4
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, 0x4ec
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
lea eax, [esp + 0x10]
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
push esi
call fcn.100063a4
add esp, 0x14
test eax, eax
jne 0x100068e5
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x1000694d
mov eax, dword [esi]
sub eax, 0x721
je 0x1000693c
dec eax
je 0x10006932
dec eax
je 0x10006928
dec eax
je 0x1000691e
dec eax
je 0x10006914
dec eax
je 0x1000690a
dec eax
push esi
jne 0x100068dd
push 0
push 0x1000683b
jmp 0x10006944
push esi
push 0
push 0x100067b9
jmp 0x10006944
push esi
push 0
push 0x10006739
jmp 0x10006944
push esi
push 0
push 0x100066a3
jmp 0x10006944
push esi
push 0
push 0x1000660d
jmp 0x10006944
push esi
push 0
push 0x10006577
jmp 0x10006944
push esi
push 0
push 0x100064fe
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop edi
pop esi
ret
Function at 0x10006a14
Capabilities:
Delete file
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x63
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a6]
mov word [ebp - 0x1a8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.gdiplus.dll_GdiplusStartup
mov ecx, 0x13a
xor eax, eax
lea edi, [ebp - 0x690]
push 0x4e4
push dword [ebp + 8]
mov dword [ebp - 0x694], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68c]
push eax
call sub.MSVCRT.dll_memcpy
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp dword [ebp - 0x67c], esi
je 0x10006ab9
push 0x3e8
call ebx
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x678], esi
jbe 0x10006ac6
call fcn.10005ad9
lea eax, [ebp - 0x694]
mov dword [ebp - 0x694], 0x720
push eax
call fcn.100063a4
test eax, eax
pop ecx
je 0x10006b02
sub esp, 0x4ec
mov ecx, 0x13b
lea esi, [ebp - 0x694]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.1000696f
test eax, eax
je 0x10006b13
mov eax, dword [ebp - 0x684]
imul eax, eax, 0x3e8
push eax
call ebx
jmp 0x10006ac6
call fcn.10005acc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402ef5
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 0x402f32
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 0x402f52
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405189
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403119
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.00404f19
test esi, esi
jne 0x40314f
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.00405009
jmp 0x40316d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fcd
mov edi, eax
test esi, esi
je 0x40316d
cmp dword [ebx], 0
je 0x40316d
dec esi
jmp 0x403156
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403881
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a3008], 0x8088405
inc edx
mov dword [ebx + 0x4a3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403f99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a3024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404031
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404011
xor eax, eax
push ebp
push 0x40400a
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 0x40404d
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 0x404011
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a3024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a3024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d19
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a6048], 0
je 0x404d7a
cmp word [0x4a621c], 0xd7b2
jne 0x404d42
cmp dword [0x4a6224], 0
jbe 0x404d42
mov eax, 0x4a6218
call dword [0x4a6234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a3094
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 0x404da1
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a3034], 0
jne 0x404d96
push 0
push 0x4a308c
push 0x4a3094
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404ecd
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.00402ce1
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a6049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e95
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406579
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067a9
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065fc
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067a9
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065fc
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067c5
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406685
xor eax, eax
push ebp
push 0x40667e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063c1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406663
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4067e5
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406663
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406685
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40679f
cmp byte [ebp - 0xd], 0
jne 0x4066cc
cmp byte [ebp - 0x12], 0
je 0x40679f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4066e5
dec ebx
cmp byte [ebx], 0x2e
je 0x4066f4
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4066e4
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40679f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406731
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679f
cmp byte [ebp - 0xd], 0
je 0x40679f
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406685
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067a9
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065fc
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067a9
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065fc
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067c5
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406685
xor eax, eax
push ebp
push 0x40667e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063c1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406663
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4067e5
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406663
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406685
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40679f
cmp byte [ebp - 0xd], 0
jne 0x4066cc
cmp byte [ebp - 0x12], 0
je 0x40679f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4066e5
dec ebx
cmp byte [ebx], 0x2e
je 0x4066f4
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4066e4
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40679f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406731
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679f
cmp byte [ebp - 0xd], 0
je 0x40679f
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e71
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 0x406ed7
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.00405189
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403a01
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ec1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ede
lea eax, [ebp - 0x10]
call fcn.00404f19
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004053d9
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ab2
test al, 0x10
jne 0x409ab6
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409ba5
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004053d9
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409bb9
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004053d9
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409bdb
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8fd
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 0x40c936
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405009
jmp 0x40c93f
mov eax, ebx
mov edx, esi
call fcn.00404f6d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c949
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 0x40c96a
mov al, byte [esp]
jmp 0x40c96c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cff1
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce69
mov eax, dword [0x4a5a18]
cmp byte [eax], 0
je 0x40d06d
mov eax, dword [0x4a56d4]
call fcn.0040357d
call fcn.00402e49
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.0040a005
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 0x40d0b5
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d0a3
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a564c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a6664]
call fcn.00406385
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret

Function at 0x40d92d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40da03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404fb1
lea eax, [ebp - 8]
call fcn.00405429
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004053d9
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d9ed
mov eax, ebx
call fcn.00402ce1
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d9e6
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 - 8]
call fcn.004053d9
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d9d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da15
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d9d0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9ed
mov eax, dword [ebp - 0x10]
call fcn.00402d01
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da0a
lea eax, [ebp - 8]
call fcn.00404f19
ret

Function at 0x40dfc1
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 0x40e025
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.00405189
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004096d5
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e02c
lea eax, [ebp - 0xc]
call fcn.00404f19
ret