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

Disassembly:
push ebp
mov ebp, esp
or dword [ecx + 0x1384], 0xffffffff
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x404b7f
pop edi
pop esi
mov dword [ecx], ebx
mov eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x406e79
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x406ec1
lea edx, [esi + 8]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x406e89
jmp 0x406ece
cmp dword [esi], 0x4e0
jb 0x406ece
call fcn.00406f08
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x406f08
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x9c4]
mov esi, 0xe3
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
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 esi, 1
jne 0x406f21
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
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 esi, 1
jne 0x406f69
mov esi, dword [ebp - 4]
pop edi
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
and dword [esi], 0
mov dword [esi + 0x9c0], eax
pop esi
pop ebx
leave
ret
Function at 0x4070e7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40710e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x407111
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004070c3
pop esi
leave
ret 8

Function at 0x4076b1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0040719f
mov edi, eax
test edi, edi
jne 0x4076d8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x407721
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x40771c
test al, 0x10
je 0x40771c
test eax, 0x400
je 0x407718
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00407727
push dword [ebp - 4]
mov esi, eax
call fcn.004071db
test esi, esi
jne 0x40771c
xor edx, edx
jmp 0x40771e
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4083b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4083f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4083f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4083f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4083f2
cmp dword [ecx + 0x74], 0xe
jbe 0x4083f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x408926
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.msvcrt.dll_fread
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x40898d
cmp dword [ebp + 0x14], 0
je 0x40898d
mov edi, dword [ebp + 8]
push esi
push 0
push edi
call sub.msvcrt.dll_memset
imul ebx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp + 0xc], ebx
cmp ebx, esi
jb 0x408952
mov dword [ebp + 0xc], esi
call sub.msvcrt.dll__errno
push dword [ebp + 0x18]
push dword [ebp + 0xc]
mov dword [eax], 0
push 1
push edi
call sub.msvcrt.dll_fread
mov ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x408996
call sub.msvcrt.dll__errno
cmp dword [eax], 0
je 0x40898d
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jne 0x4089f5
cmp ebx, eax
je 0x4089f5
call sub.msvcrt.dll__errno
push dword [ebp + 0x18]
push 1
mov dword [eax], 0
lea eax, [ebp + 0xf]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
je 0x4089e8
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.00408a50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 0
jne 0x408981
mov ecx, dword [ebp - 4]
pop edi
mov eax, ecx
xor edx, edx
div dword [ebp + 0x10]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ac0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x408ae7
mov ecx, 5
int 0x29
push 2
call fcn.00408457
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x408bf2
test esi, esi
jne 0x408bf2
push 2
call fcn.00408457
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040807a
mov esp, ebp
pop ebp
ret

Function at 0x408e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00408e60
mov esi, dword [ebp + 8]
test al, al
je 0x408e4e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00408e70
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408ffc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408ffc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408ffc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408ffc
cmp dword [ecx + 0x74], 0xe
jbe 0x408ffc
cmp dword [ecx + 0xe8], 0
je 0x408ffc
push dword [ebp + 8]
call fcn.00408e70
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x40e934
call fcn.00408c40
add esp, 8
cmp dword [ebp - 8], 0
jne 0x409031
push dword [ebp + 8]
call fcn.00408e30
mov esp, ebp
pop ebp
ret
Function at 0x409070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4090cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4090cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4090cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4090cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4090cc
cmp dword [ecx + 0xe8], 0
je 0x4090cc
push dword [ebp + 8]
call fcn.00408e70
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x40e934
call fcn.00408c40
add esp, 8
cmp dword [ebp - 8], 0
jne 0x409101
push dword [ebp + 8]
call fcn.00408e30
mov esp, ebp
pop ebp
ret

Function at 0x409730
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40975a
mov eax, 2
pop ebp
ret
push esi
call fcn.00408800
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40977a
jmp dword [eax*4 + 0x4097b0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00408a50
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401180
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x40637c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
jle 0x401268
mov esi, dword [ebp + 0xc]
nop dword [eax + eax]
mov ecx, dword [esi + 4]
add esi, 4
cmp word [ecx], 0x2d
jne 0x401268
movzx eax, word [ecx + 2]
add eax, 0xffffff9d
cmp eax, 6
ja case.0x4011c0.101
jmp dword [eax*4 + 0x401364]
mov dword [0x406384], 1
jmp 0x40125e
dec edi
mov ebx, esi
cmp edi, 1
jle 0x401292
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
cmp word [eax], 0x2d
je 0x401292
push 0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov edx, eax
add esp, 0xc
mov dword [0x40637c], edx
test edx, edx
jne 0x40125e
push dword [ebx + 4]
push str.____sess_id_invalid:__ws_n
call fcn.004010c0
push 0x403d4c
push 0x403d54
call fcn.004010c0
push str.Arguments:_n___c__CMD_____Execute_the__CMD_n_n
call fcn.004010c0
push str.Examples:_n____Run__as_Cau_in_the_current_Kontol_n_______n
call fcn.004010c0
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
dec edi
cmp edi, 1
jle 0x4012ca
mov eax, dword [esi + 4]
add esi, 4
cmp word [eax], 0x2d
je 0x4012ca
mov dword [0x406380], eax
dec edi
cmp edi, 1
jg 0x4011a0
cmp dword [0x406384], 0
je 0x40133a
test edx, edx
je 0x40133a
push str.____More_than_one_mode_was_specified._n
call fcn.004010c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push str.____option_value_woy:__d_n
call fcn.004010c0
push 0x403d4c
push 0x403d54
call fcn.004010c0
push str.Arguments:_n___c__CMD_____Execute_the__CMD_n_n
call fcn.004010c0
push str.Examples:_n____Run__as_Cau_in_the_current_Kontol_n_______n
call fcn.004010c0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push str.____nilaina_mana_for_option:__c_n
call fcn.004010c0
push 0x403d4c
push 0x403d54
call fcn.004010c0
push str.Arguments:_n___c__CMD_____Execute_the__CMD_n_n
call fcn.004010c0
push str.Examples:_n____Run__as_Cau_in_the_current_Kontol_n_______n
call fcn.004010c0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x403d4c
push 0x403d54
call fcn.004010c0
push str.Arguments:_n___c__CMD_____Execute_the__CMD_n_n
call fcn.004010c0
push str.Examples:_n____Run__as_Cau_in_the_current_Kontol_n_______n
call fcn.004010c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push ecx
push str.____teu_valid__argument:__ls_n
jmp 0x401214
cmp dword [0x406380], 0
jne 0x401358
push str.____Please_specify_a_n
call fcn.004010c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00401380
Function at 0x100020d0
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1001084c
mov esi, edx
mov edi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x1001084c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x1001084c]
cmp eax, edi
jl 0x10002147
lea ebx, [edi + 0x28]
cmp eax, ebx
jg 0x10002147
mov ecx, dword [0x10010850]
cmp ecx, esi
jl 0x10002147
lea eax, [esi + 0x16]
cmp ecx, eax
jg 0x10002147
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1000214a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1001068c], 0
mov byte [0x10010038], 0
sete byte [0x1001068c]
jmp 0x1000214a
lea ebx, [edi + 0x28]
push 0x1001084c
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x1001084c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x1001084c]
cmp eax, edi
jl 0x10002198
cmp eax, ebx
jg 0x10002198
mov ecx, dword [0x10010850]
cmp ecx, esi
jl 0x10002198
lea eax, [esi + 0x19]
cmp ecx, eax
jg 0x10002198
lea eax, [esi + 3]
mov dword [ebp - 8], eax
lea eax, [edi + 0xf]
mov dword [ebp - 0xc], eax
mov eax, 0xffff1717
jmp 0x100021a9
lea eax, [esi + 3]
mov dword [ebp - 8], eax
lea eax, [edi + 0xf]
mov dword [ebp - 0xc], eax
mov eax, 0xffff3c3c
movss xmm0, dword [0x1000d4f8]
mov edx, eax
mov ebx, dword [ebp + 0x18]
movss xmm3, dword [0x1000d4fc]
movd xmm1, edi
movd xmm2, esi
cvtdq2ps xmm1, xmm1
push ecx
mov ecx, ebx
mov dword [ebp - 4], eax
cvtdq2ps xmm2, xmm2
movss dword [esp], xmm0
call fcn.10001a50
add esp, 4
mov edx, esi
mov ecx, edi
push ebx
push dword [ebp - 4]
push 1
push 0x16
push 0x28
call fcn.100016b0
add esp, 0x14
push 0x1000c37c
push 0xffffffffffffffff
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10002010
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 8], edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002236
push 0x1001084c
sub esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x1001084c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [0x1001084c]
cmp ecx, edi
jl 0x100022ad
lea eax, [edi + 0x1a]
lea eax, [eax + esi*4]
add eax, esi
cmp ecx, eax
jg 0x100022ad
mov ecx, dword [0x10010850]
cmp ecx, ebx
jl 0x100022ad
lea eax, [ebx + 0xc]
cmp ecx, eax
jg 0x100022ad
mov esi, 1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100022b2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx], eax
sete al
mov dword [ecx], eax
jmp 0x100022af
xor esi, esi
mov dword [ebp - 4], esi
movss xmm3, dword [0x1000d4ec]
lea eax, [ebx - 1]
mov dword [ebp - 0xc], eax
or edx, 0xffffffff
lea eax, [edi + 0x10]
movd xmm2, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movd xmm1, edi
cvtdq2ps xmm2, xmm2
push ecx
cmp dword [eax], 0
cvtdq2ps xmm1, xmm1
je 0x10002347
mov ecx, dword [ebp + 0x10]
lea esi, [ebx + 5]
add edi, 2
movss dword [esp], xmm3
call fcn.10001a50
mov edx, dword [ebp + 0x10]
add esp, 4
cmp dword [ebp - 4], 0
mov eax, 0xff000000
movd xmm2, esi
mov ecx, 0xff005782
movd xmm1, edi
cmove ecx, eax
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.100017d0
mov eax, dword [ebp - 4]
mov edx, 0xff80ff00
mov edi, dword [ebp - 8]
test eax, eax
mov esi, dword [ebp + 0x10]
mov ecx, 0xff005782
cmove ecx, edx
mov edx, 0xff969696
mov dword [ebp + 8], ecx
mov ecx, 0xff008ed2
cmove ecx, edx
jmp 0x1000237e
test esi, esi
mov dword [esp], 0x41400000
mov esi, dword [ebp + 0x10]
mov ecx, esi
je 0x1000236a
call fcn.10001a50
mov dword [ebp + 8], 0xff005782
mov ecx, 0xff008ed2
jmp 0x1000237b
call fcn.10001a50
mov dword [ebp + 8], 0xffff0000
mov ecx, 0xff969696
add esp, 4
push esi
push ecx
push 1
push 0xc
push 0xc
mov edx, ebx
mov ecx, edi
call fcn.100016b0
add esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.10002010
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100086c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10008702
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push dword [ebp + 8]
mov dword [0x10010680], eax
push sym.FacMH.dll_void___stdcall_OnDllAttach_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push dword [ebp + 8]
push 0x100084d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc

Function at 0x10008d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10008d2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10008d54
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10008d5a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10008dc2
jg 0x10008d71
test esi, esi
je 0x10008dc2
test ecx, ecx
jl 0x10008dbd
jg 0x10008d7b
test eax, eax
je 0x10008dbd
cmp edi, ecx
jg 0x10008d8f
jl 0x10008d85
cmp esi, eax
jae 0x10008d8f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10008dc5
mov ecx, dword [ebp + 8]
jmp 0x10008dcf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10008de9
jg 0x10008dcf
test esi, esi
je 0x10008de9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10008de9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x10008e2c
jl 0x10008e20
test ecx, ecx
jne 0x10008e2c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10008e45
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10008e93
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10008e99
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], 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
mov esi, dword [ebp - 4]
jmp 0x10008e99
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10008f06
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10008ec2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10008ef4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10008f06
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10008ed0
test edi, edi
je 0x10008f06
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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