joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.WmaCHOfP
lea edi, [esi - 0x71000]
push edi
or ebp, 0xffffffff
jmp 0x4b8cb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ca8
mov eax, 1
add ebx, ebx
jne 0x4b8ccb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8cdc
jne 0x4b8cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8cfb
dec eax
add ebx, ebx
jne 0x4b8ce8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8cc0
add ebx, ebx
jne 0x4b8cf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8d4d
xor ecx, ecx
sub eax, 3
jb 0x4b8d13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8d82
sar eax, 1
mov ebp, eax
jmp 0x4b8d1e
add ebx, ebx
jne 0x4b8d1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8cec
inc ecx
add ebx, ebx
jne 0x4b8d2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8cec
add ebx, ebx
jne 0x4b8d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8d2e
jne 0x4b8d4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8d2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8d6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8d5e
jmp 0x4b8cae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8d6c
add edi, ecx
jmp 0x4b8cae
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8d8a
cmp byte [edi], 0x13
jne 0x4b8d8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8d8f
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8e07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbec6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbede0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8dbc
mov ecx, edi
jns 0x4b8deb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbede8]
or eax, eax
je 0x4b8e01
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8dd9
call dword [esi + 0xbede4]
mov ebp, dword [esi + 0xbedec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b8e3b
sub esp, 0xffffff80
jmp 0x4165c1

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001b90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100179b0
push 0x10012516
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001b00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [0x1001c20c]
lea edx, [ebp - 0x30]
push edx
push 0x28
push ecx
call eax
test eax, eax
js 0x10001bfd
lea eax, [ebp - 0x38]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10001c08
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x10001c55
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [0x1001c21c]
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push dword [ebp - 0x30]
call eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001c4c
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret
Function at 0x100026c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.100138e0
mov eax, dword [0x1001b00c]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push esi
push edi
push 0x100
lea eax, [esp + 0x48]
mov dword [esp + 0x34], 0x11c
push 0
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x146], ax
mov dword [esp + 0x148], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 6
xor ecx, ecx
mov dword [esp + 0x44], 0
push eax
mov word [esp + 0x154], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1000281b
mov eax, dword [0x1001c208]
test eax, eax
je 0x1000281b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
push 0x2000000
push 0
call eax
test eax, eax
jne 0x100028b3
nop dword [eax]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x100027ac
xor ecx, ecx
jmp 0x100027cc
mov eax, dword [0x1001c220]
lea ecx, [esp + 0x18]
push 0
push 0x18
push ecx
push 0
push edx
call eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
cmovns ecx, dword [esp + 0x28]
call fcn.10001c80
mov ecx, dword [0x1001c234]
cmp ecx, dword [0x1001c238]
je 0x100027ee
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [0x1001c234], 4
jmp 0x100027f9
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.10003010
mov eax, dword [0x1001c208]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x2000000
push dword [esp + 0x20]
call eax
test eax, eax
je 0x100027a0
jmp 0x100028b3
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x100028cd
xor edi, edi
test dword [esp + 0x10], 0xfffffffc
jbe 0x100028b3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop word [eax + eax]
cmp dword [esp + edi*4 + 0x30], 0
je 0x100028a7
mov esi, dword [esp + edi*4 + 0x30]
call ebx
cmp esi, eax
je 0x100028a7
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x100028a7
mov ecx, dword [esp + edi*4 + 0x30]
mov edx, esi
call fcn.10001c80
mov eax, dword [0x1001c234]
cmp eax, dword [0x1001c238]
je 0x1000289c
mov dword [eax], esi
add dword [0x1001c234], 4
jmp 0x100028a7
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.10003010
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jb 0x10002850
call fcn.10002610
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012545
mov esp, ebp
pop ebp
ret
call fcn.10008b90
int3
Function at 0x10002960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1001b00c]
xor eax, esp
mov dword [esp + 0x34], eax
push 0
push 3
push 0x401fffff
lea eax, [esp + 0x30]
mov dword [esp + 0x10], 0xc20
push eax
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x14]
movq qword [esp + 0x28], xmm0
push eax
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x38], 0x52525543
mov dword [esp + 0x3c], 0x5f544e45
mov dword [esp + 0x40], 0x52455355
mov byte [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
lea eax, [esp + 0xc]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
push 0
push dword [esp + 4]
push 0
push 0
push 0x20000004
push 6
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10012545
mov esp, ebp
pop ebp
ret
Function at 0x10003460
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x1001b00c]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x48], 0x224
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x10003619
mov esi, dword [sym.imp.VCRUNTIME140.dll_strstr]
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x100035da
nop word [eax + eax]
mov ecx, 0x7d
xor edx, edx
mov al, byte [edx + 0x10015964]
xor al, cl
inc ecx
mov byte [esp + edx + 0x18], al
and ecx, 0x800000ff
jns 0x100034f4
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xd
jl 0x100034d7
lea eax, [esp + 0x18]
mov byte [esp + 0x25], 0
push eax
lea eax, [esp + 0x16c]
or ebx, 1
push eax
call esi
add esp, 8
test eax, eax
jne 0x10003545
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x676f7250
push eax
lea eax, [esp + 0x16c]
mov dword [esp + 0x18], 0x6d6172
push eax
or ebx, 2
call esi
add esp, 8
test eax, eax
jne 0x10003545
mov al, 1
jmp 0x10003547
xor al, al
test bl, 2
je 0x10003558
xorps xmm0, xmm0
and ebx, 0xfffffffd
movq qword [esp + 0x10], xmm0
and ebx, 0xfffffffe
mov dword [esp + 0x20], 0
mov word [esp + 0x24], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
test al, al
je 0x100035c6
mov edx, 0xc1
xor eax, eax
nop
mov cl, byte [eax + 0x10015974]
xor cl, dl
inc edx
mov byte [esp + eax + 0x28], cl
and edx, 0x800000ff
jns 0x1000359d
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0x1e
jl 0x10003580
lea eax, [esp + 0x168]
mov byte [esp + 0x46], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000362e
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x100034d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x48], 0x224
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x100034b6
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012545
mov esp, ebp
pop ebp
ret
call fcn.1000b610
int3
Function at 0x10003990
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 0x100039bc
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100039de
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100039e0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10003a65
jg 0x100039f5
test esi, esi
je 0x10003a65
test ecx, ecx
jl 0x10003a48
jg 0x100039ff
test eax, eax
je 0x10003a48
cmp edi, ecx
jg 0x10003a13
jl 0x10003a09
cmp esi, eax
jae 0x10003a13
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10003a65
jg 0x10003a4b
test esi, esi
je 0x10003a65
jmp 0x10003a4b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10003a65
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 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 0x10003a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x10003aa4
jl 0x10003a98
test esi, esi
jne 0x10003aa4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003abd
push eax
push esi
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__::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, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10003afb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10003afb
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x10003b01
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x10003b80
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003b2a
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x10003b6c
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10003b93
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10003b40
test edx, edx
je 0x10003b80
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003f40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10003f70
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10003f70
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.10012545
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10004046
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003f99
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 0x10003fa5
movsx eax, bl
jmp 0x10003fdd
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 0x10004007
sub eax, 1
je 0x10004007
sub eax, 2
jne 0x10004046
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.10012545
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10004025
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 0x10004046
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10004046
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012545
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.10012545
mov esp, ebp
pop ebp
ret 4
Function at 0x10004360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000441c
cmp byte [esi + 0x3d], 0
je 0x1000441c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000440a
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 0x100043d1
sub eax, 1
je 0x100043d5
sub eax, 2
jne 0x1000440a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100043f3
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 0x1000440a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10012545
mov esp, ebp
pop ebp
ret

Function at 0x10005130
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push 0x10005110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.10008b90
Function at 0x100068e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x20]
call fcn.10006ae0
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp - 0x20]
mov dword [edi], ebx
cmp dword [ebp - 0x54], ebx
jbe 0x100069fd
nop
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x100069f4
cmp dword [ebp - 0x2c], 0x1000
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
jne 0x100069f1
cmp dword [ebp - 0x28], 1
je 0x100069f1
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x5c]
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100069f1
mov eax, dword [ebp - 8]
mov edi, 0
mov ecx, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x10], eax
je 0x100069ee
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov edx, dword [ebp - 0xc]
lea eax, [esi + edi]
mov esi, ecx
sub esi, 4
jb 0x100069a5
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100069aa
add edx, 4
add eax, 4
sub esi, 4
jae 0x10006994
cmp esi, 0xfffffffc
je 0x100069d7
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x100069d8
cmp esi, 0xfffffffd
je 0x100069d7
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x100069d8
cmp esi, 0xfffffffe
je 0x100069d7
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x100069d8
cmp esi, 0xffffffff
je 0x100069d7
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x100069d8
inc ebx
mov esi, dword [ebp - 0x20]
inc edi
mov ecx, dword [ebp + 8]
cmp edi, dword [ebp - 0x10]
jb 0x10006987
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x100069f1
mov edi, dword [ebp + 0xc]
add ebx, dword [ebp - 0x5c]
cmp ebx, dword [ebp - 0x54]
jb 0x10006920
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
xor esi, esi
cmp dword [edi], esi
cmovg esi, ebx
test edx, edx
je 0x10006a43
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006a39
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006a39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10012b5f
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10006a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006ada
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
call fcn.10008b90
int3

Function at 0x10008c30
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push 0x10008ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.10008b90