joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x1c], edx
test al, al
mov dword [ebp - 8], ecx
push edi
cmovne esi, edx
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10020d00
xor bl, bl
jmp 0x10020d22
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov edx, dword [ebp - 0x1c]
setne bl
push edx
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push dword [ebp - 8]
call fcn.100cd150
add esp, 0xc
test bl, bl
je 0x10020d4d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
Function at 0x10020d60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov cl, byte [esi]
mov byte [ebp - 0x1d], cl
test eax, eax
je 0x10020db8
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov cl, byte [ebp - 0x1d]
movzx eax, cl
sub eax, 0xe8
je 0x10020e8a
sub eax, 1
je 0x10020e8a
sub eax, 0x16
jne 0x10020e71
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
inc esi
mov dword [ebp - 0x18], 1
push 1
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov cl, byte [esi]
mov byte [ebp - 0x1d], cl
test eax, eax
je 0x10020e16
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov cl, byte [ebp - 0x1d]
cmp cl, 0x15
je 0x10020e20
cmp cl, 0x25
jne 0x10020e71
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x18], 4
push 4
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov esi, dword [esi]
test eax, eax
je 0x10020e5a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov ecx, dword [esi]
mov eax, edi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
inc esi
mov dword [ebp - 0x18], 4
push 4
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov ecx, dword [esi]
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x10020ec8
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov ecx, dword [ebp - 0x24]
lea eax, [esi + 4]
add eax, ecx
mov ecx, dword [ebp - 8]
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
Function at 0x10020ef0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], edx
mov dword [ecx], eax
mov ecx, edx
call fcn.10020d60
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x10020f58
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x10020f98
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
Function at 0x1003eed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10128561
push 0x64
mov edi, edx
mov esi, ecx
call fcn.100cb692
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1003f0b1
push 0x64
push 0
push ebx
call fcn.100ccff0
lea eax, [ebx + 4]
mov byte [ebx], 1
add esp, 0xc
mov dword [eax + 4], 0
mov dword [eax + 8], 0
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push 2
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100ca55d
lea eax, [ebx + 0x34]
push eax
call fcn.100ca4a0
add esp, 0xc
mov dword [0x101b7a08], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.1003daf0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x101864f0
mov dword [0x101b7a0c], eax
call fcn.100ca579
add esp, 4
test eax, eax
jne 0x1003f0cc
mov eax, dword [0x1018651c]
cmp eax, 0x7fffffff
je 0x1003f0d3
test edi, edi
je 0x1003efc9
movups xmm0, xmmword [edi]
movups xmmword [0x101b78f0], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x1003efd3
xorps xmm0, xmm0
movups xmmword [0x101b78f0], xmm0
movq qword [0x101b7900], xmm0
xorps xmm0, xmm0
push 0x101864f0
movups xmmword [0x101b7b10], xmm0
movq qword [0x101b7b20], xmm0
call fcn.100ca58a
add esp, 4
cmp dword [0x101bbb2c], 0
jne 0x1003f0bb
mov dword [0x101a7598], 0x1014aee8
test esi, esi
je 0x1003f03c
cmp byte [esi], 0
mov ecx, 0x101a75a8
je 0x1003f039
mov edx, 1
sub edx, esi
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x1003f039
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x1003f026
mov byte [ecx], 0
mov esi, dword [0x101b7a08]
mov al, 1
mov dword [0x101bbb2c], 0x101a7598
mov dword [0x101a75a0], 0x1003f410
mov dword [0x101a75a4], 0x1003f420
xchg byte [esi], al
push 4
call fcn.100cada9
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x1003fa20
push 0
push 0
call fcn.100d21cd
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x1003f0e5
cmp dword [esi + 0x60], 0
jne 0x1003f0e0
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
mov dword [0x101b7a08], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
push 5
call fcn.100c9fb6
dec eax
push 6
mov dword [0x1018651c], eax
call fcn.100c9fb6
call fcn.100d225e
push 6
mov dword [ebp - 0x4c], 0
call fcn.100c9fb6
int3
Function at 0x1003f7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ebx, 1
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
lea eax, [esi + 0x10]
mov dword [esi + 0x1388], 0x55555555
mov dword [esi + 0x138c], 0x55555555
mov dword [esi + 8], edi
mov dword [esi + 0xc], edx
mov esi, eax
push 0x5851f42d
mov ecx, edx
xor eax, eax
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edx
xor ecx, edi
push eax
push ecx
call fcn.100cbbe0
mov edi, eax
lea esi, [esi + 8]
add edi, ebx
mov dword [esi - 8], edi
adc edx, 0
inc ebx
mov dword [esi - 4], edx
cmp ebx, 0x138
jb 0x1003f816
mov esi, dword [ebp - 4]
mov eax, esi
pop edi
mov dword [esi], 0x138
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10040260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x101bbb2c]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.100cd150
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10040332
mov eax, dword [edi]
test eax, eax
je 0x100402e1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100402e1
test ebx, ebx
je 0x100402e1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100402e1
cmp dword [ebp - 8], esi
je 0x10040332
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10040301
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100402f5
cmp eax, 1
jne 0x10040301
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cacb6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret 8
Function at 0x10043780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9fa0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014a440]
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 + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x2c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.100ccff0
lea edi, [esi + 0x3c]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
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 0x10043878
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.1005b9c0
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 + 0x80], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
movups xmmword [esi + 0x74], xmm0
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 + 0xa4], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 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 0x10045da0
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 0x10045e01
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10045de4
cmp edi, 2
jb 0x10045de4
cmp byte [esi], cl
jne 0x10045de4
cmp byte [esi + 1], cl
jne 0x10045de4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10136688]
jmp 0x10045db5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10136688]
test edi, edi
jne 0x10045db5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10045e30
cmp cl, 0x23
jne 0x10045e17
cmp byte [esi], cl
jne 0x10045e17
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 + 0x10136688]
test cl, cl
jne 0x10045e08
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10045fc0
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 0x10045fd3
mov dword [ebx], 0
mov edx, 0x10136268
call fcn.10045e40
mov esi, eax
test esi, esi
je 0x100460eb
push esi
call fcn.100d85ec
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100460e2
push 2
push 0
push esi
call fcn.100d1db1
add esp, 0xc
test eax, eax
jne 0x100460e2
push esi
call fcn.100d85ec
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100460e2
push 0
push dword [ebp + 8]
push esi
call fcn.100d1db1
add esp, 0xc
test eax, eax
jne 0x100460e2
mov ecx, edi
call fcn.10048970
mov dword [ebp + 8], eax
test eax, eax
je 0x100460e2
push esi
push edi
push 1
push eax
call fcn.100d1961
add esp, 0x10
push esi
cmp eax, edi
je 0x100460cc
call fcn.100d0b32
mov ecx, dword [0x101864e8]
add esp, 4
test ecx, ecx
je 0x100460ba
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x100460b0
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push dword [ebp + 8]
call fcn.100d15b9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100d0b32
add esp, 4
test ebx, ebx
je 0x100460da
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100d0b32
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10048370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1014a440]
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 + 0x10136688]
sub esi, 1
jne 0x100483b0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x100483e7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1005b140
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret 4
Function at 0x1004bb40
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 0x1004bb7f
cmp bl, 0x23
jne 0x1004bb61
cmp byte [esi], bl
jne 0x1004bb61
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 + 0x10136688]
test bl, bl
jne 0x1004bb52
mov ecx, dword [0x101864e8]
not eax
mov esi, dword [ecx + 0x3f70]
mov edi, dword [ecx + 0x3f78]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1004bbbe
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1004bbb8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1004bbba
mov esi, edx
test esi, esi
jne 0x1004bba0
cmp edi, ebx
je 0x1004bbcd
cmp dword [edi], eax
jne 0x1004bbcd
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1005a230
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 [0x101864e8]
test bl, bl
je 0x1005a276
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1005a257
cmp byte [esi], bl
jne 0x1005a257
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 + 0x10136688]
test bl, bl
jne 0x1005a248
mov edi, dword [0x101864e8]
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1005a29d
cmp dword [edx + 4], eax
je 0x1005a2a0
add edx, 0x24
cmp edx, ecx
jne 0x1005a291
xor eax, eax
ret
mov eax, edx
ret
Function at 0x1006c9d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x101864e8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1006cb7b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1006cb7b
push esi
push edi
push 0x38
call fcn.100d7f03
mov esi, dword [0x101864e8]
add esp, 4
mov edi, eax
test esi, esi
je 0x1006ca72
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x1006ca68
lea eax, [edx + 1]
mov dword [ebp - 0x18], 6
cdq
idiv dword [ebp - 0x18]
movzx eax, dx
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test edi, edi
je 0x1006ca85
push 0x38
push 0
push edi
call fcn.100ccff0
add esp, 0xc
jmp 0x1006ca87
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov ebx, dword [ebp - 0x20]
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 0x1006cac2
mov esi, dword [esi + 0x74]
jmp 0x1006cac4
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 0x1006cae7
mov dword [esi], eax
mov eax, dword [0x101864e8]
xor esi, esi
mov dword [ebp - 0x34], str.xinput1_4.dll
mov dword [ebp - 0x30], str.xinput1_3.dll
mov dword [ebp - 0x2c], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [ebp - 0x28], str.xinput1_2.dll
mov dword [ebp - 0x24], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x34]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1006cb49
inc esi
cmp esi, 5
jl 0x1006cb20
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cacb6
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.100cacb6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
Function at 0x10072f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.10073060
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.10021e40
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10072fe3
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100cacb6
mov esp, ebp
pop ebp
ret
Function at 0x1007b7d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1007b87f
push esi
call fcn.1008fd10
add esp, 4
test al, al
jne 0x1007b87f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1007b7f7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1009a830
add esp, 0xc
test eax, eax
je 0x1007b82b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1009a830
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1007b82d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x1007b85e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1008b850
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x1007b840
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10089aa0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100fe2c0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10089aba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100fe2dc
push esi
call fcn.100dd980
add esp, 8
test eax, eax
je 0x10089b02
test ebp, ebp
je 0x10089af3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10089b28
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10089b28
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10089bdf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089b45
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10089bd5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10089bd5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089b77
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089b90
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10089ba0
test ebp, ebp
je 0x10089bcc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1014a004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1014a004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret