joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc1f0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bc39b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4bc37c
mov dl, 1
mov eax, dword [0x434c50]
call fcn.00441300
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.004068c4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4bc36b
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.00485d6c
test al, al
je 0x4bc35e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4bc3ac
lea eax, [ebp - 0x394]
call fcn.0041d55c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4bc35e
xor eax, eax
push ebp
push 0x4bc357
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4bc41c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4bc340
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407294
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4bc340
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc35e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4bc261
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044123c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc3a2
lea eax, [ebp - 0x3a0]
call fcn.004068c4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d3250]
cmp byte [eax + 0xad], 0
jne 0x4bcf6a
cmp dword [0x4d3268], 0
jne 0x4bcf2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4ccffc]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4d3268], eax
cmp dword [0x4d3264], 0
jne 0x4bcf45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4d3264], eax
cmp dword [0x4d326c], 0
jne 0x4bcf6a
push esp
push 0
push 0
mov eax, dword [0x4ccff8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d326c], eax
pop edx
ret
Function at 0x4bd280
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4bd297
add esp, 0xfffffff0
call fcn.004053d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00449b7c
mov eax, dword [0x4cd094]
cmp byte [eax], 0
jne 0x4bd2c4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4cd328]
cmp word [eax + 2], 0
jne 0x4bd2de
mov eax, dword [0x4cd328]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bf348
mov eax, dword [0x4cd40c]
cmp word [eax + 2], 0
jne 0x4bd2f8
mov eax, dword [0x4cd40c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bf54c
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4536d8]
call fcn.00459c3c
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4bfac4
mov dl, 1
mov eax, dword [0x432474]
call fcn.00404e74
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x432474]
call fcn.00404e74
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 [0x457dd4]
call fcn.004630f4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4bd4d8
mov eax, dword [0x4cd20c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00463588
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4bfdac
mov dl, 1
mov eax, dword [0x432474]
call fcn.00404e74
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4cd20c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041d384
test eax, eax
je 0x4bd409
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041d138
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041d368
test eax, eax
je 0x4bd421
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407294
push ebx
push 0x4bed34
call fcn.004b3090
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4cd094]
cmp byte [eax], 0
jne 0x4bd472
mov eax, ebx
call fcn.004bd64c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004bffd8
mov eax, ebx
call fcn.004c0c08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4bd4cf
call fcn.0040542c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd918
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4bd9ba
cmp dword [ebx + 0x94], 0
jne 0x4bd9b4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4bd864
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4bd9b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4bd97a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4bd9b4
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.0043d7e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4bd989
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4d3250]
cmp dword [eax + 0x170], 0
je 0x4bdd3d
test bl, bl
jne 0x4bdc8b
cmp dword [esi + 0x9c], 0
jne 0x4bdc80
mov eax, esi
call fcn.004c0a58
push eax
push 0x4bdae4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4bdc51
mov eax, dword [0x4d3250]
cmp byte [eax + 0xd3], 0
je 0x4bdc51
mov eax, dword [esi + 0xd8]
call fcn.0040819c
mov edi, eax
cmp edi, 0
jl 0x4bdc51
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bdc3a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bdc80
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043d7e0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bdc60
inc dword [esi + 0x9c]
jmp 0x4bdd3d
cmp dword [esi + 0x9c], 0
jle 0x4bdd3d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4bdd3d
cmp dword [esi + 0x44], 0
je 0x4bdce8
mov eax, dword [0x4d3250]
cmp byte [eax + 0xd3], 0
je 0x4bdce8
mov eax, dword [esi + 0xd8]
call fcn.0040819c
mov edi, eax
cmp edi, 0
jl 0x4bdce8
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bdcd1
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bdd17
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043d7e0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bdcf7
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b0f68]
call fcn.0040835c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4be980
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4be9eb
cmp byte [ebx + 0xd3], 0
jne 0x4be9eb
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a2c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4be9d8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4be9f8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c84
jmp 0x4be9f8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c84
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c01c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c022e
mov eax, esi
call fcn.0047fcf0
test al, al
je 0x4c022e
mov eax, dword [ebx + 0x84]
call fcn.0047f944
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c022e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c0222
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047f944
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004768c0
jmp 0x4c022e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004bfff8
pop esi
pop ebx
ret
Function at 0x4c2658
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee8
mov ebx, eax
mov dword [esp + 4], 0x114
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetVersionExW
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push ebx
call sub.user32.dll_IsIconic
test eax, eax
je 0x4c2694
push 9
push ebx
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
jne 0x4c26a5
or esi, 0xffffffff
jmp 0x4c2779
cmp edi, 2
jne 0x4c26af
cmp esi, 4
jg 0x4c26cc
dec edi
jne 0x4c275f
cmp esi, 4
jg 0x4c26cc
cmp esi, 4
jne 0x4c275f
test ebp, ebp
jle 0x4c275f
xor esi, esi
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4c2717
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
sete al
neg al
sbb esi, esi
test esi, esi
jne 0x4c276b
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetForegroundWindow
push 2
lea eax, [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x4c276b
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
sete al
neg al
sbb esi, esi
mov eax, esi
add esp, 0x118
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40573e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x595200
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x595200], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405779
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058b5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058d2
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4058d5
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405923
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405967
test edi, edi
jne 0x40592e
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405961

Function at 0x40596b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059dc
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059cb
cmp dword [ebp + 0x14], 1
je 0x4059cd
cmp dword [ebp + 0x14], 2
je 0x4059cd
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405b67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
push edi
shl esi, 3
mov edi, dword [esi + 0x409078]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x405bc9
push 0x208
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x405bd6
push dword [esi + 0x40907c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
leave
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x595248
push esi
call fcn.00405a84
push esi
call fcn.00405844
mov edi, eax
test edi, edi
jne 0x405c84
xor eax, eax
jmp 0x405cdc
push edi
call fcn.00405aa6
test byte [0x597c68], 0x80
je 0x405c9d
mov al, byte [edi]
test al, al
je 0x405c80
cmp al, 0x5c
je 0x405c80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405cbd
push esi
call fcn.00405b40
test eax, eax
je 0x405cb7
test byte [eax], 0x10
je 0x405ce1
push esi
call fcn.00405c3c
push esi
call ebx
cmp eax, edi
jg 0x405ca8
push esi
call fcn.00405c0f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405cdb
Function at 0x406621
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c3c8
cmp edx, dword [eax]
je 0x406643
add eax, 8
inc ecx
cmp eax, 0x40c458
jl 0x406634
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c3c8]
jne 0x406771
mov eax, dword [0x40cf18]
cmp eax, 1
je 0x40674b
test eax, eax
jne 0x406674
cmp dword [0x40c204], 1
je 0x40674b
cmp edx, 0xfc
je 0x406771
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4066ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a5cc
push edi
call fcn.00407a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a20
lea eax, [ebp - 0xa0]
push 0x40a5ac
push eax
call fcn.00402a20
push dword [esi + 0x40c3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407991
add esp, 0x2c
pop edi
jmp 0x406771
lea eax, [ebp + 8]
lea esi, [esi + 0x40c3cc]
push 0
push eax
push dword [esi]
call fcn.00402990
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 0xa14000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xa1400a
jmp 0xa1600f
jmp fcn.007d80b0
Function at 0x402290
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4022ca
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0x4022d1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0x4022b0
jmp 0x4022d3
mov eax, 0x1505
jmp 0x4022d3
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x402a20
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402bd6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, ecx
not eax
or eax, 0xffff
lea edi, [ecx + eax]
inc edi
shr ecx, 0x10
test esi, esi
je 0x402bcf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x402ab5
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov ebx, 0x15b0
je 0x402bcf
xor edx, edx
cmp ebx, 8
mov dword [esp], ebx
mov dword [esp + 8], esi
jb 0x402b32
and ebx, 0x1ff8
mov dword [esp + 4], ebx
xor edx, edx
nop
mov ebx, edx
add edx, 8
movzx eax, byte [ebp + ebx]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + ebx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + ebx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + ebx + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + ebx + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + ebx + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + ebx + 6]
add eax, esi
add ecx, eax
movzx edi, byte [ebp + ebx + 7]
add edi, eax
add ecx, edi
add ebx, 0xf
cmp ebx, dword [esp]
mov ebx, dword [esp]
jb 0x402ad0
add ebp, edx
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, edx
sub eax, ebx
jae 0x402a7d
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 3
mov dword [esp + 4], edx
je 0x402b80
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x402b60
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402a70
jmp 0x402b8f
mov eax, edx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402a70
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x402ba0
jmp 0x402a70
shl ecx, 0x10
add ecx, edi
jmp 0x402bdb
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402c53
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402c55
not eax
xor esi, esi
nop
nop
nop
nop
movzx edx, byte [ecx + esi]
mov ebx, eax
mov edi, edx
and edi, 0xf
mov ebp, edi
and ebp, eax
and eax, 0xf
add eax, edi
add ebp, ebp
sub eax, ebp
shr ebx, 4
xor ebx, dword [eax*4 + 0x43a80c]
mov eax, ebx
and ebx, 0xf
shr edx, 4
xor edx, ebx
shr eax, 4
xor eax, dword [edx*4 + 0x43a80c]
mov edx, dword [esp + 0x1c]
inc esi
cmp edx, esi
jne 0x402c10
not eax
jmp 0x402c55
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret