joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46249c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4624d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4624b5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4624c4
or bl, 4
test esi, 0x20000000
je 0x4624cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x468b98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x468baa
add esp, 0xfffffff0
call fcn.00404390
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425e5c
mov eax, dword [0x4f7adc]
mov dword [eax + 4], ebx
mov dword [eax], 0x468f3c
mov eax, dword [0x4f7af4]
mov dword [eax + 4], ebx
mov dword [eax], 0x468f48
mov eax, ebx
call fcn.00468f54
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41af4c]
call fcn.00403fe8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41af4c]
call fcn.00403fe8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41af4c]
call fcn.00403fe8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41af4c]
call fcn.00403fe8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41af4c]
call fcn.00403fe8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46536c
push eax
push 0
push 0
mov eax, dword [0x4f7d84]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427f10]
call fcn.004296a8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427f10]
call fcn.004296a8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427f10]
call fcn.004296a8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00469458
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4692d8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4692d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4692d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468ce7
call fcn.004043e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4690bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469267
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x469248
mov dl, 1
mov eax, dword [0x41b5b0]
call fcn.00403fe8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404de4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x469237
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00456998
test al, al
je 0x46922a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x469278
lea eax, [ebp - 0x254]
call fcn.0040a950
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46922a
xor eax, eax
push ebp
push 0x469223
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4692b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46920c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405054
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46920c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46922a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46912d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041fef8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46926e
lea eax, [ebp - 0x260]
call fcn.00404de4
ret

Function at 0x469bf8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f9be0]
cmp byte [eax + 0xa5], 0
jne 0x469c69
cmp dword [0x4f9bf8], 0
jne 0x469c2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x469bb4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f9bf8], eax
cmp dword [0x4f9bf4], 0
jne 0x469c45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f9bf4], eax
cmp dword [0x4f9bfc], 0
jne 0x469c69
push esp
push 0
push 0
push 0x469b58
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f9bfc], eax
pop edx
ret
Function at 0x46a2fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f9be0]
cmp dword [eax + 0x30], 0
je 0x46a3a6
cmp dword [ebx + 0x94], 0
jne 0x46a3a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a28c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a3a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46a366
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a3a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d8bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a375
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46af04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46af39
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404ed4
jmp 0x46af46
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e38
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c100
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c141
mov eax, esi
call fcn.00451e18
test al, al
je 0x46c141
mov eax, dword [ebx + 0x84]
call fcn.00451b14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c141
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451b14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46de78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e0d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46dedb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046d940
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e45c
cmp al, 1
jne 0x46dedb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046dc58
test al, al
je 0x46e067
cmp dword [ebp - 8], 0
jge 0x46def9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046d940
mov eax, dword [ebp - 0x210]
call fcn.004050a4
cmp ebx, eax
jge 0x46df43
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046d940
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4f8110]
and eax, 0xff
bt dword [edx], eax
jae 0x46df43
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46df57
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046de54
cmp ebx, dword [ebp - 8]
je 0x46e059
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46df83
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404220
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f60e8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46e046
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404220
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f60e8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00451b14
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404220
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f60e8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00451b14
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e04d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46e0ba
cmp dword [ebp - 8], 0
jge 0x46e072
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046d940
mov eax, dword [ebp - 0x218]
call fcn.004050a4
cmp eax, dword [ebp - 8]
jg 0x46e0ac
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046d940
mov eax, dword [ebp - 0x21c]
call fcn.004050a4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046de54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e0df
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404e08
ret
Function at 0x4793b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a720]
call fcn.00405780
xor eax, eax
push ebp
push 0x4794f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f6134], 0
jne 0x479403
mov ecx, dword [0x4f797c]
mov dl, 1
mov eax, dword [0x408604]
call fcn.0040db0c
call fcn.004047f8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403524
mov eax, ebx
call fcn.0040564c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x479504
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406b00
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040565c
test eax, eax
jle 0x47949b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x479494
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040506c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405054
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040950c
test eax, eax
jne 0x479494
mov ebx, 0x15
jmp 0x4794a0
mov ebx, 0x10
jmp 0x4794a0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f6134]
call fcn.00479308
mov eax, dword [ebp - 8]
call fcn.00479308
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794fb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404e08
lea eax, [ebp - 0x10]
mov edx, dword [0x41a720]
call fcn.00405850
ret
Function at 0x486268
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x94], ebx
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x4863b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x10
mov eax, esi
call fcn.004052a4
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.00404de4
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x48637b
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x486370
push 0
mov eax, esi
call fcn.004050a4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x486367
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x486367
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x486367
inc edi
lea esi, [ebp - 0x90]
lea eax, [ebp - 0x94]
push eax
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0
lea edx, [ebp - 0x9c]
xor ecx, ecx
mov eax, 0x4863d0
call fcn.0040a9e8
mov edx, dword [ebp - 0x94]
mov eax, ebx
call fcn.004050ac
inc esi
dec edi
jne 0x48632c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
lea edx, [ebp - 0xa0]
mov eax, dword [ebx]
call fcn.004094a0
mov edx, dword [ebp - 0xa0]
mov eax, ebx
call fcn.00404e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4863c0
lea eax, [ebp - 0xa0]
call fcn.00404de4
lea eax, [ebp - 0x94]
call fcn.00404de4
ret

Function at 0x4a7bd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4f6fa6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a7c2f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4f6fc7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a7c25
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4a7c33
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4e0cdc
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
lea eax, [esp + 8]
mov cl, 0x3d
mov edx, 4
call fcn.00403524
xor ecx, ecx
xor edx, edx
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x4f7790
mov ecx, 3
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, esp
xor ecx, ecx
mov edx, 4
call fcn.00403524
mov edx, esp
mov ecx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4e0e30
xor eax, eax
mov al, byte [esp]
shr eax, 2
cmp eax, 0xff
jbe 0x4e0d58
call fcn.00403f54
call fcn.004e0aa0
mov byte [esp + 4], al
mov al, byte [esp]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or eax, edx
cmp eax, 0xff
jbe 0x4e0d85
call fcn.00403f54
call fcn.004e0aa0
mov byte [esp + 5], al
cmp ebx, 1
jle 0x4e0dde
mov al, byte [esp + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
xor edx, edx
mov dl, byte [esp + 2]
shr edx, 6
or eax, edx
cmp eax, 0xff
jbe 0x4e0db8
call fcn.00403f54
call fcn.004e0aa0
mov byte [esp + 6], al
cmp ebx, 2
jle 0x4e0dd7
mov al, byte [esp + 2]
and al, 0x3f
call fcn.004e0aa0
mov byte [esp + 7], al
jmp 0x4e0de8
mov byte [esp + 7], 0x3d
jmp 0x4e0de8
mov byte [esp + 6], 0x3d
mov byte [esp + 7], 0x3d
cmp ebx, 3
jne 0x4e0e0e
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jne 0x4e0e0e
mov byte [esp + 4], 0x21
lea edx, [esp + 4]
mov ecx, 1
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0x10]
jmp 0x4e0e30
lea edx, [esp + 4]
mov ecx, 4
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0x10]
lea edx, [esp + 8]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00402ee4
cmp ebx, 3
jge 0x4e0d1e
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401497
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cf5
cmp eax, ebx
je 0x401533
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c

Function at 0x402f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x403098
push dword [0x4321cc]
call fcn.00402f23
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402faf
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402ef1
test eax, eax
je 0x4030aa
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x403006
cmp dword [0x470680], ebx
jne 0x403006
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e4f
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.00406900
test eax, eax
jl 0x4030af
mov esi, dword [0x426158]
sub esi, ebp
je 0x403064
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b4
cmp esi, dword [esp + 0x10]
jne 0x4030b4
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fd5
jmp 0x403070
cmp dword [0x426154], ebx
jne 0x4030af
cmp edi, ebx
je 0x4030af
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f99
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030a2
push 0xfffffffffffffffd
pop eax
jmp 0x4030a2
push 0xfffffffffffffffe
jmp 0x4030b1
Function at 0x4030b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030e4
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f3a
cmp eax, edi
jl 0x4031dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp dword [ebp - 4], esi
jne 0x4031d9
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f3a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031dc
cmp dword [ebp + 0x10], edi
jne 0x4031a8
cmp dword [ebp + 8], edi
jle 0x4031d4
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403158
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp edi, dword [ebp - 4]
jne 0x4031d9
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp dword [ebp + 0x14], edi
jne 0x4031a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x40314b
jmp 0x4031d4
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031dc
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [str.main_newconfig.cfg]
push eax
call fcn.00403460
add esp, 4
test al, al
je 0x401024
mov ecx, dword [str.main_newconfig.cfg]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [str.main_newconfig.cfg]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40fab0], eax
ret

Function at 0x401080
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [0x40fab0]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0xa]
push 2
push ecx
push edx
mov byte [esp + 0x16], 0xd
mov byte [esp + 0x17], 0xa
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
ret

Function at 0x4010c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 8]
push edi
lea eax, [esp + 4]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
mov ecx, dword [0x40fab0]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ecx
ret

Function at 0x401140
Capabilities:
Write file on windows

Disassembly:
call fcn.00403d50
test eax, eax
jle 0x401186
cmp eax, 2
jle 0x401174
cmp eax, 3
jne 0x401186
push str.seta_r_ext_compressed_textures_0
call fcn.004010c0
call fcn.00401080
push str.seta_ui_voodoo_1
call fcn.004010c0
add esp, 8
jmp fcn.00401080
push str.seta_r_ext_compressed_textures_1
call fcn.004010c0
add esp, 4
jmp fcn.00401080
push str.seta_r_ext_compressed_textures_0
call fcn.004010c0
add esp, 4
jmp fcn.00401080