joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006f00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x1003120e
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x10040020]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
mov eax, dword [0x10040020]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
push 0x10041454
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10041568], 0
jne 0x10007105
push 0
call fcn.1001e814
push eax
call fcn.1001ef92
add esp, 8
call fcn.10008b10
call sym.distribution.dll_DllCanUnloadNow
call sym.distribution.dll_DllCanUnloadNow
call fcn.1001c900
cmp dword [0x10041430], 0
jne 0x10006f91
mov dword [0x10041430], 6
mov dword [0x10041434], 0x42
push 0
lea eax, [esp + 0x10]
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x10000001
mov dword [0x100414b4], 0xa1
mov dword [0x100414b8], 2
call fcn.10013a10
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x11b], 0
call fcn.1000b7f0
add esp, 4
mov dword [0x10041404], eax
push 0x104
lea eax, [esp + 0x18]
push eax
push 0x10000000
mov dword [0x10041448], 0x1003e738
mov dword [0x100413fc], 0x1003e080
mov dword [0x10041444], 0x1003efe0
mov dword [0x10041440], 0x7f
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call fcn.1001d920
add esp, 8
test eax, eax
je 0x1000705b
push 0x1003ec44
lea edx, [esp + 0x18]
push 0x103
push edx
mov byte [eax], 0
call fcn.1001efc1
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x127], 0
call fcn.1000b7f0
add esp, 0x10
mov dword [0x1004143c], eax
mov dword [0x10041424], 0x1003e8a8
mov dword [0x10041420], 4
mov dword [0x1004144c], 0x1003f1d0
mov dword [0x10041450], 0x1003e648
call fcn.1001a700
push 0
call fcn.1001e814
push 0x10
mov dword [0x10041428], eax
mov dword [0x1004142c], edx
call fcn.1001e869
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x124], 0
je 0x100070c0
mov ecx, eax
call fcn.10013f70
jmp 0x100070c2
xor eax, eax
mov dword [esp + 0x124], 0xffffffff
mov dword [0x1004146c], eax
call fcn.10006cd0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x10013f50
push 0
push 0
call esi
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x1001c3e0
push 0
push 0
call esi
call fcn.1001ef9f
and eax, 0x800000ff
jns 0x10007118
dec eax
or eax, 0xffffff00
inc eax
add eax, 4
push 0x10041454
mov dword [0x10041568], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.1001dd14
add esp, 0x120
ret
Function at 0x1000b2f0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
lea ebp, [esi + ecx]
jne 0x1000b30a
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, 0x55555556
imul ecx
push ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ebx*4 + 5]
push ecx
call fcn.1001d889
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x14], edx
mov ecx, edx
jne 0x1000b348
pop ebx
pop edi
pop esi
pop ebp
ret
mov ebx, ebp
sub ebx, esi
cmp ebx, 3
jl 0x1000b3f3
jmp 0x1000b360
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shr eax, 4
and edx, 3
shl edx, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 1], dl
movzx eax, byte [esi + 1]
movzx edx, byte [esi + 2]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 2], al
movzx edx, byte [esi + 2]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 3], al
add edi, 4
mov eax, 0x6bca1af3
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x4c
mov edx, edi
add esi, 3
sub ebx, 3
add ecx, 4
sub edx, eax
jne 0x1000b3e6
mov byte [ecx], 0xa
add ecx, 1
cmp ebx, 3
jge 0x1000b360
mov edx, dword [esp + 0x14]
mov eax, ebp
sub eax, esi
cmp eax, 2
jne 0x1000b451
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx eax, byte [esi]
movzx edi, byte [esi + 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
add ecx, 1
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
add ecx, 1
mov byte [ecx], al
pop ebx
add ecx, 1
pop edi
mov byte [ecx], 0x3d
add ecx, 1
pop esi
mov byte [ecx], 0
mov eax, edx
pop ebp
ret
cmp eax, 1
jne 0x1000b489
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
add ecx, 1
mov byte [ecx], al
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
pop ebx
pop edi
pop esi
mov byte [ecx], 0
mov eax, edx
pop ebp
ret
Function at 0x10018580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, dword [0x10041604]
push str.REGISTRY
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x100185a6
pop edi
xor al, al
pop ebx
pop ecx
ret
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100185bc
pop esi
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0xc]
push ecx
push pe_nt_image_headers32
push edi
push esi
call ebx
mov edx, dword [0x1003fea4]
push edx
push 0x1003fe10
push edi
push esi
call fcn.1001c610
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20
push edi
push esi
mov byte [edi + esi - 1], 0
call ebx
pop esi
pop edi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x1001a100
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x1001a1a8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1001a161
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x1001a18a
mov eax, dword [esi - 4]
push pe_nt_image_headers32
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.1001d8a0
jmp 0x1001a187
mov ecx, dword [esi - 4]
push pe_nt_image_headers32
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.1001f5b0
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1001a132
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x1001a2d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x1001a387
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x1001a325
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001a36d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x1003ff98]
je 0x1001a33f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x1001a35a
test al, 0x40
je 0x1001a351
mov ecx, dword [ebx + 0x20]
jmp 0x1001a358
test al, al
jns 0x1001a36d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1001a36d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x1001a2f2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1001a540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003a9e8
push 0x1001dff0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10040020]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x1001a6e1
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1001a6e1
push pe_nt_image_headers32
push 0x2000
mov eax, dword [ebx + 0x50]
push eax
mov ecx, dword [ebx + 0x34]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
mov edi, eax
test edi, edi
jne 0x1001a5c7
push pe_nt_image_headers32
push 0x2000
mov edx, dword [ebx + 0x50]
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x1001a6e1
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esi + 4], edi
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push pe_nt_image_headers32
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push pe_nt_image_headers32
push 0x1000
mov ecx, dword [ebx + 0x54]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebx + 0x54]
push edx
push ecx
push eax
call fcn.1001f5b0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x1c]
add eax, edx
mov dword [esi], eax
mov dword [eax + 0x34], edi
push esi
push ebx
push ecx
call fcn.1001a100
add esp, 0x18
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x1001a64d
push eax
mov eax, esi
call fcn.1001a390
add esp, 4
push esi
call fcn.1001a1b0
add esp, 4
test eax, eax
je 0x1001a68c
push esi
call fcn.1001a2d0
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1001a6b0
add eax, edi
je 0x1001a68c
mov dword [ebp - 4], 0
push 0
push 1
push edi
call eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
test eax, eax
jne 0x1001a6a9
push esi
call fcn.1001a4b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c660
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0x1003e178
push eax
lea ecx, [esp + 0xc]
push ecx
xor bl, bl
call fcn.1002046d
add esp, 0xc
test eax, eax
je 0x1001c684
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
push ecx
call fcn.1002031c
add esp, 0x10
cmp eax, 1
jne 0x1001c6a4
mov bl, al
mov edx, dword [esp + 4]
push edx
call fcn.10020186
add esp, 4
movzx eax, bl
pop ebx
pop ecx
ret

