joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40127a
Capabilities:
Enumerate gui resources
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4bb9bc]
mov ecx, dword [0x4ad788]
sub esp, 0xc0c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x401307
mov edi, ecx
mov ebx, eax
cmp dword [0x4bb9bc], 0xae9
jne 0x4012fb
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
lea eax, [ebp - 0xc08]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push esi
push str.jojimoheviwevozal
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push edi
call fcn.00401074
add edi, 8
dec ebx
jne 0x40129e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b0
Capabilities:
Accept command line arguments
Parse credit card information

Disassembly:
mov eax, 0x4314be
call fcn.00431410
sub esp, 0x24
push esi
push edi
xor edi, edi
cmp dword [0x4bb9bc], 0x20a
jne 0x40142f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
push 6
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.004015da
push edi
mov dword [ebp - 4], edi
call fcn.004021eb
pop ecx
push edi
push edi
call fcn.00402669
push edi
call fcn.004025fb
add esp, 0xc
push edi
push edi
push edi
call fcn.0040290e
pop ecx
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004022c0
fstp st(0)
or dword [ebp - 4], 0xffffffff
add esp, 8
push edi
push 1
call fcn.00401596
call fcn.0040139c
push 0x439d50
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.LocalAlloc
push eax
mov dword [0x4b0984], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad78c], eax
call fcn.00401347
call fcn.0040135b
xor esi, esi
cmp esi, 0x50a28
jge 0x401487
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x1ee9e75e
jg 0x4014a1
inc esi
mov eax, esi
cdq
cmp edx, 0x3f
jl 0x401461
jg 0x4014a1
cmp eax, 0x39c4b211
jb 0x401461
mov eax, dword [0x438eec]
mov dword [0x4bb9c0], eax
call fcn.0040130c
xor esi, esi
cmp dword [0x4bb9bc], edi
jbe 0x4014dd
cmp dword [0x4bb9bc], 0x44
jne 0x4014d4
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
inc esi
cmp esi, dword [0x4bb9bc]
jb 0x4014ba
xor esi, esi
mov eax, dword [0x4bb9bc]
add eax, esi
cmp eax, 0x5e
jne 0x4014f8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
inc esi
cmp esi, 0x40c893
jl 0x4014df
call fcn.0040127a
cmp edi, 0x5604
jne 0x401518
add dword [0x4ad788], 0
inc edi
cmp edi, 0x89b2159a
jb 0x401506
push 0x7b
pop esi
cmp dword [0x4bb9bc], 0x89
jne 0x401536
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
dec esi
jne 0x401524
call dword [0x4ad788]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4030dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43770c]
jne 0x4030e7
repz ret
jmp fcn.0040770c
Function at 0x407fce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004063ad
and dword [ebp - 4], 0
cmp dword [0x439bf0], 0
mov ebx, eax
jne 0x40807f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408130
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408130
push eax
call fcn.0040633b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439bf0], eax
call esi
push eax
call fcn.0040633b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439bf4], eax
call esi
push eax
call fcn.0040633b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439bf8], eax
call esi
push eax
call fcn.0040633b
pop ecx
mov dword [0x439c00], eax
test eax, eax
je 0x40807f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040633b
pop ecx
mov dword [0x439bfc], eax
mov eax, dword [0x439bfc]
cmp eax, ebx
je 0x4080d7
cmp dword [0x439c00], ebx
je 0x4080d7
push eax
call fcn.004063b6
push dword [0x439c00]
mov esi, eax
call fcn.004063b6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4080d7
test edi, edi
je 0x4080d7
call esi
test eax, eax
je 0x4080ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4080ce
test byte [ebp - 0xc], 1
jne 0x4080d7
or dword [ebp + 0x10], 0x200000
jmp 0x408110
mov eax, dword [0x439bf4]
cmp eax, ebx
je 0x408110
push eax
call fcn.004063b6
pop ecx
test eax, eax
je 0x408110
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408110
mov eax, dword [0x439bf8]
cmp eax, ebx
je 0x408110
push eax
call fcn.004063b6
pop ecx
test eax, eax
je 0x408110
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439bf0]
call fcn.004063b6
pop ecx
test eax, eax
je 0x408130
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408132
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102071b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [0x1022d484], 0x1baf
mov dword [ebp - 0x10], eax
call fcn.1020705f
xor ecx, ecx
mov edx, eax
mov dword [0x1022d484], 0x1202
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov ebx, dword [0x1022d488]
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, 0xffffe1a3
mov dword [0x1022d488], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + esi], 0x4550
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
je 0x1020726e
jmp 0x1020722a
mov al, byte [ebp - 0x25]
test al, 1
jne 0x1020735a
jmp 0x1020730f
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [0x1022d488], 0x219f
mov eax, dword [eax + 0x78]
mov dword [0x1022d484], 0xe0a
mov edx, dword [ebp - 0x20]
add edx, dword [edx + eax + 0x20]
mov esi, dword [ebp - 0x20]
mov edi, dword [esi + eax + 0x18]
cmp edi, 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
je 0x1020737d
jmp 0x10207285
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, 0xffffce46
mov dword [0x1022d484], ecx
mov dword [ebp - 0x24], eax
jmp 0x1020722a
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jmp 0x102072c6
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x25]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x102072e0
jmp 0x1020721a
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x34]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x58]
add ecx, edx
mov esi, dword [ebp - 0x20]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x25], cl
je 0x1020721a
jmp 0x10207299
mov dword [0x1022d484], 0x2122
mov eax, dword [ebp - 0x50]
add eax, 2
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
setb bl
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x61], bl
xor eax, eax
mov cl, byte [ebp - 0x61]
test cl, 1
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
jne 0x102072c6
jmp 0x1020737d
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x20]
add edi, dword [edx + ecx*4]
mov dword [0x1022d484], 0x12b1
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102075c3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1022d490], 0
mov byte [0x1022d494], 0
mov dword [0x1022d484], 0xb4
mov dword [0x1022d48c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x102076d5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1022d498], 0
mov edx, dword [0x1022d490]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1022d498], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1022d490], edx
mov dword [0x1022d488], 0x1128
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1022d494], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1022d494]
mov edx, dword [0x1022d490]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1022d488], 0x1c9
mov edx, dword [0x1022d48c]
add edx, 1
mov dword [0x1022d48c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10207615
jmp 0x1020760d
xor eax, eax
mov dword [0x1022d48c], 0
mov dword [ebp - 0x20], eax
jmp 0x10207615
mov eax, dword [ebp - 0x1c]
mov dword [0x1022d484], 0x14fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1022d48c]
add eax, 1
mov dword [0x1022d48c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102076d5
jmp 0x102076c1
Function at 0x10207707
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1022d48c], 0
mov dword [0x1022d490], 0
mov dword [0x1022d49c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10207858
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1022d484], 0x25d2
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1022d48c], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1022d490], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1022d494], cl
mov dword [0x1022d484], 0x1914
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1022d484], 0x1987
mov dword [0x1022d488], 0x18d0
mov cl, byte [0x1022d494]
mov edx, dword [0x1022d490]
mov byte [edi + edx], cl
mov edx, dword [0x1022d48c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1022d490]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1022d49c], ebx
mov dword [0x1022d484], 0x1f44
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x10207858
mov eax, dword [0x1022d48c]
mov ecx, dword [0x1022d490]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x10207760
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x102078d3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.102078d3]
mov ecx, dword [0x1022d488]
add ecx, 0x1573
mov dword [0x1022d488], ecx
mov ecx, dword [0x1022d484]
add ecx, 0x7e9
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x10207935
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10207935
mov eax, dword [ebp - 0x10]
mov dword [0x1022d484], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, 0x27b1
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10207903
Function at 0x10207951
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x1022d488], 0x2139
mov dword [0x1022d484], 0xad4
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x1020a4e8]
mov dl, byte [eax + str.qB_F_t_]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x1020798a
mov dword [0x1022d484], 0x1396
call fcn.10208019
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.10206bb6
mov dword [0x1022d484], 0xb56
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10207aa0
mov eax, dword [ebp - 0x38]
mov dword [0x1022d484], 0x22a
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1022d488], 0xc23
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10207e07
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [0x1022d484], 0x2dce
mov dword [ecx + 0x3c], 0xc0
mov edx, dword [0x1022d488]
add edx, 0x39b
mov dword [0x1022d488], edx
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x1c], ecx
add ecx, 0x1e08
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10207a97
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10207ee2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [0x1022d484]
add eax, 0xfffff426
mov dword [0x1022d484], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1022d488], 0xb46
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10207f57
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10207fc2
jmp 0x1020800a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10207fe4
jmp 0x1020800a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10207f84
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x10207f57
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x1022d484]
mov edx, ecx
add edx, 0xfffffe97
mov dword [0x1022d488], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
jne 0x1020800a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10207f27
jmp 0x1020800a
mov eax, dword [ebp - 0x20]
add eax, 0x25fa
mov dword [0x1022d484], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10207f3f
jmp 0x1020800a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1020800a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x10208011
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x10208011
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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 0xaaa89e
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 0x41f3ff
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 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
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 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
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 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
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 0xaaa8a5
ret
Function at 0x4205fc
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xaabc17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0xac95f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0xac95f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0xac83fc]
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 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xaabc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret