joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f70c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x43f728
cmp dword [esi + 4], 0
je 0x43f755
test byte [ebx + 0x55], 1
jne 0x43f747
mov eax, ebx
call fcn.0043daf4
test eax, eax
jne 0x43f747
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43f865
mov edx, esi
mov eax, ebx
call fcn.0043f114
jmp 0x43f865
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43f85e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00441764
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043af1c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043f70c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00441764
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f865
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446a08
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45bcb4]
cmp byte [eax + 0xc], 0
je 0x446b75
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x446b6e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45f570], 0
jne 0x446a5c
push 0x446b7c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x446b84
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f570], eax
cmp dword [0x45b5d8], 0
jne 0x446b57
push 0x446b94
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45b5d8], eax
cmp dword [0x45b5d8], 0
je 0x446b57
push 0x446ba0
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f574], eax
push 0x446bb0
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f578], eax
push 0x446bc4
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f57c], eax
push 0x446bdc
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f580], eax
push 0x446bf4
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f584], eax
push 0x446c08
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f588], eax
push 0x446c20
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f58c], eax
push 0x446c38
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f590], eax
push 0x446c54
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f594], eax
push 0x446c60
mov eax, dword [0x45b5d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45f598], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446b75
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44c1bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c210]
test si, 4
je 0x44c1d1
or bl, 1
test si, 8
je 0x44c1db
or bl, 4
test si, 1
je 0x44c1e5
or bl, 8
test si, 2
je 0x44c1ef
or bl, 0x10
test si, 0x10
je 0x44c1f9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c208
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c214
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44c250]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c22e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c23d
or bl, 4
test esi, 0x20000000
je 0x44c248
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453904
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453916
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a270
mov eax, dword [0x45b958]
mov dword [eax + 4], ebx
mov dword [eax], 0x453ca8
mov eax, dword [0x45b964]
mov dword [eax + 4], ebx
mov dword [eax], 0x453cb4
mov eax, ebx
call fcn.00453cc0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
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, 0x44f758
push eax
push 0
push 0
mov eax, dword [0x45bac4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41de14]
call fcn.0041f668
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41de14]
call fcn.0041f668
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41de14]
call fcn.0041f668
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004540f0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453fc0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453fc0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453fc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453a53
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453da4
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 0x453f4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453f30
mov dl, 1
mov eax, dword [0x412490]
call fcn.00403828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404684
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453f1f
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.00446d64
test al, al
je 0x453f12
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, 0x453f60
lea eax, [ebp - 0x254]
call fcn.004092d4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453f12
xor eax, eax
push ebp
push 0x453f0b
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 0x453f98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453ef4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
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 0x453ef4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f12
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453e15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416170
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 0x453f56
lea eax, [ebp - 0x260]
call fcn.00404684
ret

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

Disassembly:
push ecx
mov eax, dword [0x45f5a8]
cmp byte [eax + 0xad], 0
jne 0x454939
cmp dword [0x45f5c0], 0
jne 0x4548fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454884
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45f5c0], eax
cmp dword [0x45f5bc], 0
jne 0x454915
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45f5bc], eax
cmp dword [0x45f5c4], 0
jne 0x454939
push esp
push 0
push 0
push 0x454828
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45f5c4], eax
pop edx
ret
Function at 0x454b0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454b23
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a270
mov eax, dword [0x45baa8]
cmp word [eax + 2], 0
jne 0x454b4b
mov eax, dword [0x45baa8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004565bc
mov eax, dword [0x45bb5c]
cmp word [eax + 2], 0
jne 0x454b65
mov eax, dword [0x45bb5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004567c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41206c]
call fcn.00403828
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 [0x41e924]
call fcn.00425f50
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x454d1c
mov eax, dword [0x45b9c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426324
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456e88
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45b9c4]
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.0040ca80
test eax, eax
je 0x454c6c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c8c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cab4
test eax, eax
je 0x454c80
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.004048f4
mov byte [ebx + 0xd4], 0
push ebx
push 0x45611c
call fcn.0041b3ec
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45b8a8]
cmp byte [eax], 0
jne 0x454cd1
mov eax, ebx
call fcn.00454e60
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.00457064
mov eax, ebx
call fcn.00457bc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454d11
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4550e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45f5a8]
cmp dword [eax + 0x30], 0
je 0x45518a
cmp dword [ebx + 0x94], 0
jne 0x455184
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455070
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455184
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 0x45514a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455184
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.00414418
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455159
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455ea4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x455ed9
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.00404774
jmp 0x455ee6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457248
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4572b6
mov eax, esi
call fcn.00441ad8
test al, al
je 0x4572b6
mov eax, dword [ebx + 0x84]
call fcn.00441764
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4572b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4572aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441764
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439b90
jmp 0x4572b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00457084
pop esi
pop ebx
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x74c5145a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x399f5b62
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4027a0
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.00403c10
test esi, esi
jne 0x4027d6
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.00403d00
jmp 0x4027f4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026b4
mov edi, eax
test esi, esi
je 0x4027f4
cmp dword [ebx], 0
je 0x4027f4
dec esi
jmp 0x4027dd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b8c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x402ba2
sub ecx, 2
jne 0x402bc4
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x402bcb
cmp edx, dword [ebx + 8]
je 0x402bd5
mov eax, 0x64
jmp 0x402bd0
mov eax, 0x67
jmp 0x402bd0
call sub.kernel32.dll_GetLastError
call fcn.00402638
pop ebx
ret

Function at 0x402dd4
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x402e07
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x402e0e
cmp edx, dword [ebx + 8]
je 0x402e18
mov eax, 0x65
jmp 0x402e13
mov eax, 5
jmp 0x402e13
call sub.kernel32.dll_GetLastError
call fcn.00402638
mov eax, ebx
pop ebx
ret

Function at 0x403150
Capabilities:
Query or enumerate registry value

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

Function at 0x403a94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b044], 0
je 0x403af5
cmp word [0x40b218], 0xd7b2
jne 0x403abd
cmp dword [0x40b220], 0
jbe 0x403abd
mov eax, 0x40b214
call dword [0x40b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a070
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 0x403b1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a018], 0
jne 0x403b11
push 0
push 0x40a090
push 0x40a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405be8
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x406940
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 0x406979
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d00
jmp 0x406982
mov eax, ebx
mov edx, esi
call fcn.00403c64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40698c
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 0x4069ad
mov al, byte [esp]
jmp 0x4069af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407034
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406eac
mov eax, dword [0x40a3b8]
cmp byte [eax], 0
je 0x4070a1
mov eax, dword [0x40a314]
call fcn.00402b08
call fcn.00402618
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405d70
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x4070e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4070d7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40a2f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40b710]
call fcn.004043bc
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 0x407a68
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 0x407acc
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.00403e54
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405bb8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ad3
lea eax, [ebp - 0xc]
call fcn.00403c10
ret
Function at 0x102224cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1024be40]
jne 0x102224d6
repz ret
jmp fcn.1022277d