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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45f7b6
add esp, 0xfffffff0
call fcn.004035d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f6a8
mov eax, dword [0x4a9df4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45fb48
mov eax, dword [0x4a9e04]
mov dword [eax + 4], ebx
mov dword [eax], 0x45fb54
mov eax, ebx
call fcn.0045fb60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
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, 0x45b830
push eax
push 0
push 0
mov eax, dword [0x4aa004]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.004230cc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.004230cc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.004230cc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ffe4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fea8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fea8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fea8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f8f3
call fcn.00403630
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45fc8c
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 0x45fe37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45fe18
mov dl, 1
mov eax, dword [0x416898]
call fcn.00403284
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404118
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45fe07
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.0044c7b4
test al, al
je 0x45fdfa
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, 0x45fe48
lea eax, [ebp - 0x254]
call fcn.00409568
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45fdfa
xor eax, eax
push ebp
push 0x45fdf3
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 0x45fe80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x45fddc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404388
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 0x45fddc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fdfa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45fcfd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b4c8
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 0x45fe3e
lea eax, [ebp - 0x260]
call fcn.00404118
ret

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

Disassembly:
push ecx
mov eax, dword [0x4abb50]
cmp byte [eax + 0xad], 0
jne 0x46082d
cmp dword [0x4abb68], 0
jne 0x4607ee
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x460778
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4abb68], eax
cmp dword [0x4abb64], 0
jne 0x460809
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4abb64], eax
cmp dword [0x4abb6c], 0
jne 0x46082d
push esp
push 0
push 0
push 0x46071c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4abb6c], eax
pop edx
ret
Function at 0x460a30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x460a47
add esp, 0xfffffff0
call fcn.004035d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f6a8
mov eax, dword [0x4a9fe0]
cmp word [eax + 2], 0
jne 0x460a6f
mov eax, dword [0x4a9fe0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046249c
mov eax, dword [0x4aa0ec]
cmp word [eax + 2], 0
jne 0x460a89
mov eax, dword [0x4aa0ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004626a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41613c]
call fcn.00403284
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 [0x422428]
call fcn.0042a1b0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x460c38
mov eax, dword [0x4a9e94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a584
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462dcc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a9e94]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.0040cd94
test eax, eax
je 0x460b90
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cdc8
test eax, eax
je 0x460ba4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404388
push ebx
push 0x461ffc
call fcn.00420810
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4a9cb8]
cmp byte [eax], 0
jne 0x460bee
mov eax, ebx
call fcn.00460d7c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00462fa8
mov eax, ebx
call fcn.00463af8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460c2e
call fcn.00403630
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460ffc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4abb50]
cmp dword [eax + 0x30], 0
je 0x4610a6
cmp dword [ebx + 0x94], 0
jne 0x4610a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460f8c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4610a0
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 0x461066
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4610a0
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.004188c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461075
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461dc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x461df5
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.00404208
jmp 0x461e02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040416c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46318c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4631fa
mov eax, esi
call fcn.00447724
test al, al
je 0x4631fa
mov eax, dword [ebx + 0x84]
call fcn.00447424
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4631fa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4631ee
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447424
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00440344
jmp 0x4631fa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462fc8
pop esi
pop ebx
ret

Function at 0x46769c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045d8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x477e14
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x477e42
mov eax, ebx
call fcn.004788c8
cmp dword [ebx + 0x40], 0
je 0x477e3b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x477eb3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x477ea5
cmp dword [ebx + 8], 0
je 0x477e64
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 0x477e76
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x477ea5
cmp dword [ebx + 8], 0
je 0x477e57
cmp eax, 3
je 0x477e89
dec eax
jne 0x477e57
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 0x477e57
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x477e57
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x477ed1
cmp dword [ebx + 0x14], 0xcc
je 0x477ed1
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.00477edc
pop ebx
ret
Function at 0x124fa
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 3
mov ecx, edx
mov edi, edx
pop ebx
shr ecx, 2
and edi, ebx
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x12590
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x10], ecx
mov dl, byte [esi]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + esi]
sub dl, 0x3b
mov bl, dl
and bl, 0xfc
and dl, 3
shl bl, 2
or bl, dl
sub cl, 0x3b
mov dl, cl
and dl, 0xc
or bl, dl
xor edx, edx
xor bl, 0xeb
mov byte [eax], bl
inc edx
mov dl, byte [edx + esi]
sub dl, 0x3b
mov bl, dl
xor bl, cl
and bl, 3
xor bl, dl
and dl, 3
shl bl, 2
or bl, dl
inc eax
xor bl, 0xeb
mov byte [eax], bl
push 2
pop edx
mov dl, byte [edx + esi]
and cl, 0xf0
sub dl, 0x3b
shl cl, 2
or dl, cl
inc eax
xor dl, 0xeb
mov byte [eax], dl
inc eax
add esi, 4
dec dword [ebp + 0x10]
jne 0x12526
mov edx, dword [ebp + 0xc]
cmp edi, 2
jne 0x125c2
mov ecx, dword [ebp + 8]
lea esi, [ecx + edx]
mov cl, byte [esi - 2]
mov dl, byte [esi - 1]
sub cl, 0x3b
inc dl
shl dl, 2
mov bl, cl
and bl, 0xfc
and dl, 0xc
shl bl, 2
or dl, bl
and cl, 3
or dl, cl
xor dl, 0xeb
mov byte [eax], dl
jmp 0x1260f
cmp edi, 3
jne 0x12610
mov ecx, dword [ebp + 8]
lea esi, [ecx + edx]
mov cl, byte [esi - 3]
mov dl, byte [esi - 1]
sub cl, 0x3b
mov bl, cl
and bl, 0xfc
shl bl, 2
and cl, 3
or bl, cl
sub dl, 0x3b
mov cl, dl
and cl, 0xc
or bl, cl
xor bl, 0xeb
mov byte [eax], bl
mov cl, byte [esi - 2]
sub cl, 0x3b
mov bl, cl
xor bl, dl
and bl, 3
xor bl, cl
shl bl, 2
and cl, 3
inc eax
or bl, cl
xor bl, 0xeb
mov byte [eax], bl
inc eax
pop edi
pop esi
mov byte [eax], 0
sub eax, dword [ebp - 8]
pop ebx
leave
ret 0xc
Function at 0x13e88
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x16094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x14d96
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x3c]
push eax
xor ebx, ebx
push 0x20019
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x13eed
or eax, 0xffffffff
jmp 0x13f79
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
jge 0x13f18
cmp eax, 0x80000005
je 0x13f18
cmp eax, 0xc0000023
jne 0x13ee5
push dword [ebp - 0x18]
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
call ebx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push esi
push 2
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x13ee5
push dword [esi + 8]
push 0
call ebx
mov dword [edi + 4], eax
push dword [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
call sub.ntoskrnl.exe_memcpy
mov ax, word [esi + 8]
add esp, 0xc
sub ax, 2
mov word [edi], ax
mov ax, word [esi + 8]
push 0
push esi
mov word [edi + 2], ax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001478c
leave
ret 8

Function at 0x14436
Capabilities:
Delete file
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push 0x18
pop ebx
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0x14], 0x136184
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x240
mov dword [ebp - 0x2c], 0x13617c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
pop esi
pop ebx
test eax, eax
jl 0x144b2
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401142
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x401183
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x40124c
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
jbe 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4012ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
lea eax, [ebx + 1]
push eax
call fcn.00402cd8
cmp byte [ebp + 0x14], 0
pop ecx
mov dword [ebp - 4], eax
je 0x4012d8
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 0x14], ecx
lea esi, [edi + eax]
mov eax, dword [ebp + 0x14]
push edi
mov al, byte [eax + esi]
push eax
call fcn.00401129
xor al, byte [ebp + 0x18]
inc edi
pop ecx
cmp edi, ebx
mov byte [esi], al
mov eax, dword [ebp - 4]
pop ecx
jb 0x4012b7
jmp 0x4012f6
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
mov esi, eax
sub ecx, eax
mov dword [ebp + 0x14], ebx
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, byte [ebp + 0x18]
mov byte [esi], dl
inc esi
dec dword [ebp + 0x14]
jne 0x4012e8
and byte [edi + eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c60
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, 0x400
push eax
push 0x40dda8
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x40d988
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40d584
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
mov esi, 0x40cd48
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x40d184
push esi
call fcn.00402a00
push esi
call fcn.00402900
add esp, 0xc
add eax, esi
cmp eax, esi
jb 0x401ccc
cmp byte [eax], 0x5c
je 0x401ccc
dec eax
jmp 0x401cc0
inc eax
cmp eax, esi
pop esi
jb 0x401cd5
and byte [eax], 0
leave
ret

Function at 0x406fb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b228
cmp edx, dword [eax]
je 0x406fdb
add eax, 8
inc ecx
cmp eax, 0x40b2b8
jl 0x406fcc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b228]
jne 0x407109
mov eax, dword [0x40e9c4]
cmp eax, 1
je 0x4070e3
test eax, eax
jne 0x40700c
cmp dword [0x40b154], 1
je 0x4070e3
cmp edx, 0xfc
je 0x407109
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407043
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407086
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095cc
push edi
call fcn.00407ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a10
lea eax, [ebp - 0xa0]
push 0x4095ac
push eax
call fcn.00402a10
push dword [esi + 0x40b22c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407e2e
add esp, 0x2c
pop edi
jmp 0x407109
lea eax, [ebp + 8]
lea esi, [esi + 0x40b22c]
push 0
push eax
push dword [esi]
call fcn.00402900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x43d5d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b787b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ac161
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43d652
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a9ee0
mov eax, dword [eax]
push 0x64d244
push eax
call fcn.0049bfd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ac3ec
test bl, bl
je 0x43d652
push 0x64d244
lea ecx, [esp + 0xc]
call fcn.004ac77c
push 0x650dbc
lea ecx, [esp + 0xc]
call fcn.004ac77c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43d68e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ac3ec
jmp 0x43d759
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x43d712
lea edx, [esp + 0x7c]
push 0x650db8
push edx
call fcn.0049bfd4
add esp, 8
test eax, eax
je 0x43d712
lea eax, [esp + 0x7c]
push 0x650db4
push eax
call fcn.0049bfd4
add esp, 8
test eax, eax
je 0x43d712
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43d6a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ac3ec
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x43df50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x43dfb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc