joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x479084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00405180
mov ebx, eax
cmp ebx, esi
je 0x404f72
cmp dword [esp + 0x10], esi
je 0x404f6e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404fe8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404f90
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404f10
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x404fff
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x404f7a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x404fcb
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00404ea2
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404fe6
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041134f
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x40500f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404fe8
Function at 0x407c9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x456531
call fcn.0044fd33
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x407cf6
call fcn.00406a88
mov esi, eax
jmp 0x407e00
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407d0f
call fcn.00406a88
jmp 0x407df2
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407d05
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407d4c
mov esi, 0x8007000e
jmp 0x407df4
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407d61
cmp eax, 0xffffffff
jbe 0x407d6b
push 0x80070216
call fcn.004057ac
cmp eax, 0x400
jbe 0x407d98
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406a65
jmp 0x407da4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407d42
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x407d05
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407b3e
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407e19
lea eax, [ebp - 0x418]
call fcn.00406f13
mov eax, esi
call fcn.0044fd8f
ret 0xc
Function at 0x40b420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b484
cmp dword [ebp + 0xc], 1
je 0x40b45c
cmp dword [ebp + 0xc], 2
je 0x40b45c
push 0xd
pop eax
jmp 0x40b484
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b47e
test eax, eax
je 0x40b479
test al, 1
jne 0x40b457
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b47e
jmp 0x40b457
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x411027
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47b100], 0
push esi
push edi
jne 0x410f9d
call fcn.00410f08
test eax, eax
je 0x410fe2
mov eax, dword [0x47b100]
cmp eax, 1
jne 0x410fbe
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x410fe2
jmp 0x411024
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x411024
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x410fe6
xor eax, eax
jmp 0x411024
mov eax, dword [esi]
push dword [0x47b100]
call edi
mov edi, eax
test edi, edi
je 0x411008
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x411024
lea edi, [esi + 0xff0]
push esi
push dword [0x47b100]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41100e
mov eax, esi
pop edi
pop esi
ret
jmp 0x410f89

Function at 0x41134f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479084]
jne 0x411359
repz ret
jmp fcn.004145e2
Function at 0x41ecdb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004176e8
and dword [ebp - 0x14], 0
cmp dword [0x47bf44], 0
mov dword [ebp - 0x18], eax
jne 0x41ed8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee36
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47bf44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47bf48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47bf4c], eax
call edi
push eax
call esi
mov dword [0x47bf54], eax
test eax, eax
je 0x41ed8e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47bf50], eax
mov eax, dword [0x47bf50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ede7
cmp dword [0x47bf54], ecx
je 0x41ede7
push eax
call esi
push dword [0x47bf54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ede7
test ebx, ebx
je 0x41ede7
call edi
test eax, eax
je 0x41edde
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41edde
test byte [ebp - 8], 1
jne 0x41ede7
or dword [ebp + 0x10], 0x200000
jmp 0x41ee1a
mov eax, dword [0x47bf48]
cmp eax, dword [ebp - 0x18]
je 0x41ee1a
push eax
call esi
test eax, eax
je 0x41ee1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ee1a
mov eax, dword [0x47bf4c]
cmp eax, dword [ebp - 0x18]
je 0x41ee1a
push eax
call esi
test eax, eax
je 0x41ee1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47bf44]
call esi
test eax, eax
je 0x41ee36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041134f
leave
ret
Function at 0x42122c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov ebx, eax
mov esi, edx
push edi
not esi
mov edx, 0xff
cmp ebx, 8
jb 0x4212f4
mov edi, ebx
shr edi, 3
movzx eax, byte [ecx]
xor eax, esi
and eax, edx
mov dword [ebp - 0xc], eax
mov eax, esi
mov esi, dword [ebp - 0xc]
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 1]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 2]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 3]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 4]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 5]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 6]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
movzx esi, byte [ecx + 7]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x459c90]
add ecx, 8
sub ebx, 8
dec edi
mov esi, eax
jne 0x42124e
fld qword [0x4739a0]
fstp qword [ebp - 8]
fld qword [0x473998]
fstp qword [ebp - 0x18]
fld qword [0x473990]
fstp qword [ebp - 0x10]
fld qword [0x473988]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x10]
fcomp qword [ebp - 8]
fnstsw ax
test ah, 5
jp 0x42139e
fld qword [ebp - 0x18]
fadd qword [0x473980]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x10]
fld qword [ebp - 0x10]
fucompp
fnstsw ax
test ah, 0x44
jp 0x42139e
fld qword [ebp - 0x20]
fld qword [ebp - 0x20]
fucompp
fnstsw ax
test ah, 0x44
jp 0x421388
fld qword [ebp - 0x10]
fld qword [ebp - 0x20]
fmul qword [0x473978]
fsubp st(1)
fstp qword [ebp - 8]
fld qword [ebp - 0x18]
fadd qword [0x473970]
fadd qword [ebp - 0x10]
fadd qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x473968]
fsubp st(1)
fld qword [ebp - 0x10]
fmul qword [0x473960]
fsubp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fcomp qword [ebp - 8]
fnstsw ax
test ah, 0x41
jp 0x42139e
fld qword [ebp - 0x20]
fsub qword [ebp - 0x10]
fstp qword [ebp - 8]
test ebx, ebx
je 0x4213b7
movzx eax, byte [ecx]
xor eax, esi
and eax, edx
shr esi, 8
xor esi, dword [eax*4 + 0x459c90]
inc ecx
dec ebx
jne 0x4213a2
mov dword [ebp - 0xc], 0x4f
mov dword [ebp - 0xc], 0x47
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp ecx, eax
jle 0x4213f3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp eax, ecx
je 0x4213f3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x29
lea eax, [eax + ecx - 0x12]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
pop edi
mov eax, esi
pop esi
not eax
pop ebx
leave
ret
Function at 0x42414a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 8]
sub esp, 0xc
test eax, eax
jne 0x4241c1
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42417b
and dword [ebp - 4], eax
mov dword [esi + 0x10], 7
mov dword [ebp - 0xc], 0x4f
mov dword [ebp - 0xc], 0x47
mov dword [ebp - 8], 0x15
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, eax
jle 0x42423b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42423b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x29
lea eax, [eax + ecx - 0x12]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x42423b
mov ecx, dword [esi + 0xc]
cmp ecx, eax
jbe 0x4241d5
and dword [ebp - 4], 0
mov dword [esi + 0x10], 7
jmp 0x42423b
mov dword [ebp - 0xc], 0x4f
mov dword [ebp - 0xc], 0x47
mov dword [ebp - 8], 0x15
sub eax, ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jle 0x424213
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp ecx, edx
je 0x424213
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
imul ecx, ecx, 0x29
lea ecx, [ecx + edx - 0x12]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp eax, dword [ebp + 0xc]
jb 0x42421b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
je 0x424235
push eax
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00412c10
add esp, 0xc
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x43a28f
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x43a29f
mov eax, dword [esi]
jmp 0x43a2a1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43a2b0
xor al, al
jmp 0x43a2da
test bl, 3
jne 0x43a2b9
mov al, 1
jmp 0x43a2da
cmp dword [esi + 0x14], 8
jb 0x43a2c1
mov esi, dword [esi]
push esi
call fcn.0043df2b
test eax, eax
je 0x43a2d0
and ebx, 2
jmp 0x43a2d3
and ebx, 1
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
ret
Function at 0x43b997
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x4551d3
call fcn.0044fcfd
mov ebx, ecx
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0x54], esi
cmp eax, 8
jb 0x43b9b4
mov ecx, dword [ebx]
test ecx, ecx
je 0x43b9c5
cmp eax, 8
jb 0x43b9c1
mov eax, dword [ebx]
jmp 0x43b9ca
mov eax, ebx
jmp 0x43b9ca
mov eax, dword [0x47a8d0]
push eax
lea eax, [ebp - 0x2c]
call fcn.00405659
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0xfde9
lea edx, [ebp - 0x48]
call fcn.0044abe1
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x43b9f8
mov eax, dword [eax]
push ecx
push eax
push dword [0x47a23c]
push dword [0x47a238]
push 0
call fcn.0043d066
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.004051ee
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x2c]
call fcn.00405532
mov eax, dword [0x47a8d8]
push eax
mov esi, eax
call fcn.00412bef
pop ecx
push esi
push 6
mov edi, eax
pop eax
mov ecx, ebx
call fcn.00405bbc
test eax, eax
jne 0x43ba50
xor al, al
jmp 0x43bb9d
cmp dword [ebx + 0x14], 8
jb 0x43ba58
mov ebx, dword [ebx]
call fcn.0043d8a6
xor edi, edi
push edi
push 0x80
push 2
pop esi
push esi
push edi
push edi
push 0x40000000
push ebx
call dword [eax + 0x4c]
mov ebx, eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 4], esi
cmp ebx, 0xffffffff
jne 0x43bb37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x47a230]
push dword [0x47a22c]
push 1
call fcn.0043d066
fld qword [0x473a38]
fstp qword [ebp - 0x68]
add esp, 0x10
fld qword [0x473a30]
fstp qword [ebp - 0x70]
fld qword [0x473a28]
fstp qword [ebp - 0x58]
fld qword [0x473988]
fstp qword [ebp - 0x80]
fld qword [0x473930]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x80]
fsub qword [ebp - 0x68]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x70]
fmul qword [0x473a20]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x58]
fadd qword [0x473a18]
fadd qword [ebp - 0x68]
fld qword [ebp - 0x68]
fdiv qword [0x473a60]
fsubp st(1)
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fadd qword [ebp - 0x58]
fsub qword [0x473a58]
fld qword [ebp - 0x58]
fmul qword [ebp - 0x58]
fsubp st(1)
fadd qword [0x473a10]
fld qword [ebp - 0x58]
fdiv qword [0x473a08]
fsubp st(1)
fstp qword [ebp - 0x58]
or dword [ebp - 4], ebx
call fcn.0043d8a6
push ebx
call dword [eax + 0x40]
jmp 0x43ba49
mov esi, dword [ebp - 0x54]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x5c], edi
cmp eax, edi
je 0x43bb7f
cmp dword [esi + 0x14], 0x10
jb 0x43bb4e
mov ecx, dword [esi]
jmp 0x43bb50
mov ecx, esi
push edi
lea edx, [ebp - 0x5c]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43bb7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x47a240]
push dword [0x47a22c]
push 1
call fcn.0043d066
add esp, 0x10
mov eax, dword [ebp - 0x5c]
cmp eax, dword [esi + 0x10]
sete byte [ebp - 0x49]
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x43bb9a
call fcn.0043d8a6
push ebx
call dword [eax + 0x40]
mov al, byte [ebp - 0x49]
call fcn.0044fd80
ret
Function at 0x43d70d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], 0x4f
mov dword [ebp - 8], 0x47
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, eax
jle 0x43d74e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp eax, ecx
je 0x43d74e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x29
lea eax, [eax + ecx - 0x12]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
leave
ret 4

Function at 0x4409f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x440a08
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x440a04
cmp dword [eax + ecx + 0x98], 0
je 0x440a04
mov dword [ebp - 4], 0x3f
add dword [ebp - 4], 0xfffffffa
mov edx, dword [ebp - 4]
push esi
mov esi, dword [ebp - 4]
imul edx, esi
mov esi, dword [ebp - 4]
imul esi, esi, 0xffffffac
sub esi, edx
mov edx, dword [ebp - 4]
push edi
mov edi, dword [ebp - 4]
imul edx, edi
mov edi, dword [ebp - 4]
imul edx, edi
imul edx, edx, 0x3d
add esi, edx
mov edx, dword [ebp - 4]
sub esi, edx
sub esi, 0xb9
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x55
mov edx, dword [ebp - 4]
push 0x52
pop esi
sub esi, edx
add esi, dword [ebp - 4]
pop edi
add esi, dword [ebp - 4]
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov dword [ebp - 4], edx
add dword [ebp - 4], 0x49
mov eax, dword [eax + ecx + 0x98]
add eax, ecx
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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 0xe8358e
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 0x41f0ef
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 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
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 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
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 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
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 0xe83595
ret