joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447fe4
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 + 0x1f8], 0
je 0x448000
cmp dword [esi + 4], 0
je 0x44802d
test byte [ebx + 0x55], 1
jne 0x44801f
mov eax, ebx
call fcn.00446b84
test eax, eax
jne 0x44801f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44813d
mov edx, esi
mov eax, ebx
call fcn.00447b08
jmp 0x44813d
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 0x448136
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00449e54
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.0044470c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00447fe4
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.00449e54
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44813d
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 0x44e854
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x484ed4]
cmp byte [eax + 0xc], 0
je 0x44e9c1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e9ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x485b98], 0
jne 0x44e8a8
push 0x44e9c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e9d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485b98], eax
cmp dword [0x483da0], 0
jne 0x44e9a3
push 0x44e9e0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x483da0], eax
cmp dword [0x483da0], 0
je 0x44e9a3
push 0x44e9ec
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485b9c], eax
push 0x44e9fc
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485ba0], eax
push 0x44ea10
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485ba4], eax
push 0x44ea28
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485ba8], eax
push 0x44ea40
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bac], eax
push 0x44ea54
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bb0], eax
push 0x44ea6c
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bb4], eax
push 0x44ea84
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bb8], eax
push 0x44eaa0
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bbc], eax
push 0x44eaac
mov eax, dword [0x483da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e9c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x452d20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404514
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x452d6f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404784
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a4b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45a504]
test si, 4
je 0x45a4c8
or bl, 1
test si, 8
je 0x45a4d2
or bl, 4
test si, 1
je 0x45a4dc
or bl, 8
test si, 2
je 0x45a4e6
or bl, 0x10
test si, 0x10
je 0x45a4f0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a4ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45a508
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45a540]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a521
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a530
or bl, 4
test esi, 0x20000000
je 0x45a53b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x460be8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x460bfa
add esp, 0xfffffff0
call fcn.00403ae8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a928
mov eax, dword [0x484b50]
mov dword [eax + 4], ebx
mov dword [eax], 0x460f8c
mov eax, dword [0x484b5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x460f98
mov eax, ebx
call fcn.00460fa4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
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, 0x45d3c0
push eax
push 0
push 0
mov eax, dword [0x484cd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c3ac]
call fcn.0041db20
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c3ac]
call fcn.0041db20
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c3ac]
call fcn.0041db20
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004613c4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4612a0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4612a0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4612a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460d37
call fcn.00403b40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461084
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 0x46122f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461210
mov dl, 1
mov eax, dword [0x4126f4]
call fcn.00403794
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404514
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4611ff
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.0044ebb4
test al, al
je 0x4611f2
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, 0x461240
lea eax, [ebp - 0x254]
call fcn.0040929c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4611f2
xor eax, eax
push ebp
push 0x4611eb
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 0x461278
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4611d4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404784
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 0x4611d4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404784
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4611f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4610f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416a6c
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 0x461236
lea eax, [ebp - 0x260]
call fcn.00404514
ret

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

Disassembly:
push ecx
mov eax, dword [0x485be4]
cmp byte [eax + 0xa5], 0
jne 0x461bd5
cmp dword [0x485bfc], 0
jne 0x461b96
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x461b20
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x485bfc], eax
cmp dword [0x485bf8], 0
jne 0x461bb1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x485bf8], eax
cmp dword [0x485c00], 0
jne 0x461bd5
push esp
push 0
push 0
push 0x461ac4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x485c00], eax
pop edx
ret
Function at 0x461ccc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x461ce3
add esp, 0xfffffff0
call fcn.00403ae8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a928
mov eax, dword [0x484cc4]
cmp word [eax + 2], 0
jne 0x461d0b
mov eax, dword [0x484cc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004633a4
mov eax, dword [0x484d84]
cmp word [eax + 2], 0
jne 0x461d25
mov eax, dword [0x484d84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046359c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41214c]
call fcn.00403794
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], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ce8c]
call fcn.0042476c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x461eac
mov eax, dword [0x484bc8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424b3c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463b4c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x484bc8]
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.0040cb20
test eax, eax
je 0x461e1a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c7c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb48
test eax, eax
je 0x461e2e
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.00404784
mov eax, dword [0x484a90]
cmp byte [eax], 0
jne 0x461e62
mov eax, ebx
call fcn.00461fd4
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.00463d28
mov eax, ebx
call fcn.004646ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461ea2
call fcn.00403b40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462254
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x485be4]
cmp dword [eax + 0x30], 0
je 0x4622fe
cmp dword [ebx + 0x94], 0
jne 0x4622f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4621e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4622f8
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 0x4622be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4622f8
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.00414640
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4622cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462e60
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 0x462e95
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.00404604
jmp 0x462ea2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404568
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463f04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463f45
mov eax, esi
call fcn.0044a158
test al, al
je 0x463f45
mov eax, dword [ebx + 0x84]
call fcn.00449e54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463f45
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449e54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46760c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46763a
mov eax, ebx
call fcn.004680c0
cmp dword [ebx + 0x40], 0
je 0x467633
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4676ab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46769d
cmp dword [ebx + 8], 0
je 0x46765c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46766e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46769d
cmp dword [ebx + 8], 0
je 0x46764f
cmp eax, 3
je 0x467681
dec eax
jne 0x46764f
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 0x46764f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46764f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4676c9
cmp dword [ebx + 0x14], 0xcc
je 0x4676c9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004676d4
pop ebx
ret
Function at 0x47ac4c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x47ac7c
cmp dword [esp + 4], 6
jb 0x47ac7c
call fcn.00435b30
call fcn.00435c10
test al, al
je 0x47ac7c
mov al, 1
jmp 0x47ac7e
xor eax, eax
add esp, 0x94
ret
Function at 0x4030c4
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.00404d14
test esi, esi
jne 0x4030fa
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.00404e04
jmp 0x403118
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fc8
mov edi, eax
test esi, esi
je 0x403118
cmp dword [ebx], 0
je 0x403118
dec esi
jmp 0x403101
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403cf0
Capabilities:
Query or enumerate registry value

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

Function at 0x404b94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e1048], 0
je 0x404bf5
cmp word [0x4e121c], 0xd7b2
jne 0x404bbd
cmp dword [0x4e1224], 0
jbe 0x404bbd
mov eax, 0x4e1218
call dword [0x4e1234]
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 0x404c1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47202c], 0
jne 0x404c11
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4088ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40893c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40893c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4088ef
test edx, 3
jne 0x4088de
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4088e9
jmp 0x4088ef
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4088ef
cmp dword [ecx - 8], 1
je 0x4088f9
mov edx, ebx
or edx, 3
call fcn.00405460
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40890b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d14

Function at 0x408948
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4089d8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4089d8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40898b
test edx, 3
jne 0x40897a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408985
jmp 0x40898b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40898b
cmp dword [ecx - 8], 1
je 0x408995
mov edx, ebx
or edx, 3
call fcn.00405460
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4089a7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d14

Function at 0x40bc3c
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 0x40bc75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e04
jmp 0x40bc7e
mov eax, ebx
mov edx, esi
call fcn.00404d68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc88
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 0x40bcaa
movzx eax, byte [esp]
jmp 0x40bcac
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c33c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c1b4
mov eax, dword [0x4dff2c]
cmp byte [eax], 0
je 0x40c3b8
mov eax, dword [0x4dfd2c]
call fcn.00403490
call fcn.00402e28
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.004093d4
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 0x40c400
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c3ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4dfcd4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e37f4]
call fcn.00406034
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 0x40cc4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404dac
lea eax, [ebp - 4]
call fcn.00405228
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004051d8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd0c
mov eax, ebx
call fcn.00402ccc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd05
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 - 4]
call fcn.004051d8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ccef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ccef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd0c
mov eax, dword [ebp - 0x10]
call fcn.00402ce8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd29
lea eax, [ebp - 4]
call fcn.00404d14
ret