joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ae00
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10056ad0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10056b14]
cmp eax, dword [ecx + 4]
jle 0x1000aea5
push 0x10056b14
call fcn.100471f2
add esp, 4
cmp dword [0x10056b14], 0xffffffff
jne 0x1000aea5
xor eax, eax
push 0x10056b14
mov word [0x10056b19], ax
mov byte [0x10056b1b], al
mov byte [0x10056b18], al
mov dword [0x10056b1c], eax
mov dword [0x10056b20], eax
mov dword [0x10056b24], eax
mov dword [0x10056b28], eax
mov dword [0x10056b2c], eax
mov dword [0x10056b30], eax
mov dword [0x10056b34], eax
mov dword [0x10056b38], eax
mov dword [0x10056b3c], eax
mov dword [0x10056b40], eax
mov dword [0x10056b44], eax
mov dword [0x10056b48], eax
mov dword [0x10056b4c], eax
mov dword [0x10056b50], eax
mov dword [0x10056b54], eax
mov dword [0x10056b58], eax
call fcn.100471a1
add esp, 4
cmp byte [0x10056b18], 0
jne 0x1000aff0
push str.mono.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10056b1c], eax
test eax, eax
je 0x1000aff0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.mono_domain_assembly_open
push eax
call esi
push str.mono_assembly_get_image
push dword [0x10056b1c]
mov dword [0x10056b28], eax
call esi
push str.mono_class_from_name
push dword [0x10056b1c]
mov dword [0x10056b2c], eax
call esi
push str.mono_class_get_method_from_name
push dword [0x10056b1c]
mov dword [0x10056b30], eax
call esi
push str.mono_compile_method
push dword [0x10056b1c]
mov dword [0x10056b34], eax
call esi
push str.mono_runtime_invoke
push dword [0x10056b1c]
mov dword [0x10056b38], eax
call esi
push str.mono_class_get_field_from_name
push dword [0x10056b1c]
mov dword [0x10056b3c], eax
call esi
push str.mono_field_get_value
push dword [0x10056b1c]
mov dword [0x10056b40], eax
call esi
push str.mono_field_set_value
push dword [0x10056b1c]
mov dword [0x10056b44], eax
call esi
push str.mono_method_get_class
push dword [0x10056b1c]
mov dword [0x10056b48], eax
call esi
push str.mono_class_vtable
push dword [0x10056b1c]
mov dword [0x10056b4c], eax
call esi
push str.mono_vtable_get_static_field_data
push dword [0x10056b1c]
mov dword [0x10056b50], eax
call esi
push str.mono_field_get_offset
push dword [0x10056b1c]
mov dword [0x10056b54], eax
call esi
push str.mono_thread_attach
push dword [0x10056b1c]
mov dword [0x10056b58], eax
call esi
push str.mono_get_root_domain
push dword [0x10056b1c]
mov dword [0x10056b20], eax
call esi
mov esi, dword [0x10056b20]
mov dword [0x10056b24], eax
call eax
push eax
call esi
add esp, 4
mov byte [0x10056b18], 1
pop esi
mov eax, 0x10056b18
ret
Function at 0x1000d790
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 0x1000d7f1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000d7d4
cmp edi, 2
jb 0x1000d7d4
cmp byte [esi], cl
jne 0x1000d7d4
cmp byte [esi + 1], cl
jne 0x1000d7d4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1004cc00]
jmp 0x1000d7a5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1004cc00]
test edi, edi
jne 0x1000d7a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000d820
cmp cl, 0x23
jne 0x1000d807
cmp byte [esi], cl
jne 0x1000d807
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 + 0x1004cc00]
test cl, cl
jne 0x1000d7f8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1000d8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1000d8e3
mov dword [ebx], 0
mov edx, 0x1004c594
call fcn.1000d830
mov esi, eax
test esi, esi
je 0x1000da03
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 + 8], eax
cmp eax, 0xffffffff
je 0x1000d9f9
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 0x1000d9f9
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1000d9f9
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000d9f9
mov ecx, edi
call fcn.10010730
mov dword [ebp + 8], eax
test eax, eax
je 0x1000d9f9
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x1000d9e2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x10056b84]
add esp, 4
test ecx, ecx
je 0x1000d9cf
movsx edx, word [ecx + 0x30f0]
lea eax, [ecx + 0x30f4]
mov esi, dword [ecx + 0x11c8]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x1000d9c5
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x30f0], ax
cwde
lea eax, [eax*8 + 0x30f4]
add eax, ecx
xor edx, edx
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x30ec]
push dword [ebp + 8]
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
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1000d9f1
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
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
pop ebp
ret
Function at 0x1000fe60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10056040]
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 + 0xec]
mov ebx, dword [edi + 0xf4]
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 + 0x1004cc00]
sub esi, 1
jne 0x1000fea0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x1280], ebx
jne 0x1000fed7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10023310
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004712d
mov esp, ebp
pop ebp
ret 4
Function at 0x100121d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10056b84]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x1cac]
mov edx, dword [eax]
inc dword [esi + 0xa4]
mov ecx, dword [edi + 0x26c]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x1001220f
push ecx
add ecx, 0x78
call fcn.10030b50
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x26c]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x10012282
cmp eax, 1
jne 0x10012233
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10012233
cmp dword [eax + 0x20], 0
je 0x10012282
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10012269
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x10012254
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x10012259
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10023900
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 + 0x190]
mov eax, dword [eax + 0x188]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100122c2
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x100122bb
cmp byte [ecx + 0xb5], 0
jne 0x100122bb
mov edx, ebx
call fcn.100121d0
add esi, 4
cmp esi, edi
jne 0x100122a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013670
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10056040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x10056b84]
mov ebx, edx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov edi, dword [esi + 0x1248]
mov eax, dword [edi + 0xc]
and eax, 4
mov dword [esi + 0x1c04], 1
or eax, 0x1000103
or dword [ebp + 0x10], eax
mov eax, dword [esi + 0x1bcc]
or eax, 0x100
mov dword [esi + 0x1bcc], eax
cmp dword [edi + 0x198], 0
mov dword [ebp - 0x10], eax
jne 0x100136da
cmp dword [esi + 0x1f2c], 0
mov eax, 0x230
je 0x100136df
mov eax, 0x200
movss xmm1, dword [edi + eax]
lea ecx, [ebp - 0x20]
movss xmm2, dword [edi + eax + 4]
mov eax, dword [ebp + 8]
subss xmm2, dword [edi + 0xfc]
subss xmm1, dword [edi + 0xf8]
push dword [eax + 4]
push dword [eax]
call fcn.1001c8f0
mov eax, dword [ebp - 0x10]
add esp, 8
mov edx, dword [ebp - 0x14]
or eax, 2
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x1bcc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x1bec], eax
mov dword [esi + 0x1bf0], ecx
mov dword [esi + 0x1bd4], 1
test edx, edx
je 0x1001375c
mov ecx, dword [edi + 0xec]
mov eax, dword [edi + 0xf4]
mov eax, dword [eax + ecx*4 - 4]
cmp eax, dword [edi + 8]
jne 0x1001375c
push edx
push dword [edi + 4]
push str._s__s
jmp 0x10013781
mov eax, dword [edi + 4]
push ebx
test edx, edx
je 0x1001377b
push edx
push eax
push str._s__s__08X
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.1000d690
add esp, 0x18
jmp 0x1001378f
push eax
push str._s__08X
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.1000d690
add esp, 0x14
movss xmm0, dword [esi + 0xb98]
xor edx, edx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
movss dword [ebp - 0x14], xmm0
call fcn.10017170
movss xmm0, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 9], al
mov eax, dword [esi + 0x1248]
movss dword [esi + 0xb98], xmm0
mov dword [ebp - 0x14], eax
cmp word [eax + 0xbc], 1
mov dword [eax + 0x78], ebx
jne 0x100137e4
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xfc], edx
mov edi, ebx
mov edx, 0x1004bb55
not edi
mov al, 0x23
mov ebx, edi
cmp al, 0x23
jne 0x100137ff
cmp byte [edx], al
jne 0x100137ff
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 + 0x1004cc00]
test al, al
jne 0x100137f1
not ebx
cmp dword [esi + 0x1298], ebx
jne 0x10013827
call fcn.10010030
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x1cbc], eax
jne 0x10013878
test dword [ebp + 0x10], 0x800000
jne 0x10013878
mov edi, dword [ebp - 0x14]
cmp word [edi + 0x154], 0
jne 0x10013851
cmp byte [edi + 0x15a], 0
je 0x10013878
xor edx, edx
mov ecx, edi
call fcn.10019d70
xor dl, dl
mov ecx, edi
call fcn.1001ec20
mov edx, edi
mov ecx, ebx
call fcn.1000fef0
mov eax, dword [esi + 0x1ce0]
mov dword [esi + 0x12b8], eax
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1004712d
mov esp, ebp
pop ebp
ret
Function at 0x10013a40
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 0x10013a7f
cmp bl, 0x23
jne 0x10013a61
cmp byte [esi], bl
jne 0x10013a61
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 + 0x1004cc00]
test bl, bl
jne 0x10013a52
mov ecx, dword [0x10056b84]
not eax
mov esi, dword [ecx + 0x1230]
mov edi, dword [ecx + 0x1238]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10013abe
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10013ab8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10013aba
mov esi, edx
test esi, esi
jne 0x10013aa0
cmp edi, ebx
je 0x10013acd
cmp dword [edi], eax
jne 0x10013acd
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10021d00
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 + 0x3060], 0
lea esi, [edi + 0x3064]
je 0x10021d82
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10021d3c
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.10026440
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1000dd10
mov edx, dword [esi]
mov ecx, 0x10056b69
push dword [edi + 0x3060]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x306c]
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.1000dd10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022190
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 [0x10056b84]
test bl, bl
je 0x100221d6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100221b7
cmp byte [esi], bl
jne 0x100221b7
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 + 0x1004cc00]
test bl, bl
jne 0x100221a8
mov edi, dword [0x10056b84]
mov ecx, dword [edi + 0x3004]
not eax
mov edx, dword [edi + 0x300c]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x100221fd
cmp dword [edx + 4], eax
je 0x10022200
add edx, 0x24
cmp edx, ecx
jne 0x100221f1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x100246b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049510
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10056040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
lea edi, [esi + 0x38]
mov dword [esi + 8], 0
lea eax, [edi + 0x10]
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x10], edi
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x100247aa
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.10023900
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x80], 0
movups xmmword [esi + 0x70], xmm0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100368a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10056040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10056b84]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x10036a4d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10036a4d
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x10056b84]
add esp, 4
mov edi, eax
test esi, esi
je 0x10036944
movsx edx, word [esi + 0x30f0]
lea eax, [esi + 0x30f4]
mov ecx, dword [esi + 0x11c8]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x1003693a
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x30f0], ax
cwde
lea eax, [eax*8 + 0x30f4]
add eax, esi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x30e8]
test edi, edi
je 0x10036957
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10036959
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x68], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x10036994
mov esi, dword [esi + 0x70]
jmp 0x10036996
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 0x100369b9
mov dword [esi], eax
mov eax, dword [0x10056b84]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x1cac]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x10036a1b
inc esi
cmp esi, 5
jl 0x100369f2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004712d
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.1004712d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004712d
mov esp, ebp
pop ebp
ret
Function at 0x100460d8
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10056040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100461e3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100461dc
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100461a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100461a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100461a0
mov edx, dword [esi]
test edx, edx
jne 0x10046169
push 0x200
push edx
push dword [0x10056b94]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100461c5
lea ebx, [esi + 8]
jmp 0x10046193
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10046193
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10056b94]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100461f4
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10046121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100461dc
xor edi, edi
cmp dword [esi], edi
je 0x100461dc
push dword [esi]
push edi
push dword [0x10056b94]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004712d
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100461c5

Function at 0x100461f9
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.100460d8
test eax, eax
jne 0x1004621d
push 9
pop esi
jmp 0x10046264
cmp dword [edi], esi
je 0x10046264
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10046263
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1004625d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10045f83
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10046229
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret