joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a940
Capabilities:
Encode data using xor

Disassembly:
stc
mov al, byte [0xaa3423a1]
mov dword [0xdf21e74c], eax
idiv dword [edi + 0x71]
loopne 0x40a9cc
arpl word [ebx - 0x57], di
out dx, al
and eax, 0x19a94e19
add ah, byte [ebx*2 + 0x5035562a]
jge 0x40a9b0
or dword [eax - 0x1361a709], ebx
xor ecx, dword [edx + 0x4563da0a]
push edi
arpl word [ebp + 0x57], ax
mov cl, 4
insb byte es:[edi], dx
mov word [edi + 0x5a], es
xor al, 0x2c
xlatb
add byte [edx + ebx*8 + 0x5e60e07f], cl
mov bh, 0x1d
jno 0x40a96c
dec eax
xlatb
cmp ah, dh
xchg edi, eax
dec edi
fnstenv [ebp - 0x4a]
dec ebp
lea esp, [0x94537272]
invalid
out 0x2b, al
mov ebp, 0xfcc32335
sbb cl, byte [edx - 0x2de274b2]
add eax, 0x422eec94
call 0x95d135ef
out dx, eax
les ecx, [ecx + 0x24a76ac5]
push ebp
push 0xffffffffffffffa7
and al, 0x55
adc eax, 0x26d44982
bound ebx, qword [ecx]
cmp edx, dword [edx + 0x1b]
adc dword [0xc58500a8], 0x823606e3
js 0x40a9f3
add byte [ebp - 0x569f7d19], dh
add dh, byte [edi - 0x56]
pop ss
fsubrp st(2)
test al, 0x4b
dec ebx
push ebx
adc byte [eax], ch
clc
stosd dword es:[edi], eax
xchg di, ax
add ecx, dword [edx - 0x1c83ada0]
inc eax
push esi
sbb eax, 0x7012fd4
shr dword [ebx - 0x577cf9ab], 0x45
sub al, 0x4d
or ch, byte [edx + 0x79843ffd]
pop es
adc dl, byte [eax + 0x7e]
invalid

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10010750
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp ebx, eax
je 0x100108f4
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0xc]
mov esi, ebx
xor ecx, eax
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov ebx, esi
mov dword [ebp - 0x14], esi
mov esi, dword [esi]
lea ecx, [ebx + 0x24]
call fcn.10010920
lea ecx, [ebx + 0x18]
call fcn.100100c0
lea ecx, [ebx + 0xc]
call fcn.100100c0
push 0x3c
push ebx
call fcn.1009378a
mov edx, dword [ebp - 0x18]
add esp, 8
mov eax, dword [ebp - 0x10]
dec dword [edx + 8]
cmp ebx, eax
je 0x10010830
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100107d0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x100108ea
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi], esi
mov dword [ecx], esi
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x10010844
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dword [edi], eax
jmp 0x10010847
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], ecx
cmp esi, eax
je 0x100108ea
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + ecx*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov ebx, esi
mov dword [ebp - 0x10], esi
mov esi, dword [esi]
lea ecx, [ebx + 0x24]
call fcn.10010920
lea ecx, [ebx + 0x18]
call fcn.100100c0
lea ecx, [ebx + 0xc]
call fcn.100100c0
push 0x3c
push ebx
call fcn.1009378a
mov edx, dword [ebp - 0x18]
add esp, 8
mov eax, dword [ebp - 0x14]
dec dword [edx + 8]
cmp ebx, eax
mov eax, dword [ebp + 0xc]
je 0x100108fb
cmp esi, eax
jne 0x100108a7
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
cmp esi, eax
jne 0x10010860
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10030630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.10093326
mov esi, eax
add esp, 4
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [edi + 8], esi
test esi, esi
je 0x100306ae
mov eax, 1
lock xadd dword [esi], eax
mov dword [ebp - 0x18], esi
push 8
mov byte [ebp - 4], 2
call fcn.10093326
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x100929b0
lea esi, [edi + 4]
mov byte [ebp - 4], 3
push esi
push 0
push eax
push 0x10031710
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x10030711
mov eax, edi
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.10093318
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [esi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1003c760
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
or eax, 0xffffffff
push esi
push edi
mov edi, 4
lea esi, [ebx + 4]
jmp dword [edi*4 + 0x1003d9a8]
Function at 0x10050ad0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100968cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100b3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
xorps xmm0, xmm0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov word [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x30], 0
mov word [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov byte [ebx + 0x3c], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
movups xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x50]
mov edi, 0x1400
nop dword [eax + eax]
mov ecx, esi
call fcn.1000a110
add esi, 0x30
sub edi, 1
jne 0x10050ba0
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
Function at 0x1005d140
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov eax, dword [edx + 4]
lea ebx, [ecx + 0x30a0]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x1005d2a0
push esi
push edi
lea esi, [ecx + 0x1c]
lea edi, [ecx + 0x30bc]
mov eax, dword [ebx]
lea ecx, [esi - 0x1c]
mov dword [ecx], eax
mov edx, ebx
mov eax, dword [edi - 0x18]
sub edx, ecx
mov dword [esi - 0x18], eax
mov ecx, 0x100
mov eax, dword [edi - 0x14]
mov dword [esi - 0x14], eax
mov eax, dword [edi - 0x10]
mov dword [esi - 0x10], eax
mov eax, dword [edi - 0xc]
mov dword [esi - 0xc], eax
mov eax, dword [edi - 8]
mov dword [esi - 8], eax
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx eax, byte [edi + 7]
mov byte [esi + 7], al
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ax, word [edi + 0x30]
mov word [esi + 0x30], ax
movups xmm0, xmmword [edi + 0x34]
movups xmmword [esi + 0x34], xmm0
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x50]
lea eax, [eax + 0x30]
movups xmm0, xmmword [edx + eax - 0x30]
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx + eax - 0x20]
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [edx + eax - 0x10]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x1005d224
mov eax, dword [edi + 0x3050]
add ebx, 0x30a0
mov dword [esi + 0x3050], eax
movups xmm0, xmmword [edi + 0x3054]
movups xmmword [esi + 0x3054], xmm0
movups xmm0, xmmword [edi + 0x3064]
movups xmmword [esi + 0x3064], xmm0
movups xmm0, xmmword [edi + 0x3074]
add edi, 0x30a0
movups xmmword [esi + 0x3074], xmm0
add esi, 0x30a0
cmp ebx, dword [ebp - 4]
jne 0x1005d171
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [ebp + 8]
add dword [edx + 4], 0xffffcf60
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10072330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1007236c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10071ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10072363
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x10077a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097e96
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1009b560
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x10077b30
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1007e420
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0x18]
call fcn.100841e0
add esp, 4
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1000a550
lea ecx, [ebp - 0x38]
call fcn.10010b00
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
Function at 0x10077f80
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 0x10077fac
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 0x10077fd4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10077fda
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 0x10078042
jg 0x10077ff1
test esi, esi
je 0x10078042
test ecx, ecx
jl 0x1007803d
jg 0x10077ffb
test eax, eax
je 0x1007803d
cmp edi, ecx
jg 0x1007800f
jl 0x10078005
cmp esi, eax
jae 0x1007800f
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 0x10078045
mov ecx, dword [ebp + 8]
jmp 0x1007804f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10078069
jg 0x1007804f
test esi, esi
je 0x10078069
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10078069
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 0x10078080
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 0x100780ac
jl 0x100780a0
test ecx, ecx
jne 0x100780ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100780c5
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 0x1007810d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10078113
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 0x10078113
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10078186
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1007813c
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 0x10078174
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 0x10078186
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10078150
test edi, edi
je 0x10078186
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 0x100784c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100784f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10078520
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10078520
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.10093318
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100785f8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10078549
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 0x10078555
movsx eax, bl
jmp 0x1007858d
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 0x100785b7
sub eax, 1
je 0x100785b7
sub eax, 2
jne 0x100785f8
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100785d5
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 0x100785f8
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.10093318
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.10093318
mov esp, ebp
pop ebp
ret 4
Function at 0x10079f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1007a02c
cmp byte [esi + 0x3d], 0
je 0x1007a02c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1007a01a
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 0x10079fe1
sub eax, 1
je 0x10079fe5
sub eax, 2
jne 0x1007a01a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1007a003
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 0x1007a01a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10093318
mov esp, ebp
pop ebp
ret
Function at 0x1008dbd0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1008dcca
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1008dcc3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1008dca9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1008dca9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1008dca9
mov edx, dword [esi]
test edx, edx
jne 0x1008dc72
push 0x200
push edx
push dword [0x100bdd2c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1008dcc3
jmp 0x1008dc9d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1008dc9d
shl eax, 3
push eax
push edx
push 0
push dword [0x100bdd2c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1008dcc3
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1008dc31
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1008dd0f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1008dd0f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1008dd09
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1008da60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1008dcd6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10093318
mov esp, ebp
pop ebp
ret

Function at 0x1008dd20
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1008dd6c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1008dd5b
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1008dd54
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1008dd31
pop edi
push dword [ebx]
push 0
push dword [0x100bdd2c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret