joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100153e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10092400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10095f64]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
cmp dword [eax], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x10015481
cmp byte [0x100939aa], 0
jne 0x10015481
mov esi, dword [0x10095ddc]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
add esi, 0xfffffffe
mov byte [0x100939aa], 1
push esi
call ebx
push 1
call edi
push 1
call edi
mov eax, 0xe084
push 1
mov word [esi], ax
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call ebx
mov esi, dword [0x10095bac]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x10095f64]
mov eax, dword [eax]
test eax, eax
jne 0x1001549a
cmp byte [0x100939aa], 1
jne 0x1001549a
mov byte [0x100939aa], al
cmp dword [0x100940a4], 0
je 0x10015590
cmp eax, 1
jne 0x10015539
cmp byte [0x100939a9], 0
jne 0x100154f0
mov esi, dword [0x10095ba0]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100939a9], 1
cmp dword [0x10093abc], 0
je 0x10015539
cmp byte [0x10093fd6], 0
jne 0x10015539
mov esi, dword [0x10095ba0]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x10093fd6], 1
mov eax, dword [0x10095f64]
cmp dword [eax], 4
jne 0x10015573
mov esi, dword [0x10095ba0]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x10095f64]
cmp dword [eax], 0
jne 0x100155d0
mov byte [0x10093fd6], 0
mov dword [0x10093abc], 0
jmp 0x100155c9
cmp byte [0x100939a9], 1
jne 0x100155d0
mov esi, dword [0x10095ba0]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100939a9], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100731eb
mov esp, ebp
pop ebp
ret
Function at 0x100166c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10095f64]
inc dword [0x10092dac]
cmp dword [eax], 1
jne 0x100167cd
mov eax, dword [0x10093e20]
cmp dword [eax], 0
je 0x100167cd
cmp dword [0x10093d68], 0
je 0x100167cd
mov ecx, dword [0x10093b3c]
sub ecx, dword [0x10095b90]
add ecx, dword [0x10095cdc]
mov eax, dword [0x10095da8]
mov ecx, dword [ecx + eax]
call fcn.10007310
test eax, eax
jle 0x10016737
mov eax, dword [0x10093e20]
mov ecx, dword [eax]
add ecx, dword [0x10095b74]
call fcn.10017d10
mov ecx, dword [0x10095b9c]
add ecx, eax
call fcn.10017d50
jmp 0x1001673a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100167cd
mov eax, dword [0x10093e20]
push edi
push 1
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100167c5
cmp byte [0x10096780], 0
je 0x10016782
cmp dword [0x10096784], 0
je 0x100167cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x10096784]
add ecx, 0x96
cmp ecx, eax
ja 0x100167cc
mov byte [0x10096780], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10096784], eax
mov eax, dword [0x10092dac]
cmp eax, dword [0x10093a90]
jl 0x100167cc
push 0
push 2
mov ecx, edi
call dword [0x10095bbc]
push 0
push 0
mov ecx, edi
call dword [0x10095bbc]
mov dword [0x10092dac], 0
jmp 0x100167cc
mov byte [0x10096780], 0
pop edi
mov eax, dword [0x100931ac]
test eax, eax
jne 0x100167df
mov dword [0x10093a90], eax
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100167f2
mov dword [0x10093a90], 0xa
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10016805
mov dword [0x10093a90], 0x14
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x10016818
mov dword [0x10093a90], 0x1e
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x1001682b
mov dword [0x10093a90], 0x28
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x1001683e
mov dword [0x10093a90], 0x32
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10016851
mov dword [0x10093a90], 0x3c
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x10016864
mov dword [0x10093a90], 0x46
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x10016877
mov dword [0x10093a90], 0x50
mov esp, ebp
pop ebp
ret
cmp eax, 9
jne 0x1001688a
mov dword [0x10093a90], 0x5a
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x1001689d
mov dword [0x10093a90], 0x64
mov esp, ebp
pop ebp
ret
cmp eax, 0xb
jne 0x100168b0
mov dword [0x10093a90], 0x6e
mov esp, ebp
pop ebp
ret
cmp eax, 0xc
jne 0x100168bf
mov dword [0x10093a90], 0x78
mov esp, ebp
pop ebp
ret
Function at 0x100171b0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x10095f64]
sub esp, 0xc
cmp dword [eax], 1
push edi
jne 0x100172be
mov eax, dword [0x10093e20]
cmp dword [eax], 0
je 0x10017216
mov ecx, dword [0x10093b3c]
sub ecx, dword [0x10095b90]
add ecx, dword [0x10095cdc]
mov eax, dword [0x10095da8]
mov ecx, dword [ecx + eax]
call fcn.10007310
test eax, eax
jle 0x10017216
mov eax, dword [0x10093e20]
mov ecx, dword [eax]
add ecx, dword [0x10095b74]
call fcn.10017d10
mov ecx, dword [0x10095b9c]
add ecx, eax
call fcn.10017d50
jmp 0x1001721a
mov eax, dword [esp + 4]
test eax, eax
jne 0x100172be
cmp dword [0x100939b0], eax
je 0x100172be
mov eax, dword [0x10095cd4]
lea edx, [esp + 8]
sub esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [0x10095bfc]
mov ecx, esp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push ecx
push eax
push edx
call fcn.10019050
mov ecx, dword [0x10095df4]
call fcn.10005740
add esp, 0xc
mov edi, eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
shr ecx, 0x10
test ecx, ecx
je 0x100172b7
cmp byte [0x10096780], 0
je 0x1001729a
cmp dword [0x10096784], 0
je 0x100172be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x10096784]
inc ecx
cmp ecx, eax
ja 0x100172be
mov byte [0x10096780], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10096784], eax
mov dword [edi], 5
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x10096780], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10017330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10093d74]
mov ebx, ecx
mov dword [ebp - 4], ebx
push edi
test esi, esi
jne 0x100173c3
push 0x24
call fcn.100733f9
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 8], esi
add esp, 4
mov dword [0x10093a04], 1
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
push 0x190
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 0xc], 0x433c0000
mov dword [esi + 0x10], 0x41900000
call ebx
add esp, 4
mov dword [esi + 4], eax
xor edi, edi
push 0x14
call ebx
mov ecx, dword [esi + 4]
add esp, 4
mov dword [edi + ecx], eax
add edi, 4
cmp edi, 0x190
jl 0x100173a2
mov ebx, dword [ebp - 4]
mov dword [0x10093d74], esi
cmp dword [esi], 0
jne 0x100173d5
mov ecx, ebx
call fcn.1000a7f0
mov esi, dword [0x10093d74]
movss xmm2, dword [0x1008cb5c]
mov ecx, esi
movss xmm1, dword [0x1008cb44]
push ebx
call fcn.10009fa0
call fcn.1000a3b0
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10017460
cmp byte [0x10096c78], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1001742f
cmp dword [0x10096c7c], 0
je 0x10017467
call esi
mov ecx, dword [0x10096c7c]
add ecx, 0xc8
cmp ecx, eax
ja 0x10017467
mov byte [0x10096c78], 1
call esi
cmp byte [0x10093a5c], 0
mov dword [0x10096c7c], eax
sete byte [0x10093a5c]
cmp byte [0x10093bf3], 0
sete byte [0x10093bf3]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x10096c78], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
mov eax, dword [0x10095f08]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov eax, dword [0x10095d00]
push 0x10093b98
mov esi, dword [eax + ecx]
push esi
mov dword [0x100939a0], esi
mov eax, dword [esi]
call dword [eax + 0xc0]
push 0x10093aa0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0x10093aa0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 8
mov dword [0x10093c18], eax
mov edi, eax
mov ebx, 4
mov ecx, dword [eax + 8]
cmp ecx, 0xc
jle 0x100177cd
mov edx, str._d:_02d:_02d_PM
add ecx, 0xfffffff4
jmp 0x100177d2
mov edx, str._d:_02d:_02d_AM
push dword [eax]
push dword [ebx + edi]
push ecx
push edx
push 0x10096f78
call fcn.10004fb0
add esp, 0x14
call fcn.1000c260
cmp dword [0x10092b8c], 1
jne 0x1001784b
push 0x10093cd4
push str.Arial
push 0
push 2
push 7
push 1
push 0
push 0
push 0x2d8
push 0
push 0xf
push esi
mov dword [0x10093d54], 0x10005350
call fcn.10005350
cmp dword [0x10093bd0], 0
jne 0x10017841
push 0x10093bd0
push esi
mov dword [0x10093b0c], 0x10005360
call fcn.10005360
mov dword [0x10092b8c], 0
mov ecx, esi
call fcn.100092f0
mov ecx, esi
call fcn.10017330
call fcn.1000cd20
pop edi
pop esi
pop ebx
jmp fcn.1000c620
Function at 0x10017870
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10092400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push edi
push eax
push 0x40
push 1
push 0x1000ca60
call esi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push 0x1000ca90
call esi
mov edx, dword [0x10095d8c]
xor ecx, ecx
mov edi, dword [0x10095e7c]
mov esi, edx
add edi, edx
cmp edx, edi
jae 0x100178e6
nop dword [eax]
mov al, byte [esi]
cmp al, byte [ecx + 0x10088bd4]
je 0x100178d7
cmp byte [ecx + str.xxx____xxxxxx], 0x3f
je 0x100178d7
xor ecx, ecx
jmp 0x100178e1
cmp byte [ecx + 0x10088bc5], 0
je 0x10017917
inc ecx
inc esi
cmp esi, edi
jb 0x100178c0
mov eax, dword [3]
mov esi, edx
mov ebx, edi
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp esi, ebx
jae 0x10017934
nop dword [eax + eax]
mov al, byte [esi]
cmp al, byte [ecx + 0x10088bd4]
je 0x10017925
cmp byte [ecx + str.xxx____xxxxxx], 0x3f
je 0x10017925
xor ecx, ecx
jmp 0x1001792f
mov eax, dword [esi - 9]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov esi, edx
mov ebx, edi
jmp 0x10017900
cmp byte [ecx + 0x10088bc5], 0
je 0x10017957
inc ecx
inc esi
cmp esi, ebx
jb 0x10017900
mov bl, byte [0x13]
xor eax, eax
cmp edx, edi
jae 0x1001796d
mov cl, byte [edx]
cmp cl, byte [eax + 0x10088bd4]
je 0x1001795e
cmp byte [eax + str.xxx____xxxxxx], 0x3f
je 0x1001795e
xor eax, eax
jmp 0x10017968
mov bl, byte [esi + 7]
xor eax, eax
jmp 0x10017940
cmp byte [eax + 0x10088bc5], 0
je 0x100179b3
inc eax
inc edx
cmp edx, edi
jb 0x10017940
mov ecx, 0x16
mov cl, byte [ecx]
mov edx, 0x1000ca60
mov eax, dword [0x10095b4c]
pop edi
pop esi
mov dword [edx + 0xc], eax
mov al, byte [0x10095b88]
mov byte [edx + 0x12], al
mov eax, dword [0x10095f2c]
mov dword [edx + 0x1a], eax
mov edx, 0x1000ca90
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x3f], eax
mov byte [edx + 0x4f], bl
mov byte [edx + 0x52], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100731eb
mov esp, ebp
pop ebp
ret
lea ecx, [edx + 0xa]
jmp 0x10017972
Function at 0x100180f0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10092400]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x100181fe
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xc8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100181d6
nop dword [eax + eax]
cmp ecx, edi
jne 0x100181cd
mov edx, dword [eax + 4]
test edx, edx
je 0x1001818f
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1001819b
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x100181aa
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100181b4
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x100181c0
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x100181cd
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10018180
push 0x10017ee0
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push edi
push 0x100180c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.100731eb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100186f0
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 0x1001871c
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 0x10018744
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001874a
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 0x100187b2
jg 0x10018761
test esi, esi
je 0x100187b2
test ecx, ecx
jl 0x100187ad
jg 0x1001876b
test eax, eax
je 0x100187ad
cmp edi, ecx
jg 0x1001877f
jl 0x10018775
cmp esi, eax
jae 0x1001877f
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 0x100187b5
mov ecx, dword [ebp + 8]
jmp 0x100187bf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100187d9
jg 0x100187bf
test esi, esi
je 0x100187d9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100187d9
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 0x100187f0
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 0x1001881c
jl 0x10018810
test ecx, ecx
jne 0x1001881c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10018835
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 0x10018883
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10018889
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 0x10018889
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100188f6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100188b2
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 0x100188e4
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 0x100188f6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100188c0
test edi, edi
je 0x100188f6
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
Function at 0x10018c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10092400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10018ca0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10018cdc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10018cdc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10018db3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10018d04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10018d10
movsx eax, bl
jmp 0x10018d48
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10018d72
sub eax, 1
je 0x10018d72
sub eax, 2
jne 0x10018db3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10018d90
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10018db3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100731eb
mov esp, ebp
pop ebp
ret 4
Function at 0x10019450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10092400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001950c
cmp byte [esi + 0x3d], 0
je 0x1001950c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100194fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100194c1
sub eax, 1
je 0x100194c5
sub eax, 2
jne 0x100194fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100194e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100194fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100731eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100731eb
mov esp, ebp
pop ebp
ret