joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d54d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x40d55d
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x40d59d
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x40d60d
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42ff13
call fcn.0041156f
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebx], 0x43df1c
call fcn.0040e5c9
and dword [ebp - 4], 0
lea ecx, [ebx + 0x14]
push esi
call fcn.00404370
push edi
lea esi, [ebx + 0x2c]
mov byte [ebp - 4], 1
push esi
call fcn.0040d751
push ecx
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040c6bc
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40d668
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, ebx
call fcn.00411519
ret 8

Function at 0x40d6a9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ecb3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x2c]
mov dword [edi], 0x43df1c
cmp dword [esi + 0x14], 8
jb 0x40d6e9
mov eax, dword [esi]
jmp 0x40d6eb
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040c6bc
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40d708
mov eax, dword [eax]
push eax
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040195d
push ebx
push 1
mov ecx, esi
call fcn.0040195d
push ebx
push 1
lea ecx, [edi + 0x14]
call fcn.0040195d
lea ecx, [edi + 4]
call fcn.0040e6c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410b8d
mov esp, ebp
pop ebp
ret
Function at 0x427e78
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427b38
Function at 0x484cd9
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
add edi, 0xe9fca359
mov ecx, 0x278e9eb4
call fcn.00484d19
and ecx, ecx
xor dword [esi], ebx
add edi, 0x1ddde5c2
add esi, 2
add edi, ecx
mov ecx, ecx
mov edi, edi
cmp esi, eax
jl fcn.00484cd9
mov edi, 0x64d0db0e
sub edi, ecx
and ecx, ecx
ret

Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x484ce0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x484a08
or eax, eax
mov esi, 0x56996474
mov eax, 0xbd1172bb
call fcn.00484d16
add eax, esi
xor dword [edx], ecx
or esi, eax
sub eax, eax
add edx, 2
add eax, eax
add esi, esi
or esi, eax
cmp edx, ebx
jl fcn.00484ce0
dec esi
ret
Function at 0x10017a20
Capabilities:
Query environment variable

Disassembly:
jmp 0x1016cd98
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1016cdac
xor edi, edi
jmp 0x1016cde3
push ebx
push esi
call fcn.1016cca0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100130a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1016cdd3
push ebx
push esi
push edi
call fcn.10006580
add esp, 0xc
push 0
call fcn.10008500
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x100186e0
Capabilities:
Terminate process

Disassembly:
jmp 0x1011d0bc
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1011d0cd
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10021d50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

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

Disassembly:
jmp 0x100f54be
push 4
mov eax, 0x1018c277
call fcn.1001f050
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], Ordinal_1
mov dword [edi + 0x18], ebx
mov dword [edi + 0x38], ebx
call fcn.10003140
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
test dword [0x101eb13c], 0x80000000
je 0x100f552f
push dword [0x101f07e8]
call fcn.10023c60
pop ecx
test eax, eax
jne 0x100f5534
call fcn.1000e3e0
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x100f554f
cmp eax, 2
je 0x100f554f
lock inc dword [eax + 4]
mov ecx, edi
call fcn.10020f40
lea ecx, [edi + 0x3c]
call fcn.1000f690
cmp byte [ebp + 0xc], 0
je 0x100f5590
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x100f558a
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x100f5579
jmp 0x100f5598
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.100222c0
mov esi, eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x100f55b0
mov ecx, esi
call fcn.10014fe0
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.1000fe50
ret 8
Function at 0x10096500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101eb0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0x14]
mov ebx, ecx
push dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
call fcn.1001b300
push 0
push 0
push 8
push 0
lea eax, [ebx + 0x510]
push 9
push eax
call fcn.10007630
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x34]
add esp, 0x18
mov dword [ebp - 0x34], 0
push eax
push dword [ebx + 0x24]
call fcn.10010b80
test eax, eax
js 0x10096637
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push 0x101c7660
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [section..00cfg]
call esi
test eax, eax
js 0x10096637
mov esi, dword [ebp - 0x3c]
push esi
push dword [ebp - 0x38]
push str.PAR:__d_x__d
push 8
call fcn.10010ed0
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x950]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x954]
push eax
push ecx
push 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
call fcn.10006c50
push dword [ebx + 0x4c]
lea eax, [ebp - 0x10]
push dword [ebx + 0x48]
push esi
push dword [ebp - 0x38]
push eax
call fcn.10006c50
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10024b20
add esp, 0x44
movups xmm0, xmmword [eax]
push dword [ebp - 0x14]
movups xmmword [ebx + 0x114], xmm0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.Dest_rect:__d___d___d___d
push 8
call fcn.10010ed0
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov dword [ebx + 0x950], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x954], eax
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1009664e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
cmp dword [ebx + 0x90c4], 0
jne 0x100966ac
lea eax, [ebx + 0x90c8]
push eax
push 0
push ebx
push 0x1000a350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x90c4], eax
test eax, eax
jne 0x100966ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CNvVideoTranscodeEx::InitializeTranscodeState
push str._s:_Not_able_to_create_encode_loop_thread._Error____x
push 1
call fcn.10010ed0
add esp, 0x10
mov eax, 0x80004005
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011a30
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10011a30
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ac950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test eax, eax
jle 0x100aca80
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp - 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
test esi, esi
jle 0x100aca5d
lea eax, [ecx + 5]
mov dword [ebp - 0xc], esi
sub ecx, edi
mov dword [ebp - 0x10], eax
lea ebx, [edi + 7]
mov dword [ebp - 0x14], ecx
mov edi, eax
nop
movzx eax, byte [ebx - 7]
lea edi, [edi + 8]
movzx edx, byte [edi - 0xd]
lea ebx, [ebx + 8]
sub edx, eax
mov eax, edx
cdq
mov esi, eax
movzx eax, byte [edi - 0xc]
xor esi, edx
sub esi, edx
movzx edx, byte [ebx - 0xe]
sub eax, edx
sub esi, dword [ebp + 0x1c]
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ebx - 0xd]
add esi, eax
movzx eax, byte [edi - 0xb]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ebx - 0xc]
add esi, eax
movzx eax, byte [edi - 0xa]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ebx - 0xb]
add esi, eax
movzx eax, byte [edi - 9]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ebx - 9]
add esi, eax
movzx eax, byte [edi - 7]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ebx - 0xa]
add esi, eax
movzx eax, byte [edi - 8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ecx + ebx - 8]
add esi, eax
movzx eax, byte [ebx - 8]
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
add esi, eax
xor eax, eax
test esi, esi
cmovg eax, esi
cdq
add dword [ebp - 4], eax
adc dword [ebp - 8], edx
sub dword [ebp - 0xc], 1
jne 0x100ac9a0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
add ecx, edx
add edi, edx
sub eax, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x14], eax
jne 0x100ac984
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x100b1a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x100b1b0c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, edi
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b1a75
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x100b1aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp word [ebx + esi*2 - 2], 0x5c
je 0x100b1ac3
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b1ad0
sub ecx, dword [ebp - 4]
sar ecx, 1
je 0x100b1b0c
lea esi, [ebx + esi*2]
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100b1af6
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x100b1ae5
mov ebx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc0d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c0d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c0d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c0d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c0d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc0dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc0dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc1f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc0dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc0dc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x1447442b
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x4bde7999
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc40
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 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
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 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
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 0x41cc68
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 0x41e214
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 0x5ea6d3
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 0x41e2c5
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 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
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 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
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 0x5ea6da
ret
Function at 0x41eb1c
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 0x5eb0cb
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 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x603258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x603258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x6020e8]
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 0x41ec9d
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
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 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb0d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret