joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ed4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44e118]
cmp byte [eax + 0xc], 0
je 0x437041
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43703a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x44fb64], 0
jne 0x436f28
push 0x437048
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x437050
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb64], eax
cmp dword [0x44db00], 0
jne 0x437023
push 0x437060
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44db00], eax
cmp dword [0x44db00], 0
je 0x437023
push 0x43706c
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb68], eax
push 0x43707c
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb6c], eax
push 0x437090
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb70], eax
push 0x4370a8
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb74], eax
push 0x4370c0
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb78], eax
push 0x4370d4
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb7c], eax
push 0x4370ec
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb80], eax
push 0x437104
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb84], eax
push 0x437120
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb88], eax
push 0x43712c
mov eax, dword [0x44db00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437041
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43aecc
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.00403f5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43af1b
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.004041cc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442680]
test si, 4
je 0x442644
or bl, 1
test si, 8
je 0x44264e
or bl, 4
test si, 1
je 0x442658
or bl, 8
test si, 2
je 0x442662
or bl, 0x10
test si, 0x10
je 0x44266c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44267b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x442684
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4426bc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44269d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4426ac
or bl, 4
test esi, 0x20000000
je 0x4426b7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448d64
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x448d76
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190fc
mov eax, dword [0x44ddf4]
mov dword [eax + 4], ebx
mov dword [eax], 0x449108
mov eax, dword [0x44de00]
mov dword [eax + 4], ebx
mov dword [eax], 0x449114
mov eax, ebx
call fcn.00449120
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
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, 0x44553c
push eax
push 0
push 0
mov eax, dword [0x44df40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449540
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44941c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44941c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44941c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x448eb3
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449200
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 0x4493ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44938c
mov dl, 1
mov eax, dword [0x411810]
call fcn.004031f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f5c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44937b
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.00437234
test al, al
je 0x44936e
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, 0x4493bc
lea eax, [ebp - 0x254]
call fcn.004089a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44936e
xor eax, eax
push ebp
push 0x449367
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 0x4493f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449350
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
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 0x449350
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44936e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449271
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152ec
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 0x4493b2
lea eax, [ebp - 0x260]
call fcn.00403f5c
ret

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

Disassembly:
push ecx
mov eax, dword [0x44fbb0]
cmp byte [eax + 0xa5], 0
jne 0x449d51
cmp dword [0x44fbc8], 0
jne 0x449d12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x449c9c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44fbc8], eax
cmp dword [0x44fbc4], 0
jne 0x449d2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44fbc4], eax
cmp dword [0x44fbcc], 0
jne 0x449d51
push esp
push 0
push 0
push 0x449c40
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44fbcc], eax
pop edx
ret
Function at 0x449e48
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449e5f
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190fc
mov eax, dword [0x44df2c]
cmp word [eax + 2], 0
jne 0x449e87
mov eax, dword [0x44df2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b520
mov eax, dword [0x44dfd4]
cmp word [eax + 2], 0
jne 0x449ea1
mov eax, dword [0x44dfd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b718
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113f4]
call fcn.004031f4
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 [0x41b2d0]
call fcn.00420f18
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44a028
mov eax, dword [0x44de54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44bcc8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44de54]
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.0040bfe4
test eax, eax
je 0x449f96
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040839c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c00c
test eax, eax
je 0x449faa
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.004041cc
mov eax, dword [0x44dd58]
cmp byte [eax], 0
jne 0x449fde
mov eax, ebx
call fcn.0044a150
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.0044bea4
mov eax, ebx
call fcn.0044c868
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a01e
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a3d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbb0]
cmp dword [eax + 0x30], 0
je 0x44a47a
cmp dword [ebx + 0x94], 0
jne 0x44a474
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a360
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a474
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 0x44a43a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a474
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.0041375c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a449
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44afdc
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 0x44b011
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.0040404c
jmp 0x44b01e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c080
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c0c1
mov eax, esi
call fcn.00432a3c
test al, al
je 0x44c0c1
mov eax, dword [ebx + 0x84]
call fcn.004327dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c0c1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004327dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40367c
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cb048], 0
je 0x404581
cmp word [0x4cb21c], 0xd7b2
jne 0x404549
cmp dword [0x4cb224], 0
jbe 0x404549
mov eax, 0x4cb218
call dword [0x4cb234]
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b04
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 0x405d34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b87
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b87
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c10
xor eax, eax
push ebp
push 0x405c09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405940
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 0x405bee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d70
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bee
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 0x405c10
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 0x405d2a
cmp byte [ebp - 0xd], 0
jne 0x405c57
cmp byte [ebp - 0x12], 0
je 0x405d2a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c70
dec ebx
cmp byte [ebx], 0x2e
je 0x405c7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d2a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cbc
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 0x405d2a
cmp byte [ebp - 0xd], 0
je 0x405d2a
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 0x405d2a
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
Function at 0x408198
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408228
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408228
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081db
test edx, 3
jne 0x4081ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d5
jmp 0x4081db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081db
cmp dword [ecx - 8], 1
je 0x4081e5
mov edx, ebx
or edx, 3
call fcn.00404dec
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 0x4081f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x408234
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082c4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082c4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408277
test edx, 3
jne 0x408266
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408271
jmp 0x408277
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408277
cmp dword [ecx - 8], 1
je 0x408281
mov edx, ebx
or edx, 3
call fcn.00404dec
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 0x408293
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x40b560
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 0x40b599
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40b5a2
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bad8
mov eax, dword [0x4caa3c]
cmp byte [eax], 0
je 0x40bcdc
mov eax, dword [0x4ca848]
call fcn.00403044
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.00408cf8
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 0x40bd24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd12
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ca7ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cd7f4]
call fcn.004058e8
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 0x40c570
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 0x40c646
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 4]
call fcn.00404bb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c630
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c629
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.00404b64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c613
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c658
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c613
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 0x40c630
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c64d
lea eax, [ebp - 4]
call fcn.004046a0
ret