joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c80a
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
mov ebx, ecx
call fcn.0048631e
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x49c8b1
mov ax, word [edi + 0x10]
mov ebp, dword [esp + 0x18]
cmp bp, ax
jne 0x49c837
push 1
pop eax
jmp 0x49c891
movsx ecx, bp
imul ecx, ecx, 0x9c
cmp dword [ecx + ebx + 0x24], esi
je 0x49c8b1
cmp bp, si
jl 0x49c8b1
cmp bp, 3
jg 0x49c8b1
cmp ax, 5
jne 0x49c862
push edi
mov ecx, ebx
call fcn.004a0f1e
push 1
pop esi
cmp ax, 4
jne 0x49c898
cmp word [edi + 0x10], ax
jne 0x49c8b1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov word [edi + 0x10], 5
neg esi
push 0xffffffffffffffff
push 0
sbb esi, esi
mov ecx, ebx
push esi
push ebp
push edi
call fcn.0049d176
pop edi
pop esi
pop ebp
pop ebx
ret 8
test ax, ax
jl 0x49c8b1
cmp ax, 3
jg 0x49c8b1
push 1
push edi
mov ecx, ebx
call fcn.0049d383
test eax, eax
jne 0x49c87f
xor eax, eax
jmp 0x49c891
Function at 0x49f5b6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0x24
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jne 0x49f620
cmp dword [ebp - 0x8c], 1
jae 0x49f620
mov eax, esi
add esi, 0xfffffa4c
neg eax
sbb eax, eax
push 1
and eax, esi
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowRgn]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x49f724
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [ebp + 8], 0x202020
push esi
mov esi, ecx
jne 0x49f77e
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 0xa
pop edi
jb 0x49f77e
push 1
push 0x4c79b0
mov ecx, esi
call fcn.004a1444
test al, al
je 0x49f77e
mov al, 1
jmp 0x49f794
push dword [ebp + 8]
call fcn.004a14c8
pop ecx
push eax
push 0x4c79c8
mov ecx, esi
call fcn.004a15fc
pop esi
leave
ret 4
Function at 0x4a08c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x88]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4a092a
mov edi, dword [esp + 0x10]
lea ecx, [esi + 0x84]
test eax, eax
mov edx, eax
jl 0x4a08ef
cmp eax, dword [ecx + 4]
jl 0x4a08f1
xor edx, edx
mov ebx, dword [ecx]
cmp dword [ebx + edx*4], edi
je 0x4a0901
mov edx, eax
dec eax
test edx, edx
jne 0x4a08e4
jmp 0x4a092a
cmp dword [esp + 0x14], 0
je 0x4a0910
push eax
call fcn.0041781b
jmp 0x4a091a
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov word [edi + 0x10], 5
mov ecx, esi
call fcn.0049a374
test eax, eax
jne 0x4a095b
mov ecx, dword [esi + 0x90]
and dword [esi + 0x90], 0
lea eax, [esi + 0x90]
push 0
push dword [esi + 4]
mov dword [esi + 0x94], ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a096d
push 0
push 0
push 0x74e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a2f63
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
mov dword [ebp - 0xc], ecx
jne 0x4a2f7e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
push 0x4d687c
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4a3073
push 0x4d6878
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4a3073
push dword [ebp + 0xc]
push dword [0x4cfc84]
call dword [sym.imp.USER32.dll_FindWindowA]
xor edi, edi
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x4a3073
mov eax, dword [ebp + 0x10]
cmp ebx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
jne 0x4a2ff0
mov dword [ebp - 0x10], edi
jmp 0x4a3010
push ebx
call esi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004c5de0
mov eax, esp
push esi
push ebx
push eax
call fcn.00404eef
mov dword [ebp - 0x10], eax
mov eax, dword [0x4d6874]
cmp eax, 0xffffffff
jne 0x4a3036
push str.AllowSetForegroundWindow
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d6874], eax
cmp eax, edi
je 0x4a3050
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0x10]
call dword [0x4d6874]
lea eax, [ebp - 8]
push eax
push 0x1388
lea eax, [ebp - 0x18]
push edi
push eax
push edi
push 0x4a
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4a3073
mov dword [ebp - 4], edi
jmp 0x4a3081
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004a30c8
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4a3b3f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, ecx
push 0
push 0
push 0x418
push dword [edi + 4]
lea esi, [edi + 4]
call ebx
mov ecx, dword fs:[0x2c]
push dword [esi]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4e9e94]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
push dword [eax + 0x6c8]
call fcn.0042d735
mov dword [edi + 0x30], eax
xor eax, eax
cmp dword [edi + 0x38], eax
pop ecx
pop ecx
je 0x4a3c4d
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
cmp dword [ecx + 0x6e8], 0x64
je 0x4a3c4d
cmp dword [edi + 0xe0], eax
mov dword [ebp - 4], eax
jne 0x4a3be4
push eax
lea eax, [ebp - 0x68]
push eax
push 0x3c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], 0x190
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 4], eax
jmp 0x4a3bf5
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x31
push eax
call ebx
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, dword [ecx + 4]
push dword [ecx + 0x6e8]
push eax
call fcn.00470307
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xe0]
add esp, 0x14
test eax, eax
je 0x4a3c2c
cmp eax, dword [ebp - 8]
je 0x4a3c2c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push 0
push eax
push 0x30
mov dword [edi + 0xe0], eax
push dword [esi]
call ebx
cmp dword [ebp - 4], 0
je 0x4a3c4d
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0xc], 0
jne 0x4a3cc8
mov eax, edi
neg eax
sbb eax, eax
and eax, esi
push eax
call fcn.004a3cd1
test eax, eax
pop ecx
je 0x4a3c71
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
jmp 0x4a3cc8
mov ecx, edi
call fcn.004a3d61
cmp dword [edi + 0x2c], 0
je 0x4a3cc1
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0x418
push dword [esi]
call ebx
lea ecx, [ebp - 0x1c]
dec eax
push ecx
push eax
push 0x41d
push dword [esi]
call ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
je 0x4a3cc1
push 6
push eax
push dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.004a4832
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4ab09e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x1020], ebx
mov edi, dword [esi + 0x600]
je 0x4ab0e6
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4ab0e6
lea eax, [esi + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 0x227ec]
cmp edi, ecx
jne 0x4ab0e4
mov edi, dword [eax + 0x227f0]
jmp 0x4ab0e6
mov edi, ecx
cmp dword [edi + 0x88], ebx
je 0x4ab15e
mov ecx, dword [edi + 0x13d8]
call fcn.0044e3be
push 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
call fcn.004153d7
mov ebx, eax
mov eax, dword [0x4cfce8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
mov ecx, esi
mov dword [ebp - 0xc], ebx
call fcn.004ab545
lea ecx, [ebp - 4]
call fcn.004010b4
test ebx, ebx
je 0x4ab13e
mov eax, dword [0x4d8228]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp dword [ebp - 8], 0
je 0x4ab1c8
cmp dword [ebp - 0xc], 0
je 0x4ab1c8
mov eax, dword [0x4d8228]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x4ab1c8
mov ecx, edi
call fcn.0041f6e8
test eax, eax
jne 0x4ab187
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
push 0xffffffffffffffff
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
call fcn.0047a2e3
jmp 0x4ab1c8
cmp dword [esi + 0x22cec], ebx
je 0x4ab1c8
lea eax, [esi + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 0x227ec]
cmp edi, ecx
jne 0x4ab1ab
mov ecx, dword [eax + 0x227f0]
call fcn.0041f6e8
test eax, eax
jne 0x4ab1c8
push ebx
push 0x8051
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4ab45c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x1020], 0
jne 0x4ab475
xor eax, eax
jmp 0x4ab540
push edi
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4ab4a5
lea eax, [esi + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov edi, dword [eax + 0x227ec]
cmp dword [esi + 0x600], edi
jne 0x4ab4ab
mov edi, dword [eax + 0x227f0]
jmp 0x4ab4ab
mov edi, dword [esi + 0x600]
mov ecx, dword [edi + 0x13d8]
test ecx, ecx
je 0x4ab521
call fcn.0044e3be
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [0x4cfce8]
mov dword [ebp - 4], eax
lea eax, [esi + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 0x227ec]
cmp edi, ecx
jne 0x4ab4e7
mov eax, dword [eax + 0x227f0]
jmp 0x4ab4e9
mov eax, ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call fcn.004ab545
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004010b4
cmp dword [ebp - 8], 0
je 0x4ab51d
cmp dword [ebp - 0xc], 0
je 0x4ab51d
mov eax, dword [0x4d8228]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test esi, esi
jne 0x4ab53d
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
push 0x30
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
call fcn.0047a2e3
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x4ab873
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp word [ebp + 0xc], 0x81a1
push edi
mov edi, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 1
jne 0x4ab8d2
mov dword [ebp - 0x18], 0x374de290
mov word [ebp - 0x14], 0x123f
mov word [ebp - 0x12], 0x4565
mov byte [ebp - 0x10], 0x91
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x39
mov byte [ebp - 0xd], 0xc4
mov byte [ebp - 0xc], 0x92
mov byte [ebp - 0xb], 0x5e
mov byte [ebp - 0xa], 0x46
mov byte [ebp - 9], 0x7b
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.0041588c
jmp 0x4ab928
cmp word [ebp + 0xc], 0x8202
jne 0x4ab912
mov dword [ebp - 0x18], 0xbfb9d5e0
mov word [ebp - 0x14], 0xc6a9
mov word [ebp - 0x12], 0x404c
mov byte [ebp - 0x10], 0xb2
mov byte [ebp - 0xf], 0xb2
mov byte [ebp - 0xe], 0xae
mov byte [ebp - 0xd], 0x6d
mov byte [ebp - 0xc], 0xb6
mov byte [ebp - 0xb], 0xaf
mov byte [ebp - 0xa], 0x49
mov byte [ebp - 9], 0x68
lea eax, [ebp - 0x18]
jmp 0x4ab8c7
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp + 0xc]
push dword [eax*4 + 0x4b6a30]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 8], esi
je 0x4ab94a
push esi
push dword [ebp - 8]
push 0x8008
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0xc], eax
jne 0x4ab966
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
push 0x30
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
call fcn.0047a2e3
cmp dword [ebp - 4], esi
je 0x4ab97e
cmp dword [ebp - 8], esi
je 0x4ab97e
mov eax, dword [0x4d8228]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4adcf3
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x4add0d
cmp edi, 1
je 0x4add0d
cmp edi, 0xffffffff
je 0x4add46
xor al, al
jmp 0x4add6c
cmp edi, 0xffffffff
je 0x4add46
push ebx
push dword [esi + edi*4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x4add2d
push 5
push dword [esi + edi*4]
call ebx
xor eax, eax
push 0
test edi, edi
sete al
push dword [esi + eax*4]
call ebx
cmp dword [esi + 0x1c], edi
pop ebx
je 0x4add60
mov dword [esi + 0x1c], edi
jmp 0x4add60
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x4add60
xor ecx, ecx
push 5
test eax, eax
sete cl
push dword [esi + ecx*4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.0049a07e
mov al, 1
pop edi
pop esi
ret 4
Function at 0x4b12d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ecx, ecx
cmp dword [esi + 4], ecx
jne 0x4b12e9
push 6
jmp 0x4b1401
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x4b13ff
cmp dword [esi + 0xc], ecx
je 0x4b13a7
mov eax, dword [0x4cfc98]
mov edi, dword [edi]
cmp eax, ecx
sete bl
dec ebx
and ebx, 0x59
add ebx, 7
cmp eax, ecx
je 0x4b131f
mov eax, 0x7ff8
cmp edi, eax
jbe 0x4b131f
mov edi, eax
push dword [ebp + 8]
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040c820
push dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004010b4
mov eax, dword [ebp + 0x10]
and dword [eax], 0
test esi, esi
je 0x4b13ff
cmp byte [esi + edi - 1], bl
je 0x4b136a
mov byte [esi + edi], bl
inc esi
and byte [esi + edi], 0
and dword [ebp + 0xc], 0
mov eax, edi
test esi, esi
jbe 0x4b13ff
mov dword [ebp + 8], esi
xor edi, edi
cmp bl, byte [eax]
jne 0x4b1386
inc dword [ebp + 0xc]
mov edi, eax
push eax
call dword [sym.imp.USER32.dll_CharNextA]
test edi, edi
je 0x4b1394
and byte [edi], 0
dec dword [ebp + 8]
jne 0x4b137b
cmp dword [ebp + 0xc], 0
je 0x4b13ff
mov eax, dword [ebp + 0x10]
inc esi
mov dword [eax], esi
jmp 0x4b1406
mov ebx, dword [ebp + 0xc]
cmp ebx, ecx
je 0x4b13b7
cmp dword [edi], 2
jae 0x4b13b7
push 0x7a
jmp 0x4b1401
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b1408
cmp dword [ebp - 8], 7
jne 0x4b13ff
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x4b1404
cmp ecx, 1
jb 0x4b13ff
cmp byte [ecx + ebx - 1], 0
lea eax, [ecx + ebx]
jne 0x4b13ff
cmp ecx, 1
jbe 0x4b1404
cmp byte [eax - 2], 0
je 0x4b1404
push 0xd
pop eax
jmp 0x4b1408
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b180a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x4b181f
push 6
jmp 0x4b185d
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
jne 0x4b182a
push 0xd
jmp 0x4b185d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add ebx, eax
add edi, eax
cmp eax, 1
jne 0x4b182a
cmp edi, 2
jbe 0x4b1826
cmp dword [esi + 0xc], 0
je 0x4b18f6
mov eax, dword [0x4cfc98]
cmp edi, 0x7fff
jbe 0x4b1863
test eax, eax
je 0x4b1865
push 0x7a
pop eax
jmp 0x4b190a
test eax, eax
sete bl
dec ebx
push edi
and ebx, 0x59
add ebx, 7
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4b18a3
mov byte [edi + eax], bl
inc eax
add edi, eax
add dword [ebp + 0xc], eax
jmp 0x4b1881
push dword [ebp + 8]
and byte [edi], 0
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.0040c820
push dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push dword [ebp - 4]
push dword [esi + 0x10]
call ebx
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call ebx
push dword [ebp - 8]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 4]
call fcn.004010b4
mov eax, esi
neg eax
sbb eax, eax
and al, 0xf3
add eax, 0xd
jmp 0x4b190a
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4b5325
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x158]
test eax, eax
je 0x4b5349
push 0
push 0
push 0x202
mov edi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4b5363
mov eax, dword [esp + 0x14]
mov ecx, esi
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [esp + 0x18]
push eax
call fcn.004b57cd
mov edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4b5382
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4b537a
or edi, 0xffffffff
push edi
mov ecx, esi
call fcn.004b5389
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4b5e6c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebx + 0xe4]
mov eax, edi
dec edi
test eax, eax
je 0x4b5e9b
push edi
mov ecx, ebx
call fcn.004b5fa6
cmp eax, esi
je 0x4b5f46
mov eax, edi
dec edi
test eax, eax
jne 0x4b5e84
or dword [ebp + 8], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x4b5f5b
cmp dword [ebp + 0xc], 0
jne 0x4b5eb8
push 0
mov ecx, esi
call fcn.00437fff
push dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call edi
cmp dword [esi + 0xc8], 0
je 0x4b5f5b
mov esi, dword [esi + 0x90]
test esi, esi
jne 0x4b5ef9
mov eax, dword [ebx + 0x1e4]
test byte [eax + 1], 0x10
jne 0x4b5ef5
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b5e0b
mov esi, eax
test esi, esi
je 0x4b5f5b
mov eax, dword [esi + 0x9c]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4b5f24
lea ebx, [esi + eax*4 + 0xa0]
inc eax
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push dword [ebx]
call edi
dec dword [ebp + 8]
sub ebx, 4
cmp dword [ebp + 8], 0
ja 0x4b5f11
push dword [ebp + 0xc]
push dword [esi + 4]
call edi
cmp dword [ebp + 0xc], 0
je 0x4b5f5b
test byte [esi + 0x13c], 0x80
je 0x4b5f4e
push 2
mov ecx, esi
call fcn.0041f29f
jmp 0x4b5f5b
mov dword [ebp + 8], edi
jmp 0x4b5e9f
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4b60a7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004b5fa6
push dword [ebp + 8]
mov ecx, esi
mov edi, eax
call fcn.004b5e0b
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
jne 0x4b60fe
cmp dword [edi + 0x88], 0
je 0x4b60fe
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
push 0x2d26
push 0x24
mov eax, dword [ecx + eax*4]
push dword [eax + 4]
call fcn.0047a0bd
add esp, 0xc
cmp eax, 7
je 0x4b610d
push dword [ebp + 8]
lea ecx, [esi + 0x5c]
call fcn.0047cfb8
test eax, eax
jne 0x4b6111
xor eax, eax
jmp 0x4b617a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
test eax, eax
je 0x4b613b
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call dword [edx + 8]
push eax
lea ecx, [esi + 0x1e8]
call fcn.00402dbe
lea ecx, [ebp + 8]
call fcn.004010b4
cmp dword [esi + 0xe4], 1
jne 0x4b6162
mov eax, dword [esi + 0x1e0]
test byte [eax + 2], 1
jne 0x4b6162
push 0
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.004b64e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b616e
push dword [eax + 4]
jmp 0x4b6171
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x4c3ec4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
and dword [esi + 0x1c], 0
lea ebx, [esi + 0x14]
cmp dword [eax - 8], 0
jne 0x4c3ee8
xor eax, eax
jmp 0x4c4049
push edi
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0046bd82
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ecx
pop ecx
push 1
call edi
push dword [ebx]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 8]
mov dword [esi + 0x1c], eax
call edi
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x4c403e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPackerCaps
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x44], eax
je 0x4c3f3f
call eax
test ah, 1
jne 0x4c3fca
push str.OpenArchive
push dword [esi + 0x1c]
call edi
push str.OpenArchiveW
mov dword [esi + 0x24], eax
push dword [esi + 0x1c]
call edi
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x4c3f62
cmp dword [esi + 0x24], ebx
je 0x4c3fca
push str.CloseArchive
push dword [esi + 0x1c]
call edi
push str.ReadHeader
mov dword [esi + 0x2c], eax
push dword [esi + 0x1c]
call edi
push str.ReadHeaderEx
mov dword [esi + 0x30], eax
push dword [esi + 0x1c]
call edi
push str.ReadHeaderExW
mov dword [esi + 0x34], eax
push dword [esi + 0x1c]
call edi
push str.ProcessFile
mov dword [esi + 0x38], eax
push dword [esi + 0x1c]
call edi
push str.ProcessFileW
mov dword [esi + 0x3c], eax
push dword [esi + 0x1c]
call edi
push str.CanYouHandleThisFileW
mov dword [esi + 0x40], eax
push dword [esi + 0x1c]
call edi
push str.CanYouHandleThisFile
mov dword [esi + 0x4c], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x48], eax
cmp dword [esi + 0x2c], ebx
je 0x4c4032
cmp dword [esi + 0x30], ebx
jne 0x4c3fd9
cmp dword [esi + 0x38], ebx
je 0x4c4032
cmp dword [esi + 0x3c], ebx
jne 0x4c3fe3
cmp dword [esi + 0x40], ebx
je 0x4c4032
push str.PackSetDefaultParams
push dword [esi + 0x1c]
call edi
mov edi, eax
cmp edi, ebx
je 0x4c402d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x118], 0x110
mov dword [ebp - 0x110], 2
mov dword [ebp - 0x114], 0xa
push dword [eax + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push eax
call edi
push 1
pop ebx
jmp 0x4c403e
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x1c], ebx
lea ecx, [ebp - 4]
call fcn.004010b4
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret