joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c9e70
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0f9d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x10352098]
mov edi, dword [esi + 0x174]
test edi, edi
setg byte [ebp - 0x14]
cmp dword [0x10312870], 4
jne 0x100c9ed9
mov edx, dword [esi + 0x4cb0]
add edx, dword [esi + 0x4cac]
mov ecx, dword [0x10352040]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push dword [ebp - 0x14]
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x10357a08], 0
jne 0x100ca00f
movaps xmm0, xmmword [0x100e77b0]
xor eax, eax
movaps xmm2, xmmword [0x100e7bd0]
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x1c], 0xa3a6
movaps xmm0, xmmword [0x100e7620]
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x1a], 0xe0
nop
movups xmm0, xmmword [ebp + eax - 0x3c]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x3c], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100c9f10
cmp eax, 0x23
jae 0x100c9f3b
nop dword [eax]
xor byte [ebp + eax - 0x3c], 0xe0
inc eax
cmp eax, 0x23
jb 0x100c9f30
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c9f56
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.100304c0
mov dword [ebp - 4], 0
mov edx, dword [0x10351ff8]
test edx, edx
je 0x100c9f82
mov edx, dword [edx + 0x50]
jmp 0x100c9f84
xor edx, edx
mov eax, dword [0x10351ff0]
test eax, eax
je 0x100c9f92
mov eax, dword [eax + 0x18]
jmp 0x100c9f94
xor eax, eax
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10057ea0
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x40]
inc edi
cmp ecx, 0xf
jbe 0x100c9fde
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100c9fd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c9fd4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d7cba
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x10357a08], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d778c
mov esp, ebp
pop ebp
ret
Function at 0x41aab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x41abd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], RegOpenKeyA
mov dword [ebp - 0x10], 0
jmp 0x41abef
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x41acb6
mov dword [ebp - 8], 0x4189
cmp dword [ebp - 0x10], 0
jne 0x41ac58
push 0x104
push 0x4011f0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push str.u71s3v305tuc78mnkn8ohj
push 0x4011f0
call dword [sym.imp.kernel32.dll_lstrcatW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 1
push 0x4011f0
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41ac51
cmp dword [ebp - 4], 0
jne 0x41ac58
mov eax, 0x42
jmp 0x41acb6
mov edx, dword [ebp - 0x10]
add edx, 0x563
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x41abe6
mov esp, ebp
pop ebp
ret
Function at 0x61c07310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x61c07423
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x61c07423
mov eax, dword [ebp - 0x18]
lea esi, [esi]
inc eax
cmp byte [eax], 0
jne 0x61c0733c
sub eax, dword [ebp - 0x18]
and eax, 0x3fffffff
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
test edx, edx
jle 0x61c073f8
xor ebx, ebx
lea esi, [esi]
cmp ebx, 1
jle 0x61c07408
mov edi, ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x61c07418
shl edi, 4
mov eax, dword [ebp - 0x14]
add edi, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [edi]
mov cl, byte [edx]
test cl, cl
je 0x61c073ca
movzx esi, cl
movzx ecx, byte [eax]
movzx esi, byte [esi + 0x61c88c20]
mov edx, esi
cmp dl, byte [ecx + 0x61c88c20]
jne 0x61c073eb
mov edx, dword [ebp - 0x20]
mov esi, ebx
jmp 0x61c073c0
movzx ebx, bl
movzx ecx, byte [eax]
mov bl, byte [ebx + 0x61c88c20]
cmp bl, byte [ecx + 0x61c88c20]
jne 0x61c07404
inc edx
inc eax
mov bl, byte [edx]
test bl, bl
jne 0x61c073ac
mov ebx, esi
movzx eax, byte [eax]
cmp byte [eax + 0x61c88c20], 0
jne 0x61c073eb
mov eax, dword [edi + 0xc]
add eax, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.61c03870
test eax, eax
jne 0x61c073fa
inc ebx
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x14], ebx
jg 0x61c07360
xor eax, eax
add esp, 0x14
pop ebx
pop esi
pop edi
leave
ret
mov ebx, esi
jmp 0x61c073eb
mov edi, ebx
xor edi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x61c07376
shl edi, 4
mov esi, dword [ebp - 0x14]
add edi, dword [esi + 0x10]
jmp 0x61c073d6
mov dword [ebp - 0x1c], 0
jmp 0x61c0734d
Function at 0x61c07430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
test edx, edx
je 0x61c0752a
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x61c0752a
mov eax, dword [ebp - 0x18]
inc eax
cmp byte [eax], 0
jne 0x61c07458
sub eax, dword [ebp - 0x18]
and eax, 0x3fffffff
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
test ecx, ecx
jle 0x61c07510
xor ebx, ebx
lea esi, [esi]
cmp ebx, 1
jle 0x61c07520
mov eax, ebx
shl eax, 4
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x10]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
test esi, esi
je 0x61c074ee
mov dword [ebp - 0x20], esi
mov eax, dword [eax]
mov cl, byte [esi]
test cl, cl
je 0x61c074e2
movzx edi, cl
movzx ecx, byte [eax]
movzx edi, byte [edi + 0x61c88c20]
mov edx, edi
cmp dl, byte [ecx + 0x61c88c20]
jne 0x61c07503
mov edx, esi
mov edi, ebx
jmp 0x61c074d8
movzx ebx, bl
movzx ecx, byte [eax]
mov bl, byte [ebx + 0x61c88c20]
cmp bl, byte [ecx + 0x61c88c20]
jne 0x61c0751c
inc edx
inc eax
mov bl, byte [edx]
test bl, bl
jne 0x61c074c4
mov ebx, edi
movzx eax, byte [eax]
cmp byte [eax + 0x61c88c20], 0
jne 0x61c07503
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.61c03870
test eax, eax
jne 0x61c07512
inc ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], ebx
jg 0x61c0747c
xor eax, eax
add esp, 0x14
pop ebx
pop esi
pop edi
leave
ret
mov ebx, edi
jmp 0x61c07503
mov eax, ebx
xor eax, 1
jmp 0x61c07487
mov dword [ebp - 0x1c], 0
jmp 0x61c07469

Function at 0x61c07b28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
test edx, edx
je 0x61c07b54
cmp byte [edx], 0
je 0x61c07b54
mov ecx, edx
inc ecx
cmp byte [ecx], 0
jne 0x61c07b38
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x38
leave
jmp fcn.61c03870
xor ecx, ecx
mov eax, dword [eax + 0x44]
add eax, 0x38
leave
jmp fcn.61c03870
Function at 0x61c134bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.61c130db
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.61c13126
push eax
push esi
push dword [ebp + 8]
call fcn.61c130db

Function at 0x61c1352c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x61c135b1
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.61c13126
push eax
push esi
push dword [ebp + 8]
call fcn.61c130db
add esp, 0x30
mov dword [ebp - 0xb8], eax
invalid
Function at 0x61c13794
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x61c137ca
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x61c137c5
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x61c137af
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x61c137b7
cmp edx, ebx
jne 0x61c13905
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x61c13786
add eax, dword [eax + 4]
jmp 0x61c13773
mov dword [ebp + 0xc], ebx
jmp 0x61c137d5
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x61c137ed
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x61c1380b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x61c13869
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x61c13850
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x61c13859
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x61c13863
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x61c13845
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x61c137cf
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x61c138b6
dec eax
je 0x61c138ad
sub eax, 3
je 0x61c138a4
mov dword [ebp - 4], 0x40
jmp 0x61c138d3
mov dword [ebp - 4], 4
jmp 0x61c138b9
mov dword [ebp - 4], 0x20
jmp 0x61c138b9
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x61c13905
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x61c13885
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.61c13116
pop ss
int 0x4b
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x61c13911
Function at 0x61c13f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ebx - 0x7a76efbb]
inc esp
stc
invalid
Function at 0x61c4b2ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x20], ecx
test ebx, ebx
je 0x61c4b2df
mov eax, dword [ebx + 4]
test ah, 0x10
je 0x61c4b2df
test eax, 0x40000
je 0x61c4b3d4
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
test ebx, ebx
jne 0x61c4b2c0
mov ecx, dword [esi + 0x174]
test ecx, ecx
jle 0x61c4b360
mov eax, dword [esi]
test byte [eax + 0x3c], 8
jne 0x61c4b360
cmp byte [ebx], 0x9f
je 0x61c4b360
mov edx, 3
mov eax, ebx
call fcn.61c0f820
test eax, eax
je 0x61c4b360
mov eax, dword [esi + 0x168]
mov edx, dword [ebp - 0x20]
mov dword [edx], 0
test eax, eax
je 0x61c4b3ff
mov edi, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
jle 0x61c4b3ff
mov dword [ebp - 0x1c], esi
mov esi, ebx
mov ebx, eax
jmp 0x61c4b340
dec ebx
test ebx, ebx
jle 0x61c4b3fa
add edi, 0x14
test byte [edi + 0xd], 4
je 0x61c4b334
mov ecx, 0xffffffff
mov edx, esi
mov eax, dword [edi]
call fcn.61c0bb54
test eax, eax
jne 0x61c4b334
mov edi, dword [edi + 0x10]
jmp 0x61c4b3c9
mov al, byte [esi + 0x13]
test al, al
je 0x61c4b3dc
dec eax
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, esi
call fcn.61c48838
mov edi, eax
cmp eax, dword [ebp - 0x1c]
je 0x61c4b3e8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x61c4b3c0
mov cl, byte [esi + 0x13]
cmp cl, 7
ja 0x61c4b3c0
lea edx, [esi + 0x78]
xor eax, eax
mov ebx, dword [ebp - 0x1c]
jmp 0x61c4b3a7
add edx, 0x18
cmp ebx, dword [edx + 0x10]
je 0x61c4b41a
inc eax
cmp eax, 0xa
jne 0x61c4b3a4
movzx eax, cl
mov edx, dword [ebp - 0x1c]
mov dword [esi + eax*4 + 0x1c], edx
inc ecx
mov byte [esi + 0x13], cl
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov ebx, dword [ebx + 0xc]
jmp 0x61c4b2bc
mov eax, dword [esi + 0x4c]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x4c], eax
jmp 0x61c4b375
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov ebx, esi
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + 0x4c]
inc edi
mov dword [esi + 0x4c], edi
mov dword [esp], 1
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.61c1eff8
jmp 0x61c4b3c9
mov byte [edx + 8], 1
jmp 0x61c4b3c0
Function at 0x1000b660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1000b693
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x1000a3f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000b693
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10024ee0
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 0x10024f0c
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 0x10024f34
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10024f3a
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 0x10024fc4
jg 0x10024f51
test esi, esi
je 0x10024fc4
test ecx, ecx
jl 0x10024fa7
jg 0x10024f5b
test eax, eax
je 0x10024fa7
cmp edi, ecx
jg 0x10024f6f
jl 0x10024f65
cmp esi, eax
jae 0x10024f6f
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 ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10024fc4
jg 0x10024faa
test esi, esi
je 0x10024fc4
jmp 0x10024faa
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10024fc4
push eax
push esi
push 1
push edx
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 0x10024fe0
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 0x1002500c
jl 0x10025000
test ecx, ecx
jne 0x1002500c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10025025
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 0x1002506d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10025073
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10025073
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100250e6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002509c
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 0x100250d4
nop dword [eax]
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 0x100250e6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100250b0
test edi, edi
je 0x100250e6
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 0x10025470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10055040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100254a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10042b39
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100254dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100254dc
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.10042b39
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100255b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10025504
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 0x10025510
movsx eax, bl
jmp 0x10025548
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 0x10025572
sub eax, 1
je 0x10025572
sub eax, 2
jne 0x100255b3
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.10042b39
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10025590
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 0x100255b3
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.10042b39
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.10042b39
mov esp, ebp
pop ebp
ret 4