joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e140
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x47e1a6
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x47e1a6
call fcn.0047e790
jmp 0x47e1e1
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x47e1b6
call fcn.0047e790
jmp 0x47e1e1
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x47e1dc
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x47e1da
cmp ebx, 1
je 0x47e1da
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x47e1c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4822c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x482322
call fcn.00482270
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047cc78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047cc78
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4823a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x490134], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48247a
cmp dword [0x490130], 0
jne 0x48247a
cmp dword [0x49033c], 0
je 0x482434
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00482150
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48241a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00482150
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48241a
lea ebx, [ebp - 0x84]
jmp 0x48241b
inc ebx
call fcn.0048235c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4824b5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x490138
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047cc78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49013b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4824b5
cmp dword [0x490130], 0
je 0x482494
cmp dword [0x490130], 0xffffffff
je 0x4824b5
push esi
call dword [0x490130]
pop ecx
mov eax, dword [0x490134]
test eax, eax
je 0x4824b5
cmp dword [0x490134], 0xffffffff
je 0x4824b5
cmp byte [eax], 0
je 0x4824b5
push esi
push eax
call fcn.004822c0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482cd8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x493158], 0
jne 0x482d59
cmp dword [0x493178], 0
jne 0x482d08
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x493178], eax
test eax, eax
jne 0x482d08
push str.GetEnvironmentStrings_failed
call fcn.004824cc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x493178]
jmp 0x482d1c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0047cc78
pop ecx
mov edi, eax
test eax, eax
jne 0x482d14
lea edi, [ebp + 1]
push edi
call fcn.0047c6d8
pop ecx
mov ebx, eax
mov dword [0x49315c], ebx
test ebx, ebx
jne 0x482d46
xor eax, eax
jmp 0x482e1c
push edi
mov edx, dword [0x493178]
push edx
push ebx
call fcn.0047cb28
add esp, 0xc
jmp 0x482d79
xor esi, esi
mov ebx, dword [0x493158]
jmp 0x482d73
push eax
call fcn.0047cc78
pop ecx
test eax, eax
jne 0x482d6f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x482d63
lea ebx, [esi + 4]
push 4
mov dword [0x493160], ebx
inc ebx
push ebx
call fcn.0047c054
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x482d9c
xor eax, eax
jmp 0x482e1c
cmp dword [0x493158], 0
jne 0x482dcd
xor esi, esi
mov ebx, dword [0x49315c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x482dbe
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0047cc78
pop ecx
mov edi, eax
test eax, eax
jne 0x482db4
jmp 0x482dfe
xor esi, esi
mov ebx, dword [0x493158]
mov eax, dword [esp]
mov edi, eax
jmp 0x482df8
push eax
call fcn.0047cc78
pop ecx
test eax, eax
je 0x482ded
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x482df1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x482ddc
mov eax, dword [0x493158]
test eax, eax
je 0x482e0e
push eax
call fcn.0047c6e8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x493158], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x7f6e6e4d
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
mov ecx, 0x8d6484d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10001be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000871d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1000c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x1c]
cmp edi, 0xf
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
cmova ecx, ebx
push 6
sub esp, 8
call fcn.10004c70
add esp, 0xc
lea ecx, [eax + 1]
cmp dword [ebp + 0x18], ecx
jb 0x10001d9d
cmp edi, 0xf
mov dword [ebp + 0x18], ecx
lea eax, [ebp + 8]
cmova eax, ebx
push 6
mov byte [eax + ecx], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
mov ebx, dword [ebp + 0x18]
mov edx, ebx
cmova ecx, dword [ebp + 8]
sub esp, 8
call fcn.10004d40
mov edx, eax
lea ecx, [ebp + 8]
cmp ebx, edx
cmovb edx, ebx
cmp dword [ebp + 0x1c], 0xf
cmova ecx, dword [ebp + 8]
sub ebx, edx
lea eax, [ebx + 1]
push eax
lea eax, [edx + ecx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 8]
lea edi, [ebp + 8]
add esp, 0x18
mov dword [ebp + 0x18], ebx
cmp edx, 0xf
lea esi, [ebp + 8]
cmova eax, ecx
cmova edi, ecx
add eax, ebx
cmp edx, 0xf
mov dword [ebp - 0x10], eax
cmova esi, ecx
cmp esi, eax
je 0x10001cdb
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
sub edi, esi
nop
movsx eax, byte [esi]
push eax
call ebx
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x10]
jne 0x10001cc0
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 0xf
lea esi, [ebp + 8]
mov edx, 0x811c9dc5
cmova esi, ecx
xor ecx, ecx
test ebx, ebx
je 0x10001d01
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10001cf0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edx
mov esi, dword [eax + ecx*8 + 4]
cmp esi, dword [ebx + 4]
je 0x10001d4a
mov edi, dword [eax + ecx*8]
lea eax, [esi + 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10005800
test al, al
je 0x10001d4c
nop dword [eax]
cmp esi, edi
je 0x10001d4a
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10005800
test al, al
jne 0x10001d30
jmp 0x10001d4c
xor esi, esi
mov edx, dword [ebp + 0x1c]
test esi, esi
setne bl
cmp edx, 0xf
jbe 0x10001d87
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001d7d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001d7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100077d9
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.10004d30
int3
Function at 0x10002390
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 0x100023bc
jl 0x100023b0
test ecx, ecx
jne 0x100023bc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100023d5
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 0x10002423
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10002429
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 0x10002429
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002496
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002452
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 0x10002484
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 0x10002496
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002460
test edi, edi
je 0x10002496
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 0x100024b0
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 0x100024dc
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 0x10002504
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000250a
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 0x10002572
jg 0x10002521
test esi, esi
je 0x10002572
test ecx, ecx
jl 0x1000256d
jg 0x1000252b
test eax, eax
je 0x1000256d
cmp edi, ecx
jg 0x1000253f
jl 0x10002535
cmp esi, eax
jae 0x1000253f
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 0x10002575
mov ecx, dword [ebp + 8]
jmp 0x1000257f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002599
jg 0x1000257f
test esi, esi
je 0x10002599
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002599
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 0x10002dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002df0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100077a8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10002e2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10002e2c
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.100077a8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002f03
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002e54
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 0x10002e60
movsx eax, bl
jmp 0x10002e98
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 0x10002ec2
sub eax, 1
je 0x10002ec2
sub eax, 2
jne 0x10002f03
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.100077a8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002ee0
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 0x10002f03
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.100077a8
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.100077a8
mov esp, ebp
pop ebp
ret 4
Function at 0x10002f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10002fdc
cmp byte [esi + 0x3d], 0
je 0x10002fdc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10002fca
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 0x10002f91
sub eax, 1
je 0x10002f95
sub eax, 2
jne 0x10002fca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100077a8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002fb3
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 0x10002fca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100077a8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100077a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100077a8
mov esp, ebp
pop ebp
ret
Function at 0x10005670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
jbe 0x100056a1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10006a10
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x100057cc
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
jbe 0x100056f6
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov ebx, 0x811c9dc5
test ecx, ecx
je 0x10005727
mov eax, dword [ebp - 4]
mov edi, ecx
nop dword [eax]
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10005710
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x10005746
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x100057c2
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10005800
test al, al
jne 0x10005780
mov ebx, dword [ebx]
cmp ebx, esi
je 0x10005778
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x100057bf
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x100057a2
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10005800
test al, al
je 0x100057d5
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x10005787
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x100056e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x100057bf
Function at 0x4076d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x40ada4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40adc9
mov dword [0x413164], eax
add esp, 0xfffffff8
push 0x40ad68
push eax
call fcn.0040f5cc
jmp 0x40adce
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40ade4
mov dword [0x41231c], 0x40aec8
jmp 0x40adee
mov dword [0x41231c], 0x40ae7c
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add byte [eax], al
mov dword [0x407004], eax
call sub.kernel32.dll_GetCommandLineA
test eax, eax
jne 0x40101b
lea eax, [0x40704c]
mov bl, byte [eax]
cmp bl, 0x22
jne 0x401038
inc eax
mov bl, byte [eax]
test bl, bl
je 0x40102e
cmp bl, 0x22
jne 0x401022
mov bl, byte [eax]
cmp bl, 0x22
jne 0x401042
inc eax
jmp 0x401042
mov bl, byte [eax]
cmp bl, 0x14
jl 0x401042
inc eax
jmp 0x401038
mov bl, byte [eax]
test bl, bl
je 0x401050
cmp bl, 0x14
jg 0x401050
inc eax
jmp 0x401042
mov dword [section..data], eax
mov dword [0x40704d], 8
mov dword [0x407051], 0x1fff
push 0x40704d
call sub.comctl32.dll_InitCommonControlsEx
or eax, eax
jne 0x40107c
call sub.comctl32.dll_InitCommonControls
mov dword [0x407034], 0
push 0x407008
call sub.kernel32.dll_GetStartupInfoA
mov ebx, dword [0x407034]
and ebx, 1
xor ebx, ebx
mov bx, word [0x407038]
jne 0x4010a9
mov ebx, 0xa
push ebx
push dword [section..data]
push 0
push dword [0x407004]
call fcn.00404db1
push eax
call sub.kernel32.dll_ExitProcess