joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4512b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x472c98]
cmp esi, dword [eax + 0x30]
jne 0x4512d7
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x451306
mov eax, dword [0x472c98]
cmp esi, dword [eax + 0x30]
jne 0x451302
mov eax, dword [0x472c98]
cmp byte [eax + 0x5b], 0
jne 0x451306
xor eax, eax
jmp 0x451308
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x45131d
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x451334
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x451343
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x451352
test bl, bl
je 0x451368
test bl, bl
je 0x451360
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x451368
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45160c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x451632
mov eax, esp
push eax
push 0x4515d4
call sub.user32.dll_EnumWindows
jmp 0x451645
mov eax, esp
push eax
push 0x4515b4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4516d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x451724]
test si, 4
je 0x4516e5
or bl, 1
test si, 8
je 0x4516ef
or bl, 4
test si, 1
je 0x4516f9
or bl, 8
test si, 2
je 0x451703
or bl, 0x10
test si, 0x10
je 0x45170d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45171c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451728
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x451764]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451742
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451751
or bl, 4
test esi, 0x20000000
je 0x45175c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x459630
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459642
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae24
mov eax, dword [0x46daf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4599d4
mov eax, dword [0x46dafc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4599e0
mov eax, ebx
call fcn.004599ec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45509c
push eax
push 0
push 0
mov eax, dword [0x46dc6c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f108]
call fcn.0042095c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f108]
call fcn.0042095c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f108]
call fcn.0042095c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459e1c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459cec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459cec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459cec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45977f
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459ad0
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 0x459c7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459c5c
mov dl, 1
mov eax, dword [0x412930]
call fcn.00403a50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404960
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459c4b
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.0044be0c
test al, al
je 0x459c3e
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, 0x459c8c
lea eax, [ebp - 0x254]
call fcn.004097f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459c3e
xor eax, eax
push ebp
push 0x459c37
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 0x459cc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459c20
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
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 0x459c20
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c3e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459b41
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004166a0
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 0x459c82
lea eax, [ebp - 0x260]
call fcn.00404960
ret

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

