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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10043d81
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10043d70
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10057fe0
Capabilities:
Create thread

Disassembly:
cmp byte [0x100b1084], 0
jne 0x10058004
push 0
push 0
push 0x100b0fd0
push 0x10057c00
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10059bd0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100af380]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10059c19
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x1009a64e
mov dword [esi + 0x14], 0
call fcn.100444d0
jmp 0x10059c95
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10059bf5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x10059bf8
mov ecx, edx
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059c50
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.100444d0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x20]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100907a6
mov esp, ebp
pop ebp
ret 4
Function at 0x1005bdf0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009477d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x100af380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100b06ee], 0
je 0x1005c02d
cmp dword [0xc8d4c0], 9
jne 0x1005c02d
cmp byte [0xba67a4], 1
je 0x1005c02d
cmp byte [0x100af434], 0
je 0x1005be5e
call fcn.10052010
cmp byte [0x100b06ed], 0
je 0x1005be71
mov ecx, 0x100b070f
call fcn.100522b0
cmp byte [0x100af43e], 0
je 0x1005be7f
call fcn.10054cf0
cmp byte [0x100af43f], 0
je 0x1005c00c
push 0
mov edx, 0x100af43f
mov ecx, str.___
call fcn.1000d7c0
add esp, 4
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
push 0x3e
push str.______
call fcn.100444d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0xf
cmova eax, dword [ebp - 0x30]
push eax
call fcn.100301c0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1005bf1c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bf12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bf12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100908c9
add esp, 8
mov eax, dword [0x100b06f0]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov ecx, dword [eax + 0x1b94]
cmp byte [ecx + 0x8f], 0
jne 0x1005bf54
mov ecx, dword [ecx + 0x1a0]
neg ecx
sbb ecx, ecx
add ecx, 6
call fcn.100321c0
push str.______:
call fcn.100301c0
movss xmm0, dword [0x100a4c50]
add esp, 4
call fcn.10010a50
sub esp, 8
mov edx, 0x100b06f4
push 0x100af44c
push ecx
mov ecx, 0x100a0ec0
call fcn.10033040
mov ecx, dword [0x100b06f0]
xorps xmm0, xmm0
movss xmm1, dword [0x100a4c90]
mov eax, dword [ecx + 0x1b94]
mov byte [eax + 0x8c], 1
mov edx, dword [ecx + 0x1b94]
mov ecx, dword [edx + 0x1bc]
mov eax, dword [edx + 0x1c4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1b4], eax
lea eax, [ecx - 1]
mov dword [edx + 0x1bc], eax
call fcn.10010990
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov ecx, 0x100a0ed0
mov dword [ebp - 0x14], 0
call fcn.10030a90
add esp, 0x14
test al, al
je 0x1005c007
push 0
push 0
push 0
push 0x10055ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1000fd80
cmp byte [0x100af442], 0
je 0x1005c01a
call fcn.10056250
cmp byte [0x100af443], 0
je 0x1005c02d
mov ecx, 0x100b0fd0
call fcn.10059cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10060d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100af380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [eax + 0x128000]
cmp eax, ecx
jae 0x10060ddd
mov esi, 0x6c7
mov edx, 0x8689
inc eax
cmp word [eax], si
jne 0x10060dd3
cmp word [eax + 6], dx
jne 0x10060dd3
cmp word [eax + 0xc], dx
je 0x10060df7
lea ecx, [eax + 0x128000]
cmp eax, ecx
jb 0x10060dc1
mov ecx, dword [eax + 1]
mov eax, dword [ebp + 8]
pop esi
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 2]
jmp 0x10060de0
Function at 0x10060e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009545b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100af380]
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, edx
mov esi, ecx
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x130], esi
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060e80
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.100444d0
cmp dword [ebp - 0x130], 0
mov dword [ebp - 4], 0
je 0x10060f15
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060ec5
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.100444d0
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x10061003
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10060ff9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10060ff9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x11c]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x18
jb 0x10061020
cmp dword [ebp - 0x118], 0xf
lea eax, [ebp - 0x12c]
push 0x18
cmova eax, dword [ebp - 0x12c]
push str.Radmir_CRMP_User_Files_
push ecx
push eax
push ecx
push dword [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.100786e0
push edi
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.1004ee90
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x10060fd9
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10060fcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060f0f
push ecx
push edx
call fcn.100908c9
add esp, 8
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
jmp 0x10060ed7
push ecx
push edx
call fcn.100908c9
add esp, 8
mov eax, esi
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.100907a6
mov esp, ebp
pop ebp
ret
call fcn.10027940
int3
Function at 0x10062dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push edi
mov eax, 0x7f9d50
mov bl, cl
call eax
mov edi, eax
test edi, edi
je 0x10062f0b
push esi
test bl, bl
je 0x10062e70
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x100b1f78
push 0x40
push 5
push 0x53f3c6
call esi
push 0x100b1f80
push 0x40
push 5
push 0x53e9f1
call esi
push 0x100b1f74
push 0x40
push 5
push 0x748a1b
call esi
mov byte [0x53f3c6], 0xe9
mov eax, 0x53e9f1
mov dword [0x53f3c7], 0x15b
push 1
push edi
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
mov eax, 0x748a1b
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
mov eax, dword [edi]
call dword [eax + 0x30]
mov dword [0xb73424], 0
mov eax, 0x541bd0
mov dword [0xb73428], 0
call eax
pop esi
pop edi
mov eax, 0x541dd0
pop ebx
jmp eax
mov eax, dword [0x100a2630]
mov ecx, 0x53f3c6
mov dword [ecx], eax
movzx eax, byte [0x100a2634]
mov byte [ecx + 4], al
mov ecx, 0x53e9f1
mov eax, dword [0x100a2638]
mov dword [ecx], eax
movzx eax, byte [0x100a263c]
mov byte [ecx + 4], al
mov ecx, 0x748a1b
mov eax, dword [0x100a2640]
mov dword [ecx], eax
movzx eax, byte [0x100a2644]
mov byte [ecx + 4], al
mov eax, 0x541bd0
call eax
mov eax, 0x541dd0
call eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x100b1f78
push dword [0x100b1f78]
push 5
push 0x53f3c6
call esi
push 0x100b1f80
push dword [0x100b1f80]
push 5
push 0x53e9f1
call esi
push 0x100b1f74
push dword [0x100b1f74]
push 5
push 0x748a1b
call esi
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x30]
pop esi
pop edi
pop ebx
ret
Function at 0x1006b750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1006b777
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10066e00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1006e170
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 0x1006e19c
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 0x1006e1c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1006e1ca
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 0x1006e232
jg 0x1006e1e1
test esi, esi
je 0x1006e232
test ecx, ecx
jl 0x1006e22d
jg 0x1006e1eb
test eax, eax
je 0x1006e22d
cmp edi, ecx
jg 0x1006e1ff
jl 0x1006e1f5
cmp esi, eax
jae 0x1006e1ff
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 0x1006e235
mov ecx, dword [ebp + 8]
jmp 0x1006e23f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1006e259
jg 0x1006e23f
test esi, esi
je 0x1006e259
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1006e259
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 0x1006e270
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 0x1006e29c
jl 0x1006e290
test ecx, ecx
jne 0x1006e29c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1006e2b5
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 0x1006e303
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1006e309
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1006e309
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1006e376
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1006e332
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 0x1006e364
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1006e376
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1006e340
test edi, edi
je 0x1006e376
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 0x1006e700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100af380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1006e730
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006e76c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1006e76c
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.100907a6
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1006e843
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1006e794
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 0x1006e7a0
movsx eax, bl
jmp 0x1006e7d8
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 0x1006e802
sub eax, 1
je 0x1006e802
sub eax, 2
jne 0x1006e843
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.100907a6
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1006e820
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 0x1006e843
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.100907a6
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.100907a6
mov esp, ebp
pop ebp
ret 4
Function at 0x10070110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100af380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100701cc
cmp byte [esi + 0x3d], 0
je 0x100701cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100701ba
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 0x10070181
sub eax, 1
je 0x10070185
sub eax, 2
jne 0x100701ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100701a3
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 0x100701ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100907a6
mov esp, ebp
pop ebp
ret

Function at 0x10070b40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009651c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100af380]
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 - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10070bf4
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.10070590
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.10071d40
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10070c34
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1008e7a0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100af380]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1008e91c
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1008e909
cmp dword [ebp - 0x28], 0x10
jb 0x1008e8ed
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.10091213
cmp dword [ebp - 0x1c], eax
jne 0x1008e8ed
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.10091213
cmp dword [ebp - 0x20], eax
je 0x1008e8ed
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1008e874
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x100b0358]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.10091213
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1008e872
jmp 0x1008e909
jmp 0x1008e8cd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1008e8cd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x100b0358]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.10091213
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1008e8b7
jmp 0x1008e909
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x28], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1008e7f3
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10091213
push edx
mov ecx, ebp
push eax
lea edx, [0x1008e948]
call fcn.100911bf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100907a6
add esp, 0x30
cmp ebp, esp
call fcn.10091213
mov esp, ebp
pop ebp
ret