joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1082b29
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10a4534], 0
push esi
jne 0x1082a97
call fcn.0108298e
test eax, eax
je 0x1082ada
mov eax, dword [0x10a4534]
cmp eax, 1
jne 0x1082ab8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1082ada
pop esi
ret
push eax
call dword [0x10a453c]
test eax, eax
jne 0x1082b22
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1082ade
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10a4534]
call dword [0x10a453c]
mov edi, eax
test edi, edi
je 0x1082b03
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1082b1f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10a4534]
call dword [0x10a4538]
add edi, 0x10
cmp edi, esi
jb 0x1082b0b
mov eax, edi
pop edi
pop esi
ret
jmp 0x1082a84

Function at 0x1082b4b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100bdd8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1082ba3
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100be14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1082b96
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1082ba5
xor eax, eax
pop esi
leave
ret 4
Function at 0x1086897
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1091679
call fcn.010826d8
sub esp, 0x28
push ebx
mov eax, edi
neg eax
sbb eax, eax
push esi
and eax, 0x7ff8ffa9
push 3
add eax, 0x80070057
xor ebx, ebx
cmp eax, ebx
pop esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
je 0x10868e5
cmp esi, esi
jne 0x10868d0
cmp eax, ebx
setl cl
jmp 0x10868d2
mov cl, 1
cmp cl, bl
je 0x10868e5
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov eax, ecx
jmp 0x1086a4e
push ebx
push 0x80
push esi
push ebx
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x108691d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [edx + 4], eax
mov dword [edx], ecx
mov eax, edx
jmp 0x1086a4e
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
jne 0x1086a2d
cmp eax, ebx
jl 0x1086a2d
je 0x1086a37
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.010853fd
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1086973
cmp ecx, esi
jne 0x1086969
cmp eax, ebx
setl al
jmp 0x108696b
mov al, 1
cmp al, bl
jne 0x1086a37
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
call fcn.010854cf
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
je 0x10869bc
cmp ecx, esi
jne 0x10869ad
cmp eax, ebx
setl al
jmp 0x10869af
mov al, 1
cmp al, bl
je 0x10869bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
jmp 0x1086a26
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
cmp eax, ebx
mov ecx, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
je 0x10869ea
cmp ecx, esi
jne 0x10869e4
cmp eax, ebx
setl al
jmp 0x10869e6
mov al, 1
cmp al, bl
jne 0x10869b3
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1086a0d
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x10869b3
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
je 0x1086a26
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x8000ffff
call fcn.01085493
jmp 0x1086a37
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x8000ffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1088089
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x10918da
call fcn.010826d8
sub esp, 0x48
mov eax, dword [0x10a3b28]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x7ff8ffa9
push 3
add eax, 0x80070057
xor ebx, ebx
cmp eax, ebx
pop edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
je 0x10880ea
cmp edx, edx
jne 0x10880d7
cmp eax, ebx
setl dl
jmp 0x10880d9
mov dl, 1
cmp dl, bl
je 0x10880ea
push 3
pop ecx
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x108820e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ebx
call fcn.0102156a
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
push eax
mov dword [ebp - 4], ebx
call fcn.01083c9f
test al, al
jne 0x1088132
lea ecx, [ebp - 0x44]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x1088206
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x50], ebx
mov edi, eax
je 0x1088161
push 3
pop eax
mov ecx, 0x8007000e
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x1088206
push edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
cmp eax, ebx
mov byte [ebp - 4], 1
jne 0x108817a
mov ecx, 0x8007000e
jmp 0x10881ae
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push edi
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x10881a4
lea ecx, [ebp - 0x44]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
jmp 0x10881fb
cmp dword [ebp - 0x4c], edi
je 0x10881be
mov ecx, 0x8000ffff
push 3
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x10881fe
push edi
push dword [ebp - 0x48]
push ebx
call fcn.0108c398
mov edx, eax
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x38], bx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
call dword [sym.imp.msvcrt.dll__ultow]
mov ecx, dword [ebp - 0x54]
add esp, 0xc
push eax
call fcn.010641ef
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x48]
call fcn.0108578a
lea ecx, [ebp - 0x3c]
call fcn.01084340
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01080a1e
leave
ret 0xc
Function at 0x108b475
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10a3b28]
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x108b4c1
cmp eax, esi
ja 0x108b4c1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x108b4c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.01080a1e
leave
ret 4

Function at 0x108b6da
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp byte [0x10a3d4c], 0
mov eax, dword [0x10a3b28]
mov dword [ebp - 4], eax
je 0x108b741
lea eax, [ebp - 0x118]
push eax
mov byte [0x10a3d4c], 0
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x108b73a
cmp dword [ebp - 0x114], 5
ja 0x108b731
jne 0x108b73a
cmp dword [ebp - 0x110], 1
jb 0x108b73a
mov byte [0x10a45f9], 1
jmp 0x108b741
mov byte [0x10a45f9], 0
mov ecx, dword [ebp - 4]
mov al, byte [0x10a45f9]
call fcn.01080a1e
leave
ret

Function at 0x108c398
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x108c3ab
xor eax, eax
jmp 0x108c48c
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x108c46c
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
inc edx
dec edi
jne 0x108c3c9
pop edi
test eax, eax
je 0x108c486
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100e408]
inc edx
dec eax
jne 0x108c470
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
Function at 0x100015c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050ca5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push 4
call fcn.1004f8ba
mov dword [ebp - 0x10], eax
mov dword [eax], 0x100016e0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100019c0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100016b7
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100016af
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x100016af
xorps xmm0, xmm0
push 4
movlpd qword [ebp - 0x18], xmm0
call fcn.1004f8ba
mov dword [ebp - 0x10], eax
mov dword [eax], 0x10001770
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x100019c0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100016a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100016af
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x100016af
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp dword [ebp - 0x14], eax
je 0x100016c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 6
mov dword [ebp - 0x1c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10004570
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x100045d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100045b4
cmp edi, 2
jb 0x100045b4
cmp byte [esi], cl
jne 0x100045b4
cmp byte [esi + 1], cl
jne 0x100045b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10052508]
jmp 0x10004585
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10052508]
test edi, edi
jne 0x10004585
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10004600
cmp cl, 0x23
jne 0x100045e7
cmp byte [esi], cl
jne 0x100045e7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10052508]
test cl, cl
jne 0x100045d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10004790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x100047b5
push 0x6fd
push str.C:UsersAdministratorDesktopCharlinhoCharlenoexample_win32_directx9imguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x100047c2
mov dword [edi], 0
mov edx, 0x100565c8
mov ecx, esi
call fcn.10004610
mov esi, eax
test esi, esi
je 0x100048b2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100048a8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100048a8
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x100048a8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100048a8
mov eax, dword [0x100dc8dc]
test eax, eax
je 0x1000483c
inc dword [eax + 0xa8]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100048a8
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1000488d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100dc8dc]
add esp, 4
test eax, eax
je 0x1000487a
dec dword [eax + 0xa8]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1000489f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0xc4], 0
jg 0x10006409
push 0x702
push str.C:UsersAdministratorDesktopCharlinhoCharlenoexample_win32_directx9imguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [ebx + 0xc4]
lea edx, [ebp + 8]
mov ebx, dword [ebx + 0xcc]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10052508]
sub esi, 1
jne 0x10006423
mov eax, dword [0x100dc8dc]
not ebx
cmp dword [eax + 0x3df0], ebx
jne 0x10006452
mov dword [eax + 0x3df4], ebx
cmp dword [eax + 0x3e34], ebx
jne 0x10006461
mov byte [eax + 0x3e38], 1
cmp dword [eax + 0x3dd8], ebx
jne 0x1000647c
push ecx
push dword [ebp + 8]
mov edx, 4
mov ecx, ebx
call fcn.10019830
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x10006500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc4], 0
jg 0x1000652b
push 0x702
push str.C:UsersAdministratorDesktopCharlinhoCharlenoexample_win32_directx9imguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [ebp + 8]
mov edi, 0x10
movss xmm1, dword [esi + 0xe0]
movss xmm2, dword [esi + 0xe4]
mov ecx, dword [esi + 0xc4]
movss xmm0, dword [eax]
subss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [esi + 0xcc]
subss xmm0, xmm2
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10052508]
sub edi, 1
jne 0x10006590
mov eax, dword [0x100dc8dc]
not edx
cmp dword [eax + 0x3df0], edx
jne 0x100065bf
mov dword [eax + 0x3df4], edx
cmp dword [eax + 0x3e34], edx
jne 0x100065ce
mov byte [eax + 0x3e38], 1
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b150
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1000b18d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1000b173
cmp byte [esi], bl
jne 0x1000b173
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x10052508]
test bl, bl
jne 0x1000b164
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1000b0f0

Function at 0x10011220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100dc8dc]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3db8]
add esi, 0xc4
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp dword [esi], 0
jg 0x1001125d
push 0x702
push str.C:UsersAdministratorDesktopCharlinhoCharlenoexample_win32_directx9imguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi]
lea edx, [ebp - 4]
mov eax, dword [esi + 8]
mov edi, 4
mov ebx, dword [eax + ecx*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10052508]
sub edi, 1
jne 0x10011270
mov eax, dword [0x100dc8dc]
not ebx
cmp dword [eax + 0x3dd8], ebx
jne 0x100112aa
push ecx
push dword [ebp - 8]
lea edx, [edi + 4]
mov ecx, ebx
call fcn.10019830
add esp, 8
mov ecx, dword [esi + 4]
mov edi, dword [esi]
cmp edi, ecx
jne 0x100112d5
inc edi
test ecx, ecx
je 0x100112c3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100112c8
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.1001a400
mov ecx, dword [esi]
mov eax, dword [esi + 8]
pop edi
mov dword [eax + ecx*4], ebx
inc dword [esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x51d4], 0
lea esi, [edi + 0x51d8]
je 0x10018602
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x100185bc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001a870
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10004eb0
mov edx, dword [esi]
mov ecx, 0x100dc8c1
push dword [edi + 0x51d4]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x51e0]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10004eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100220e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002211a
mov eax, dword [0x100dc8dc]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002210d
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002214b
mov eax, dword [0x100dc8dc]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002213e
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002217c
mov eax, dword [0x100dc8dc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002216f
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100221c9
mov eax, dword [0x100dc8dc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100221bc
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100221fa
mov eax, dword [0x100dc8dc]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100221ed
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002222b
mov eax, dword [0x100dc8dc]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002221e
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10024ec0