joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b798
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 0x46b943
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46b924
mov dl, 1
mov eax, dword [0x41700c]
call fcn.00403380
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041c4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b913
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.00459574
test al, al
je 0x46b906
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, 0x46b954
lea eax, [ebp - 0x254]
call fcn.004094c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b906
xor eax, eax
push ebp
push 0x46b8ff
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 0x46b98c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46b8e8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404434
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 0x46b8e8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b906
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b809
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b62c
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 0x46b94a
lea eax, [ebp - 0x260]
call fcn.004041c4
ret

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

Disassembly:
push ecx
mov eax, dword [0x484bc8]
cmp byte [eax + 0xa5], 0
jne 0x46c2e9
cmp dword [0x484be0], 0
jne 0x46c2aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46c234
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x484be0], eax
cmp dword [0x484bdc], 0
jne 0x46c2c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x484bdc], eax
cmp dword [0x484be4], 0
jne 0x46c2e9
push esp
push 0
push 0
push 0x46c1d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x484be4], eax
pop edx
ret
Function at 0x46c3e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46c3f7
add esp, 0xfffffff0
call fcn.00403714
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421b34
mov eax, dword [0x483268]
cmp word [eax + 2], 0
jne 0x46c41f
mov eax, dword [0x483268]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046db60
mov eax, dword [0x48332c]
cmp word [eax + 2], 0
jne 0x46c439
mov eax, dword [0x48332c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046dd58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4169a8]
call fcn.00403380
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4169a8]
call fcn.00403380
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 [0x424148]
call fcn.0042c200
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46c5c0
mov eax, dword [0x483170]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c5d0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46e2f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x483170]
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.0040cdc0
test eax, eax
je 0x46c52e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ea8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cde8
test eax, eax
je 0x46c542
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.00404434
mov eax, dword [0x483028]
cmp byte [eax], 0
jne 0x46c576
mov eax, ebx
call fcn.0046c6e8
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.0046e4d4
mov eax, ebx
call fcn.0046ee98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46c5b6
call fcn.0040376c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c968
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484bc8]
cmp dword [eax + 0x30], 0
je 0x46ca12
cmp dword [ebx + 0x94], 0
jne 0x46ca0c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46c8f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ca0c
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 0x46c9d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ca0c
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.00419254
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46c9e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46d574
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 0x46d5a9
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.004042b4
jmp 0x46d5b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404218
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46e6b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46e6f1
mov eax, esi
call fcn.00454af8
test al, al
je 0x46e6f1
mov eax, dword [ebx + 0x84]
call fcn.004547f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46e6f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004547f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x472694
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415f40]
call fcn.00404b30
xor eax, eax
push ebp
push 0x4727d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x482f90], 0
jne 0x4726e7
mov ecx, dword [0x48303c]
mov dl, 1
mov eax, dword [0x4074f8]
call fcn.0040bf98
call fcn.00403b7c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402da8
mov eax, ebx
call fcn.00404a00
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4727e8
lea edi, [ebp - 0x30]
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 edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ab4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404a10
test eax, eax
jle 0x47277f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x472778
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040444c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404434
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040831c
test eax, eax
jne 0x472778
mov ebx, 0x15
jmp 0x472784
mov ebx, 0x10
jmp 0x472784
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x482f90]
call fcn.004725ec
mov eax, dword [ebp - 8]
call fcn.004725ec
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4727df
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004041e8
lea eax, [ebp - 0x10]
mov edx, dword [0x415f40]
call fcn.00404c00
ret

Function at 0x47a408
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], eax
xor eax, eax
push ebp
push 0x47a4ae
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, 0x484c54
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404434
mov eax, 0x484c54
mov edx, 0x47a4c4
call fcn.0040448c
lea edx, [ebp - 0x108]
xor eax, eax
call fcn.00402b1c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00408c58
mov edx, dword [ebp - 0x104]
mov eax, 0x484c58
call fcn.00404218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a4b5
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.004041e8
ret
Function at 0x47a544
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47a5e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040425c
mov eax, dword [ebp - 8]
call fcn.00404484
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00404810
mov eax, dword [ebp - 8]
call fcn.00404484
mov edi, eax
test edi, edi
jle 0x47a5cb
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.004046dc
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx - 1]
add si, ax
imul ax, si, 0x808
add ax, 0xdc6d
mov esi, eax
inc ebx
dec edi
jne 0x47a596
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a5e8
lea eax, [ebp - 8]
call fcn.004041c4
ret
Function at 0x47b370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.00404434
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047b3fc
test al, al
jne 0x47b3f0
mov eax, dword [ebp + 8]
call fcn.004041c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47b498
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call sub.advapi32.dll_RegOpenKeyExA_1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop ecx
pop ebp
ret 4
Function at 0x47e984
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47eadb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047eea8
test al, al
jne 0x47ea06
mov dword [ebp - 4], 0x3b9aab9f
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047eea8
cmp al, 1
jne 0x47ea64
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047ec1c
mov eax, dword [ebp - 0x14]
mov edx, 0x47eaf8
call fcn.004045d0
jne 0x47ea64
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047ed54
mov eax, dword [ebp - 0x18]
mov edx, 0x47eb08
call fcn.004045d0
jne 0x47ea64
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047eea8
cmp al, 1
jne 0x47eac0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047ec1c
mov eax, dword [ebp - 0x1c]
mov edx, 0x47eaf8
call fcn.004045d0
jne 0x47eac0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047ed54
mov eax, dword [ebp - 0x20]
mov edx, 0x47eb14
call fcn.004045d0
jne 0x47eac0
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eae2
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004041e8
ret

Function at 0x47ed54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.00404434
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0047eea8
test al, al
jne 0x47edd4
mov eax, dword [ebp + 8]
call fcn.004041c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47ef44
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call sub.advapi32.dll_RegOpenKeyExA_1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop ecx
pop ebp
ret 4

Function at 0x47f134
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404674
xor eax, eax
push ebp
push 0x47f1ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00408844
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ecx
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, ebx
call fcn.00408958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f1b2
lea eax, [ebp - 4]
call fcn.004041c4
ret

Function at 0x4805ac
Capabilities:
Create process on windows

Disassembly:
push 3
push 0
push 0
push 0x4805d0
push 0x4805e8
mov eax, dword [0x48330c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
ret
Function at 0x402c48
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402c85
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402ca5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004045a8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40339c
Capabilities:
Query or enumerate registry value

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

Function at 0x404130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x404191
cmp word [0x45d21c], 0xd7b2
jne 0x404159
cmp dword [0x45d224], 0
jbe 0x404159
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
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 0x4041b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x4041ad
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a48
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405fb8
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 0x40601e
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
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004045a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406008
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406025
lea eax, [ebp - 0x10]
call fcn.00404338
ret

Function at 0x40b2c8
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 0x40b301
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404428
jmp 0x40b30a
mov eax, ebx
mov edx, esi
call fcn.0040438c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b314
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 0x40b335
mov al, byte [esp]
jmp 0x40b337
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b9cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b834
mov eax, dword [0x45c4c4]
cmp byte [eax], 0
je 0x40ba48
mov eax, dword [0x45c2d4]
call fcn.00402dcc
call fcn.00402bd4
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.00408a64
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 0x40ba90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c284]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d664]
call fcn.00405424
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