joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4409e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440a13
push esi
call fcn.00443ad0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440a0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440a99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440a82
mov eax, dword [esi + 8]
test eax, eax
je 0x440a37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440a7e
cmp eax, 2
je 0x440a82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440a2a
cmp eax, 3
je 0x440a5d
cmp eax, 1
jne 0x440a2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440a2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440a2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440ac0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440aa8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440ac0
add esp, 4
pop esi
ret

Function at 0x44d45d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4854d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x44d473
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.00453450
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00453710
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.0044d4e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x585590
call fcn.00453650
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x452320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45236c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45236c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x452356
push eax
call ebp
test ax, ax
jl 0x452364
inc esi
add edi, 4
cmp esi, 6
jb 0x452348
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00452020
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x454e50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x454eb0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x454eb0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x454eb0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x454eb0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x454ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x456580
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4565e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4565e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4565c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x457120
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00457270
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x457140
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

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

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00457270
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x457140
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x457170
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4571c7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4571dd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00457200
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x457200
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x457290
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4572d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x457750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00457300
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00457380
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00457380
lea ecx, [esi + 0xc]
call fcn.00474c39
lea ecx, [esi + 0x10]
call fcn.00474c39
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00459bb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00459bb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00459bb0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00474cae
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00474cae
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4583f8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x485c98
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x458408
call fcn.00458920
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4584eb
cmp byte [edi], 0
je 0x4584eb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45842d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00457120
test eax, eax
jne 0x45844d
push 0x5a6d90
lea ecx, [esi + 0x38]
call fcn.00474e37
jmp 0x4584eb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00457170
test eax, eax
jne 0x45847c
mov ecx, esi
call fcn.00457270
push edi
add esi, 0x38
push 0x5a6d6c
push esi
call fcn.00472727
add esp, 0xc
jmp 0x4584eb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004591a0
test eax, eax
je 0x4584e4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004585c0
test eax, eax
jne 0x458500
push edi
lea eax, [esi + 0x38]
push 0x5a6d48
push eax
call fcn.00472727
add esp, 0xc
mov ecx, esi
call fcn.00458920
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4585a8
mov ecx, dword [0x5a7a38]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00472727
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00457220
test eax, eax
jne 0x45856a
push 0x5a6d2c
lea ecx, [esi + 0x38]
call fcn.00474e37
jmp 0x45857a
push 0xfa
mov ecx, esi
call fcn.004591a0
test eax, eax
jne 0x458597
mov ecx, esi
call fcn.00458920
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00474cae
jmp 0x4584eb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00474cae
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x47709e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4770d6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475155
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047512d
jmp 0x4770e2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x478793
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4787d5
call fcn.0047e73c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4787d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4787cc
xor eax, eax
jmp 0x4787dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004787e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ec6c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ec9a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ecb8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ebd2
jmp 0x47ecb8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ecb8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ebd2
test edi, edi
mov eax, edi
jne 0x47eca2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x45f044], 0x8088405
inc edx
mov dword [0x45f044], edx
mul edx
mov eax, edx
ret

Function at 0x402be4
Capabilities:
Query or enumerate registry value

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

Function at 0x404f48
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 0xf003f
push 0
push 0x405104
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404fa9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40501b
xor eax, eax
push ebp
push 0x405014
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404da0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404ffd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405140
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40501b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4050fc
cmp byte [ebp - 0xd], 0
jne 0x40505d
cmp byte [ebp - 0x12], 0
je 0x4050fc
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405076
dec ebx
cmp byte [ebx], 0x2e
je 0x405085
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405075
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4050fc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4050b2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
invalid
Function at 0x4056e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40573c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x40572e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405723
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40571e
mov eax, 0x64
jmp 0x405733
call sub.kernel32.dll_GetLastError
call fcn.004027d8
xor eax, eax
jmp 0x40571e
mov eax, 0x67
jmp 0x405733

Function at 0x405744
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40579f
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x405791
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405786
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405781
mov eax, 0x65
jmp 0x405796
call sub.kernel32.dll_GetLastError
call fcn.004027d8
xor eax, eax
jmp 0x405781
mov eax, 0x67
jmp 0x405796

Function at 0x405828
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405858
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40584e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027e8
or eax, 0xffffffff
jmp 0x40584c
mov eax, 0x67
call fcn.004027d8
or eax, 0xffffffff
jmp 0x40584c

Function at 0x4083fc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e20
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x408410
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.00403e20
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408432
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408878
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ac4
add esp, 0x104
pop ebx
ret

Function at 0x40ac64
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 0x40ac9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ac4
jmp 0x40aca6
mov eax, ebx
mov edx, esi
call fcn.00403a30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40acb0
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 0x40acd1
mov al, byte [esp]
jmp 0x40acd3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417948
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004175ac
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403e20
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4179a6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45e91c]
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.0040b574
call fcn.004034ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4179b0
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.00403e20
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x417a08
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45ead8]
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.0040b574
call fcn.004034ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004175dc
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
Function at 0x417dc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x417f44
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x417e05
mov eax, edi
call fcn.0041813c
test al, al
jne 0x417e0f
lea eax, [ebp - 8]
call fcn.00417d48
jmp 0x417e19
lea eax, [ebp - 8]
mov edx, edi
call fcn.00403a74
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00417ccc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00403a74
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLocalTime
push dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 0xe]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
imul edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x48]
mov ecx, 4
mov eax, 0x417f5c
call fcn.00409050
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403d1c
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403a30
xor edi, edi
jmp 0x417ed4
push ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x417f80
call fcn.00409050
inc edi
mov edx, dword [ebx]
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.00403ca8
mov eax, dword [ebp - 0x5c]
call fcn.00417f8c
test al, al
jne 0x417f0b
mov edx, dword [ebx]
lea eax, [ebp - 0x60]
mov ecx, esi
call fcn.00403ca8
mov eax, dword [ebp - 0x60]
call fcn.00403e20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x417eaf
mov eax, ebx
mov edx, esi
call fcn.00403c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417f4b
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403a00
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403a00
lea eax, [ebp - 8]
call fcn.004039dc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x417fa5
test al, 0x10
je 0x417fa9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x417fb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, edi
call fcn.00403e20
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x41809e
xor eax, eax
push ebp
push 0x41808e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 1]
call fcn.00407dd8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41807d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x418067
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4180ac
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x418050
cmp dword [ebp - 0x18], 0
jne 0x418056
mov byte [ebp - 5], 0
jmp 0x418067
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418084
mov eax, dword [ebp - 0x14]
call fcn.00402700
ret
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x418155
test al, 0x10
jne 0x418159
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret