joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b7
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 4], ebx
push edi
mov dword [ebp - 4], ebx
jne 0x100165f
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x100165f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [esi + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x100165f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 4], eax
jne 0x100165f
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
mov dword [ebp - 4], ebx
call edi
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1001631
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x1001636
push 8
pop eax
jmp 0x100166a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x100165f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10016d6
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0x40
jb 0x10016eb
push 0x6f
pop eax
jmp 0x10017ac
push ebx
push edi
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
cmp eax, edi
pop ecx
je 0x100170a
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.01001420
jmp 0x100170c
xor eax, eax
cmp eax, edi
mov ecx, dword [esi + 4]
mov dword [esi + ecx*8 + 8], eax
jne 0x100171f
push 8
pop eax
jmp 0x10017aa
cmp dword [ebp + 0x14], edi
mov eax, dword [ebp + 8]
jne 0x1001739
cmp eax, 1
jne 0x1001739
mov eax, dword [esi + 4]
mov dword [esi + eax*8 + 0xc], 4
jmp 0x1001740
mov ecx, dword [esi + 4]
mov dword [esi + ecx*8 + 0xc], eax
mov eax, dword [esi + 4]
push dword [ebp + 0x14]
mov ecx, dword [esi + eax*8 + 8]
call fcn.01001445
mov ebx, eax
cmp ebx, edi
jne 0x10017a8
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*8 + 8]
lea eax, [ebp - 4]
push eax
call fcn.010015b7
mov ebx, eax
cmp ebx, edi
jne 0x10017a8
cmp dword [esi + 4], edi
mov dword [ebp + 0x14], edi
jbe 0x10017a5
lea edi, [esi + 8]
mov ecx, dword [edi]
lea eax, [ebp + 0x10]
push eax
jmp 0x100704c
inc dword [esi + 4]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0x10
Function at 0x1006427
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x100643c
popal
leave
ret 0xc

Function at 0x3001c670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x3001c692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3001c699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3001c688
mov eax, 1
add ebx, ebx
jne 0x3001c6ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3001c6a0
jne 0x3001c6bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3001c6a0
xor ecx, ecx
sub eax, 3
jb 0x3001c6d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3001c742
mov ebp, eax
add ebx, ebx
jne 0x3001c6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x3001c6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x3001c70c
inc ecx
add ebx, ebx
jne 0x3001c6f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3001c6ed
jne 0x3001c709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3001c6ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3001c72c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3001c71d
jmp 0x3001c68e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3001c72c
add edi, ecx
jmp 0x3001c68e
pop esi
mov edi, esi
mov ecx, 0x111
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x3001c74a
cmp byte [edi], 0
jne 0x3001c74a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x3001c74f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x3001c7be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c4e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c5cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3001c77c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c5d4]
or eax, eax
je 0x3001c7b8
mov dword [ebx], eax
add ebx, 4
jmp 0x3001c799
call dword [esi + 0x1c5d0]
mov ebp, dword [esi + 0x1c5d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x3001c7f2
sub esp, 0xffffff80
jmp 0x30003910
Function at 0x10004350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100198d8
push 0x10010129
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1001c040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x100043c0
mov byte [esi + eax], 0x90
inc eax
jmp 0x100043b2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100043da
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10010158
mov esp, ebp
pop ebp
ret

Function at 0x10004760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov edi, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 1
call esi
push dword [ebp + 8]
push edi
mov edi, dword [ebp - 0xc]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 1
call esi
push 1
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10010158
mov esp, ebp
pop ebp
ret
Function at 0x10005910
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100059a2
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100059a2
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call edi
add esp, 8
test eax, eax
je 0x10005996
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10005970
jmp 0x100059a2
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10010158
mov esp, ebp
pop ebp
ret
Function at 0x10008090
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100080ea
cmp byte [edi*8 + 0x1001f2f8], 0
lea esi, [edi*8 + 0x1001f2fc]
je 0x100080cf
cmp dword [esi], 0
je 0x100080f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x100080f2
mov byte [edi*8 + 0x1001f2f8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edi*8 + 0x1001f2f8], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000bed0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
cmp dword [0x1001d400], 0
je 0x1000c097
mov ecx, dword [0x1001d200]
sub ecx, dword [0x1001e7dc]
add ecx, dword [0x1001e910]
mov eax, dword [0x1001e9a0]
mov ecx, dword [ecx + eax]
call fcn.10005bf0
test eax, eax
jle 0x1000c097
mov eax, dword [0x1001eae8]
cmp dword [eax], 1
jne 0x1000c097
mov eax, dword [0x1001d494]
cmp dword [eax], 0
je 0x1000c097
mov cl, byte [0x1001d315]
mov al, byte [0x1001d316]
test cl, cl
je 0x1000bf51
test al, al
jne 0x1000bf51
mov eax, dword [0x1001d0a4]
mov byte [0x1001d316], 1
movss xmm0, dword [eax + 0x11c]
movss dword [0x1001d1d8], xmm0
jmp 0x1000bf55
cmp al, 1
jne 0x1000bf5c
mov byte [0x1001d3f8], 1
test cl, cl
jne 0x1000bf6c
mov byte [0x1001d316], cl
mov byte [0x1001d3f8], cl
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x20
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x1000bfd6
cmp byte [0x1001f3f8], 0
je 0x1000bfa7
cmp dword [0x1001f3fc], 0
je 0x1000bfdd
call esi
mov ecx, dword [0x1001f3fc]
add ecx, 0xa
cmp ecx, eax
ja 0x1000bfdd
mov byte [0x1001f3f8], 1
call esi
movss xmm0, dword [0x1001d1d8]
cvtps2pd xmm0, xmm0
mov dword [0x1001f3fc], eax
addsd xmm0, qword [0x10018e60]
cvtpd2ps xmm0, xmm0
movss dword [0x1001d1d8], xmm0
jmp 0x1000bfdd
mov byte [0x1001f3f8], 0
push 0xa2
call edi
cwde
shr eax, 0x10
test eax, eax
je 0x1000c03c
cmp byte [0x1001f808], 0
je 0x1000c00d
cmp dword [0x1001f80c], 0
je 0x1000c043
call esi
mov ecx, dword [0x1001f80c]
add ecx, 0xa
cmp ecx, eax
ja 0x1000c043
mov byte [0x1001f808], 1
call esi
movss xmm0, dword [0x1001d1d8]
cvtps2pd xmm0, xmm0
mov dword [0x1001f80c], eax
subsd xmm0, qword [0x10018e60]
cvtpd2ps xmm0, xmm0
movss dword [0x1001d1d8], xmm0
jmp 0x1000c043
mov byte [0x1001f808], 0
push 0x45
call edi
cwde
shr eax, 0x10
test eax, eax
je 0x1000c08e
cmp byte [0x1001f520], 0
je 0x1000c070
cmp dword [0x1001f524], 0
je 0x1000c095
call esi
mov ecx, dword [0x1001f524]
add ecx, 0x64
cmp ecx, eax
ja 0x1000c095
mov byte [0x1001f520], 1
call esi
cmp byte [0x1001d315], 0
mov dword [0x1001f524], eax
sete byte [0x1001d315]
jmp 0x1000c095
mov byte [0x1001f520], 0
pop edi
pop esi
mov eax, dword [0x1001eae8]
mov eax, dword [eax]
cmp eax, 5
je 0x1000c0cc
cmp eax, 4
je 0x1000c0cc
mov ecx, dword [0x1001d200]
sub ecx, dword [0x1001e7dc]
add ecx, dword [0x1001e910]
mov eax, dword [0x1001e9a0]
mov ecx, dword [ecx + eax]
call fcn.10005bf0
cmp eax, 1
jge 0x1000c0d3
mov byte [0x1001d315], 0
ret
Function at 0x1000cc20
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1001eae8]
sub esp, 0xc
cmp dword [eax], 1
push edi
jne 0x1000cd26
mov eax, dword [0x1001d494]
cmp dword [eax], 0
je 0x1000cc83
mov ecx, dword [0x1001d200]
sub ecx, dword [0x1001e7dc]
add ecx, dword [0x1001e910]
mov eax, dword [0x1001e9a0]
mov ecx, dword [ecx + eax]
call fcn.10005bf0
test eax, eax
jle 0x1000cc83
mov eax, dword [0x1001d494]
mov ecx, dword [eax]
add ecx, dword [0x1001e7c4]
call fcn.1000d410
mov ecx, dword [0x1001e7e8]
add ecx, eax
call fcn.1000d430
jmp 0x1000cc86
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000cd26
cmp dword [0x1001d094], eax
je 0x1000cd26
mov eax, dword [0x1001e908]
lea edx, [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001e83c]
mov ecx, esp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push ecx
push eax
push edx
call fcn.1000e830
mov ecx, dword [0x1001e9d8]
call fcn.10004700
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 0x1000cd1f
cmp byte [0x1001f300], 0
je 0x1000cd02
cmp dword [0x1001f304], 0
je 0x1000cd26
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1001f304]
inc ecx
cmp ecx, eax
ja 0x1000cd26
mov byte [0x1001f300], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001f304], eax
mov dword [edi], 5
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x1001f300], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1000cd90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x1001d404]
mov ebx, ecx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x1000ce22
push edi
push 0x28
call fcn.10010363
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
push 0x190
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0x433c0000
mov dword [esi + 0x14], 0x41900000
mov dword [esi + 4], 1
call ebx
add esp, 8
mov dword [esi + 8], eax
xor edi, edi
nop word [eax + eax]
push 0x14
call ebx
mov ecx, dword [esi + 8]
add esp, 4
mov dword [edi + ecx], eax
add edi, 4
cmp edi, 0x190
jl 0x1000ce00
mov ebx, dword [ebp - 4]
pop edi
mov dword [0x1001d404], esi
cmp dword [esi], 0
jne 0x1000ce2c
call fcn.10008a80
movss xmm2, dword [0x10018ee8]
movss xmm1, dword [0x10018ed0]
push ebx
call fcn.100082e0
call fcn.10008640
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000ceb4
cmp byte [0x1001f7f8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1000ce84
cmp dword [0x1001f7fc], 0
je 0x1000cebb
call esi
mov ecx, dword [0x1001f7fc]
add ecx, 0xc8
cmp ecx, eax
ja 0x1000cebb
mov byte [0x1001f7f8], 1
call esi
cmp byte [0x1001d103], 0
pop esi
sete byte [0x1001d103]
mov dword [0x1001f7fc], eax
cmp byte [0x1001d2a5], 0
pop ebx
sete byte [0x1001d2a5]
mov esp, ebp
pop ebp
ret
mov byte [0x1001f7f8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d950
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, 8
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x1000da5c
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x1000d730
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push 0
push 0x1000d900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1000d9f3
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000d9c8
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x1000d9f2
lea eax, [ebp - 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000d9f2
push 0xf8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1000da5c
cmp ecx, esi
jne 0x1000da53
mov edx, dword [eax + 4]
test edx, edx
je 0x1000da15
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1000da21
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1000da30
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1000da3a
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1000da46
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1000da53
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x1000da06
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10010158
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000dec0
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 0x1000deec
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 0x1000df14
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000df1a
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 0x1000df82
jg 0x1000df31
test esi, esi
je 0x1000df82
test ecx, ecx
jl 0x1000df7d
jg 0x1000df3b
test eax, eax
je 0x1000df7d
cmp edi, ecx
jg 0x1000df4f
jl 0x1000df45
cmp esi, eax
jae 0x1000df4f
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 0x1000df85
mov ecx, dword [ebp + 8]
jmp 0x1000df8f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000dfa9
jg 0x1000df8f
test esi, esi
je 0x1000dfa9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000dfa9
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 0x1000dfc0
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 0x1000dfec
jl 0x1000dfe0
test ecx, ecx
jne 0x1000dfec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000e005
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 0x1000e053
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000e059
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 0x1000e059
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000e0c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000e082
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 0x1000e0b4
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 0x1000e0c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000e090
test edi, edi
je 0x1000e0c6
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 0x1000e440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000e470
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010158
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000e4ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000e4ac
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.10010158
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000e583
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000e4d4
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 0x1000e4e0
movsx eax, bl
jmp 0x1000e518
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 0x1000e542
sub eax, 1
je 0x1000e542
sub eax, 2
jne 0x1000e583
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.10010158
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000e560
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 0x1000e583
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.10010158
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.10010158
mov esp, ebp
pop ebp
ret 4