joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0140c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0140c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0140c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0140c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x140cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x141e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140cc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4029b0
Capabilities:
Create pipe
Create process on windows
Set environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.0040fa60
mov eax, dword [0x4588a4]
mov ecx, dword [0x458334]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x402ac5
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x4588a4], 0x959
jne 0x402aae
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1c08]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402780
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4029ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x59000]
push edi
or ebp, 0xffffffff
jmp 0x47f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f1b8
mov eax, 1
add ebx, ebx
jne 0x47f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47f1ec
jne 0x47f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f20b
dec eax
add ebx, ebx
jne 0x47f1f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47f1d0
add ebx, ebx
jne 0x47f207
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47f25d
xor ecx, ecx
sub eax, 3
jb 0x47f223
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47f292
sar eax, 1
mov ebp, eax
jmp 0x47f22e
add ebx, ebx
jne 0x47f22e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f1fc
inc ecx
add ebx, ebx
jne 0x47f23c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f1fc
add ebx, ebx
jne 0x47f249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47f23e
jne 0x47f25a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47f23e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47f27c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47f26e
jmp 0x47f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47f27c
add edi, ecx
jmp 0x47f1be
pop esi
mov edi, esi
mov ecx, 0x114d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47f29a
cmp byte [edi], 0x11
jne 0x47f29a
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 0x47f29f
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47f30e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x80ce4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x80d28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47f2cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x80d30]
or eax, eax
je 0x47f308
mov dword [ebx], eax
add ebx, 4
jmp 0x47f2e9
call dword [esi + 0x80d2c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47f33f
cmp al, 0xef
ja 0x47f332
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47f314
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47f321
mov ebp, dword [esi + 0x80d34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x47f373
sub esp, 0xffffff80
jmp 0x41f110
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x12d7554b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x245c327d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001c03
Capabilities:
Create thread

Disassembly:
jmp 0x1000aa20
sub esp, 0xc
mov eax, dword [0x10089034]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
sub eax, 0
je 0x1000aa96
sub eax, 1
jne 0x1000aa96
call fcn.100028fb
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
mov dword [esp + 8], eax
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x14], 0x1e240
push 0x18
push str.INJECTED___n_n____0x:X_n_n
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call dword [sym.imp.fmt.dll_void___cdecl_fmt::v11::vprint_class_fmt::v11::basic_string_view_char___class_fmt::v11::basic_format_args_class_fmt::v11::context__]
add esp, 0x18
push 0
push 0
push esi
push 0x10001195
push 0x500
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
xor ecx, esp
call fcn.100018ca
add esp, 0xc
ret 0xc
Function at 0x10001f7d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x10012640
jmp 0x10016180
sub esp, 0x20
lea eax, [esp]
push esi
mov esi, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_RtlPcToFileHeader]
test eax, eax
jne 0x100126a5
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1000119a
add esp, 8
xorps xmm0, xmm0
cmp byte [eax + 0xc], 0
je 0x10012689
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
shr al, 2
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
mov dword [esp + 0x10], 0
mov al, byte [esp + 0x10]
shr al, 2
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
push edi
mov edi, dword [esp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x10012704
lea eax, [esp + 0x18]
push esi
push eax
call fcn.1000119a
add esp, 8
xorps xmm0, xmm0
cmp byte [eax + 0xc], 0
je 0x100126e7
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
shr al, 2
pop edi
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
mov dword [esp + 0x14], 0
mov al, byte [esp + 0x14]
shr al, 2
pop edi
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x10012764
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.1000119a
add esp, 8
xorps xmm0, xmm0
cmp byte [eax + 0xc], 0
je 0x10012746
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
pop ebx
mov dword [esp + 0x14], eax
shr al, 2
pop edi
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
mov dword [esp + 0x18], 0
mov al, byte [esp + 0x18]
pop ebx
shr al, 2
pop edi
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
movzx ecx, word [ebx + 0x14]
xor edx, edx
add ecx, 0x18
push ebp
movzx ebp, word [ebx + 6]
add ecx, ebx
test ebp, ebp
je 0x10012795
mov ebx, dword [ecx + 0xc]
lea eax, [ebx + edi]
cmp esi, eax
jb 0x1001278d
mov eax, dword [ecx + 8]
add eax, ebx
add eax, edi
cmp esi, eax
jb 0x100127b9
inc edx
add ecx, 0x28
cmp edx, ebp
jl 0x10012778
lea eax, [esp + 0x20]
push esi
push eax
call fcn.1000119a
add esp, 8
xorps xmm0, xmm0
cmp byte [eax + 0xc], 0
je 0x100127c9
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
jmp 0x100127d1
mov eax, dword [ecx + 0x24]
pop ebp
pop ebx
shr eax, 0x1d
pop edi
and al, 1
pop esi
add esp, 0x20
ret
mov dword [esp + 0x1c], 0
mov al, byte [esp + 0x1c]
pop ebp
pop ebx
shr al, 2
pop edi
movq qword [esp + 8], xmm0
and al, 1
pop esi
add esp, 0x20
ret
jmp 0x10001f2d

Function at 0x1000285b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x10013820
mov edx, dword [esp + 8]
movzx eax, byte [edx]
xor eax, dword [esp + 4]
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret
Function at 0x1001a680
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
lea edx, [ebp + 0x20]
mov al, byte [esi + 0xc]
test al, 0x60
je 0x1001a6b4
movzx eax, al
shr eax, 5
and eax, 3
mov ecx, dword [eax*8 + 0x10023dc0]
or dword [edx], ecx
mov eax, dword [eax*8 + 0x10023dc4]
or dword [edx + 4], eax
mov al, byte [esi + 0xd]
test al, 3
je 0x1001a6d4
movzx ecx, al
and ecx, 3
mov eax, dword [ecx*8 + 0x10023de0]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x10023de4]
or dword [edx + 4], eax
mov al, byte [esi + 0xd]
test al, 0xc
je 0x1001a6f7
movzx ecx, al
shr ecx, 2
and ecx, 3
mov eax, dword [ecx*8 + 0x10023e00]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x10023e04]
or dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
jmp dword [eax*4 + 0x1001aa54]

Function at 0x40177f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017be
cmp dword [ecx + 0x74], 0xe
jbe 0x4017be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4121ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4121ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a018
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a0cc
jmp 0x40a0c1
cmp dword [esi + 0x10], 0x1000
jne 0x40a0ad
test byte [esi + 0x15], 1
jne 0x40a0ad
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40a06c
cmp eax, 2
je 0x40a06c
cmp eax, 0x10
je 0x40a06c
cmp eax, 0x20
jne 0x40a081
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40a081
mov bl, 1
xor ebp, ebp
jmp 0x40a092
mov eax, dword [esi]
add eax, ebp
call fcn.0040a010
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40a085
test bl, bl
je 0x40a0ad
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a0cc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a044
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xd68b9f
Capabilities:
Encode data using xor

Disassembly:
push 0xd68886
pop edi
and ecx, ecx
sub esp, 4
mov dword [esp], edx
mov ecx, dword [esp]
add esp, 4
call fcn.00d68be5
inc edx
xor dword [esi], edi
add edx, edx
add edx, 0x168f8eb2
add esi, 2
inc ecx
sub edx, 0x2e134a82
mov ecx, 0xf3019090
cmp esi, eax
jl fcn.00d68b9f
add edx, 0x6909e839
mov edx, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xe1cd98
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe1cda2
pushal
call 0xe1cda8
pop ebp
sub ebp, 0x10
sub ebp, 0xa1cd98
jmp 0xe1cdbe
mov eax, 0xa1cd98
add eax, ebp
add eax, 0x4c
mov ecx, 0x585
mov edx, 0x579f2e1b
xor byte [eax], dl
inc eax
dec ecx
jne 0xe1cdd5
jmp 0xe1cde8
nop
salc
nop
xchg edx, eax
daa
sbb ebx, dword [ebx]
sbb ebx, dword [edx + 0x1b1be3da]
sbb ebx, dword [eax]
salc
mov dword [0x1b1b1b1f], eax
mov eax, dword [0x1b1b1b33]
in al, dx
stc
sbb bl, dl
nop
lcall 0xde18, 0x1b1b1b17
dec ebx
dec ebx
jae 0xe1ce2d
mov bh, 4
sbb esi, dword [ebx - 0x72]
cmp bl, byte [ecx + 0x3f371a1b]
jae 0xe1ce6f
cmp al, 0xe7
mov dh, 0xf3
push ds
sbb ebx, dword [ebx]
sbb esi, edx
xor ebx, dword [ebx]
sbb ebx, dword [ebx]
dec esi
nop
not dword [eax + 0x1b1b139e]
sbb edx, dword [eax + 0x1b1b178e]
sbb edx, dword [eax + 0x1b1b0b96]
sbb ebx, edx
sbb dword [edx], ebp
sbb dword [eax + 0x14521fd9], ebx
sahf
out dx, eax
in al, 0xe4
in al, 0x46
fst dword [edi]
sbb edx, dword [eax + 0x1b1f3f97]
sbb ebx, dword [ebx]
nop
xchg esi, eax
or ebx, dword [ebx]
sbb ebx, dword [ebx]
invalid
jae 0xe1ce78
mov bh, 4
sbb esi, dword [ebx - 0x72]
cmp bl, byte [ecx + 0x3f371a1b]
dec edx
push ds
sbb ebx, dword [ebx]
sbb esi, edx
pop edx
sbb dword [ebx], ebx
sbb ecx, dword [esi - 0x6a]
ja 0xe1ceb6
sbb esp, esp
outsb dx, byte [esi]
in al, 0x6e
pop ss
in al, 0x6e
adc esi, ebx
imul ebx, dword [ebx], 0xa6901b1b
adc ebx, dword [ebx]
sbb ebx, dword [ebx]
sub dl, dl
lcall 0x9a59, 0x427f49e9
jmp 0x5a244de0
sbb ebx, dword [ebx]
jge 0xe1ce3b
pop es
and bl, byte [ebx - 0x60eb0c20]
add dword [ebx], ebx
sbb ebx, dword [ebx]
wait
loopne 0xe1ceab
adc al, 0x9f
or bl, byte [ebx]
sbb ebx, dword [ebx]
jge 0xe1ce5b
loopne 0xe1cea7
adc al, 0x9f
push cs
sbb ebx, dword [ebx]
sbb ebx, dword [edx - 0xe]
xlatb
in al, 0xe4
in al, 0x32
push edi
and bl, byte [edx]
cwde
ficomp dword [esi]
cwde
pop ds
repne cmpsb byte [esi], byte es:[edi]
in al, 0xe4
in al, 0x32
dec edi
and bl, byte [ecx]
cwde
ficomp dword [0x981ff198]
push ds
mov al, 0xe4
in al, 0xe4
inc esi
fst dword [edi]
sbb ecx, dword [esi - 0x70]
test dword [ebp + 0x4c], 0x176e904e
nop
adc sp, di
test eax, 0x9a1d919b
fstp qword [edx]
sbb ebx, dword [ebx]
sbb edx, dword [ebx + 0x1adc9a1c]
sbb ebx, dword [ebx]
sbb esp, dword [eax + 0x1b1b1b19]
sbb ecx, ecx
adc al, 0x9e
push ds
sbb ebx, dword [ebx]
sbb edx, dword [ecx - 0x36f6a2f3]
adc al, 0x98
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x618008], 0x8088405
inc edx
mov dword [ebx + 0x618008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5fb9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb9f9
ret