Function at 0x1001c800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push 0x1003eb78
push SysReAllocString
mov byte [esi], 0
call fcn.10013910
add esp, 0x14
test eax, eax
jne 0x1001c887
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
push 0x10041594
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push 1
push 0x10041594
push 1
push 0
push 0x10041594
push ecx
mov byte [esi + edi - 1], 0
call fcn.100138b0
mov edx, dword [esp + 0x14]
push edx
call fcn.100138e0
add esp, 4
pop edi
pop esi
add esp, 8
ret

Function at 0x1001c900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x10040020]
xor eax, esp
mov dword [esp + 0x410], eax
push 0x3ff
lea eax, [esp + 0x14]
push eax
push 0x10000000
mov dword [0x10041430], 0
mov dword [0x10041434], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001c9b6
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001c9b5
push 2
push 0
push 0xfffffffffffffff4
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
cmp eax, 0x2b67
je 0x1001c99a
cmp eax, 0x56ce
jne 0x1001c9ae
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [0x10041430], ecx
mov dword [0x10041434], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1001dd14
add esp, 0x414
ret
Function at 0x1001cb80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x40]
test edi, edi
je 0x1001cb93
mov dword [edi], 0
mov esi, dword [esp + 0x3c]
lea eax, [esp + 8]
push eax
push esi
call fcn.10020535
add esp, 8
test eax, eax
jne 0x1001cc41
cmp dword [esp + 0x1c], eax
je 0x1001cc41
push 0x1003ee5c
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.1002046d
add esp, 0xc
test eax, eax
jne 0x1001cc41
mov edx, dword [esp + 0x1c]
add edx, 1
push edx
call fcn.1001d889
mov esi, eax
add esp, 4
test esi, esi
je 0x1001cc41
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push eax
push 1
push ecx
push esi
call fcn.10020d0f
add esp, 0x10
cmp eax, 1
je 0x1001cc1e
push esi
call fcn.1001d91a
mov edx, dword [esp + 0x44]
add esp, 4
push edx
xor esi, esi
call fcn.10020186
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
test edi, edi
mov eax, dword [esp + 0x1c]
je 0x1001cc28
mov dword [edi], eax
mov byte [esi + eax], 0
mov edx, dword [esp + 0x40]
push edx
call fcn.10020186
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret

Function at 0x1001cff0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x100323fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10040020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x2c
call fcn.1001e869
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x18], edi
je 0x1001d04e
lea ecx, [esi + 0x10]
call fcn.1001c6c0
mov dword [esi + 0x1c], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
jmp 0x1001d050
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push edi
push esi
push 0x1001cf60
push edi
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x20], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1001d77f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10041668], 0
push esi
jne 0x1001d6f2
call fcn.1001d61d
test eax, eax
je 0x1001d735
mov eax, dword [0x10041668]
cmp eax, 1
jne 0x1001d713
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1001d735
pop esi
ret
push eax
call dword [0x10041670]
test eax, eax
jne 0x1001d77d
push pe_nt_image_headers32
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d739
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10041668]
call dword [0x10041670]
mov edi, eax
test edi, edi
je 0x1001d760
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d77c
lea edi, [esi + 0xff0]
push esi
push dword [0x10041668]
call dword [0x1004166c]
add esi, 0x10
cmp esi, edi
jb 0x1001d766
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d6df

Function at 0x1001dd14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10040020]
jne 0x1001dd1e
repz ret
jmp fcn.1002257c
Function at 0x1002ab5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10021f5b
xor ebx, ebx
cmp dword [0x10042058], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1002ac30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1002ab9b
xor eax, eax
jmp 0x1002acf4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1002ab94
push eax
call fcn.10021ef8
mov dword [esp], 0x10035294
push edi
mov dword [0x10042058], eax
call esi
push eax
call fcn.10021ef8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1004205c], eax
call esi
push eax
call fcn.10021ef8
mov dword [0x10042060], eax
lea eax, [ebp - 8]
push eax
call fcn.10023705
test eax, eax
pop ecx
pop ecx
je 0x1002abfe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001e190
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1002ac30
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10021ef8
cmp eax, ebx
pop ecx
mov dword [0x10042068], eax
je 0x1002ac30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10021ef8
pop ecx
mov dword [0x10042064], eax
mov eax, dword [0x10042064]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002aca9
cmp dword [0x10042068], esi
je 0x1002aca9
push eax
call fcn.10021f64
pop ecx
call eax
cmp eax, ebx
je 0x1002ac76
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10042068]
call fcn.10021f64
pop ecx
call eax
test eax, eax
je 0x1002ac76
test byte [ebp - 0x18], 1
jne 0x1002aca9
lea eax, [ebp - 0xc]
push eax
call fcn.1002373c
test eax, eax
pop ecx
je 0x1002ac91
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001e190
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002aca0
or dword [ebp + 0x10], 0x200000
jmp 0x1002acda
or dword [ebp + 0x10], 0x40000
jmp 0x1002acda
mov eax, dword [0x1004205c]
cmp eax, esi
je 0x1002acda
push eax
call fcn.10021f64
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002acda
mov eax, dword [0x10042060]
cmp eax, esi
je 0x1002acda
push dword [ebp - 4]
push eax
call fcn.10021f64
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10042058]
call fcn.10021f64
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x85d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0085d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85d06a
add dl, dl
jne 0x85d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85d0dc
xor eax, eax
add dl, dl
jne 0x85d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85d17d
add dl, dl
jne 0x85d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85d075
mov eax, 1
add dl, dl
jne 0x85d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85d0e1
sub eax, ebx
mov ebx, 1
jne 0x85d128
mov ecx, 1
add dl, dl
jne 0x85d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85d136
cmp eax, 0x7d00
jae 0x85d16d
cmp eax, 0x500
jb 0x85d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85d075
cmp eax, 0x7f
ja 0x85d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85d19e
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 0x85d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10