joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4223da
Capabilities:
Delete file
Move file

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x30], 0
je 0x42244a
cmp dword [edi + 0x14], 0
je 0x42244a
push esi
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x4223f7
mov eax, dword [esi]
jmp 0x4223f9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x42240a
mov ecx, dword [esi]
jmp 0x42240c
mov ecx, esi
add edi, 0x20
cmp dword [edi + 0x14], 8
jb 0x422419
mov eax, dword [edi]
jmp 0x42241b
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esi + 0x14], 8
jb 0x42242b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x422433
mov edi, dword [edi]
push eax
push esi
push edi
mov ecx, str.cpz21zRh8ND2b7YXNqB2UOdu_8Tl8v8Ctno_h_Ui9xV2b7vdg
call fcn.00420467
push eax
call fcn.0041f822
add esp, 0x10
pop esi
pop edi
ret

Function at 0x423117
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x30], 0
and dword [eax + 0x34], 0
push 0x46ed38
lea ecx, [eax + 0x14]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
call fcn.004027f6
ret
Function at 0x424f36
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x45e095
call fcn.0043587d
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x424f56
xor eax, eax
call fcn.00435900
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
xor esi, esi
cmp ecx, esi
je 0x424f7e
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x424f7e
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x424f4e
cmp dword [edi + 0x54], esi
jne 0x424f88
or eax, 0xffffffff
jmp 0x424f4e
mov eax, edi
call fcn.00425c3d
cmp dword [edi + 0x44], esi
jne 0x424fa5
push dword [edi + 0x54]
mov al, bl
call fcn.00422dd1
pop ecx
test al, al
je 0x424f83
jmp 0x424f7a
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.004255ed
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x425048
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x425065
cmp eax, 1
jg 0x425050
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x424ffb
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x425021
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42500e
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00430a92
add esp, 0x10
cmp esi, eax
jne 0x425065
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x42507b
test esi, esi
jne 0x424fb3
cmp dword [ebp - 0x1c], 0x20
jae 0x425065
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.004160aa
jmp 0x424fb3
mov edx, dword [ebp - 0x2c]
jmp 0x424fc5
cmp eax, 3
jne 0x425065
push dword [edi + 0x54]
mov al, byte [ebp - 0x2d]
call fcn.00422dd1
pop ecx
test al, al
jne 0x42507b
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004026a5
mov eax, esi
jmp 0x424f4e
mov esi, dword [ebp + 8]
jmp 0x425068
Function at 0x425b3a
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x45e02b
call fcn.0043587d
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x425c1b
cmp byte [edi + 0x49], bl
je 0x425c1b
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x425b6f
xor al, al
jmp 0x425c1d
lea eax, [ebp - 0x2c]
call fcn.004255ed
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x425bbd
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x425bc2
dec eax
je 0x425bc6
dec eax
dec eax
je 0x425c17
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004026a5
mov al, bl
jmp 0x425c1d
mov edx, dword [ebp - 0x2c]
jmp 0x425b88
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x425bd2
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x425bf8
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x425be5
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00430a92
add esp, 0x10
cmp esi, eax
jne 0x425bab
cmp byte [edi + 0x49], 0
je 0x425c17
test esi, esi
jne 0x425b7a
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.004160aa
jmp 0x425b7a
mov bl, 1
jmp 0x425bad
mov al, 1
call fcn.00435900
ret

Function at 0x428061
Capabilities:
Check os version

Disassembly:
push 0x13c
mov eax, 0x45e8db
call fcn.0043587d
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
mov esi, 0x11c
push esi
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x148]
push eax
call fcn.00434cd0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x144], 6
jb 0x4280d3
cmp dword [ebp - 0x140], 1
jb 0x4280d3
lea eax, [ebp - 0x2c]
push eax
push str.Progid
xor ecx, ecx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
inc ecx
jmp 0x42810e
push 0x3dba
push 0x396a
mov ecx, str.dbbd3yv2vOp6uvfiGdma3Hqq7oOw6PKSIzS5QjSnMFDjQ
call fcn.004204c2
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov esi, 0x46c3f8
xor ecx, ecx
push esi
push edi
inc ecx
call fcn.00428f78
add esp, 0x14
test al, al
jne 0x428116
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
mov ecx, 0x102
call fcn.00428f78
add esp, 0xc
push 0x1991
push 0x567f
mov ecx, str.RIv0_A_SnA
call fcn.004204c2
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428739
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00402342
call fcn.00435900
ret
Function at 0x428cd1
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 0x428d35
cmp dword [ebp + 0xc], 1
je 0x428d0d
cmp dword [ebp + 0xc], 2
je 0x428d0d
push 0xd
pop eax
jmp 0x428d35
mov eax, dword [ebp - 4]
test edi, edi
je 0x428d2f
test eax, eax
je 0x428d2a
test al, 1
jne 0x428d08
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x428d2f
jmp 0x428d08
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x429356
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x10
mov eax, 0x45e413
call fcn.00435814
mov eax, dword [ebp + 0x228]
xor ebx, ebx
push eax
lea esi, [ebp]
mov edi, ecx
mov byte [ebp - 0xd], bl
call fcn.004022ed
mov dword [ebp - 4], ebx
call fcn.00428eac
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x4293a3
mov eax, esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
jne 0x4293e5
push 1
xor edi, edi
lea esi, [ebp]
call fcn.00402342
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.0042fd59
add ebp, 0x220
leave
ret
push esi
call fcn.0042e9e4
cmp dword [ebp + 0x14], 8
mov ebx, eax
mov eax, dword [ebp]
pop ecx
jae 0x4293fa
lea eax, [ebp]
push ebx
push esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x429458
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x46df38
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x429458
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp + 0x1c]
push str._d._d._d._d
push eax
call fcn.0040b275
add esp, 0x18
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.004022c5
mov byte [ebp - 0xd], 1
push ebx
call fcn.0042fd4e
mov bl, byte [ebp - 0xd]
pop ecx
jmp 0x4293b4

Function at 0x429524
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push eax
push esi
mov dword [ebp - 0x210], ecx
call fcn.004022c5
call fcn.00428eac
cmp dword [esi + 0x14], 8
jb 0x429559
mov eax, dword [esi]
jmp 0x42955b
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004022c5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fd59
leave
ret
Function at 0x42af20
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x45e3e3
call fcn.00435814
and dword [ebp - 0x10], 0
lea eax, [ebp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x470c58
lea esi, [ebp]
call fcn.004022ed
and dword [ebp - 4], 0
push 0x470c60
mov eax, esi
push eax
call fcn.00408d24
push 0x470c68
mov eax, esi
push eax
call fcn.00408d24
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42af8d
mov eax, esi
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42af8f
lea edi, [ebp + 0x1c]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x42afa2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
mov esi, ebx
call fcn.004022ed
push 1
xor edi, edi
lea esi, [ebp]
call fcn.00402342
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0042fd59
add ebp, 0x228
leave
ret
Function at 0x42dabc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47e338], 0
push esi
push edi
jne 0x42da32
call fcn.0042d99e
test eax, eax
je 0x42da77
mov eax, dword [0x47e338]
cmp eax, 1
jne 0x42da53
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42da77
jmp 0x42dab9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42dab9
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 0x42da7b
xor eax, eax
jmp 0x42dab9
mov eax, dword [esi]
push dword [0x47e338]
call edi
mov edi, eax
test edi, edi
je 0x42da9d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42dab9
lea edi, [esi + 0xff0]
push esi
push dword [0x47e338]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42daa3
mov eax, esi
pop edi
pop esi
ret
jmp 0x42da1e

Function at 0x42fd59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b570]
jne 0x42fd63
repz ret
jmp fcn.004389c5
Function at 0x451298
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47b570]
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.0043b31d
and dword [ebp - 0x14], 0
cmp dword [0x47f44c], 0
mov dword [ebp - 0x18], eax
jne 0x45134b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4513f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x469684
push ebx
call edi
test eax, eax
je 0x4513f3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47f44c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47f450], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47f454], eax
call edi
push eax
call esi
mov dword [0x47f45c], eax
test eax, eax
je 0x45134b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47f458], eax
mov eax, dword [0x47f458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4513a4
cmp dword [0x47f45c], ecx
je 0x4513a4
push eax
call esi
push dword [0x47f45c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4513a4
test ebx, ebx
je 0x4513a4
call edi
test eax, eax
je 0x45139b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45139b
test byte [ebp - 8], 1
jne 0x4513a4
or dword [ebp + 0x10], 0x200000
jmp 0x4513d7
mov eax, dword [0x47f450]
cmp eax, dword [ebp - 0x18]
je 0x4513d7
push eax
call esi
test eax, eax
je 0x4513d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4513d7
mov eax, dword [0x47f454]
cmp eax, dword [ebp - 0x18]
je 0x4513d7
push eax
call esi
test eax, eax
je 0x4513d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47f44c]
call esi
test eax, eax
je 0x4513f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4513f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fd59
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
push 0x40d274
add al, 0xff
adc eax, sym.imp.MSVCRT.dll_fprintf
mov eax, dword [0x24a402ac]
add esp, 0xc
test eax, eax
je 0x401787
mov word [eax - 0x33], gs
jle 0x4017bd
add bh, bh
rol dword fs:[eax], 0x5d
les ecx, [eax]
push 1
call dword [sym.imp.MSVCRT.dll_exit]
xor dword [ebp - 0x75], edx
in al, dx
sub esp, 0xb3000b
test eax, 0x604378
test eax, eax
mov eax, dword [0x8040b9]
je 0x4017db
push 0xa84112f3
int3
add byte [eax], bl
inc ecx
add byte [edx + 0x50], dl
call 0x7758a0
push edx
mov eax, dword [eax]
hlt
mov esi, dword [sym.imp.MSVCRT.dll_printf]
mov word [0x1b0b86], cx
test eax, eax
push edi
jne 0x40184a
js 0x401804
add byte [eax], bl
rol dword [eax], 1
push edx
push 0xc140d498
call esi
mov eax, dword [0x410278]
add esp, 8
push ebp
retf 0x6ed5
mov ebx, dword [esi]
sbb ch, dh
inc eax
add byte [eax + 0x35], al
pop eax
rol dword [eax], 0x58
push ebp
pop es
add byte [eax], al
push edx
dec dword [edi - 0x5d]
ror byte [ebx], 0x41
add byte [ecx + 0x40d02c], ah
push 0x20
push eax
call esi
mov ecx, dword [0x41404c]
dec ecx
adc eax, 0x405b18
or eax, esp
jmp 0xd883e123

Function at 0x4056f0
Capabilities:
Encode data using xor

Disassembly:
add ebx, dword [edi + 0x5e]
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp - 0x4d]
mov eax, dword [esi]
test eax, eax
je 0x405711
or byte es:[ecx - 0xd9b74f2], cl
push edx
call dword [eax + 8]
mov eax, dword [esi]
add esp, 4
test ebp, ebx
mov dl, 0xec
pop esi
pop ebp
inc esi
nop
nop
sahf
cmp byte [eax + 0x6909073], dl
nop
jae 0x4056ab
nop
push es
nop
nop
nop
xor esi, dword [edi - 0x3d]
nop
nop
sti
nop
pushfd
nop
nop
ja 0x405718
jg 0x405719
nop
push eax
push ebp
cwde
in al, dx
xor eax, 0x8b06084a
pop ebp
or byte [edi - 6], dl
hlt

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

Disassembly:
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x406dad
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x406da4
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
push edi
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je fcn.00406e12
add eax, edx
push eax
mov ebx, dword [eax + 0x20]
add ebx, edx
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x406e11
dec ecx
mov esi, dword [ebx + ecx*4]
xor edi, edi
add esi, edx
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
jne 0x406ddd
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x406dd1
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x406d9b
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
into
push ebp
mov ebp, esp
sub esp, 0x1a
cmp dword [ebp + 0x10], 0x4f
jl 0x407f03
mov dword [ebp + 0x10], 0x4e
fnsave dword [ebp + 8]
fcomp qword [0xd140c230]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor esi, esi
push edi
fnstsw ax
mov dword [ebp - 4], esi
xor dl, al
inc eax
ror dword [ebx - 0x74ace7b3], 1
pop ebp
and byte [esi + 0x33], dl
not byte [edi - 0x21]
loopne 0x407ea3
jne 0x407f18
mov dword [ecx], esi
aaa
les eax, [0x8f7afbea]
ffree st(3)
or cl, bl
loopne 0x407f08
add al, 8
mov dword [ecx], 0xc7a001
mov edx, esi
out dx, al
mov edx, dword [ebx - 0x13ba72f8]
push eax
push ecx
push edx
push ebx
or al, 0xc1
inc eax
fcmovnu st(0), st(5)
pop ebp
or byte [edx], dh
inc ebp
in al, dx
fcomp qword [0x40c230]
adc dword [esp + ecx], 0xffffffe2
loopne 0x407f4d
xor dl, al
inc eax
add byte [ebx - 0x1f1df3ec], al
div byte [eax]
inc esp
jnp 0x407fcd
xor byte [ebx + edi*2 + 0x72], al
invalid
fld qword [ebp + 8]
fsub st(7), st(0)
xor byte [ebx - 0x4c], bl
sbb dword [ebp - 0x20], edi
and eax, 0xe066410c
jne 0x40801d
fld qword [ebp + 8]
fmul qword [0x1a40c2f8]
fst qword [ebp - 0xc]
fld st(0)
fcomp qword [0x69c228]
fnstsw ax
idiv byte [eax + 5]
fsub dword [ecx]
fst qword [ebp + 8]
fmul qword [0x64c2f8]
dec esi
fld st(0)
fcomp qword [0xc2c205]
push cs
rcr ah, 0x1d
add eax, 0xe00c2c2
loopne 0x408005
les eax, [0x5ddd157b]
hlt
mov eax, dword [ebp + 0x10]
lea esi, [edx + edi*2]
mov ebx, dword [esi + 0x75c0e41c]
add eax, dword [ebx]
jne 0x408029
mov ecx, dword [ebp + 0x14]
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x14ff008], 0x8088405
inc edx
mov dword [ebx + 0x14ff008], 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 0x14e6a63
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 0x14e6a6a
ret