joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b90
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [0x437d70], 0x100
push 0
push 0
push 0
push 0
push str.UserAgent_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x425be3
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x425d2a
cmp dword [ebp + 0x10], 0
je 0x425bfd
push 4
lea eax, [ebp + 0x10]
push eax
push 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x3c
mov ecx, dword [ebp + 8]
add ecx, 0x48
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x100
mov ecx, dword [ebp + 8]
add ecx, 0x248
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0x800
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x425c6d
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x425d2a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 2
jne 0x425ca3
mov dword [ebp - 0xc], 0xa00
push 4
lea edx, [ebp - 0xc]
push edx
push 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, dword [0x437d70]
or edx, 0x800000
mov dword [0x437d70], edx
mov dword [0x44ee74], 1
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [0x44fb18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x248
mov dword [0x44fb1c], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x24]
mov dword [0x448da8], eax
push 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x24]
push edx
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x425d23
mov dword [ebp - 8], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [0x44ee74], 0
mov dword [0x44fb1c], 0
jmp 0x425d2a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428c00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 0x7c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x437d7c], eax
push 0x100
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00401a60
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401a60
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x428d56
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x21c], 0
jmp 0x428ca9
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x218]
test edx, edx
je 0x428d02
mov eax, dword [ebp - 0x21c]
movzx ecx, word [ebp + eax*2 - 0x218]
cmp ecx, 0x61
jl 0x428d00
mov edx, dword [ebp - 0x21c]
movzx eax, word [ebp + edx*2 - 0x218]
cmp eax, 0x7a
jg 0x428d00
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x218]
sub edx, 0x20
mov eax, dword [ebp - 0x21c]
mov word [ebp + eax*2 - 0x218], dx
jmp 0x428c9a
lea ecx, [ebp - 0x218]
push ecx
push str.ADMINISTRATOR
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x428d23
xor edx, edx
mov word [0x44ee78], dx
jmp 0x428d56
lea eax, [ebp - 0x218]
push eax
push 0x434fd4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x428d44
xor ecx, ecx
mov word [0x44ee78], cx
jmp 0x428d56
lea edx, [ebp - 0x108]
push edx
push 0x44ee78
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
call fcn.00428be0
push 0x434fe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x428d9f
push 0x435000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x428d9f
mov dword [0x438580], 2
jmp 0x428dd9
cmp dword [ebp - 0x10c], 0
je 0x428dd2
push str.AddAccessAllowedAceEx
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438580], eax
cmp dword [0x438580], 0
jne 0x428dd2
mov dword [0x438580], 3
jmp 0x428dd9
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a47
mov esp, ebp
pop ebp
ret 4
Function at 0x4010fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4065d0
cmp dword [esi], 0
jne 0x401142
push 0x644
push 0
call sub.KERNEL32.DLL_LoadResource
mov ecx, eax
test ecx, ecx
jne 0x40111f
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x4065cc]
mov dword [ecx], eax
mov dword [0x4065cc], ecx
xor edx, edx
mov eax, edx
add eax, eax
lea eax, [ecx + eax*8 + 4]
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esi], eax
inc edx
cmp edx, 0x64
jne 0x40112e
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x4012a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x4012b6
mov esi, 0x100000
jmp 0x4012c2
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_MapViewOfFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4012ff
mov edx, ebx
mov eax, 0x4065d4
call fcn.00401154
test al, al
jne 0x4012ff
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401304
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_MapViewOfFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x40134e
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x401376
mov edx, ebx
mov eax, 0x4065d4
call fcn.00401154
test al, al
jne 0x401376
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40137c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 0xffffffff
xor edx, edx
mov dword [esp + 0xc], edx
mov ebp, eax
mov eax, dword [esp]
add eax, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [0x4065d4]
jmp 0x4013fc
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
cmp ebp, esi
ja 0x4013fa
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0x10]
ja 0x4013fa
cmp esi, dword [esp + 8]
jae 0x4013c9
mov dword [esp + 8], esi
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0xc]
jbe 0x4013d8
mov dword [esp + 0xc], eax
push 0x8000
push 0
push esi
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4013f3
mov dword [0x4065b0], 1
mov eax, ebx
call fcn.00401184
mov ebx, edi
cmp ebx, 0x4065d4
jne 0x4013ab
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x40142c
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401434
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4065d4]
jmp 0x4014b6
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x401488
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x401492
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x4014b4
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
test eax, eax
jne 0x4014b4
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x4014be
mov esi, dword [esi]
cmp esi, 0x4065d4
jne 0x40147a
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4014c8
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov esi, ebx
add esi, 0xfff
and esi, 0xfffff000
mov dword [esp], esi
mov ebp, ebx
add ebp, edx
and ebp, 0xfffff000
mov eax, dword [esp]
mov dword [ecx], eax
mov eax, ebp
sub eax, dword [esp]
mov dword [ecx + 4], eax
mov esi, dword [0x4065d4]
jmp 0x401537
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebx, dword [esp]
jae 0x40150f
mov ebx, dword [esp]
cmp ebp, edi
jae 0x401515
mov edi, ebp
cmp edi, ebx
jbe 0x401535
push 0x4000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401535
mov dword [0x4065b0], 2
mov esi, dword [esi]
cmp esi, 0x4065d4
jne 0x4014ff
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x40183e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4065b4
call sub.KERNEL32.DLL_SetFilePointer
cmp byte [0x406035], 0
je 0x4017b6
push 0x4065b4
call sub.KERNEL32.DLL_SizeofResource
mov eax, 0x4065d4
call fcn.0040114c
mov eax, 0x4065e4
call fcn.0040114c
mov eax, 0x406610
call fcn.0040114c
push 0xff8
push 0
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40660c], eax
cmp dword [0x40660c], 0
je 0x40181d
mov eax, 3
mov edx, dword [0x40660c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x4017f3
mov eax, 0x4065f4
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x406600], eax
mov byte [0x4065ac], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401845
cmp byte [0x406035], 0
je 0x40183d
push 0x4065b4
call sub.KERNEL32.DLL_WaitForSingleObject
ret
Function at 0x40184c
Capabilities:
Extract resource via kernel32 functions
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4065ac], 0
je 0x401929
xor edx, edx
push ebp
push 0x401922
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x406035], 0
je 0x40187e
push 0x4065b4
call sub.KERNEL32.DLL_SizeofResource
mov byte [0x4065ac], 0
mov eax, dword [0x40660c]
push eax
call sub.KERNEL32.DLL_LockResource
xor eax, eax
mov dword [0x40660c], eax
mov ebx, dword [0x4065d4]
jmp 0x4018b1
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ReadFile
mov ebx, dword [ebx]
cmp ebx, 0x4065d4
jne 0x40189f
mov eax, 0x4065d4
call fcn.0040114c
mov eax, 0x4065e4
call fcn.0040114c
mov eax, 0x406610
call fcn.0040114c
mov eax, dword [0x4065cc]
test eax, eax
je 0x4018f7
mov edx, dword [eax]
mov dword [0x4065cc], edx
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, dword [0x4065cc]
test eax, eax
jne 0x4018e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401929
cmp byte [0x406035], 0
je 0x401917
push 0x4065b4
call sub.KERNEL32.DLL_WaitForSingleObject
push 0x4065b4
call sub.KERNEL32.DLL_WriteFile
ret
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0xca8c7389
add eax, 0x35b3be7a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x19010747
add dword [ebp - 0x40], 0x35513e04
mov dword [ebp - 0x3c], 0x858753b5
sub dword [ebp - 0x3c], 0x53540770
mov dword [ebp - 0x38], 0xa34d342b
add dword [ebp - 0x38], 0xa8ff1003
mov dword [ebp - 0x34], 0xcee8d270
add dword [ebp - 0x34], 0x31172d90
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x2c0c2529
add dword [ebp - 0x40], 0x4866442d
mov dword [ebp - 0x3c], 0x1a35c996
sub dword [ebp - 0x3c], 0xd8c96821
mov dword [ebp - 0x38], 0x410f4fc5
add dword [ebp - 0x38], 0x22601ca7
mov dword [ebp - 0x34], 0xbe08cf82
sub dword [ebp - 0x34], 0xbe08cf82
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x3a6b3f99
sub eax, 0x3a2abec5
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34779
push 0
call eax
mov ecx, 0x3f7e
mov ebx, eax
mov esi, 0x24707f33
add esi, 0xdbd090cd
add esi, dword [ebp - 0x30]
mov edx, 0x1d527282
add edx, 0xff855dcc
sub dword [ebp - 0x20], ecx
mov edi, dword [esi]
sub dword [ebp - 4], 0x22fcd9f9
add edi, edx
xor dword [ebp - 0x28], 0x10ea08a3
mov dword [ebx], edi
add ebx, 0xfe8e8168
sub ebx, 0xfe8e8164
add esi, 0x797eaa56
sub esi, 0x797eaa52
loop 0x40331a
add eax, 0xf0cb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401a20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a59d0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cf040]
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.004579f0
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 0x401b18
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.0041af70
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 0x404570
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 0x4045d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x4045b4
cmp edi, 2
jb 0x4045b4
cmp byte [esi], cl
jne 0x4045b4
cmp byte [esi + 1], cl
jne 0x4045b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4bf128]
jmp 0x404585
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4bf128]
test edi, edi
jne 0x404585
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x404600
cmp cl, 0x23
jne 0x4045e7
cmp byte [esi], cl
jne 0x4045e7
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 + 0x4bf128]
test cl, cl
jne 0x4045d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x404790
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 0x4047a3
mov dword [ebx], 0
mov edx, 0x4bed08
call fcn.00404610
mov esi, eax
test esi, esi
je 0x4048bb
push esi
call fcn.0045c450
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4048b2
push 2
push 0
push esi
call fcn.0045dcd0
add esp, 0xc
test eax, eax
jne 0x4048b2
push esi
call fcn.0045c450
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4048b2
push 0
push dword [ebp + 8]
push esi
call fcn.0045dcd0
add esp, 0xc
test eax, eax
jne 0x4048b2
mov ecx, edi
call fcn.00407aa0
mov dword [ebp + 8], eax
test eax, eax
je 0x4048b2
push esi
push edi
push 1
push eax
call fcn.0046cf00
add esp, 0x10
push esi
cmp eax, edi
je 0x40489c
call fcn.0045d5c0
mov ecx, dword [0x4d1930]
add esp, 4
test ecx, ecx
je 0x40488a
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x404880
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.0046c850
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0045d5c0
add esp, 4
test ebx, ebx
je 0x4048aa
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.0045d5c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4074a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cf040]
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 + 0x4bf128]
sub esi, 1
jne 0x4074e0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x407517
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041a5a0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453580
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0c0
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 0x40b0fd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40b0e3
cmp byte [esi], bl
jne 0x40b0e3
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 + 0x4bf128]
test bl, bl
jne 0x40b0d4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040b060
Function at 0x4193e0
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 [0x4d1930]
test bl, bl
je 0x419426
or edi, 0xffffffff
cmp bl, 0x23
jne 0x419407
cmp byte [esi], bl
jne 0x419407
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 + 0x4bf128]
test bl, bl
jne 0x4193f8
mov edi, dword [0x4d1930]
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 0x41944d
cmp dword [edx + 4], eax
je 0x419450
add edx, 0x24
cmp edx, ecx
jne 0x419441
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42c290
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4cf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4d1930]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42c43b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42c43b
push esi
push edi
push 0x38
call fcn.00474bc0
mov esi, dword [0x4d1930]
add esp, 4
mov edi, eax
test esi, esi
je 0x42c332
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42c328
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 0x42c345
push 0x38
push 0
push edi
call fcn.004579f0
add esp, 0xc
jmp 0x42c347
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 0x42c382
mov esi, dword [esi + 0x74]
jmp 0x42c384
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 0x42c3a7
mov dword [esi], eax
mov eax, dword [0x4d1930]
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 0x42c409
inc esi
cmp esi, 5
jl 0x42c3e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453580
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.00453580
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00453580
mov esp, ebp
pop ebp
ret