Disassembly:
push ecx
mov eax, dword [0x472c98]
cmp byte [eax + 0xad], 0
jne 0x45a665
cmp dword [0x472cb4], 0
jne 0x45a626
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a5b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x472cb4], eax
cmp dword [0x472cb0], 0
jne 0x45a641
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x472cb0], eax
cmp dword [0x472cb8], 0
jne 0x45a665
push esp
push 0
push 0
push 0x45a554
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x472cb8], eax
pop edx
ret
Function at 0x45a838
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a84f
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae24
mov eax, dword [0x46dc54]
cmp word [eax + 2], 0
jne 0x45a877
mov eax, dword [0x46dc54]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c438
mov eax, dword [0x46dd18]
cmp word [eax + 2], 0
jne 0x45a891
mov eax, dword [0x46dd18]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c644
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403a50
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41fc18]
call fcn.00427610
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45aa48
mov eax, dword [0x46db5c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004279e4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cd08
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46db5c]
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.0040d06c
test eax, eax
je 0x45a998
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d0a0
test eax, eax
je 0x45a9ac
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
mov byte [ebx + 0xd4], 0
push ebx
push 0x45bf60
call fcn.0041bfa0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46da34]
cmp byte [eax], 0
jne 0x45a9fd
mov eax, ebx
call fcn.0045ab8c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045cee0
mov eax, ebx
call fcn.0045da44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45aa3d
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ae0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45aeab
cmp dword [ebx + 0x94], 0
jne 0x45aea5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ad94
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45aea5
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 0x45ae6b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45aea5
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.0041490c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ae7a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b0c4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x472c98]
cmp dword [eax + 0x30], 0
je 0x45b221
test bl, bl
jne 0x45b172
cmp dword [esi + 0x9c], 0
jne 0x45b167
mov eax, esi
call fcn.0045d8c0
push eax
push 0x45aff0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45b138
mov eax, dword [0x472c98]
call fcn.0045dfa0
test al, al
je 0x45b138
mov eax, dword [0x472cbc]
call fcn.00405910
mov edi, eax
cmp edi, 0
jl 0x45b138
push 0
mov eax, dword [0x472cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b122
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b167
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041490c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b147
inc dword [esi + 0x9c]
jmp 0x45b221
cmp dword [esi + 0x9c], 0
jle 0x45b221
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45b221
cmp dword [esi + 0x44], 0
je 0x45b1cd
mov eax, dword [0x472c98]
call fcn.0045dfa0
test al, al
je 0x45b1cd
mov eax, dword [0x472cbc]
call fcn.00405910
mov edi, eax
cmp edi, 0
jl 0x45b1cd
push 5
mov eax, dword [0x472cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b1b7
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b1fc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041490c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b1dc
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x472cbc
mov ecx, 1
mov edx, dword [0x45afd0]
call fcn.00405ac4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45bcb4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45bd1e
mov eax, ebx
call fcn.0045dfa0
test al, al
jne 0x45bd1e
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.00404a50
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45bd0b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45bd2b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b4
jmp 0x45bd2b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45d0c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d132
mov eax, esi
call fcn.00446af0
test al, al
je 0x45d132
mov eax, dword [ebx + 0x84]
call fcn.00446740
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d132
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45d126
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446740
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e6c8
jmp 0x45d132
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045cf00
pop esi
pop ebx
ret
Function at 0x46562c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, eax
mov byte [esp + 4], 0
mov edx, esp
mov eax, edi
call fcn.00465218
mov eax, dword [edi + 0x88]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4656c7
mov eax, dword [edi + 0x88]
mov edx, esi
call fcn.0041490c
mov ebp, eax
mov eax, dword [esp]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x465695
mov edx, ebx
mov eax, dword [esp]
call fcn.0041490c
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x4c]
cmp eax, dword [edx + 4]
jne 0x46568f
cmp byte [ebp + 8], 0
je 0x46568f
xor ebp, ebp
jmp 0x465695
dec ebx
cmp ebx, 0xffffffff
jne 0x46566d
test ebp, ebp
je 0x4656c1
mov eax, ebp
call fcn.00464f04
mov edx, ebp
mov eax, edi
call fcn.00465524
cmp byte [ebp + 9], 0
jne 0x4656bc
mov eax, dword [edi + 0x88]
mov edx, esi
call fcn.00414800
mov byte [esp + 4], 1
dec esi
cmp esi, 0xffffffff
jne 0x465652
mov eax, dword [esp]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x465763
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov eax, dword [edi + 0x88]
mov ebp, dword [eax + 8]
dec ebp
test ebp, ebp
jl 0x465758
inc ebp
xor ebx, ebx
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 0x88]
mov edx, ebx
call fcn.0041490c
mov eax, dword [eax + 0x4c]
pop edx
cmp edx, dword [eax + 4]
jne 0x465754
mov eax, dword [edi + 0x88]
mov edx, ebx
call fcn.0041490c
cmp byte [eax + 8], 0
je 0x465754
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
xor edx, edx
mov dword [eax + 4], edx
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
call fcn.00403a80
xor ecx, ecx
mov edx, esi
mov eax, dword [esp]
call fcn.00414a00
jmp 0x465758
inc ebx
dec ebp
jne 0x4656ee
inc esi
dec dword [esp + 8]
jne 0x4656dd
mov eax, dword [esp]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4657b9
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
test eax, eax
je 0x4657b2
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
mov edx, eax
mov eax, dword [edi + 0x88]
call fcn.004147b4
mov byte [esp + 4], 1
mov edx, esi
mov eax, dword [esp]
call fcn.0041490c
mov edx, eax
mov eax, edi
call fcn.00465504
inc esi
dec dword [esp + 8]
jne 0x465775
mov eax, dword [esp]
call fcn.00403a80
xor eax, eax
mov dword [edi + 0x8c], eax
xor eax, eax
mov dword [edi + 0x90], eax
xor eax, eax
mov dword [edi + 0x94], eax
mov eax, dword [edi + 0x88]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x46582c
inc eax
mov dword [esp + 8], eax
xor esi, esi
mov eax, dword [edi + 0x88]
mov edx, esi
call fcn.0041490c
mov ebp, eax
movzx eax, byte [ebp + 9]
xor al, 1
and eax, 0x7f
add dword [edi + 0x8c], eax
movzx eax, byte [ebp + 9]
add dword [edi + 0x90], eax
movzx eax, byte [ebp + 8]
xor al, 1
and eax, 0x7f
add dword [edi + 0x94], eax
inc esi
dec dword [esp + 8]
jne 0x4657ee
mov eax, dword [edi + 0x94]
sub dword [edi + 0x90], eax
cmp byte [esp + 4], 0
jne 0x465845
cmp byte [edi + 0x78], 0
jne 0x46584c
mov eax, edi
call fcn.00465544
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4031cc
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.004044a4
test esi, esi
jne 0x403202
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.00404594
jmp 0x403220
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403070
mov edi, eax
test esi, esi
je 0x403220
cmp dword [ebx], 0
je 0x403220
dec esi
jmp 0x403209
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403788
Capabilities:
Query or enumerate registry value

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

Function at 0x404324
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418044], 0
je 0x404385
cmp word [0x418218], 0xd7b2
jne 0x40434d
cmp dword [0x418220], 0
jbe 0x40434d
mov eax, 0x418214
call dword [0x418230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4043ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41702c], 0
jne 0x4043a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405708
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 0x405938
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40578b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405938
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40578b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405954
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405814
xor eax, eax
push ebp
push 0x40580d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405544
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 0x4057f2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405974
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057f2
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 0x405814
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 0x40592e
cmp byte [ebp - 0xd], 0
jne 0x40585b
cmp byte [ebp - 0x12], 0
je 0x40592e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405874
dec ebx
cmp byte [ebx], 0x2e
je 0x405883
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405873
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40592e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058c0
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 0x40592e
cmp byte [ebp - 0xd], 0
je 0x40592e
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 0x40592e
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