joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100abfe0
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101530b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x4c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x100ac031
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100ac061
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax]
cmp ecx, eax
jb 0x100ac0b0
cmp ecx, edx
jb 0x100ac0b0
test eax, eax
je 0x100ac051
cmp ecx, 0xa00000
ja 0x100ac095
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1010644c
lea ecx, [ebp - 0x14]
call fcn.100b60a0
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.100b60a0
push 0x10140a54
lea eax, [ebp - 0x34]
push eax
call fcn.100b60a0
push 0xcaa10024
lea ecx, [ebp - 0x20]
call fcn.100b60a0
push 0x1013fb60
lea eax, [ebp - 0x20]
push eax
call fcn.100b60a0
push 0xcaa82f9b
lea ecx, [ebp - 0x2c]
call fcn.100b60a0
push 0x1013fb60
lea eax, [ebp - 0x2c]
push eax
call fcn.100b60a0
int3

Function at 0x100ac250
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100feb0d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101530b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x18]
sub esi, dword [ebx + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [esi + ecx]
cmp eax, esi
jl 0x100ac2f6
cmp eax, ecx
jl 0x100ac2f6
cmp eax, 0xa00000
jg 0x100ac2fd
push eax
lea ecx, [ebx + 0x14]
lfence
call fcn.100b60a0
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x40]
push ecx
push dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100ac2c8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100ac318
lfence
mov eax, dword [ebx + 0x40]
lea ecx, [ebx + 0x14]
add eax, esi
push eax
call fcn.100b60a0
push 0xa
mov ecx, ebx
call fcn.100b60a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xcaa82f9c
jmp 0x100ac302
push 0xcaa10024
lea ecx, [ebp - 0x1c]
call fcn.100b60a0
push 0x1013fb60
lea eax, [ebp - 0x1c]
push eax
call fcn.100b60a0
push 0x1010644c
lea ecx, [ebp - 0x10]
call fcn.100b60a0
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.100b60a0
push 0x10140a54
lea eax, [ebp - 0x30]
push eax
call fcn.100b60a0
int3
Function at 0x100b60a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100b60af
pop dword [ebp - 0x18]
mov eax, 0xaa9ccab7
add eax, 0x656e95f8
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x7debe
push 0
mov eax, 0x69c77423
add eax, 0xa648cda9
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x415b
mov ebx, eax
mov edi, 0x1017e400
add edi, dword [ebp - 0x18]
mov edx, 0x48969dc3
sub edx, 0xf4f841e2
mov dword [ebp - 8], 0xf7d17d5c
mov esi, dword [edi]
xor dword [ebp - 8], 0x5398d902
add esi, edx
add dword [ebp - 4], ebx
mov dword [ebx], esi
add ebx, 0x5f9eff64
sub ebx, 0x5f9eff60
add edi, 0x812869d9
sub edi, 0x812869d5
loop 0x100b6102
add eax, 0xf83f
mov ebx, eax
add eax, 0xa404138
sub eax, 0xa404133
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100bc1d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010087d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101530b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.100b60a0
mov esi, eax
add esp, 4
test esi, esi
je 0x100bc26d
push 1
mov dword [ebp - 4], 0
call fcn.100cd614
add esp, 4
mov dword [esi + 4], eax
jmp 0x100bc26f
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1010452c]
mov ecx, edi
call esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.100b60a0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x1010452c]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100bc2fe
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1010452c]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x100bc2fb
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1010452c]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x100bc31a
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x100bc33d
cmp byte [ebp + 0xc], 0
je 0x100bc329
push ebx
call fcn.100b60a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100bc349
mov esi, str.ios_base::badbit_set
jmp 0x100bc359
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.100b60a0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.100b60a0
push 0x10147e74
lea eax, [ebp - 0x30]
push eax
call fcn.100b60a0
int3
Function at 0x406840
Capabilities:
Get socket status

Disassembly:
inc eax
add byte [esi - 0x75], dl
adc byte [eax - 0x18], dl
sbb ebx, dword [eax - 0x17764c80]
mov ch, 0xfe
invalid
push ebp
mov ebp, esp
sub esp, 0xf3000210
push ebx
mov ebx, dword [ebp + 0x13]
push esi
push edi
mov eax, dword [ebx + 4]
or dword [esi - 1], 0xf
test byte [ecx + eax + 0x4b8b0000], dl
adc byte [ebp - 0x76d3f037], al
add dword [eax], eax
add al, al
jne 0x40681a
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
push edx
push eax
call dword [0x40c17a]
push 0xfffffffffffffff8
dec dword [edi]
test eax, eax
cli
add byte [eax], al
mov esi, dword [0xecc1d8]
call esi
shr byte ss:[esp + eax*4], 0xf9
add byte [eax], al
add bh, bh
salc
add eax, 0xf70ae180
cmp eax, 0x890b23b3
jne 0x4069f4
mov edi, dword [ebx + 0x20]
mov esi, dword [ebx + 0x13]
xchg esp, eax
adc cl, byte [ebx]
invalid
invalid

Function at 0x40b13f
Capabilities:
Encode data using xor

Disassembly:
pop ebp
push 0x3233
push 0x5f327377
push esp
push 0x726774c
call ebp
mov eax, 0x190
sub esp, eax
push esp
push eax
push 0x6b8029
call ebp
push eax
push eax
push eax
push eax
inc eax
push eax
inc eax
push eax
push 0xe0df0fea
call ebp
xchg edi, eax
call 0x40b07d
xor dword [edx], esi
aaa
xor byte cs:[esi], ch
xor byte [esi], ch
xor dword [eax], eax
push 0x803428a9
call ebp
mov eax, dword [eax + 0x1c]
push 0xa
push eax
push 0x7b000002
mov esi, esp
push 0x10
push esi
push edi
push 0x6174a599
call ebp
test eax, eax
je 0x40b0aa
dec dword [esi + 8]
jne 0x40b091
call fcn.0040b186
push 0
push 4
push esi
push edi
push 0x5fc8d902
call ebp
cmp eax, 0
jle 0x40b105
mov esi, dword [esi]
xor esi, 0xd3a205a0
lea ecx, [esi + 0x100]
push 0x40
push 0x1000
push ecx
push 0
push 0xe553a458
call ebp
lea ebx, [eax + 0x100]
push ebx
push esi
push eax
push 0
push esi
push ebx
push edi
push 0x5fc8d902
call ebp
cmp eax, 0
jge 0x40b11d
pop eax
push 0x4000
push 0
push eax
push 0x300f2f0b
call ebp
push edi
push 0x614d6e75
call ebp
pop esi
pop esi
dec dword [esp]
jne 0x40b06e
jmp 0x40b0a5
add ebx, eax
sub esi, eax
jne 0x40b0e4
pop ebx
pop ecx
pop ebp
push ebp
push edi
mov edi, ebx
call 0x40b13f
xor al, 0x2a
push 0x53d0a27e
pushal
leave
push ebx
adc byte [edx - 0x35], bh
call 0x319eb97f
shr byte [edx - 0x48a3f02], 0x81
out dx, eax
add byte [ecx], al
add byte [eax], al
xor ebx, ebx
add bl, byte [edi + eax]
mov edx, eax
and dl, 0xf
add bl, byte [esi + edx]
mov dl, byte [edi + eax]
xchg byte [edi + ebx], dl
mov byte [edi + eax], dl
inc al
jne 0x40b14f
xor ebx, ebx
inc al
add bl, byte [edi + eax]
mov dl, byte [edi + eax]
xchg byte [edi + ebx], dl
mov byte [edi + eax], dl
add dl, byte [edi + ebx]
mov dl, byte [edi + edx]
xor byte [ebp], dl
inc ebp
dec ecx
jne 0x40b169
pop edi
ret
Function at 0x1000b5fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10045430]
jne 0x1000b604
repz ret
jmp fcn.1000b925

Function at 0x1000e9b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000b6fc
and dword [ebp - 4], 0
cmp dword [0x10046b70], 0
mov ebx, eax
jne 0x1000ea6a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000eb1b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000eb1b
push eax
call fcn.1000b68a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10046b70], eax
call esi
push eax
call fcn.1000b68a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10046b74], eax
call esi
push eax
call fcn.1000b68a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10046b78], eax
call esi
push eax
call fcn.1000b68a
pop ecx
mov dword [0x10046b80], eax
test eax, eax
je 0x1000ea6a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000b68a
pop ecx
mov dword [0x10046b7c], eax
mov eax, dword [0x10046b7c]
cmp eax, ebx
je 0x1000eac2
cmp dword [0x10046b80], ebx
je 0x1000eac2
push eax
call fcn.1000b705
push dword [0x10046b80]
mov esi, eax
call fcn.1000b705
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000eac2
test edi, edi
je 0x1000eac2
call esi
test eax, eax
je 0x1000eab9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000eab9
test byte [ebp - 0xc], 1
jne 0x1000eac2
or dword [ebp + 0x10], 0x200000
jmp 0x1000eafb
mov eax, dword [0x10046b74]
cmp eax, ebx
je 0x1000eafb
push eax
call fcn.1000b705
pop ecx
test eax, eax
je 0x1000eafb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000eafb
mov eax, dword [0x10046b78]
cmp eax, ebx
je 0x1000eafb
push eax
call fcn.1000b705
pop ecx
test eax, eax
je 0x1000eafb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10046b70]
call fcn.1000b705
pop ecx
test eax, eax
je 0x1000eb1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000eb1d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010730
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov eax, dword [0x10045298]
sub eax, 0x2336
mov dword [0x10045298], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x10045298], 0x97d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10045298]
add eax, 0x1747
mov dword [0x1004529c], eax
mov dword [ebp - 0x10], 0
jmp 0x100107d4
jmp 0x100107c6
mov dword [0x10045298], 0x24ef
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10010848
jmp 0x100108cf
jmp 0x100108d4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x10010788
jmp 0x100107ad
jmp 0x100108cb
mov dword [ebp - 4], 1
jmp 0x100107df
cmp dword [ebp - 0x10], 0x104
jl 0x100107e7
jmp 0x10010813
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret
mov dword [0x1004529c], 0x1119
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10010804
jmp 0x10010813
jmp 0x10010806
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100107d4
mov eax, dword [0x10045298]
sub eax, 0x2584
mov dword [0x1004529c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax - 0x1a]
cmp ecx, 0x6c
je 0x100107b2
jmp 0x100108d4
mov dword [0x10045298], 0x2129
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100108cd
mov dword [0x10045298], 0x15a8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax - 0x12]
cmp ecx, 0x64
jne 0x100108cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x100107c6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xfffffff2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x6c
je 0x100107cb
jmp 0x10010786
jmp 0x100108cd
jmp 0x100108cf
jmp 0x100107ad
mov eax, dword [0x10045298]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x1b23
mov dword [0x10045298], eax
mov dword [ebp - 4], 0
jmp 0x100107df
Function at 0x10010950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10010950]
mov dword [ebp - 4], eax
mov eax, dword [0x1004529c]
add eax, 0x1794
mov dword [0x1004529c], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10010997
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax], 0x4550
jne 0x10010995
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x100109c6
jmp 0x10010997
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [0x10045298], 0x1b2
mov al, 1
test al, 1
jne 0x1001096e
jmp 0x100109bf
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
Function at 0x100127a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1025d602
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x102fb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x102de3f8
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.1001e900
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.1001f020
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x1030bab8]
mov dword [esi + 0x40], eax
mov eax, dword [0x1030babc]
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 1
mov byte [ebp - 4], 3
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.10014160
test eax, eax
jne 0x1001290c
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10024380
mov eax, edi
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 0x10012bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10012bfb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001f950
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10012c1d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10012c1f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10012ca3
jg 0x10012c34
test esi, esi
je 0x10012ca3
test ecx, ecx
jl 0x10012c7d
jg 0x10012c3e
test eax, eax
je 0x10012c7d
cmp edi, ecx
jg 0x10012c52
jl 0x10012c48
cmp esi, eax
jae 0x10012c52
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.100cd2f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10012c80
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10012ca3
jg 0x10012c8a
test esi, esi
je 0x10012ca3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10012ca3
push eax
push esi
push 1
push edx
call fcn.100e34c3
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10012ceb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001f800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10012d0d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10012d0f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x10012dae
jg 0x10012d2c
test esi, esi
je 0x10012dae
test ecx, ecx
jl 0x10012d79
jg 0x10012d36
test eax, eax
je 0x10012d79
cmp ebx, ecx
jg 0x10012d4a
jl 0x10012d40
cmp esi, eax
jae 0x10012d4a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.100cd2f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10012d80
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x10012dae
jg 0x10012d8a
test esi, esi
je 0x10012dae
cmp dword [edi + 0x4c], 0
je 0x10012dae
mov ecx, edi
call fcn.10013e80
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.100e3704
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100131c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100131f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053a94
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001322c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001322c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053a94
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100132f4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10013254
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 edx, dword [esi + 0x38]
test edx, edx
jne 0x10013287
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100e3b4b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053a94
mov esp, ebp
pop ebp
ret 4
mov cl, bl
mov byte [ebp - 0x25], cl
mov edi, dword [edx]
cmp edi, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x1001330a
lea eax, [ebp - 0x25]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x4c]
call fcn.1001b540
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053a94
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100132e4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100e34c3
add esp, 0x10
cmp edi, eax
jne 0x100132f4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10013217
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov ecx, edx
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 [edi + 0x1c]
test eax, eax
js 0x100132f4
cmp eax, 1
jle 0x100132c7
cmp eax, 3
jne 0x100132f4
mov cl, byte [ebp - 0x25]
jmp 0x100132a2