joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x436050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405bfa
cmp byte [esi + 0x3d], 0
je 0x405bfa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405be8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405bb0
sub eax, 1
je 0x405bb4
sub eax, 2
jne 0x405be8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004095f6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405bd1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040f865
add esp, 0x10
cmp edi, eax
jne 0x405be8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004095f6
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004095f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004095f6
mov esp, ebp
pop ebp
ret

Function at 0x406f50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426690
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x436050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00409609
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408bc9
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x437e60]
mov edx, dword [0x437e64]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4266f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x436050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00409609
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408bc9
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417d75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417beb
Function at 0x402f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
push 0x4332d0
push 0x4332d4
call fcn.00416400
mov esi, eax
add esp, 8
test esi, esi
je 0x402fc8
push 0
push 0x2580
push esi
call fcn.00415ae4
add esp, 0xc
push esi
push 5
push 1
push 0x4332e0
call fcn.00416286
push esi
call fcn.004160a8
add esp, 0x14
cmp byte [0x43c78b], 1
jne 0x403146
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x492]
push ecx
mov word [esp + 0x494], ax
call fcn.00417c50
mov esi, dword [fcn.0042b20c]
add esp, 0xc
push 0x4332e8
mov dword [esp + 0x18], 0
call esi
mov edi, dword [0x42b08c]
mov ebx, dword [0x42b1fc]
mov ebp, dword [fcn.0042b240]
cmp eax, 0xffffffff
je 0x40304e
test al, 1
je 0x403028
xor eax, 1
test al, 4
je 0x40302f
xor eax, 4
test al, 2
je 0x403036
xor eax, 2
test al, 0x20
je 0x40303d
xor eax, 0x20
push eax
push 0x4332e8
call edi
push 0x4332e8
call ebx
call ebp
push 0x433304
call esi
cmp eax, 0xffffffff
je 0x403087
test al, 1
je 0x403061
xor eax, 1
test al, 4
je 0x403068
xor eax, 4
test al, 2
je 0x40306f
xor eax, 2
test al, 0x20
je 0x403076
xor eax, 0x20
push eax
push 0x433304
call edi
push 0x433304
call ebx
call ebp
push 0x433330
call esi
cmp eax, 0xffffffff
je 0x4030c0
test al, 1
je 0x40309a
xor eax, 1
test al, 4
je 0x4030a1
xor eax, 4
test al, 2
je 0x4030a8
xor eax, 2
test al, 0x20
je 0x4030af
xor eax, 0x20
push eax
push 0x433330
call edi
push 0x433330
call ebx
call ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
call dword [fcn.0042b200]
movzx eax, word [esp + 0x488]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00404440
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.004042c0
mov edi, eax
cmp edi, 0xffffffff
je 0x403146
lea esi, [esp + 0x250]
call fcn.00404780
test eax, eax
je 0x403146
mov ecx, edi
call fcn.004031c0
mov ecx, 0x8d
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x250]
push 0x236
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00404250
add esp, 0xc
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x68c
ret
Function at 0x403530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0041631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334e8]
fadd qword [0x433500]
call fcn.00419970
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403650
call fcn.0041631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334e8]
fmul qword [0x4334f8]
fadd qword [0x4334f0]
call fcn.00419970
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403638
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403629
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403620
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4035e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x405b90
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.0041a100
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x431cf8
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00415a07
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x405bfb
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.004155fc
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00415ae4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415d06
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00415ae4
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00416014
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405ca6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405a00
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00416014
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405c71
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405aa0
mov edx, dword [esp + 0x10]
push edx
call fcn.004160a8
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x405bd4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004155fc
add esp, 0x1068
ret

Function at 0x4064a0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0041a100
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [0x42b3fc]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4064f8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.004155fc
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40653d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40653c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00416286
add edi, esi
add esp, 0x10
mov dword [0x43c204], edi
cmp edi, dword [esp + 0xc]
jb 0x406500
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004160a8
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.004155fc
add esp, 0x100c
ret
Function at 0x4069e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c50
add esp, 0xc
cmp edi, esi
je 0x406ac8
mov eax, 0x4317d4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406a25
sub eax, edx
sar eax, 1
je 0x406a4f
push 0x4316f4
lea edx, [esp + 8]
push 0x4317d4
push edx
call fcn.00415a07
add esp, 0xc
jmp 0x406a8a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.0042b204]
push 0x4316fc
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004157f4
push 0x431718
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00415a07
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x406aad
push eax
push 1
push 0x200
push edi
call fcn.00416286
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004160a8
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret

Function at 0x406ae0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c50
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406be5
mov eax, 0x431750
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406b25
sub eax, edx
sar eax, 1
je 0x406be5
cmp dword [0x438f90], 3
jne 0x406b6c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.0042b200]
push 0x431720
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
jmp 0x406b7c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.0042b204]
push 0x431750
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004157f4
push 0x431724
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00415a07
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406be5
push eax
push 1
push 0x200
push esi
call fcn.00416014
mov edx, dword [esp + 0x14]
push edx
call fcn.004160a8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
Function at 0x406c00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c50
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406ccf
mov eax, 0x431734
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406c45
sub eax, edx
sar eax, 1
je 0x406ccf
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.0042b204]
push 0x431734
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004157f4
push 0x43172c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00415a07
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406ccf
push eax
push 1
push 0x200
push esi
call fcn.00416014
mov eax, dword [esp + 0x14]
push eax
call fcn.004160a8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
Function at 0x408d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408d97
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408e74
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408db0
pop edi
test edx, edx
je 0x408e9b
jmp 0x408e80
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x430a48]
inc ecx
sub edx, 1
jne 0x408e80
not eax
pop esi
ret

Function at 0x408ea0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x430a48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x430a48]
mov dword [edx + 8], ecx
ret

Function at 0x408ef0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x430a48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x430a48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x404ac0
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x45b378]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x45b37c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00404ab0
mov ecx, dword [0x45b380]
mov edx, dword [0x45b384]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404b30
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x462b04]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x404b5c
mov dword [0x462b00], 0xedeb2e40
jmp 0x404b77
cmp eax, 0x3eb
jne 0x404b77
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x462590], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x462b04], 0x9e6
mov dword [0x462afc], 0xf4ea3dee
jne 0x404bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x462b04], 0x213
jne 0x404c32
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0x548]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
lea ecx, [ebp - 0xd48]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x462b04], 0xc
jne 0x404c46
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x20]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404b30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404ca0
Capabilities:
Set file attributes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x462b04]
mov ecx, dword [0x462594]
shr eax, 3
sub esp, 0x408
test eax, eax
jbe 0x404d63
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x462b04], 0x959
jne 0x404d4d
push 0
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404ac0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4094d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a698]
jne 0x4094da
repz ret
jmp fcn.0040eafa

Function at 0x40e7b5
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.00409fe3
and dword [ebp - 4], 0
cmp dword [0x460584], 0
mov ebx, eax
jne 0x40e866
push 0x4026c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e917
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4026bc
push edi
call esi
test eax, eax
je 0x40e917
push eax
call fcn.00409f71
mov dword [esp], 0x4026ac
push edi
mov dword [0x460584], eax
call esi
push eax
call fcn.00409f71
mov dword [esp], 0x402698
push edi
mov dword [0x460588], eax
call esi
push eax
call fcn.00409f71
mov dword [esp], 0x40267c
push edi
mov dword [0x46058c], eax
call esi
push eax
call fcn.00409f71
pop ecx
mov dword [0x460594], eax
test eax, eax
je 0x40e866
push 0x402664
push edi
call esi
push eax
call fcn.00409f71
pop ecx
mov dword [0x460590], eax
mov eax, dword [0x460590]
cmp eax, ebx
je 0x40e8be
cmp dword [0x460594], ebx
je 0x40e8be
push eax
call fcn.00409fec
push dword [0x460594]
mov esi, eax
call fcn.00409fec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e8be
test edi, edi
je 0x40e8be
call esi
test eax, eax
je 0x40e8b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e8b5
test byte [ebp - 0xc], 1
jne 0x40e8be
or dword [ebp + 0x10], 0x200000
jmp 0x40e8f7
mov eax, dword [0x460588]
cmp eax, ebx
je 0x40e8f7
push eax
call fcn.00409fec
pop ecx
test eax, eax
je 0x40e8f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e8f7
mov eax, dword [0x46058c]
cmp eax, ebx
je 0x40e8f7
push eax
call fcn.00409fec
pop ecx
test eax, eax
je 0x40e8f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460584]
call fcn.00409fec
pop ecx
test eax, eax
je 0x40e917
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e919
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret