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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x485440]
cmp byte [eax + 0xc], 0
je 0x448349
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x448342
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486b9c], 0
jne 0x448230
push 0x448350
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x448358
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b9c], eax
cmp dword [0x483c94], 0
jne 0x44832b
push 0x448368
call sub.kernel32.dll_LoadLibraryA
mov dword [0x483c94], eax
cmp dword [0x483c94], 0
je 0x44832b
push 0x448374
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486ba0], eax
push 0x448384
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486ba4], eax
push 0x448398
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486ba8], eax
push 0x4483b0
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bac], eax
push 0x4483c8
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bb0], eax
push 0x4483dc
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bb4], eax
push 0x4483f4
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bb8], eax
push 0x44840c
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bbc], eax
push 0x448428
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bc0], eax
push 0x448434
mov eax, dword [0x483c94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448349
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44c68c
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.00404038
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44c6db
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.004042a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453e18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453e68]
test si, 4
je 0x453e2c
or bl, 1
test si, 8
je 0x453e36
or bl, 4
test si, 1
je 0x453e40
or bl, 8
test si, 2
je 0x453e4a
or bl, 0x10
test si, 0x10
je 0x453e54
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453e63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453e6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453ea4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453e85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453e94
or bl, 4
test esi, 0x20000000
je 0x453e9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a54c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a55e
add esp, 0xfffffff0
call fcn.00403588
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad24
mov eax, dword [0x484f5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a8f0
mov eax, dword [0x484f6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a8fc
mov eax, ebx
call fcn.0045a908
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
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, 0x456d24
push eax
push 0
push 0
mov eax, dword [0x485174]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c7a0]
call fcn.0041df14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c7a0]
call fcn.0041df14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c7a0]
call fcn.0041df14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ad28
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ac04
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ac04
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ac04
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a69b
call fcn.004035e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a9e8
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 0x45ab93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ab74
mov dl, 1
mov eax, dword [0x41266c]
call fcn.00403234
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404038
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ab63
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.0044853c
test al, al
je 0x45ab56
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, 0x45aba4
lea eax, [ebp - 0x254]
call fcn.0040924c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ab56
xor eax, eax
push ebp
push 0x45ab4f
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 0x45abdc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ab38
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
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 0x45ab38
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ab56
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45aa59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416988
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 0x45ab9a
lea eax, [ebp - 0x260]
call fcn.00404038
ret

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

Disassembly:
push ecx
mov eax, dword [0x486be8]
cmp byte [eax + 0xa5], 0
jne 0x45b539
cmp dword [0x486c00], 0
jne 0x45b4fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b484
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x486c00], eax
cmp dword [0x486bfc], 0
jne 0x45b515
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x486bfc], eax
cmp dword [0x486c04], 0
jne 0x45b539
push esp
push 0
push 0
push 0x45b428
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x486c04], eax
pop edx
ret
Function at 0x45b630
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b647
add esp, 0xfffffff0
call fcn.00403588
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad24
mov eax, dword [0x485154]
cmp word [eax + 2], 0
jne 0x45b66f
mov eax, dword [0x485154]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cdb0
mov eax, dword [0x485260]
cmp word [eax + 2], 0
jne 0x45b689
mov eax, dword [0x485260]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cfa8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403234
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 [0x41d280]
call fcn.00424a20
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b810
mov eax, dword [0x485000]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424df0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d558
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x485000]
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.0040cac8
test eax, eax
je 0x45b77e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c2c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040caf0
test eax, eax
je 0x45b792
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.004042a8
mov eax, dword [0x484e18]
cmp byte [eax], 0
jne 0x45b7c6
mov eax, ebx
call fcn.0045b938
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.0045d734
mov eax, ebx
call fcn.0045e0f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b806
call fcn.004035e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bbb8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486be8]
cmp dword [eax + 0x30], 0
je 0x45bc62
cmp dword [ebx + 0x94], 0
jne 0x45bc5c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bb48
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45bc5c
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 0x45bc22
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45bc5c
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.00414638
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45bc31
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c7c4
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 0x45c7f9
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.00404128
jmp 0x45c806
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040408c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d910
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d951
mov eax, esi
call fcn.00443ae0
test al, al
je 0x45d951
mov eax, dword [ebx + 0x84]
call fcn.004437dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d951
push 0
mov eax, dword [ebx + 0x84]
call fcn.004437dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x468c98
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468dd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004152ec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x468d14
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x468d14
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00407ff4
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x484eac]
mov ebx, dword [ebx]
mov eax, 0x468de8
call ebx
dec eax
jne 0x468d14
mov ebx, 1
jmp 0x468d16
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x468db7
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004687a8
test al, al
jne 0x468dab
mov eax, dword [ebp - 4]
call fcn.00468c8c
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.0040408c
xor edx, edx
push ebp
push 0x468d99
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x468d8f
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004690ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468dab
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x468d2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468dd9
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040405c
ret
Function at 0x470788
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4707b6
mov eax, ebx
call fcn.0047123c
cmp dword [ebx + 0x40], 0
je 0x4707af
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x470827
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x470819
cmp dword [ebx + 8], 0
je 0x4707d8
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 0x4707ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x470819
cmp dword [ebx + 8], 0
je 0x4707cb
cmp eax, 3
je 0x4707fd
dec eax
jne 0x4707cb
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 0x4707cb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4707cb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x470845
cmp dword [ebx + 0x14], 0xcc
je 0x470845
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.00470850
pop ebx
ret

Function at 0x481d48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
xor eax, eax
push ebp
push 0x481de2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x486e88
call fcn.00404038
mov ebx, 0x105
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x481dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x481daf
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408ddc
mov edx, dword [ebp - 8]
mov eax, 0x486e88
call fcn.0040408c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481dcc
mov eax, dword [ebp - 4]
call fcn.004026ec
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x6ee21fde
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x7a946df3
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403820
Capabilities:
Query or enumerate registry value

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

Function at 0x4046a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae04c], 0
je 0x404705
cmp word [0x4ae220], 0xd7b2
jne 0x4046cd
cmp dword [0x4ae228], 0
jbe 0x4046cd
mov eax, 0x4ae21c
call dword [0x4ae238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac070
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 0x40472c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x404721
push 0
push 0x4ac068
push 0x4ac070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061f8
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 0x406428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40627b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406428
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40627b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406444
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406304
xor eax, eax
push ebp
push 0x4062fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406040
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 0x4062e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406464
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062e2
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 0x406304
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 0x40641e
cmp byte [ebp - 0xd], 0
jne 0x40634b
cmp byte [ebp - 0x12], 0
je 0x40641e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406364
dec ebx
cmp byte [ebx], 0x2e
je 0x406373
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406363
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40641e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4063b0
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 0x40641e
cmp byte [ebp - 0xd], 0
je 0x40641e
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 0x40641e
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