joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c618
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4b6ab0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47c65b
cmp word [esi], dx
jne 0x47c65b
or byte [edi + eax + 0x28], 4
jmp 0x47c660
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x47c799
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x47c779
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x47c6a2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47c6d8
cmp eax, edx
jae 0x47c6e4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x47c67a
jmp 0x47c799
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c775
cmp dword [ebp - 0x14], 0
je 0x47c775
mov eax, dword [ebx*4 + 0x4b6ab0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x47c74d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x47c793
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b6ab0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4b6ab0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b6ab0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x47c796
pop ebx
cmp word [ebp - 4], bx
jne 0x47c75e
cmp esi, dword [ebp + 0xc]
jne 0x47c75e
mov word [esi], bx
jmp 0x47c796
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047d3ad
add esp, 0x10
cmp word [ebp - 4], bx
je 0x47c799
push 0xd
jmp 0x47c792
mov ecx, dword [ebx*4 + 0x4b6ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47c790
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47c799
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47d190
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047ce2b

Function at 0x47d19b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047cfba

Function at 0x47efaa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49cf24
push 0x49cf1c
push str.FlsAlloc
push 0x1e
call fcn.0047ee34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47efde
push dword [ebp + 8]
mov ecx, esi
call dword [0x49338c]
call esi
jmp 0x47efe4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47f028
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49cf34
push 0x49cf2c
push str.FlsGetValue
push 0x20
call fcn.0047ee34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47f05f
push dword [ebp + 8]
mov ecx, esi
call dword [0x49338c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x483306
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4833a3
push ebx
push esi
call fcn.004832cf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00481649
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x483350
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4833a2
push edi
push eax
call fcn.0047d5fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x483370
call fcn.0047c227
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4833a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00481649
add esp, 0x20
test eax, eax
jne 0x48338f
push edi
call fcn.0047c227
jmp 0x483397
push ebx
call fcn.0047c227
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x489af5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00489a71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x489c6d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x489c6d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x489c1c
jg 0x489b4e
test eax, eax
je 0x489c12
push 1
push 0x1000
call fcn.0047eb36
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x489b74
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x489c09
push 0x8000
push ebx
call fcn.00479791
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x489ba0
jg 0x489b9b
cmp ecx, 0x1000
jb 0x489ba0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047fe20
add esp, 0x10
cmp eax, 0xffffffff
je 0x489be5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x489b9b
jl 0x489bcc
test ecx, ecx
jne 0x489b8d
push dword [ebp - 0xc]
push ebx
call fcn.00479791
push esi
call fcn.0047c227
add esp, 0xc
xor edi, edi
jmp 0x489c7e
cmp byte [edi + 0x24], 0
je 0x489bfc
cmp dword [edi + 0x20], 5
jne 0x489bfc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x489c07
mov edi, dword [edi + 0x18]
jmp 0x489c09
xor edi, edi
push esi
call fcn.0047c227
pop ecx
jmp 0x489c7e
test ecx, ecx
jg 0x489bde
jl 0x489c1c
test eax, eax
jae 0x489bde
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047d3ad
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x489c3f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x489bde
jmp 0x489c76
push ebx
call fcn.00483914
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x489bde
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x489c7e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x489c7b
mov edi, dword [edi + 0x18]
jmp 0x489c7e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047d3ad
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48ae80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48aead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48aead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405b30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cb30
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc0]
push 0xb0
push 0
push eax
call fcn.0046b870
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.00406870
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
sub eax, 4
je 0x405cde
sub eax, 1
je 0x405ba2
sub eax, 1
jne 0x405d0a
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
call edi
mov ecx, dword [esi + 0x48]
add ecx, 0x3e8
cmp ecx, eax
jae 0x405bd6
mov ecx, dword [esi + 0x34]
mov eax, ecx
sub eax, dword [esi + 0x44]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ecx
call edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x34]
mov ecx, 0x64
mul ecx
push 0
push dword [ebp + 0x10]
push edx
push eax
call fcn.0046a210
push eax
lea ecx, [ebp - 0xb0]
mov dword [esi + 0x40], eax
call fcn.00406a40
mov edx, 0x4a87ac
mov ecx, eax
call fcn.0040a030
mov ecx, eax
mov eax, 0x10624dd3
mul dword [esi + 0x38]
shr edx, 6
push edx
call fcn.00406a40
mov edx, 0x4a87a8
mov ecx, eax
call fcn.0040a030
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00406780
mov edi, eax
add esi, 4
cmp esi, edi
je 0x405ca6
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x405c74
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x405c6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d34
mov eax, edx
push ecx
push eax
call fcn.004697ab
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0xf
jbe 0x405d0a
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405cd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d34
push ecx
push edx
call fcn.004697ab
add esp, 8
jmp 0x405d0a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
lea ecx, [ebp - 0xc0]
call fcn.00405d40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046977a
mov esp, ebp
pop ebp
ret 0x14
call fcn.0046e96f
int3
Function at 0x4095b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c9a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004697b9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00467d7f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00409af0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d40d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_bool_.0
mov dword [esi + 4], 1
mov byte [esi + 8], 0
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00466d70
xorps xmm0, xmm0
lea eax, [esi + 0x44]
movups xmmword [esi + 0x20], xmm0
push eax
movq qword [esi + 0x30], xmm0
mov dword [esi + 0x38], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x14], 2
mov dword [esi + 0x40], 0
call fcn.00466d70
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov word [esi + 0x74], 0
mov byte [esi + 0x76], 0
mov dword [esi + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [esi + 0x80]
mov dword [esi], vtable.std::_Packaged_state_bool____cdecl___void__.0
mov dword [ebp - 0x18], edi
mov dword [edi + 0x24], 0
push 0x20
mov byte [ebp - 4], 1
call fcn.004697b9
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [esi], vtable.std::_Func_impl_no_alloc_class_std::_Fake_no_copy_callable_adapter_class__lambda_2329adb045a9dfe1928f4a9762f2d841____bool___.0
mov ecx, dword [eax]
mov dword [esi + 4], ecx
lea ecx, [eax + 4]
push ecx
lea ecx, [esi + 8]
call fcn.00407580
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c410
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0xf
lea edx, [esi + 8]
mov ecx, dword [esi + 4]
jbe 0x40c431
mov edx, dword [edx]
cmp dword [ecx + 0x30], 0xf
lea eax, [ecx + 0x1c]
jbe 0x40c43c
mov eax, dword [eax]
push ecx
push 0
push edx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [esi + 4]
test eax, eax
jne 0x40c491
cmp dword [ecx + 0x30], 0xf
lea eax, [ecx + 0x1c]
jbe 0x40c45b
mov eax, dword [eax]
push eax
push str.Downloading_file_from_URL:__s..._n
call fcn.00406770
mov eax, dword [esi + 4]
add esp, 8
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x40c480
mov byte [ebp - 8], 1
lea edx, [ebp - 8]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046977a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x40c4a5
mov byte [ebp - 8], 0
lea edx, [ebp - 8]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046977a
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40ee6b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40ef27
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
sub edi, 1
jne 0x40ee80
pop edi
test esi, esi
je 0x40ef4a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
sub esi, 1
jne 0x40ef30
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40f780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x40f7c5
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f7c0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x40f7f2
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40f7d6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.0046b2f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x40f810
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046977a
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40f7fd
cmp byte [esi + 8], 0
je 0x40f7fd
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046977a
mov esp, ebp
pop ebp
ret
Function at 0x40f8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], ecx
je 0x40f911
cmp byte [ecx], 0
je 0x40f962
push 2
push 0
push 0
push dword [esi + 4]
call edx
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esi + 1]
jmp 0x40f91a
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], ecx
cmp byte [esi], 0
je 0x40f93a
cmp byte [ecx], 0
je 0x40f936
push 1
push 0
push 0
push dword [esi + 4]
call edx
mov edi, eax
sub edi, dword [esi + 0xc]
jmp 0x40f93d
xor edi, edi
jmp 0x40f949
mov edi, dword [esi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], eax
cmp edi, eax
jae 0x40f94c
mov dword [ebp - 0x14], edi
push 0x404
call fcn.0047098d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x40f976
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046977a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x40fa89
nop dword [eax]
add eax, 0x400
mov dword [ebp - 0x18], edi
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x24], edx
cmp edx, 0x404
mov dword [ebp - 0x20], ecx
mov edi, edx
cmova edi, eax
cmp byte [esi], 0
je 0x40f9df
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x40fa89
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f9e8
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp byte [esi], 0
mov ebx, edi
je 0x40fa10
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fa0b
mov byte [esi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40fa3b
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [edx + edi]
cmp eax, ecx
jbe 0x40fa21
mov ebx, ecx
sub ebx, edx
mov ecx, dword [esi + 0x14]
push ebx
add ecx, edx
push ecx
push dword [ebp - 0x10]
call fcn.0046b2f0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
mov ebx, dword [ebp - 0x10]
xor edx, edx
div edi
cmp eax, 1
jne 0x40fa89
lea ecx, [edi - 3]
test ecx, ecx
js 0x40fa71
lea eax, [ebx + 3]
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x40fa6d
cmp byte [edx + ebx], 0x4b
jne 0x40fa6d
cmp byte [eax - 1], 5
jne 0x40fa6d
cmp byte [eax], 6
je 0x40faa6
test ecx, ecx
jns 0x40fa50
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40fa89
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
cmp eax, ecx
jb 0x40f990
push ebx
call fcn.0046e9c0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046977a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x40fa74
Function at 0x4104b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41069a
cmp dword [edi + 0x18], 0
je 0x41069a
push esi
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x410510
mov eax, dword [esi]
test eax, eax
je 0x4104e5
push eax
call fcn.0046e9c0
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x4104f9
lea ecx, [esi + 4]
call fcn.0040f0c0
push esi
mov dword [esi + 0x40], 0
call fcn.0046e9c0
add esp, 4
mov dword [edi + 0x7c], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00410250
add esp, 8
test eax, eax
je 0x410535
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call fcn.0047098d
mov esi, eax
add esp, 4
test esi, esi
je 0x410577
push 0x4000
call fcn.0047098d
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x410583
push esi
call fcn.0046e9c0
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x4105db
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0040f190
test eax, eax
jne 0x4105db
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x4105ff
mov al, byte [edi + 0x39]
jmp 0x410602
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x41067b
mov al, byte [ebx]
test al, al
je 0x41067b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a8c98]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x410630
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret