joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9668
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a967a
add esp, 0xfffffff0
call fcn.00405338
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043ece4
mov eax, dword [0x4c6194]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a9ac4
mov eax, dword [0x4c61a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a9ad0
mov eax, ebx
call fcn.004a9adc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a435c
push eax
push 0
push 0
mov eax, dword [0x4c6344]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004aa03c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9eac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9eac
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9eac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9eac
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9eac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a97f5
call fcn.00405390
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a9c4c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9df9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a9dda
mov dl, 1
mov eax, dword [0x42a930]
call fcn.0043675c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004068c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a9dc9
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.0048c2b8
test al, al
je 0x4a9dbc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a9e08
lea eax, [ebp - 0x394]
call fcn.004135bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a9dbc
xor eax, eax
push ebp
push 0x4a9db5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a9e78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a9d9e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ab0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4a9d9e
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9dbc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a9cbf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00436698
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9e00
lea eax, [ebp - 0x3a0]
call fcn.004068b8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cc284]
cmp byte [eax + 0xad], 0
jne 0x4aa9ca
cmp dword [0x4cc29c], 0
jne 0x4aa98a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4c5ee8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4cc29c], eax
cmp dword [0x4cc298], 0
jne 0x4aa9a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4cc298], eax
cmp dword [0x4cc2a0], 0
jne 0x4aa9ca
push esp
push 0
push 0
mov eax, dword [0x4c5ee4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cc2a0], eax
pop edx
ret
Function at 0x4aacf0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4aad07
add esp, 0xfffffff0
call fcn.00405338
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043ece4
mov eax, dword [0x4c609c]
cmp byte [eax], 0
jne 0x4aad34
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4c6324]
cmp word [eax + 2], 0
jne 0x4aad4e
mov eax, dword [0x4c6324]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004acde8
mov eax, dword [0x4c640c]
cmp word [eax + 2], 0
jne 0x4aad68
mov eax, dword [0x4c640c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004acff8
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x449608]
call fcn.0044fb44
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ad5a8
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44dd08]
call fcn.00459354
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4aaf48
mov eax, dword [0x4c6210]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004597e8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ad890
mov dl, 1
mov eax, dword [0x428368]
call fcn.00404dd4
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4c6210]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00413408
test eax, eax
je 0x4aae79
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004131ec
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004133ec
test eax, eax
je 0x4aae91
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406ab0
push ebx
push 0x4ac7b8
call fcn.004a0944
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4c609c]
cmp byte [eax], 0
jne 0x4aaee2
mov eax, ebx
call fcn.004ab0bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004adabc
mov eax, ebx
call fcn.004ae6f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4aaf3f
call fcn.00405390
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ab390
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ab432
cmp dword [ebx + 0x94], 0
jne 0x4ab42c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ab2dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ab42c
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_GetWindowLongW
test al, 8
je 0x4ab3f2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ab42c
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.00433138
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ab401
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ab650
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cc284]
cmp dword [eax + 0x170], 0
je 0x4ab7b5
test bl, bl
jne 0x4ab703
cmp dword [esi + 0x9c], 0
jne 0x4ab6f8
mov eax, esi
call fcn.004ae540
push eax
push 0x4ab55c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4ab6c9
mov eax, dword [0x4cc284]
cmp byte [eax + 0xd3], 0
je 0x4ab6c9
mov eax, dword [esi + 0xd8]
call fcn.00408030
mov edi, eax
cmp edi, 0
jl 0x4ab6c9
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ab6b2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ab6f8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00433138
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ab6d8
inc dword [esi + 0x9c]
jmp 0x4ab7b5
cmp dword [esi + 0x9c], 0
jle 0x4ab7b5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4ab7b5
cmp dword [esi + 0x44], 0
je 0x4ab760
mov eax, dword [0x4cc284]
cmp byte [eax + 0xd3], 0
je 0x4ab760
mov eax, dword [esi + 0xd8]
call fcn.00408030
mov edi, eax
cmp edi, 0
jl 0x4ab760
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ab749
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ab78f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00433138
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ab76f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49e81c]
call fcn.004081f0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ac404
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ac46f
cmp byte [ebx + 0xd3], 0
jne 0x4ac46f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a04
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ac45c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ac47c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068c8
jmp 0x4ac47c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068c8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4adca4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4add12
mov eax, esi
call fcn.004863d8
test al, al
je 0x4add12
mov eax, dword [ebx + 0x84]
call fcn.0048602c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4add12
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4add06
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048602c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047cfcc
jmp 0x4add12
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004adadc
pop esi
pop ebx
ret
Function at 0x4af420
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40c23c]
call fcn.00407540
xor eax, eax
push ebp
push 0x4af56a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c5f28], 0
jne 0x4af474
mov ecx, dword [0x4c60b8]
mov dl, 1
mov eax, dword [0x40d39c]
call fcn.00416e3c
call fcn.004058dc
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004047c8
mov eax, ebx
call fcn.0040674c
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4af578
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409588
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4af4bb
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4af510
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4af509
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406b18
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406ab0
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00411fa0
test eax, eax
jne 0x4af509
mov ebx, 0x15
jmp 0x4af515
mov ebx, 0x10
jmp 0x4af515
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x4c5f28]
call fcn.004af28c
mov eax, dword [ebp - 4]
call fcn.004af28c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004095a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af571
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004068c0
lea eax, [ebp - 0xc]
mov edx, dword [0x40c23c]
call fcn.00407618
ret
Function at 0x4b4384
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4b439c
add esp, 0xfffffff0
call fcn.00405338
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b44b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404218
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4b44a0
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004af28c
xor eax, eax
push ebp
push 0x4b448d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004af28c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406b18
jmp 0x4b445e
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.004070c0
mov eax, dword [ebx + 4]
call fcn.00406c20
dec eax
jle 0x4b4472
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4b444c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4494
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b44bd
lea eax, [ebp - 4]
call fcn.00406580
ret
Function at 0x402d24
Capabilities:
Query or enumerate registry value

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

Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x4038c1
cmp word [0x41c218], 0xd7b2
jne 0x403889
cmp dword [0x41c220], 0
jbe 0x403889
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b06c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4038e8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x41b030], 0
jne 0x4038dd
push 0
push 0x41b064
push 0x41b06c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404b14
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c20
xor eax, eax
push ebp
push 0x404c19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040495c
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 0x404bfe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404bfe
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 0x404c20
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404d3a
cmp byte [ebp - 0xd], 0
jne 0x404c67
cmp byte [ebp - 0x12], 0
je 0x404d3a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c80
dec ebx
cmp byte [ebx], 0x2e
je 0x404c8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d3a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ccc
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 0x404d3a
cmp byte [ebp - 0xd], 0
je 0x404d3a
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 0x404d3a
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 0x4053d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405436
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c4c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402918
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405420
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40543d
lea eax, [ebp - 0x10]
call fcn.004039dc
ret

Function at 0x409930
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
test eax, eax
jle 0x409969
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403acc
jmp 0x409972
mov eax, ebx
mov edx, esi
call fcn.00403a30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40997c
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
test eax, eax
jle 0x40999d
mov al, byte [esp]
jmp 0x40999f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ad84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ade8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c4c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00406dd4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adef
lea eax, [ebp - 0xc]
call fcn.004039dc
ret

Function at 0x413924
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41392a
ret

Function at 0x415740
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x415791
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415778
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415768
jmp 0x415791
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x415779
pop ebx
mov esp, ebp
pop ebp
ret