joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45977c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4597a2
mov eax, esp
push eax
push 0x459744
call sub.user32.dll_EnumWindows
jmp 0x4597b5
mov eax, esp
push eax
push 0x459724
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x459840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x459894]
test si, 4
je 0x459855
or bl, 1
test si, 8
je 0x45985f
or bl, 4
test si, 1
je 0x459869
or bl, 8
test si, 2
je 0x459873
or bl, 0x10
test si, 0x10
je 0x45987d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45988c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459898
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4598d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4598b2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4598c1
or bl, 4
test esi, 0x20000000
je 0x4598cc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x461940
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x461952
add esp, 0xfffffff0
call fcn.00403d8c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e7e0
mov eax, dword [0x472acc]
mov dword [eax + 4], ebx
mov dword [eax], 0x461ce4
mov eax, dword [0x472ad8]
mov dword [eax + 4], ebx
mov dword [eax], 0x461cf0
mov eax, ebx
call fcn.00461cfc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
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, 0x45d1a4
push eax
push 0
push 0
mov eax, dword [0x472c48]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4226e0]
call fcn.00423f34
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4226e0]
call fcn.00423f34
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4226e0]
call fcn.00423f34
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462174
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462044
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462044
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462044
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461a8f
call fcn.00403de4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461e28
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 0x461fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461fb4
mov dl, 1
mov eax, dword [0x41699c]
call fcn.00403a38
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404894
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461fa3
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.00452f5c
test al, al
je 0x461f96
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, 0x461fe4
lea eax, [ebp - 0x254]
call fcn.00409750
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461f96
xor eax, eax
push ebp
push 0x461f8f
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 0x46201c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461f78
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
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 0x461f78
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461f96
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461e99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a68c
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 0x461fda
lea eax, [ebp - 0x260]
call fcn.00404894
ret

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

