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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454068]
cmp byte [eax + 0xc], 0
je 0x43c329
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c322
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x455bb8], 0
jne 0x43c210
push 0x43c330
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c338
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bb8], eax
cmp dword [0x453aa4], 0
jne 0x43c30b
push 0x43c348
call sub.kernel32.dll_LoadLibraryA
mov dword [0x453aa4], eax
cmp dword [0x453aa4], 0
je 0x43c30b
push 0x43c354
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bbc], eax
push 0x43c364
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bc0], eax
push 0x43c378
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bc4], eax
push 0x43c390
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bc8], eax
push 0x43c3a8
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bcc], eax
push 0x43c3bc
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bd0], eax
push 0x43c3d4
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bd4], eax
push 0x43c3ec
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bd8], eax
push 0x43c408
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bdc], eax
push 0x43c414
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c329
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44008c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404264
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4400db
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447f28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447f78]
test si, 4
je 0x447f3c
or bl, 1
test si, 8
je 0x447f46
or bl, 4
test si, 1
je 0x447f50
or bl, 8
test si, 2
je 0x447f5a
or bl, 0x10
test si, 0x10
je 0x447f64
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447f73
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447f7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447fb4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447f95
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447fa4
or bl, 4
test esi, 0x20000000
je 0x447faf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e5d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e5e2
add esp, 0xfffffff0
call fcn.0040385c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004203bc
mov eax, dword [0x453d88]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e974
mov eax, dword [0x453d94]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e980
mov eax, ebx
call fcn.0044e98c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
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, 0x44ae54
push eax
push 0
push 0
mov eax, dword [0x453eac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421d4c]
call fcn.00423190
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421d4c]
call fcn.00423190
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421d4c]
call fcn.00423190
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044edac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ec88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ec88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ec88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e71f
call fcn.004038b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ea6c
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 0x44ec17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ebf8
mov dl, 1
mov eax, dword [0x41686c]
call fcn.004034e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404264
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ebe7
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.0043c51c
test al, al
je 0x44ebda
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, 0x44ec28
lea eax, [ebp - 0x254]
call fcn.00408e2c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ebda
xor eax, eax
push ebp
push 0x44ebd3
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 0x44ec60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ebbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
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 0x44ebbc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ebda
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44eadd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a9c8
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 0x44ec1e
lea eax, [ebp - 0x260]
call fcn.00404264
ret

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

Disassembly:
push ecx
mov eax, dword [0x455bfc]
cmp byte [eax + 0xa5], 0
jne 0x44f5bd
cmp dword [0x455c14], 0
jne 0x44f57e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f508
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455c14], eax
cmp dword [0x455c10], 0
jne 0x44f599
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455c10], eax
cmp dword [0x455c18], 0
jne 0x44f5bd
push esp
push 0
push 0
push 0x44f4ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455c18], eax
pop edx
ret
Function at 0x44f6b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f6cb
add esp, 0xfffffff0
call fcn.0040385c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004203bc
mov eax, dword [0x453e9c]
cmp word [eax + 2], 0
jne 0x44f6f3
mov eax, dword [0x453e9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450c68
mov eax, dword [0x453f2c]
cmp word [eax + 2], 0
jne 0x44f70d
mov eax, dword [0x453f2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450e60
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41637c]
call fcn.004034e0
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], 0x80000018
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 [0x4224fc]
call fcn.00428148
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f894
mov eax, dword [0x453de0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428518
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4513d0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453de0]
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.0040b0c8
test eax, eax
je 0x44f802
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408788
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b0f0
test eax, eax
je 0x44f816
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.004044cc
mov eax, dword [0x453d00]
cmp byte [eax], 0
jne 0x44f84a
mov eax, ebx
call fcn.0044f9bc
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.004515ac
mov eax, ebx
call fcn.00451f5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f88a
call fcn.004038b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fc30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bfc]
cmp dword [eax + 0x30], 0
je 0x44fcda
cmp dword [ebx + 0x94], 0
jne 0x44fcd4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fbc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fcd4
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 0x44fc9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fcd4
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.00418a1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fca9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4507b8
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 0x4507ed
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.00404354
jmp 0x4507fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451788
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4517c9
mov eax, esi
call fcn.00437de4
test al, al
je 0x4517c9
mov eax, dword [ebx + 0x84]
call fcn.00437ae0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4517c9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437ae0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1002723e
Capabilities:
Parse pe header

Disassembly:
imul ebp, dword [esi + 0x66], 0x12a2e6f
add dword [eax], ebx
cmp esi, 0x2900064f
Function at 0x10029985
Capabilities:
Parse pe header

Disassembly:
cmp dword [eax], esi
cmp byte [ebp + 0x63], dh
arpl word cs:[edi + 0x6d], bp
sub al, byte cs:[ecx]

