joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4596ac
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459857
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459838
mov dl, 1
mov eax, dword [0x4197bc]
call fcn.0040355c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404314
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459827
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445f84
test al, al
je 0x45981a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x459868
lea eax, [ebp - 0x254]
call fcn.004094bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45981a
xor eax, eax
push ebp
push 0x459813
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4598a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4597fc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4597fc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45981a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45971d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041df78
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45985e
lea eax, [ebp - 0x260]
call fcn.00404314
ret

Function at 0x45a1d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x495c84]
cmp byte [eax + 0xa5], 0
jne 0x45a245
cmp dword [0x495c9c], 0
jne 0x45a206
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a190
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x495c9c], eax
cmp dword [0x495c98], 0
jne 0x45a221
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x495c98], eax
cmp dword [0x495ca0], 0
jne 0x45a245
push esp
push 0
push 0
push 0x45a134
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x495ca0], eax
pop edx
ret
Function at 0x45a33c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a353
add esp, 0xfffffff0
call fcn.004038f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423988
mov eax, dword [0x493f6c]
cmp word [eax + 2], 0
jne 0x45a37b
mov eax, dword [0x493f6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b970
mov eax, dword [0x494014]
cmp word [eax + 2], 0
jne 0x45a395
mov eax, dword [0x494014]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bb68
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41911c]
call fcn.0040355c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41911c]
call fcn.0040355c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425e38]
call fcn.0042d648
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a51c
mov eax, dword [0x493e74]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042da18
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c0d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x493e74]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cb7c
test eax, eax
je 0x45a48a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e18
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cba4
test eax, eax
je 0x45a49e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
mov eax, dword [0x493d34]
cmp byte [eax], 0
jne 0x45a4d2
mov eax, ebx
call fcn.0045a644
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045c2b4
mov eax, ebx
call fcn.0045cc64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a512
call fcn.00403948
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a8b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x495c84]
cmp dword [eax + 0x30], 0
je 0x45a962
cmp dword [ebx + 0x94], 0
jne 0x45a95c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a848
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a95c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a922
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a95c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b9bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a931
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b440
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45b475
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404404
jmp 0x45b482
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404368
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c490
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c4d1
mov eax, esi
call fcn.004416c0
test al, al
je 0x45c4d1
mov eax, dword [ebx + 0x84]
call fcn.004413bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c4d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004413bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d168
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.0045cea4
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.004047c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45d1c6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x493f84]
mov dl, 1
mov eax, dword [0x45cd9c]
call fcn.0040bf74
call fcn.00403d58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d1d0
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.004047c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45d228
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49419c]
mov dl, 1
mov eax, dword [0x45cd9c]
call fcn.0040bf74
call fcn.00403d58
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045ced4
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 0x473f74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00452890
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x47d890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047b4
xor eax, eax
push ebp
push 0x47d91a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408714
mov eax, dword [ebp - 8]
call fcn.004045cc
test eax, eax
jle 0x47d8ff
push 1
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00408c74
mov eax, dword [ebp - 0xc]
call fcn.004047c4
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004047c4
push eax
push 0x47d928
mov eax, dword [0x493ffc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d921
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404338
ret
Function at 0x47d930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047b4
xor eax, eax
push ebp
push 0x47db48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, 0x47db5c
call fcn.00404710
jne 0x47d9bd
push 0x105
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.0040457c
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 8]
mov ecx, 0x47db6c
call fcn.00404618
jmp 0x47db1a
mov eax, dword [ebp - 4]
mov edx, 0x47db78
call fcn.00404710
jne 0x47da0b
push 0x105
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.0040457c
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 8]
mov ecx, 0x47db6c
call fcn.00404618
jmp 0x47db1a
mov eax, dword [ebp - 4]
mov edx, 0x47db88
call fcn.00404710
jne 0x47da1c
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, 0x47db98
call fcn.00404710
jne 0x47da30
mov ebx, 2
mov eax, dword [ebp - 4]
mov edx, 0x47dbac
call fcn.00404710
jne 0x47da44
mov ebx, 0xb
mov eax, dword [ebp - 4]
mov edx, 0x47dbc0
call fcn.00404710
jne 0x47da58
mov ebx, 0x17
mov eax, dword [ebp - 4]
mov edx, 0x47dbac
call fcn.00404710
jne 0x47da6c
mov ebx, 0x16
mov eax, dword [ebp - 4]
mov edx, 0x47dbd8
call fcn.00404710
jne 0x47da80
mov ebx, 0x1a
mov eax, dword [ebp - 4]
mov edx, 0x47dbf4
call fcn.00404710
jne 0x47da94
mov ebx, 0x26
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
xor eax, eax
push ebp
push 0x47daea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47daf1
lea eax, [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x10]
call fcn.00406094
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47db4f
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404338
lea eax, [ebp - 0x10]
call fcn.00406094
lea eax, [ebp - 4]
call fcn.00404314
ret
Function at 0x4810f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x481122
mov eax, ebx
call fcn.00481bac
cmp dword [ebx + 0x3c], 0
je 0x48111b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x481193
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x481185
cmp dword [ebx + 8], 0
je 0x481144
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x481156
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x481185
cmp dword [ebx + 8], 0
je 0x481137
cmp eax, 3
je 0x481169
dec eax
jne 0x481137
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x481137
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x481137
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4811b1
cmp dword [ebx + 0x10], 0xcc
je 0x4811b1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004811bc
pop ebx
ret
Function at 0x402a54
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.0040408c
test esi, esi
jne 0x402a8a
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.0040417c
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403130
Capabilities:
Query or enumerate registry value

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

Function at 0x403e8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d048], 0
je 0x403eed
cmp word [0x46d21c], 0xd7b2
jne 0x403eb5
cmp dword [0x46d224], 0
jbe 0x403eb5
mov eax, 0x46d218
call dword [0x46d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b06c
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 0x403f14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b030], 0
jne 0x403f09
push 0
push 0x46b064
push 0x46b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404040
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.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404008
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c4c
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 0x405cb2
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.004042fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cf4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cb9
lea eax, [ebp - 0x10]
call fcn.0040408c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040454c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4085f5
test al, 0x10
jne 0x4085f9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4086e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0040454c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x408725
cmp byte [esp], 0
je 0x408715
or edi, 1
jmp 0x408718
and edi, 0xfffffffe
push edi
push ebp
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b5b0
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 0x40b5e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040417c
jmp 0x40b5f2
mov eax, ebx
mov edx, esi
call fcn.004040e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb1c
mov eax, dword [0x46ca8c]
cmp byte [eax], 0
je 0x40bd20
mov eax, dword [0x46c784]
call fcn.00402b60
call fcn.00402834
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.00408b78
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 0x40bd68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46c714]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46d664]
call fcn.00405160
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c5bc
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 0x40c692
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404124
lea eax, [ebp - 8]
call fcn.0040459c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040454c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c67c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c675
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.0040454c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c65f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c65f
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 0x40c67c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c699
lea eax, [ebp - 8]
call fcn.0040408c
ret

Function at 0x40cc94
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 0x40ccf8
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.004042fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040825c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccff
lea eax, [ebp - 0xc]
call fcn.0040408c
ret