Disassembly:
push ecx
mov eax, dword [0x477ccc]
cmp byte [eax + 0xad], 0
jne 0x4629bd
cmp dword [0x477ce8], 0
jne 0x46297e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462908
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x477ce8], eax
cmp dword [0x477ce4], 0
jne 0x462999
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x477ce4], eax
cmp dword [0x477cec], 0
jne 0x4629bd
push esp
push 0
push 0
push 0x4628ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x477cec], eax
pop edx
ret
Function at 0x462bc0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462bd7
add esp, 0xfffffff0
call fcn.00403d8c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e7e0
mov eax, dword [0x472c30]
cmp word [eax + 2], 0
jne 0x462bff
mov eax, dword [0x472c30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004648b0
mov eax, dword [0x472cec]
cmp word [eax + 2], 0
jne 0x462c19
mov eax, dword [0x472cec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464abc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416578]
call fcn.00403a38
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 [0x4231f0]
call fcn.0042ab30
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x462dd0
mov eax, dword [0x472b38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042af04
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465180
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472b38]
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.0040d420
test eax, eax
je 0x462d20
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409108
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d454
test eax, eax
je 0x462d34
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
mov byte [ebx + 0xd4], 0
push ebx
push 0x46433c
call fcn.0041f970
mov dword [ebx + 0xc8], eax
mov eax, dword [0x472a14]
cmp byte [eax], 0
jne 0x462d85
mov eax, ebx
call fcn.00462f14
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.00465394
mov eax, ebx
call fcn.00465ef8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462dc5
call fcn.00403de4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463194
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x463233
cmp dword [ebx + 0x94], 0
jne 0x46322d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46311c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46322d
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 0x4631f3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46322d
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.0041891c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463202
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x477ccc]
cmp dword [eax + 0x30], 0
je 0x4635a9
test bl, bl
jne 0x4634fa
cmp dword [esi + 0x9c], 0
jne 0x4634ef
mov eax, esi
call fcn.00465d74
push eax
push 0x463378
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4634c0
mov eax, dword [0x477ccc]
call fcn.00466454
test al, al
je 0x4634c0
mov eax, dword [0x477cf0]
call fcn.004059b4
mov edi, eax
cmp edi, 0
jl 0x4634c0
push 0
mov eax, dword [0x477cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4634aa
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4634ef
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041891c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4634cf
inc dword [esi + 0x9c]
jmp 0x4635a9
cmp dword [esi + 0x9c], 0
jle 0x4635a9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4635a9
cmp dword [esi + 0x44], 0
je 0x463555
mov eax, dword [0x477ccc]
call fcn.00466454
test al, al
je 0x463555
mov eax, dword [0x477cf0]
call fcn.004059b4
mov edi, eax
cmp edi, 0
jl 0x463555
push 5
mov eax, dword [0x477cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46353f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x463584
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041891c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x463564
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x477cf0
mov ecx, 1
mov edx, dword [0x463358]
call fcn.00405b68
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4015e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x401741
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x404690], eax
call esi
cmp dword [0x404690], ebx
mov dword [0x404694], eax
je 0x40172e
cmp eax, ebx
je 0x40172e
push str.MyFree
push edi
call esi
push ebx
mov dword [0x404698], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x404544
push esi
mov dword [ebp - 8], eax
call fcn.00401e94
pop ecx
mov edx, eax
mov al, byte [0x40469c]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x401714
cmp byte [ebp - 0x140], bl
je 0x401714
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x4016da
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x40174b
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x403200]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x4016dd
push dword [ebp - 4]
mov dword [0x404690], ebx
mov dword [0x404694], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x401744
push edi
mov dword [0x404690], ebx
mov dword [0x404694], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401acb
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x401aed
xor eax, eax
jmp 0x401b50
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x401b57
push 0
push 0
call fcn.0040201b
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x401b2c
and dword [edi], eax
xor esi, esi
jmp 0x401b47
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40201b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4021f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40221d
xor eax, eax
jmp 0x40227a
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x402268
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x402268
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x402268
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x402344
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x402397
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x402379
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x4023f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x402392
cmp eax, 2
je 0x402392
xor esi, esi
jmp 0x4023e0
push 1
pop esi
jmp 0x4023e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4023bc
xor eax, eax
jmp 0x4023f9
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x4023ee
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x402478
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x40248b
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40251d
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x402516
cmp dword [ebp + 8], edi
jne 0x402516
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
call fcn.00401d9a
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x402516
lea ecx, [ebp + 0x10]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40250d
cmp dword [ebp + 0x10], esi
jne 0x40250d
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x402501
mov dword [eax], ebx
jmp 0x402508
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x402524
push dword [ebp - 4]
call fcn.00401da5
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56b830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x117000]
push edi
jmp 0x56b84a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x56b851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56b840
mov eax, 1
add ebx, ebx
jne 0x56b863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56b874
jne 0x56b893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56b893
dec eax
add ebx, ebx
jne 0x56b880
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x56b858
add ebx, ebx
jne 0x56b88f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x56b8e5
xor ecx, ecx
sub eax, 3
jb 0x56b8ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56b91a
sar eax, 1
mov ebp, eax
jmp 0x56b8b6
add ebx, ebx
jne 0x56b8b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56b884
inc ecx
add ebx, ebx
jne 0x56b8c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56b884
add ebx, ebx
jne 0x56b8d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x56b8c6
jne 0x56b8e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56b8c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x56b904
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x56b8f6
jmp 0x56b846
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x56b904
add edi, ecx
jmp 0x56b846
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x56b922
cmp byte [edi], 0x11
jne 0x56b922
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x56b927
lea edi, [esi + 0x164000]
mov eax, dword [edi]
or eax, eax
je 0x56b99f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2006b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x200830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x56b954
mov ecx, edi
jns 0x56b983
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x200834]
or eax, eax
je 0x56b999
mov dword [ebx], eax
add ebx, 4
jmp 0x56b971
call dword [esi + 0x200844]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x56b9d0
cmp al, 0xef
ja 0x56b9c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x56b9a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x56b9b2
mov ebp, dword [esi + 0x200838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x56ba04
sub esp, 0xffffff80
jmp 0x425f74