joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006250
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.1000b020
mov eax, dword [0x10038198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov eax, dword [edi]
test eax, eax
je 0x1000629c
push eax
call fcn.100081fb
add esp, 4
mov dword [edi], 0
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + 0x1002fbe0]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a], ax
test ax, ax
jne 0x100062a0
lea eax, [ebp - 0x18]
push eax
call fcn.10005910
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.100068c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100063d5
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100063cc
lea eax, [ebp - 0x101c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100063cc
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.1000736b
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jle 0x1000637a
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
push 0
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x101c]
call ebx
test eax, eax
je 0x100063c9
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.1000736b
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jg 0x10006340
or ebx, 0xffffffff
push 1
push 0x14
mov dword [ebp - 0x1024], 0x14
call fcn.100081bb
add esp, 8
mov dword [edi], eax
lea ecx, [ebp - 0x1024]
push 0
push ecx
push eax
push 2
push dword [ebp - 0x101c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100063c5
mov eax, dword [edi]
test eax, eax
je 0x100063cc
push eax
call fcn.100081fb
add esp, 4
mov dword [edi], 0
jmp 0x100063cc
xor ebx, ebx
jmp 0x100063cc
or ebx, 0xffffffff
push esi
call fcn.1000a792
add esp, 4
mov eax, dword [ebp - 0x1020]
test eax, eax
je 0x100063e8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x101c]
test ecx, ecx
je 0x100063f9
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008398
mov esp, ebp
pop ebp
ret
Function at 0x10006410
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
push edi
or edi, 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x10006441
push eax
call fcn.100081fb
add esp, 4
mov dword [esi], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100064cd
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100064cd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100064cd
push 1
push 0x14
mov dword [ebp + 0xc], 0x14
call fcn.100081bb
add esp, 8
mov dword [esi], eax
lea ecx, [ebp + 0xc]
push 0
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100064cb
mov eax, dword [esi]
test eax, eax
je 0x100064cd
push eax
call fcn.100081fb
add esp, 4
mov dword [esi], 0
jmp 0x100064cd
xor edi, edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x100064dd
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
test eax, eax
je 0x100064eb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x14
call fcn.100081bb
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0
push esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
push 0x10006b30
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 2
call fcn.1000ad23
mov dword [esi], eax
add esp, 0x20
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
pop ebp
ret

Function at 0x10006580
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x402cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3c25b], al
inc dword [eax]
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004023c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040237e
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], pe_nt_image_headers32
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004023c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040237e
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004023b9
cmp dword [ecx - 9], 0xffffffad
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.004023c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040237e
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.004023b9
mov eax, 0x8037a608
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x4051e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x1001c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00406c70
lea esi, [ebp - 0x8018]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov eax, 0x8000
lea ebx, [ebp - 0x10018]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [esp], ebx
xor edx, edx
mov ecx, 0x7fff
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memset
mov eax, 0x400
mov ecx, 0x13
mov edx, 0xa
mov dword [esp + 0xc], eax
mov eax, dword [0x412880]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40536c
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4052d0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4052d0
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x405290
mov ecx, dword [0x40a028]
test ecx, ecx
je 0x4052d0
mov eax, dword [0x40a090]
test eax, eax
je 0x4052d0
mov dword [esp + 0xc], ebx
mov ecx, 0x13
mov edx, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea esi, [esi]
mov dword [esp], ebx
mov eax, 0x409438
mov dword [esp + 4], eax
jmp 0x4052ff
mov dword [esp], ebx
mov ebx, 0x409438
mov dword [esp + 4], esi
call sub.KERNEL32.dll_SetEnvironmentVariableA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x405364
mov dword [esp], eax
mov ecx, 0x3d
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strchr
mov byte [eax], 0
mov edx, dword [ebp + 8]
inc eax
mov byte [ebp - 0x8018], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403100
mov eax, dword [0x40a090]
test eax, eax
je 0x4052e0
mov dword [esp + 0xc], esi
mov edx, str.Set_var:_t_s___s_n
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4052e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x10018], 0
sub esp, 4
jmp 0x4052d0
Function at 0x406a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406c70
call fcn.00406c00
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406a48
jmp 0x406ae6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406a47
cmp cl, 0x22
je 0x406aa0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x406ac0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x406a80
jmp 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x406aa0
cmp cl, 0x22
je 0x406b22
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x406ae0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x406ad0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x406b04
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x406ac0

Function at 0x4011f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40414d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401238
xor eax, eax
jmp 0x401253
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x404240
push ecx
jmp fcn.004025ab
Function at 0x1000bbb0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100144bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10019008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.1000ca00
mov dword [ebp - 4], 0
sub esp, 8
mov ebx, dword [ebp + 0x1c]
mov ecx, edi
fld1
mov dword [edi], vtable.Scroll.0
fstp qword [esp]
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], ebx
call fcn.1000c150
mov eax, dword [edi + 0x4c]
mov ecx, edi
push 0
push 0
push 4
mov dword [edi + 0x54], eax
mov dword [edi + 0x74], 0
mov byte [edi + 0x78], 0
mov dword [edi + 0x68], 1
call fcn.1000ced0
push 1
push 0
push 0
push 0
push 0
push edi
push fcn.1000bab0
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 2
push 0x100157e4
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 2], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10006fa0
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000a5d0
push 1
mov dword [esi + 0x7c], eax
push 0
push 0
mov dword [eax + 0x38], 0xa5
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
lea eax, [ebx - 0xc]
push eax
push 0
mov ebx, edi
push ebx
push fcn.1000bb30
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 4
mov dword [esi], 0
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
push str.down
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10006fa0
mov ecx, dword [ebx + 0x2c]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000a5d0
mov dword [ebx + 0x80], eax
mov dword [eax + 0x38], 0xa7
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
mov eax, dword [ebx + 0x7c]
mov byte [eax + 0x1b], 0
mov eax, dword [ebx + 0x80]
mov byte [eax + 0x1b], 0
mov esi, dword [ebx + 0x58]
lea eax, [esi - 0x18]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [ebx + 0x60]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1000bd8b
fstp st(0)
jmp 0x1000bd8d
fstp st(1)
call fcn.10013fe0
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub ecx, dword [ebx + 0x4c]
sub esi, 0x18
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov ecx, dword [ebx + 0x50]
sub ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x6c], eax
fidiv dword [ebp + 8]
mov dword [ebp + 8], esi
fimul dword [ebp + 8]
call fcn.10013fe0
mov dword [ebx + 0x70], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x1000ca00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100144f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10019008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push str.guiparent
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c6e0
mov dword [ebp - 4], 0
mov dword [edi], vtable.GUIParent.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea esi, [edi + 0x38]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1001301a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10012360
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 0x1001238c
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 0x100123b4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100123ba
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 0x10012422
jg 0x100123d1
test esi, esi
je 0x10012422
test ecx, ecx
jl 0x1001241d
jg 0x100123db
test eax, eax
je 0x1001241d
cmp edi, ecx
jg 0x100123ef
jl 0x100123e5
cmp esi, eax
jae 0x100123ef
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 0x10012425
mov ecx, dword [ebp + 8]
jmp 0x1001242f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10012449
jg 0x1001242f
test esi, esi
je 0x10012449
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10012449
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 0x10012460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10012484
jl 0x10012479
test ecx, ecx
jne 0x10012484
xor eax, eax
xor edx, edx
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x38], 0
je 0x1001249e
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
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 edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
push esi
mov esi, ecx
mov ebx, dword [eax]
test ebx, ebx
je 0x100124ea
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100124f0
cmp eax, ecx
jb 0x100124c6
mov eax, ecx
mov dword [ebp - 4], ecx
push eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 4]
add ebx, ecx
mov esi, dword [ebp + 0xc]
sub esi, ecx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100124f3
lea eax, [edi + 0x2c]
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x4c], 0
je 0x10012566
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x1001251c
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp esi, 0xfff
jbe 0x10012554
lea esp, [esp]
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call eax
add esp, 0x10
add ebx, eax
sub esi, eax
cmp eax, 0xfff
jne 0x10012566
cmp esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10012530
test esi, esi
je 0x10012566
push dword [edi + 0x4c]
push esi
push 1
push ebx
call eax
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
pop esi
pop ebx
sbb edx, 0
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100128e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10012910
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10012940
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10012940
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10012a00
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10012969
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 0x10012975
movsx eax, bl
jmp 0x100129ad
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 0x100129d6
sub eax, 1
je 0x100129d6
sub eax, 2
jne 0x10012a00
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
cmp eax, 0xffffffff
jne 0x100129c1
or ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100129f4
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 0x10012a00
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100129c1
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012e0f
mov esp, ebp
pop ebp
ret 4
Function at 0x10012bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10019008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10012c6c
cmp byte [esi + 0x3d], 0
je 0x10012c6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10012c5a
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 0x10012c21
sub eax, 1
je 0x10012c25
sub eax, 2
jne 0x10012c5a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10012c43
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 0x10012c5a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10012e0f
mov esp, ebp
pop ebp
ret