joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611e05
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6ffb60], edi
mov dword [edi], vtable.CResourceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0044c590
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0044c590
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00450d00
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.0044c590
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.0044c590
mov dword [edi + 0x24], eax
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 5
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00450d00
mov dword [edi + 0x2c], eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 6
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00450d00
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 7
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.0044c590
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5247d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
test al, al
je 0x5247ec
push 5
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x52abf0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x6f56bc], eax
cmp dword [0x6f73f4], eax
je 0x52ad3a
push 8
lea ecx, [ebp - 0x18]
mov dword [0x6f73f4], eax
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0052d990
add esp, 0xc
mov dword [0x6f73b4], eax
cmp dword [0x69e83c], eax
je 0x52ad3a
push 0x6f56c0
mov dword [0x69e83c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x6f56bc]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x52aca6
sub eax, 0xd
je 0x52ac93
dec eax
jne case.default.0x52acb8
mov byte [0x6f56ca], al
mov dword [0x6f6b94], 0x69e81e
jmp 0x52ad1f
mov byte [0x6f56ca], 1
mov dword [0x6f6b94], 0x69e824
jmp 0x52ad1f
mov eax, ecx
mov byte [0x6f56ca], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x52acb8
jmp dword [eax*4 + 0x52ad48]
mov byte [0x6f56ca], 0
mov dword [0x6f6b94], 0x69e812
jmp 0x52ad1f
mov dword [0x6f6b94], 0x69e818
jmp 0x52ad1f
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x6f6b94], 0x69e80c
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x6f6b94]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005bc889
mov ecx, dword [0x6f6b94]
add esp, 4
mov word [ecx + 2], ax
cmp dword [0x6f73b0], 0x4e8
je 0x52ad3a
mov eax, dword [0x6f73b4]
mov dword [0x6f73b0], eax
call fcn.0052ae60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
Function at 0x52b590
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x52b7dd
mov ecx, dword [0x6f56bc]
cmp dword [0x6f73f0], ecx
je 0x52b82b
cmp byte [0x6f56b2], 0
mov eax, 0x404
mov dword [0x6f73f0], ecx
je 0x52b5fb
cmp cx, ax
jne 0x52b5fb
mov dword [0x6f576c], 0x7000404
mov eax, 0x7000404
mov dword [0x6f5770], 0
jmp 0x52b7df
cmp ecx, 0xe0080404
je 0x52b627
cmp ecx, 0xe0090404
je 0x52b627
cmp ecx, 0xe00a0404
je 0x52b627
cmp ecx, 0xe00b0404
je 0x52b627
cmp ecx, 0xe00e0804
jne 0x52b7c9
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x52b7c9
cmp dword [0x6f56a8], 0
jne 0x52b6ee
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x404]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x52b6ee
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x52b6ee
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x52b6ee
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x52b6ee
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x52b7c9
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x6f56bc]
mov ebx, eax
test ebx, ebx
je 0x52b7c9
call fcn.005bc750
mov eax, esp
push eax
push ebx
push dword [ebp - 0x410]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x52b7c9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x6689b4
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x52b7c9
mov edx, dword [ebp - 0x408]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp dword [0x6f56a8], 0
jne 0x52b81a
mov eax, 0x404
cmp si, ax
jne 0x52b7f8
cmp ecx, 0x4020000
je 0x52b81a
cmp ecx, 0x4030000
je 0x52b81a
cmp ecx, 0x4040000
je 0x52b81a
cmp ecx, 0x5000000
je 0x52b81a
cmp ecx, 0x5010000
je 0x52b81a
cmp ecx, 0x5020000
je 0x52b81a
cmp ecx, 0x6000000
je 0x52b81a
mov dword [0x6f576c], 0
mov dword [0x6f5770], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x52b7c9
cmp ecx, 0x4010000
je 0x52b81a
cmp ecx, 0x4020000
je 0x52b81a
cmp ecx, 0x5030000
jne 0x52b7c9
mov eax, esi
or eax, ecx
mov dword [0x6f576c], eax
mov eax, dword [edx + 0xc]
mov dword [0x6f5770], eax
mov eax, dword [edi*4 + 0x6f576c]
jmp 0x52b7df
Function at 0x52b980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6f56bc]
push ebx
cmp eax, 0xe00e0804
je 0x52bb52
cmp eax, 0xe0090404
je 0x52bb52
mov ebx, dword [0x6f576c]
test ebx, ebx
je 0x52bb52
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x52bb41
movdqu xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x621994]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x621996]
mov edx, str.MSTCIPH
movdqu xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movdqu xmm0, xmmword [0x62197c]
push esi
cmovb edx, eax
movdqu xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x62198c]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x52ba38
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52ba48
mov ecx, edx
lea eax, [ebp - 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x52bb2c
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push str.Keyboard_Mapping
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52bb09
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x52bad4
cmp al, 0x22
je 0x52baea
cmp al, 0x23
je 0x52baea
cmp ebx, 0x5010000
je 0x52bae4
cmp ebx, 0x5020000
jne 0x52bb09
sub al, 0x22
cmp al, 2
ja 0x52bb09
push dword [ebp - 0x110]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x110]
mov bl, byte [ebp - 0x109]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.005b509b
mov esp, ebp
pop ebp
ret
Function at 0x52be00
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6f56b0], 0
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
jne 0x52bfcb
cmp byte [0x6f73d8], 0
mov dword [0x6f56b8], eax
jne 0x52be62
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x52be62
push 0x6f73d4
push 0x62189c
push 1
push 0
push 0x648f88
mov byte [0x6f73d8], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x6f56d0
mov dword [0x6f56d0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x105
lea eax, [ebp - 0x10c]
mov byte [0x6f56b1], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x52bf4a
lea ecx, [ebp - 0x10c]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x52bea0
mov eax, dword [0x6218ac]
mov dword [ecx], eax
mov eax, dword [0x6218b0]
mov dword [ecx + 4], eax
mov ax, word [0x6218b4]
mov word [ecx + 8], ax
mov al, byte [0x6218b6]
mov byte [ecx + 0xa], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6f56cc], eax
test eax, eax
je 0x52bf43
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmLockIMC
push eax
call esi
push str.ImmUnlockIMC
push dword [0x6f56cc]
mov dword [0x6f5698], eax
call esi
push str.ImmLockIMCC
push dword [0x6f56cc]
mov dword [0x6f569c], eax
call esi
push str.ImmUnlockIMCC
push dword [0x6f56cc]
mov dword [0x6f56a0], eax
call esi
push str.ImmDisableTextFrameService
push dword [0x6f56cc]
mov dword [0x6f56a4], eax
call esi
pop esi
test eax, eax
je 0x52bf4a
push 0xffffffffffffffff
call eax
jmp 0x52bf4a
mov byte [0x6f56b1], 1
push dword [0x6f56b8]
mov byte [0x6f56b0], 1
call sub.IMM32.dll_ImmGetContext
push eax
mov dword [edi + 4], eax
push dword [0x6f56b8]
call sub.IMM32.dll_ImmReleaseContext
call fcn.0052abf0
call fcn.0052abc0
push 2
call fcn.0052ce00
add esp, 4
call fcn.0052d1c0
test eax, eax
setne byte [0x6f56b2]
call fcn.0052ad60
cmp byte [0x6f56b2], 0
je 0x52bfcb
mov eax, dword [0x6f56bc]
and eax, 0x3ff
cmp eax, 4
jne 0x52bfba
call fcn.0052afd0
mov byte [0x6f56b5], 1
test eax, eax
jne 0x52bfc1
mov byte [0x6f56b5], 0
push 0
call fcn.0052d360
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.005b509b
mov esp, ebp
pop ebp
ret 4
Function at 0x52c620
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61251b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x20], 0
je 0x52c70d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x52c70d
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x52c70d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x52c70d
push eax
lea ecx, [ebp - 0x828]
call fcn.00442030
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x52c702
cmp dword [ebp - 0x814], 0x10
lea edx, [ebp - 0x810]
push 0x400
push edx
push ecx
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
push 0
push dword [0x6f73b4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.0052bfe0
mov ecx, dword [0x6f6b98]
test ecx, ecx
je 0x52c702
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x828]
call fcn.0043dc70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret

Function at 0x530d70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61261e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x6f7424]
test al, 1
jne 0x530dcb
or eax, 1
mov dword [0x6f7424], eax
mov ecx, 0x6f7420
mov dword [ebp - 4], 0
call fcn.00520240
push 0x61c970
call fcn.005b6420
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7031f4]
push 0xffffffffffffffff
push 0x3c
call fcn.005233f0
movdqu xmm0, xmmword [esi + 0x1c]
sub esp, 0x40
mov ecx, 0x6f7420
mov eax, esp
sub esp, 0x18
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [esi + 0x2c]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [esi + 0x3c]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [esi + 0x4c]
movdqu xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esi + 0xc]
movups xmmword [esp + 8], xmm0
movss xmm0, dword [esi + 8]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 4]
movss dword [esp], xmm0
call fcn.00521230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050be30

Function at 0x538a00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x538a19
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x53f6a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6133b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
mov ebx, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
test ecx, ecx
jle 0x53f860
jmp 0x53f6f0
mov eax, dword [eax + ebx]
add ebx, 4
cmp dword [edx + 0x1420], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
je 0x53f735
mov ecx, dword [edx + 0x141c]
mov eax, dword [edx + 0x142c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x53f726
mov ecx, dword [ebp - 0x44]
lea esi, [ebp - 0x50]
add eax, 0xffffffe4
mov dword [ebp - 0x50], eax
jmp 0x53f73f
mov ecx, dword [ebp - 0x44]
lea esi, [ebp - 0x50]
mov dword [ebp - 0x50], 0
jmp 0x53f73f
mov dword [ebp - 0x60], 0
lea esi, [ebp - 0x60]
mov esi, dword [esi]
test esi, esi
je 0x53f853
lea esp, [esp]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0043e010
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00493210
add esp, 8
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x53f79b
push dword [ebp - 0x28]
call fcn.004c3680
add esp, 4
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
xor eax, eax
add ecx, edx
mov dword [ebp - 0x14], 0xf
mov ebx, ecx
mov dword [ebp - 0x18], 0
sub ebx, edx
mov byte [ebp - 0x28], 0
xor edi, edi
cmp edx, ecx
cmova ebx, eax
test ebx, ebx
je 0x53f7e3
mov edi, edi
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
inc edi
xor eax, ecx
cmp edi, ebx
jb 0x53f7d0
cmp dword [ebp - 0x58], eax
je 0x53f81b
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x53f800
push dword [ebp - 0x40]
call fcn.004c3680
add esp, 4
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x53f80c
add esi, 0xffffffe4
jmp 0x53f80e
xor esi, esi
test esi, esi
jne 0x53f750
mov ebx, dword [ebp - 0x54]
jmp 0x53f84d
mov ecx, dword [esi + 0x18]
call fcn.00540960
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
add ecx, ebx
push ecx
mov ecx, eax
call fcn.00542e80
add ebx, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
jb 0x53f84d
push dword [ebp - 0x40]
call fcn.004c3680
add esp, 4
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
dec ecx
mov dword [ebp - 0x44], ecx
jne 0x53f6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 4
Function at 0x540830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp dword [edx + 0x13e4], 0x20
je 0x540844
xor al, al
pop ebp
ret 4
cmp byte [edx + 0x365], 0
jne 0x540885
cmp dword [edx + 0x13e8], 0x10
push esi
push edi
lea edi, [edx + 0x13d4]
jb 0x540860
mov edi, dword [edi]
mov esi, dword [ebp + 8]
xor ecx, ecx
xor dword [edi + ecx*4], esi
inc ecx
mov eax, dword [edx + 0x13e4]
add esi, 0x1000193
shr eax, 2
cmp ecx, eax
jne 0x540865
pop edi
mov byte [edx + 0x365], 1
pop esi
mov al, 1
pop ebp
ret 4

Function at 0x540970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618a58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x540aa1
cmp byte [ebx + 0x46], 0
je 0x540aa1
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x5409cf
xor al, al
jmp 0x540aa3
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
nop
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x540a3a
dec eax
je 0x540a3e
sub eax, 2
je 0x540a8a
xor bl, bl
jmp 0x540a8c
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x540a70
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005b697d
add esp, 0x10
cmp esi, eax
jne 0x540a36
cmp byte [ebx + 0x46], 0
je 0x540a8a
test esi, esi
jne 0x540a00
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00442940
jmp 0x540a00
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x540a9d
push dword [ebp - 0x28]
call fcn.004c3680
add esp, 4
mov al, bl
jmp 0x540aa3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
Function at 0x5503a0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613af6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.UI::CWindow.0
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
push 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x55], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.00463c40
mov dword [edi + 0x64], eax
push 0
mov dword [edi + 0x6c], 0
lea ecx, [edi + 0x70]
push 0
mov byte [ebp - 4], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.00463c40
mov dword [edi + 0x70], eax
mov eax, edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5620f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x562100
mov edi, 0x1505
mov esi, 0
sub ecx, edx
je 0x562127
movsx edx, byte [esi + ebx]
mov eax, edi
shl eax, 5
inc esi
add edi, eax
add edi, edx
cmp esi, ecx
jb 0x562115
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x568a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x614afe
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x703264], edi
mov dword [edi], vtable.CRaceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0044c590
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0046c1c0
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00450d00
mov dword [edi + 0x14], eax
mov ecx, edi
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov byte [edi + 0x1c], 0
call fcn.00569ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret