joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4300a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
mov edx, 0x100
mov dword [esp + 0x20], edi
mov ebp, dword [edi + 0x58]
cmp ebp, 1
mov esi, dword [edi + 0x1c8]
sete al
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebp
mov dword [esi + 0x1c], eax
mov eax, 0x2fe
push dword [edi + 0x78]
mov ecx, dword [edi + 4]
cmovne eax, edx
push eax
push 1
push edi
mov eax, dword [ecx + 8]
call eax
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x78], ebx
jle 0x4301d3
nop dword [eax]
mov ecx, dword [esi + ebx*4 + 0x20]
cdq
idiv ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp ebp, 1
jne 0x43011e
mov eax, dword [esi + 0x18]
add dword [eax + ebx*4], 0xff
mov eax, dword [esi + 0x18]
lea edi, [ecx*2 - 2]
mov ebp, dword [eax + ebx*4]
lea eax, [ecx + 0xfe]
cdq
xor ebx, ebx
idiv edi
xor esi, esi
mov edx, eax
nop word [eax + eax]
cmp esi, edx
jle 0x430164
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x430152
mov ecx, dword [esp + 0x14]
movzx ecx, cl
movzx eax, bl
imul ecx, eax
mov byte [esi + ebp], cl
inc esi
mov ecx, dword [esp + 0x1c]
cmp esi, 0xff
jle 0x430140
cmp dword [esp + 0x18], 1
jne 0x4301b1
mov ecx, 1
lea edx, [ebp - 1]
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x430190
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc ebx
mov esi, dword [esp + 0x24]
cmp ebx, dword [eax + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jl 0x430100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x43c0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x43c0f2
jl 0x43c0e5
test ecx, ecx
jne 0x43c0f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43c1b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0043d330
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43c15e
jg 0x43c11d
test esi, esi
je 0x43c15e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43c135
mov eax, dword [esp + 0x10]
jl 0x43c12f
cmp eax, esi
jae 0x43c135
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0046e410
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43c17f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43c19b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x43c104
jl 0x43c19b
test ecx, ecx
jne 0x43c104
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x43c1f1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x43c1f1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0046e410
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x43c260
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x43c217
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x43c249
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004753ea
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x43c274
cmp edi, eax
ja 0x43c225
test ecx, ecx
je 0x43c260
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004753ea
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d200
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fef0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b000c]
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.0046b355
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046c85c
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 + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov edx, dword [0xbcfb8c]
mov dword [ecx], 0
mov ecx, dword [0xbcfb88]
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 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 0x4418c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x5c4
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x5c0], eax
mov eax, dword [0x4e96b8]
lea edx, [esp + 0x5bc]
push esi
push edi
mov ecx, 0x16f
lea edi, [esp + 8]
mov esi, 0x4eaac8
rep movsd dword es:[edi], dword [esi]
or dword [0x4eb040], 8
mov edi, dword [esp + 0x580]
mov ecx, dword [eax]
and edi, 0xcffbd78f
mov esi, dword [esp + 0x584]
or edi, 0x4ff2108b
push edx
push 0x41
push eax
or esi, 0x7f
mov dword [esp + 0x130], 0x10
mov dword [esp + 0x134], 0x10
mov dword [esp + 0x148], 0x40
mov dword [esp + 0x140], 0x40
mov dword [esp + 0x13c], 0x4000
mov dword [esp + 0x138], 0x4000
mov dword [esp + 0x154], 0x4000
mov dword [esp + 0x150], 0x4000
mov dword [esp + 0x14c], 0x4000
call dword [ecx + 0x74]
test eax, eax
jne 0x44198c
or esi, 0x40000
mov eax, dword [0x4e96b8]
lea edx, [esp + 0x5c4]
push edx
push 0x1c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x74]
test eax, eax
jne 0x441a3a
mov eax, dword [0x4e96b8]
lea edx, [esp + 0x5c4]
push edx
push 0x47
push eax
mov ecx, dword [eax]
or esi, 0x10000
call dword [ecx + 0x74]
test eax, eax
jne 0x4419ce
or esi, 0x20000
movups xmm0, xmmword [str.DirectX11.1_implementation]
mov ax, word [0x4a8650]
and esi, 0xfffff3ff
and edi, 0xfffffffb
mov dword [esp + 0x584], esi
mov dword [esp + 0x580], edi
lea esi, [esp + 8]
movups xmmword [esp + 8], xmm0
mov ecx, 0x16f
mov word [esp + 0x20], ax
movq xmm0, qword [0x4a8648]
mov edi, 0x4eaac8
mov al, byte [0x4a8652]
movq qword [esp + 0x18], xmm0
mov byte [esp + 0x22], al
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x5c8]
pop edi
pop esi
xor ecx, esp
call fcn.0046ad4d
add esp, 0x5c4
ret
push 0
push dword [0xc0db48]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x10
push str.Fatal_Error
push str.Graphic_Device_is_not_supporting_32bits_texture_format
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00477e45
int3
Function at 0x4463a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
mov eax, 0xff7f
push edi
and ax, word [esi + 0x41c]
movzx ecx, ax
mov word [esi + 0x41c], ax
test eax, 0x400
jne 0x4465c9
test al, 0x40
je 0x4465c9
cmp dword [esi + 0x400], 4
jne 0x446521
lea edi, [esi + 0x497]
mov word [esi + 0x41c], cx
mov ecx, dword [edi]
test ecx, ecx
je 0x446408
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
movzx edx, word [esi + 0x406]
movzx ecx, word [esi + 0x408]
mov eax, dword [esi + 0x414]
mov dword [esp + 0x20], ecx
imul ecx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
mov dword [edi], 0
mov eax, dword [0x4e96b8]
push edi
push edx
mov dword [esp + 0x2c], 1
lea edx, [esp + 0x24]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x3d
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4465c9
mov ecx, dword [esi + 0x49f]
lea ebx, [esi + 0x49f]
test ecx, ecx
je 0x4464b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov dword [ebx], 0
mov eax, dword [0x4e96b8]
push ebx
push edx
push dword [edi]
mov dword [esp + 0x8c], 4
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x446521
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046ad4d
add esp, 0x90
ret
mov ecx, dword [esi + 0x49b]
lea edi, [esi + 0x49b]
test ecx, ecx
je 0x44653d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov eax, dword [esi + 0x434]
lea edx, [esp + 0x48]
xorps xmm0, xmm0
mov dword [esp + 0x54], 3
push edi
mov dword [esp + 0x5c], 0
mov eax, dword [eax*4 + 0x4a0cf4]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x428]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 8
movups xmmword [esp + 0x68], xmm0
mov eax, dword [eax*4 + 0x4a0d24]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x42c]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x7f7fffff
push edx
mov eax, dword [eax*4 + 0x4a0d24]
mov dword [esp + 0x58], eax
mov eax, dword [0x4e96b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
js 0x4465c9
mov eax, 0x80
or word [esi + 0x41c], ax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ad4d
add esp, 0x90
ret
Function at 0x44ece5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, edx
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp + 0xc]
mov ax, word [edx + 8]
shr ax, 0xc
cmp dword [edx + 0xc], 0
movzx eax, ax
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jl 0x44ecbe
lea eax, [esi*8]
sub eax, dword [0xbcf918]
lea eax, [eax + eax*2]
movzx edi, ax
test di, di
je 0x44ecb1
mov esi, dword [0x4e9dbc]
mov eax, 0x2000
mov edx, dword [0x4eb0a4]
mov ecx, dword [0x4eb174]
mov ebx, dword [0x4e9dc8]
mov dword [esp + 0x10], 0xffcf
nop word [eax + eax]
add edi, 0xffff
test dword [0x4eb040], 0x3800
jbe 0x44ec41
test word [esi], ax
je 0x44ec1b
test edx, edx
je 0x44ec41
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
jmp 0x44ec2d
test ecx, ecx
je 0x44ec41
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov ax, word [esi]
and ax, word [esp + 0x10]
or ax, 0xc
mov word [esi], ax
mov eax, 0x2000
test word [esi], ax
je 0x44ec53
test edx, edx
je 0x44ec8e
xor eax, eax
mov dword [edx], eax
add edx, 0x18
jmp 0x44ec88
test ecx, ecx
je 0x44ec8e
cmp dword [0x4e79f4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
je 0x44ec78
inc word [esi + 2]
movzx eax, word [esi]
shr eax, 3
and eax, 7
add ecx, dword [eax*4 + 0x4eb178]
inc ebx
mov eax, 0x2000
test di, di
jne 0x44ebf0
mov esi, dword [esp + 0xc]
mov dword [0x4e9dc8], ebx
mov ebx, dword [esp + 0x14]
mov dword [0x4eb174], ecx
mov dword [0x4eb0a4], edx
call fcn.00443ee0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx eax, ax
cmp eax, 5
ja case.default.0x44ecc6
jmp dword [eax*4 + 0x44ed98]
push ecx
push str._s_out.bmp
jmp 0x44eceb
push ecx
push str._s_out.dds
jmp 0x44eceb
push ecx
push str._s_out.gif
jmp 0x44eceb
push ecx
push str._s_out.tga
lea eax, [esp + 0x28]
push eax
call fcn.00406d20
add esp, 0xc
push 0
push 1
push 0
push 1
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x38]
call fcn.00445030
mov edi, eax
add esp, 0x18
test edi, edi
jns 0x44ed2d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
xor edx, edx
test esi, esi
jle 0x44ed56
movsx eax, byte [ebx]
lea ebx, [ebx + 1]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, eax
movzx eax, cl
xor edx, dword [eax*4 + 0x793bb8]
sub esi, 1
jne 0x44ed33
mov esi, dword [esp + 0xc]
push edx
lea eax, [esp + 0x24]
push str.0x_08x
push eax
call fcn.00406d20
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2c]
add esp, 0xc
mov edx, esi
push edi
push dword [eax + 0xc]
call fcn.0044d8b0
mov ecx, dword [esp + 0x8c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
Function at 0x450770
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x30
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [0xbcf920], 0
mov dword [0xbcf95c], 0
mov dword [0xbcf928], 0
mov dword [0xbcf968], 0x443650
mov dword [0xbcf924], 0x442f60
test edi, edi
je 0x450a05
cmp dword [0x4d3824], 0
movups xmm0, xmmword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [0xbcf92c], 0
movups xmmword [0xbcf938], xmm0
mov dword [0xbcf970], 0
movq xmm0, qword [edi + 0x10]
movq qword [0xbcf948], xmm0
mov eax, dword [edi + 0x18]
mov dword [0xbcf958], 1
mov dword [0xbcf96c], 1
mov dword [0xbcf950], eax
mov dword [0xbcf954], 1
je 0x450824
lea eax, [esp + 0x20]
push eax
call ebx
mov esi, 0x14
nop dword [eax]
push 0
call dword [0xbcf968]
add esp, 4
sub esi, 1
jne 0x450830
xorps xmm0, xmm0
cmp dword [0x4d3824], esi
je 0x45088d
lea eax, [esp + 0x28]
push eax
call ebx
cmp dword [0x4d3824], esi
je 0x45088a
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x10]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x14]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mulsd xmm0, qword [0xc0da08]
movsd qword [esp + 0x18], xmm0
jmp 0x450893
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
mov esi, 0x14
push 0
call dword [0xbcf968]
add esp, 4
sub esi, 1
jne 0x450898
mov ecx, dword [0x4d3824]
test ecx, ecx
jne 0x4508b7
xorps xmm2, xmm2
jmp 0x4508e8
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x10]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x14]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mov ecx, dword [0x4d3824]
movaps xmm2, xmm0
mulsd xmm2, qword [0xc0da08]
subsd xmm2, qword [esp + 0x18]
movsd xmm5, qword [0x4a95e0]
mov edx, 1
mov eax, dword [0xbcf95c]
xorps xmm3, xmm3
movss xmm4, dword [0x4a95e8]
movaps xmm0, xmm4
divsd xmm2, qword [0x4a9680]
comisd xmm5, xmm2
movsd qword [esp + 0x10], xmm2
cmova eax, edx
mov edx, 0x3c
mov dword [0xbcf95c], eax
mov eax, dword [0xbcf948]
test eax, eax
cmove eax, edx
mov dword [0xbcf948], eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm0, xmm1
cvtps2pd xmm1, xmm0
movsd qword [0xbcf960], xmm1
test ecx, ecx
je 0x45099f
lea eax, [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x18]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x1c]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
movsd xmm1, qword [0xbcf960]
movaps xmm3, xmm0
mulsd xmm3, qword [0xc0da08]
movsd xmm2, qword [esp + 0x10]
movss xmm4, dword [0x4a95e8]
movsd xmm5, qword [0x4a95e0]
mov eax, dword [edi + 0x10]
movaps xmm0, xmm2
movsd qword [0x77e140], xmm3
movsd qword [0x77e138], xmm3
cmp eax, 0x3c
jle 0x4509ce
divsd xmm0, qword [0x4a95f8]
mov dword [0xbcf920], 1
jmp 0x4509d2
divsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
add eax, 0xfffffffa
movss dword [0xbcf934], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm4, xmm0
cvtps2pd xmm0, xmm4
comisd xmm2, xmm0
ja 0x4509fb
comisd xmm5, xmm2
jbe 0x450a05
mov dword [0xbcf920], 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ad4d
add esp, 0x30
ret
Function at 0x450a20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x18
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [0xbcf954], 0
push esi
push edi
mov esi, edx
je 0x450c24
cmp dword [0x4d3824], 0
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
je 0x450a55
lea eax, [esp + 8]
push eax
call edi
cmp dword [0xbcf928], 0
jne 0x450a8a
cmp dword [0xbcf920], 0
jne 0x450a8a
push esi
call dword [0xbcf968]
add esp, 4
test esi, esi
jne 0x450a99
cmp dword [0xbcf95c], esi
jne 0x450a99
movsd xmm1, qword [0x4a95f0]
jmp 0x450b30
mov esi, 1
push esi
call dword [0xbcf968]
add esp, 4
cmp dword [0x4d3824], 0
jne 0x450aa7
xorps xmm0, xmm0
jmp 0x450acf
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x14]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mulsd xmm0, qword [0xc0da08]
movsd xmm1, qword [0x4a95f0]
movsd qword [0x77e140], xmm0
nop
cmp dword [0x4d3824], 0
jne 0x450aee
xorps xmm0, xmm0
jmp 0x450b1e
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x14]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mulsd xmm0, qword [0xc0da08]
movsd xmm1, qword [0x4a95f0]
subsd xmm0, qword [0x77e140]
comisd xmm1, xmm0
ja 0x450ae0
test esi, esi
jne 0x450b87
movsd xmm0, qword [0x77e140]
addsd xmm0, xmm1
movsd qword [esp + 8], xmm0
movaps xmm1, xmm0
cmp dword [0x4d3824], 0
jne 0x450b53
xorps xmm0, xmm0
jmp 0x450b81
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0x14]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mulsd xmm0, qword [0xc0da08]
movsd xmm1, qword [esp + 8]
comisd xmm1, xmm0
ja 0x450b45
cmp dword [0x4d3824], 0
jne 0x450b95
xorps xmm0, xmm0
jmp 0x450bbd
lea eax, [esp + 8]
push eax
call edi
mov ecx, dword [esp + 8]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0xc]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
mulsd xmm0, qword [0xc0da08]
cmp dword [0x4d3824], 0
xorps xmm2, xmm2
subsd xmm0, qword [0x77e140]
subsd xmm0, qword [0x77e138]
mulsd xmm0, qword [0x4a9628]
addsd xmm0, qword [0x77e138]
movsd qword [0x77e138], xmm0
je 0x450c1c
lea eax, [esp + 8]
push eax
call edi
mov ecx, dword [esp + 8]
sub ecx, dword [0xc0da18]
mov edx, dword [esp + 0xc]
sbb edx, dword [0xc0da1c]
call fcn.0048cd20
movaps xmm2, xmm0
mulsd xmm2, qword [0xc0da08]
movsd qword [0x77e140], xmm2
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0046ad4d
add esp, 0x18
ret
Function at 0x46ab70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push edi
movups xmmword [ebp - 0x18], xmm0
movzx ecx, word [esi + 8]
cmp ebx, ecx
jb 0x46ab9d
mov edi, eax
jmp 0x46abc8
push ecx
call fcn.00470e7c
push ebx
push dword [ebp - 4]
mov edi, eax
push edi
call fcn.0046e410
movzx ecx, word [esi + 8]
lea eax, [edi + ebx]
sub ecx, ebx
push ecx
push 0
push eax
call fcn.0046e200
movzx ebx, word [esi + 8]
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46abf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x46abf8
mov ecx, esi
call fcn.0046a3a0
or eax, 0xffffffff
mov dword [ebp + 8], eax
jmp 0x46ac20
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x46ac1d
mov ecx, esi
call fcn.0046a3a0
or eax, 0xffffffff
mov dword [ebp + 8], eax
jmp 0x46ac20
mov eax, dword [ebp + 8]
cmp edi, dword [ebp - 4]
je 0x46ac31
push edi
call fcn.00470e61
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ac40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
xor edi, edi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x30]
mov dword [ebp - 8], ecx
cmp dword [esi + 0x18], edi
jne 0x46acca
push dword [esi + 0xc]
mov dword [esi + 0x18], 1
push edi
push dword [esi + 0x1c]
call fcn.0046e200
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
push dword [esi + 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46acc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x46acc7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [esi + 0x18], edi
mov ecx, esi
call fcn.0046a3a0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x46ace6
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46ace6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [esi + 0x18], edi
test eax, eax
je 0x46acb6
mov eax, dword [ebp - 4]
test eax, eax
je 0x46ad44
mov ecx, dword [esi + 0x1c]
mov edi, ebx
cmp byte [ecx], 0
jne 0x46ad32
dec eax
cmp ebx, eax
mov dword [ebp - 4], eax
cmova edi, eax
lea eax, [ecx + 1]
push edi
push eax
push dword [ebp - 0xc]
call fcn.0046e410
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, eax
cmova edi, eax
push edi
push ecx
push dword [ebp - 0xc]
call fcn.0046e410
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret