joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47a210]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f1e9
cmp byte [ebx], 0xa
jne 0x41f1e9
or byte [eax + edi + 0x28], 4
jmp 0x41f1ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f2ec
mov al, byte [edx]
cmp al, 0x1a
je 0x41f2ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f21d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f24c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41f1ff
jmp 0x41f2ec
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f2c9
cmp dword [ebp - 0xc], 0
je 0x41f2c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a210]
test byte [eax + edi + 0x28], 0x48
je 0x41f2a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f28e
mov byte [esi], dl
jmp 0x41f29f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a210]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f2ec
cmp byte [ebp - 1], 0xa
jne 0x41f2b2
cmp esi, ebx
jne 0x41f2b2
mov byte [esi], 0xa
jmp 0x41f2eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004189b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f2ec
mov byte [esi], 0xd
jmp 0x41f2eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f2e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f2ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f2f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47a210]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f338
cmp word [esi], dx
jne 0x41f338
or byte [edi + eax + 0x28], 4
jmp 0x41f33d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f490
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f37f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f3b5
cmp eax, edx
jae 0x41f3c1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f357
jmp 0x41f490
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f46c
cmp dword [ebp - 0x14], 0
je 0x41f46c
mov eax, dword [ebx*4 + 0x47a210]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f40d
mov word [esi], cx
jmp 0x41f440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a210]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47a210]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a210]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f490
pop ebx
cmp word [ebp - 4], bx
jne 0x41f455
cmp esi, dword [ebp + 0xc]
jne 0x41f455
mov word [esi], bx
jmp 0x41f48d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004189b7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f490
push 0xd
jmp 0x41f489
mov ecx, dword [ebx*4 + 0x47a210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f490
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100037c0
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 0x10003821
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10003804
cmp edi, 2
jb 0x10003804
cmp byte [esi], cl
jne 0x10003804
cmp byte [esi + 1], cl
jne 0x10003804
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1003d318]
jmp 0x100037d5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1003d318]
test edi, edi
jne 0x100037d5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10003850
cmp cl, 0x23
jne 0x10003837
cmp byte [esi], cl
jne 0x10003837
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 + 0x1003d318]
test cl, cl
jne 0x10003828
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10003974
mov dword [ebx], 0
mov edx, 0x1003cf24
call fcn.10003860
mov esi, eax
test esi, esi
je 0x10003a62
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10003a58
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 0x10003a58
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10003a58
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 0x10003a58
mov eax, dword [0x1006a9e8]
test eax, eax
je 0x100039ec
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10003a58
push esi
push dword [ebp + 8]
push 1
push edi
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 0x10003a3d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1006a9e8]
add esp, 4
test eax, eax
je 0x10003a2a
dec dword [eax + 0xb0]
push edi
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 ebx, ebx
je 0x10003a4f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
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 0x10006c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1003d318]
sub esi, 1
jne 0x10006c50
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e94], ebx
jne 0x10006c87
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.100193a0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100398db
mov esp, ebp
pop ebp
ret 4
Function at 0x10008b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1006a9e8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x47f4]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x264]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x10008b8f
push ecx
add ecx, 0x78
call fcn.10025200
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x264]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x10008c02
cmp eax, 1
jne 0x10008bb3
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10008bb3
cmp dword [eax + 0x20], 0
je 0x10008c02
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10008be9
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x10008bd4
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x10008bd9
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10019b20
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x188]
mov eax, dword [eax + 0x180]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10008c42
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10008c3b
cmp byte [ecx + 0xb1], 0
jne 0x10008c3b
mov edx, ebx
call fcn.10008b50
add esi, 4
cmp esi, edi
jne 0x10008c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009f80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x1006a9e8]
mov ebx, edx
push edi
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov edx, dword [esi + 0x3e60]
mov dword [ebp - 0xc], edx
cmp dword [edx + 0x190], 0
jne 0x10009fb6
cmp dword [esi + 0x4a74], 0
mov eax, 0x228
je 0x10009fbb
mov eax, 0x1f8
movss xmm4, dword [eax + edx]
xorps xmm3, xmm3
movss xmm5, dword [eax + edx + 4]
mov ecx, dword [ebp + 8]
subss xmm4, dword [edx + 0xf0]
subss xmm5, dword [edx + 0xf4]
movss xmm2, dword [0x10041bc4]
cvttss2si eax, dword [ecx]
mov dword [ebp - 4], 0
mov dword [ebp + 8], 2
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm3
lahf
test ah, 0x44
mov eax, dword [ebp - 4]
cmovnp eax, dword [ebp + 8]
or eax, ecx
comiss xmm3, xmm1
mov dword [ebp - 4], eax
jb 0x1000a03e
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x1000a03e
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x1000a04f
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x1000a04f
movaps xmm0, xmm2
or dword [esi + 0x471c], 2
movss dword [esi + 0x473c], xmm1
movss dword [esi + 0x4740], xmm0
mov dword [esi + 0x4724], 1
mov eax, dword [edx + 4]
push ebx
test edi, edi
je 0x1000a08f
push edi
push eax
push str._s__s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.10003710
add esp, 0x18
jmp 0x1000a0a3
push eax
push str._s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.10003710
add esp, 0x14
movss xmm0, dword [esi + 0x37b8]
xor edx, edx
mov ecx, dword [ebp + 8]
push 0x1000107
movss dword [ebp - 8], xmm0
call fcn.1000d240
mov edi, dword [esi + 0x3e60]
add esp, 4
movss xmm0, dword [ebp - 8]
movss dword [esi + 0x37b8], xmm0
mov byte [ebp + 0xb], al
cmp word [edi + 0xb6], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [edi + 0x74], ebx
mov byte [edi + 0xc6], al
jne 0x1000a106
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [edx + 0xf0], ecx
mov dword [edx + 0xf4], eax
mov edi, ebx
mov edx, 0x1003c519
not edi
mov al, 0x23
mov ebx, edi
cmp al, 0x23
jne 0x1000a121
cmp byte [edx], al
jne 0x1000a121
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x1003d318]
test al, al
jne 0x1000a113
mov edi, dword [ebp - 8]
not ebx
cmp dword [esi + 0x3eac], ebx
jne 0x1000a150
xor edx, edx
xor ecx, ecx
call fcn.10006ca0
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x4804], eax
jne 0x1000a195
cmp word [edi + 0x14c], 0
jne 0x1000a16e
cmp byte [edi + 0x152], 0
je 0x1000a195
xor edx, edx
mov ecx, edi
call fcn.1000fb40
xor dl, dl
mov ecx, edi
call fcn.10014b20
mov edx, edi
mov ecx, ebx
call fcn.10006ca0
mov eax, dword [esi + 0x4828]
mov dword [esi + 0x3ecc], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a390
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000a3cf
cmp bl, 0x23
jne 0x1000a3b1
cmp byte [esi], bl
jne 0x1000a3b1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x1003d318]
test bl, bl
jne 0x1000a3a2
mov ecx, dword [0x1006a9e8]
not eax
mov esi, dword [ecx + 0x3e48]
mov edi, dword [ecx + 0x3e50]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000a40e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000a408
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000a40a
mov esi, edx
test esi, esi
jne 0x1000a3f0
cmp edi, ebx
je 0x1000a41d
cmp dword [edi], eax
jne 0x1000a41d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10017be0
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 + 0x5b94], 0
lea esi, [edi + 0x5b98]
je 0x10017c62
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10017c1c
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.10019fe0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003d70
mov edx, dword [esi]
mov ecx, 0x1006a9e4
push dword [edi + 0x5b94]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5ba0]
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.10003d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018060
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1006a9e8]
test bl, bl
je 0x100180a6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10018087
cmp byte [esi], bl
jne 0x10018087
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x1003d318]
test bl, bl
jne 0x10018078
mov edi, dword [0x1006a9e8]
mov ecx, dword [edi + 0x5b38]
not eax
mov edx, dword [edi + 0x5b40]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x100180cd
cmp dword [edx + 4], eax
je 0x100180d0
add edx, 0x24
cmp edx, ecx
jne 0x100180c1
xor eax, eax
ret
mov eax, edx
ret

Function at 0x10018300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x1006a9e8]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5b28], 0
push edi
test esi, esi
je 0x1001835d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.10018370
mov edx, 0x1003cf28
mov ecx, esi
mov edi, eax
call fcn.10003860
mov esi, eax
test esi, esi
je 0x1001835d
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100228b0
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 0x100228ea
mov eax, dword [0x1006a9e8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100228dd
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002291b
mov eax, dword [0x1006a9e8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002290e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002294c
mov eax, dword [0x1006a9e8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002293f
dec dword [eax + 0xb0]
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 0x10022999
mov eax, dword [0x1006a9e8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002298c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100229ca
mov eax, dword [0x1006a9e8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100229bd
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100229fb
mov eax, dword [0x1006a9e8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100229ee
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100250f0
Function at 0x10025e30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x1006a9e8]
test eax, eax
je 0x10025e7a
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x10025f35
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x10025f35
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x1006aa08], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x1006aa10], edx
shl ecx, 8
add ecx, edx
mov dword [0x1006aa14], edx
add edi, ecx
mov ecx, esi
mov dword [0x1006aa0c], edi
call fcn.10029480
cmp eax, esi
je 0x10025f35
nop
cmp dword [0x1006aa14], edi
ja 0x10025f35
mov ecx, eax
mov esi, eax
call fcn.10029480
cmp eax, esi
jne 0x10025f20
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10025f49
mov ecx, 0x1e
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x10025f89
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
movss xmm0, dword [esp + 0x10]
lea esi, [esp + 0x18]
comiss xmm0, dword [0x10041af0]
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x90]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x10025fd6
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10025b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002a5f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x1006a9e8]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1002a75b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1002a75b
mov eax, dword [0x1006a9e8]
test eax, eax
je 0x1002a63d
inc dword [eax + 0xb0]
push edi
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1002a65e
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1002a660
xor edi, edi
or dword [esi + 0xc], 6
mov dword [esi + 0x70], edi
mov dword [esi + 0x68], str.imgui_impl_win32
mov esi, dword [0x1006a9e8]
mov dword [edi], ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x1002a69e
mov esi, dword [esi + 0x70]
jmp 0x1002a6a0
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1002a6c3
mov dword [esi], eax
mov eax, dword [0x1006a9e8]
xor esi, esi
mov dword [ebp - 0x30], str.xinput1_4.dll
mov dword [ebp - 0x2c], str.xinput1_3.dll
mov dword [ebp - 0x28], str.xinput9_1_0.dll
mov eax, dword [eax + 0x47f4]
mov dword [ebp - 0x24], str.xinput1_2.dll
mov dword [ebp - 0x20], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
nop dword [eax]
push dword [ebp + esi*4 - 0x30]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1002a729
inc esi
cmp esi, 5
jl 0x1002a700
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100398db
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100398db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.100398db
mov esp, ebp
pop ebp
ret