joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435254
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 0x435270
cmp dword [esi + 4], 0
je 0x43529d
test byte [ebx + 0x55], 1
jne 0x43528f
mov eax, ebx
call fcn.00433e60
test eax, eax
jne 0x43528f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4353ad
mov edx, esi
mov eax, ebx
call fcn.00434d78
jmp 0x4353ad
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 0x4353a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004370c4
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.00431b5c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00435254
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.004370c4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4353ad
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 0x43b904
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46bafc]
cmp byte [eax + 0xc], 0
je 0x43ba71
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ba6a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46cb64], 0
jne 0x43b958
push 0x43ba78
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ba80
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb64], eax
cmp dword [0x46ab8c], 0
jne 0x43ba53
push 0x43ba90
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ab8c], eax
cmp dword [0x46ab8c], 0
je 0x43ba53
push 0x43ba9c
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb68], eax
push 0x43baac
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb6c], eax
push 0x43bac0
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb70], eax
push 0x43bad8
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb74], eax
push 0x43baf0
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb78], eax
push 0x43bb04
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb7c], eax
push 0x43bb1c
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb80], eax
push 0x43bb34
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb84], eax
push 0x43bb50
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb88], eax
push 0x43bb5c
mov eax, dword [0x46ab8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ba71
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43f8fc
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.00404120
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43f94b
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.00404390
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4470b0]
test si, 4
je 0x447074
or bl, 1
test si, 8
je 0x44707e
or bl, 4
test si, 1
je 0x447088
or bl, 8
test si, 2
je 0x447092
or bl, 0x10
test si, 0x10
je 0x44709c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4470ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4470b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4470ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4470cd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4470dc
or bl, 4
test esi, 0x20000000
je 0x4470e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d794
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d7a6
add esp, 0xfffffff0
call fcn.004036f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041960c
mov eax, dword [0x46b7ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x44db38
mov eax, dword [0x46b7b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44db44
mov eax, ebx
call fcn.0044db50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
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, 0x449f6c
push eax
push 0
push 0
mov eax, dword [0x46b910]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b070]
call fcn.0041c7e4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b070]
call fcn.0041c7e4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b070]
call fcn.0041c7e4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044df70
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44de4c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44de4c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44de4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d8e3
call fcn.0040374c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44dc30
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 0x44dddb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ddbc
mov dl, 1
mov eax, dword [0x411c8c]
call fcn.004033a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404120
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ddab
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.0043bc64
test al, al
je 0x44dd9e
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, 0x44ddec
lea eax, [ebp - 0x254]
call fcn.00408c54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44dd9e
xor eax, eax
push ebp
push 0x44dd97
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 0x44de24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44dd80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404390
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 0x44dd80
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dd9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44dca1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415768
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 0x44dde2
lea eax, [ebp - 0x260]
call fcn.00404120
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cbb0]
cmp byte [eax + 0xa5], 0
jne 0x44e781
cmp dword [0x46cbc8], 0
jne 0x44e742
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e6cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cbc8], eax
cmp dword [0x46cbc4], 0
jne 0x44e75d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cbc4], eax
cmp dword [0x46cbcc], 0
jne 0x44e781
push esp
push 0
push 0
push 0x44e670
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46cbcc], eax
pop edx
ret
Function at 0x44e878
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e88f
add esp, 0xfffffff0
call fcn.004036f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041960c
mov eax, dword [0x46b8fc]
cmp word [eax + 2], 0
jne 0x44e8b7
mov eax, dword [0x46b8fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ffe0
mov eax, dword [0x46b9ac]
cmp word [eax + 2], 0
jne 0x44e8d1
mov eax, dword [0x46b9ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004501d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.004033a0
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 [0x41bb50]
call fcn.00423450
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ea58
mov eax, dword [0x46b814]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423820
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450788
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46b814]
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.0040c458
test eax, eax
je 0x44e9c6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408648
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c480
test eax, eax
je 0x44e9da
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.00404390
mov eax, dword [0x46b6ec]
cmp byte [eax], 0
jne 0x44ea0e
mov eax, ebx
call fcn.0044eb80
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.00450964
mov eax, ebx
call fcn.00451328
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ea4e
call fcn.0040374c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ee00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46cbb0]
cmp dword [eax + 0x30], 0
je 0x44eeaa
cmp dword [ebx + 0x94], 0
jne 0x44eea4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ed90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44eea4
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 0x44ee6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44eea4
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.00413bd8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ee79
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fa0c
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 0x44fa41
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.00404210
jmp 0x44fa4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404174
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450b40
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450b81
mov eax, esi
call fcn.00437324
test al, al
je 0x450b81
mov eax, dword [ebx + 0x84]
call fcn.004370c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450b81
push 0
mov eax, dword [ebx + 0x84]
call fcn.004370c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4543b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4543e6
mov eax, ebx
call fcn.00454e6c
cmp dword [ebx + 0x40], 0
je 0x4543df
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x454457
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x454449
cmp dword [ebx + 8], 0
je 0x454408
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 0x45441a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x454449
cmp dword [ebx + 8], 0
je 0x4543fb
cmp eax, 3
je 0x45442d
dec eax
jne 0x4543fb
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 0x4543fb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4543fb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x454475
cmp dword [ebx + 0x14], 0xcc
je 0x454475
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.00454480
pop ebx
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x462008], 0x8088405
inc edx
mov dword [ebx + 0x462008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403658
Capabilities:
Query or enumerate registry value

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

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d048], 0
je 0x404545
cmp word [0x46d21c], 0xd7b2
jne 0x40450d
cmp dword [0x46d224], 0
jbe 0x40450d
mov eax, 0x46d218
call dword [0x46d234]
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 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x404561
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408180
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408180
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408133
test edx, 3
jne 0x408122
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40812d
jmp 0x408133
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408133
cmp dword [ecx - 8], 1
je 0x40813d
mov edx, ebx
or edx, 3
call fcn.00404db0
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 0x40814f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x40818c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40821c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40821c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081cf
test edx, 3
jne 0x4081be
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081c9
jmp 0x4081cf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081cf
cmp dword [ecx - 8], 1
je 0x4081d9
mov edx, ebx
or edx, 3
call fcn.00404db0
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 0x4081eb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x40b45c
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 0x40b495
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404754
jmp 0x40b49e
mov eax, ebx
mov edx, esi
call fcn.004046b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9d4
mov eax, dword [0x46ca74]
cmp byte [eax], 0
je 0x40bbd8
mov eax, dword [0x46c878]
call fcn.00403020
call fcn.00402de8
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.00408be0
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 0x40bc20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc0e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46c81c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46f7f4]
call fcn.004058d0
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 0x40c46c
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 0x40c542
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004046fc
lea eax, [ebp - 4]
call fcn.00404b78
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c52c
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c525
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.00404b28
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c50f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c554
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c50f
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 0x40c52c
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c549
lea eax, [ebp - 4]
call fcn.00404664
ret