Function at 0x417f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x417f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f60
mov eax, 1
add ebx, ebx
jne 0x417f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417f78
jne 0x417f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f78
xor ecx, ecx
sub eax, 3
jb 0x417fa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41801a
mov ebp, eax
add ebx, ebx
jne 0x417fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417fe4
inc ecx
add ebx, ebx
jne 0x417fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417fc5
jne 0x417fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417fc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417ff5
jmp 0x417f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418004
add edi, ecx
jmp 0x417f66
pop esi
mov edi, esi
mov ecx, 0x5f3c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x41803f
cmp byte [edi], 3
jne 0x418024
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x418022
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x418090
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418045
mov ecx, edi
jns 0x418074
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 + 0x1807c]
or eax, eax
je 0x41808a
mov dword [ebx], eax
add ebx, 4
jmp 0x418062
call dword [esi + 0x1808c]
mov ebp, dword [esi + 0x18080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4180c4
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x421cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421d12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421d08
mov eax, 1
add ebx, ebx
jne 0x421d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421d20
jne 0x421d3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421d20
xor ecx, ecx
sub eax, 3
jb 0x421d50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421dc2
mov ebp, eax
add ebx, ebx
jne 0x421d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421d8c
inc ecx
add ebx, ebx
jne 0x421d78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421d6d
jne 0x421d89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421d6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421dac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421d9d
jmp 0x421d0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421dac
add edi, ecx
jmp 0x421d0e
pop esi
mov edi, esi
mov ecx, 0x86d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421dca
cmp byte [edi], 0xd
jne 0x421dca
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 0x421dcf
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421e47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2293c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x229f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421dfc
mov ecx, edi
jns 0x421e2b
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 + 0x229f4]
or eax, eax
je 0x421e41
mov dword [ebx], eax
add ebx, 4
jmp 0x421e19
call dword [esi + 0x229f8]
popal
jmp section.UPX0
Function at 0xffb48aa
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xffb48fd
cmp eax, 0x80000005
jne 0xffb48ea
push 0xce
jmp 0xffb48f2
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xffb4906
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
leave
ret 4

Function at 0xffb546d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0xffed1a0]
push ebx
mov bl, byte [ebp + 8]
push esi
xor esi, esi
cmp bl, byte [eax]
jb 0xffb54b1
cmp bl, 0x19
ja 0xffb54ee
mov al, bl
add al, 0x41
mov byte [0xffeb884], al
mov eax, dword [0xffed1ac]
cmp byte [eax], bl
je 0xffb54a9
push 0xffeb884
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0xffb54ee
mov esi, dword [0xffed1a8]
jmp 0xffb54ee
mov al, bl
add al, 0x41
cmp bl, 1
mov byte [0xffeb884], al
jne 0xffb54cf
push 0xffeb884
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0xffb54ee
mov esi, dword [0xffed1a4]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x411
movzx eax, bl
jne 0xffb54e9
imul eax, eax, 0x58
jmp 0xffb54ec
imul eax, eax, 0x47
add esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0xffb5e90
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push ebx
mov dword [esi + 0x18], edi
mov dword [esi + 4], ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0xffb5efe
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0xffb5ef2
push 1
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 1
jmp 0xffb5efe
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0xffba34b
Capabilities:
Access pe header

Disassembly:
push 0x14
push 0xffb20b0
call fcn.0ffe120c
push 3
pop ebx
push 0xa
pop esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], 0
je 0xffba39a
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0x20], eax
movzx ebx, word [eax + 0x48]
mov dword [ebp - 0x24], ebx
movzx eax, word [eax + 0x4a]
mov dword [ebp - 0x1c], eax
jmp 0xffba396
or dword [ebp - 4], 0xffffffff
cmp ebx, 3
jne 0xffba3a5
cmp dword [ebp - 0x1c], 1
je 0xffba3aa
cmp ebx, 1
jne 0xffba3b0
push 3
pop ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x411
jne 0xffba3d9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xc0]
test byte [eax + 0x2d], 2
je 0xffba3d9
cmp ebx, 4
jb 0xffba3d9
push 3
pop ebx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ah, bl
mov al, byte [ebp - 0x1c]
call fcn.0ffe1247
ret 4

Function at 0xffba92f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0xffebc20]
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 2
call fcn.0ffbaa41
test eax, eax
je 0xffbaa30
push esi
push 0xffb1e5c
xor esi, esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [ebp - 0x208], eax
je 0xffbaa2f
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0xffbaa18
push edi
push esi
push esi
push 1
call fcn.0ffbaa41
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x25c]
rep stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x230], eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
push esi
push 0x4000010
push esi
push esi
push esi
lea eax, [ebp - 0x204]
push eax
push esi
mov dword [ebp - 0x25c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0xffbaa0a
push 0xffffffffffffffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x214]
call ebx
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0xffbaa26
push 0xffffffffffffffff
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x208]
call ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0ffe11f0
leave
ret
Function at 0xffbb1bd
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xffbb20f
cmp eax, 0x80000005
jne 0xffbb1fd
push 0xce
jmp 0xffbb205
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xffbb21b
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
leave
ret 8

Function at 0xffbb56c
Capabilities:
Check processdebugport

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
cmp dword [0xffebc4c], esi
jne 0xffbb5a7
push esi
push 4
lea eax, [ebp - 4]
push eax
push 7
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0xffbb5a1
cmp dword [ebp - 4], esi
mov dword [0xffebc4c], ebx
jne 0xffbb5a7
mov dword [0xffebc4c], esi
cmp dword [0xffebc50], esi
jne 0xffbb5d4
cmp dword [0xffebc4c], esi
je 0xffbb5d4
mov ecx, dword [0xffec08c]
cmp ecx, esi
je 0xffbb5d4
call fcn.0ffb37a5
or byte [eax], bl
push ebx
call sub.ntvdm.exe_DBGNotifyDebugged
mov dword [0xffebc50], ebx
mov eax, dword [0xffebc4c]
pop esi
pop ebx
leave
ret