joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f60
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0041a300
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1002]
push ecx
mov word [ebp - 0x1004], ax
call fcn.00419b60
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1802]
push eax
mov word [ebp - 0x1804], dx
call fcn.00419b60
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x802]
push edx
mov word [ebp - 0x804], cx
call fcn.00419b60
add esp, 0x24
lea eax, [ebp - 0x1804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1004]
sub edx, eax
jmp 0x415ff0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x415ff0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push edi
jmp 0x416010
lea ecx, [ebp - 0x1004]
push 0x433a54
push ecx
call fcn.00419796
mov esi, eax
add esp, 8
test esi, esi
je 0x4160c4
xor edx, edx
mov word [esi], dx
add esi, 2
xor eax, eax
jmp 0x416040
movzx ecx, word [ebp + eax - 0x1004]
mov word [ebp + eax - 0x804], cx
add eax, 2
test cx, cx
jne 0x416040
lea eax, [ebp - 0x804]
push 0x3a
push eax
call fcn.0041a11d
add esp, 8
test eax, eax
jne 0x41607d
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41609a
lea edi, [ebp - 0x804]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x416086
mov edx, dword [0x433a54]
mov dword [edi], edx
lea eax, [ebp - 0x804]
push eax
call ebx
lea edx, [ebp - 0x1004]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4160b0
jmp 0x416010
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4160d0
sub eax, edx
sar eax, 1
je 0x416010
pop edi
xor eax, eax
pop esi
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x1004]
mov word [ebp + eax - 0x804], cx
add eax, 2
test cx, cx
jne 0x4160f0
push 0
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x1804]
push edx
call ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret

Function at 0x416140
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41617d
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x416600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.00419b60
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.0041ae35
lea eax, [ebp - 0x804]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416652
sub eax, edx
cmp byte [ebp + eax - 0x805], 0xa
je 0x416683
push edi
lea edi, [ebp - 0x804]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x416670
mov cx, word [0x430014]
mov word [edi], cx
pop edi
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret

Function at 0x4166a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041a300
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0xffe
push eax
lea ecx, [ebp - 0x1002]
push ecx
mov word [ebp - 0x1004], ax
call fcn.00419b60
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x1004]
push 0x7ff
push ecx
call fcn.00418652
lea eax, [ebp - 0x1004]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4166f7
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x1006], 0xa
je 0x416735
push edi
lea edi, [ebp - 0x1004]
add edi, 0xfffffffe
jmp 0x416720
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x416720
mov edx, dword [0x430018]
mov dword [edi], edx
pop edi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x416840
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00419b60
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00419b60
push 0x103
lea edx, [ebp - 0x30f]
push 0
push edx
mov byte [ebp - 0x310], 0
call fcn.00419b60
add esp, 0x24
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x314], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x103
lea edx, [ebp - 0x310]
push edx
push str.COMPUTERNAME
call esi
push 0x103
lea eax, [ebp - 0x108]
push eax
push str.USERDOMAIN
call esi
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x310]
push edx
call fcn.004189fd
add esp, 8
test eax, eax
jne 0x416932
lea eax, [ebp - 0x20c]
push eax
push 0x433180
push edi
call fcn.0041874b
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str._s._s
push edi
call fcn.0041874b
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
pop esi
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x416960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb10
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00419b60
lea ecx, [ebp - 0x108]
push ecx
call fcn.004167f0
push 0x103
lea edx, [ebp - 0x30f]
push ebx
push edx
mov byte [ebp - 0x310], bl
call fcn.00419b60
lea eax, [ebp - 0x310]
push eax
call fcn.00417aa0
push 0x103
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov byte [ebp - 0x20c], bl
call fcn.00419b60
lea edx, [ebp - 0x20c]
push edx
call fcn.00416840
push 0x3ff
lea eax, [ebp - 0xb0f]
push ebx
push eax
mov byte [ebp - 0xb10], bl
call fcn.00419b60
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x3c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x108]
push eax
call edi
push eax
lea ecx, [ebp - 0xb10]
push str.P_U_F_B_HW_A_1____PID:_d__CID:_s__UID:_s__UN:_s
push ecx
call fcn.0041874b
add esp, 0x18
lea edx, [ebp - 0xb10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3ff
lea eax, [ebp - 0x70f]
push ebx
push eax
mov byte [ebp - 0x710], bl
call fcn.00419b60
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x710]
push str._s._s
push eax
call fcn.0041874b
lea ecx, [ebp - 0x710]
push ecx
call fcn.0042af03
push esi
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x710]
push eax
call fcn.00410b10
add esp, 0x2c
push esi
lea ecx, [ebp - 0x710]
push ecx
call edi
push eax
lea edx, [ebp - 0xb10]
push str.P_U_F_B_HW_A_2____PID:_d__UUID:_s__UV:_s
push edx
call fcn.0041874b
add esp, 0x14
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
lea eax, [ebx + 1]
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x417920
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x103
xor esi, esi
lea eax, [ebp - 0x107]
push esi
push eax
mov byte [ebp - 0x108], 0
call fcn.00419b60
push 0x90
lea ecx, [ebp - 0x29c]
push esi
push ecx
call fcn.00419b60
add esp, 0x18
lea edx, [ebp - 0x2a0]
push edx
mov dword [ebp - 0x2a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x290], 2
jne 0x417a2e
lea eax, [ebp - 0x108]
push eax
call fcn.00417150
mov esi, eax
add esp, 4
test esi, esi
je 0x4179bb
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4179b0
sub eax, edx
jne 0x4179cc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00416e10
add esp, 4
mov esi, eax
test esi, esi
je 0x4179eb
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4179e0
sub eax, edx
jne 0x4179fc
lea edx, [ebp - 0x108]
push edx
call fcn.00417670
add esp, 4
mov esi, eax
test esi, esi
je 0x417a1b
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a10
sub eax, edx
jne 0x417a69
lea eax, [ebp - 0x108]
push eax
call fcn.004173e0
add esp, 4
mov esi, eax
jmp 0x417a69
push 0x103
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov byte [ebp - 0x20c], 0
call fcn.00419b60
lea edx, [ebp - 0x20c]
push str.G_H_D_I_e1____stOsVersion.dwPlatformId___VER_PLATFORM_WIN32_NT_n
push edx
call fcn.0041874b
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x108]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417a75
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x417aa0
Capabilities:
Get common file path
Get disk information
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00417920
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x417adf
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417ad0
sub eax, edx
jne 0x417bc5
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.00419b60
lea ecx, [ebp - 0x310]
push str.G_C_U_I_e1____G_H_D_I__.failed_n
push ecx
call fcn.0041874b
add esp, 0x14
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00419b60
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push str.COMPUTERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x20c]
push edx
call fcn.0042af03
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 0x314], ebx
mov byte [ebp - 0x108], bl
call fcn.00419b60
add esp, 0x10
push 0x103
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x314]
push edx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x105], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x314]
lea ecx, [ebp - 0x20c]
push ecx
push edx
push str.VSN__08X__s
push esi
call fcn.0041874b
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret

Function at 0x4180c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439190]
jne 0x4180d3
repz ret
jmp fcn.0041b3d5
Function at 0x426389
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041ddff
and dword [ebp - 0x14], 0
cmp dword [0x43f050], 0
mov dword [ebp - 0x18], eax
jne 0x42643c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4264e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432e18
push ebx
call edi
test eax, eax
je 0x4264e4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43f050], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43f054], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43f058], eax
call edi
push eax
call esi
mov dword [0x43f060], eax
test eax, eax
je 0x42643c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43f05c], eax
mov eax, dword [0x43f05c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x426495
cmp dword [0x43f060], ecx
je 0x426495
push eax
call esi
push dword [0x43f060]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x426495
test ebx, ebx
je 0x426495
call edi
test eax, eax
je 0x42648c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42648c
test byte [ebp - 8], 1
jne 0x426495
or dword [ebp + 0x10], 0x200000
jmp 0x4264c8
mov eax, dword [0x43f054]
cmp eax, dword [ebp - 0x18]
je 0x4264c8
push eax
call esi
test eax, eax
je 0x4264c8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4264c8
mov eax, dword [0x43f058]
cmp eax, dword [ebp - 0x18]
je 0x4264c8
push eax
call esi
test eax, eax
je 0x4264c8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43f050]
call esi
test eax, eax
je 0x4264e4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4264e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
leave
ret
Function at 0x411de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
lea eax, [esp]
mov word [0x497ce0], 0xffff
push esi
mov esi, dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.Software
push 0x80000001
call esi
test eax, eax
jne 0x411f8a
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push eax
push str.UbiSoft_Entertainment
push edx
call esi
test eax, eax
je 0x411e3e
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop esi
add esp, 0x24
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.TJPCRC
push edx
call esi
test eax, eax
je 0x411e73
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
add esp, 0x24
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
mov esi, 1
push str.SLanguage
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
je 0x411ec9
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
pop esi
add esp, 0x24
ret
lea eax, [esp + 0x18]
push str.FRENCH
push eax
call fcn.00451b90
add esp, 8
test eax, eax
jne 0x411eeb
mov word [0x497ce0], si
jmp 0x411f6f
lea ecx, [esp + 0x18]
push str.GERMAN
push ecx
call fcn.00451b90
add esp, 8
test eax, eax
jne 0x411f0c
mov word [0x497ce0], 2
jmp 0x411f6f
lea edx, [esp + 0x18]
push str.ITALIAN
push edx
call fcn.00451b90
add esp, 8
test eax, eax
jne 0x411f2d
mov word [0x497ce0], 4
jmp 0x411f6f
lea eax, [esp + 0x18]
push str.SPANISH
push eax
call fcn.00451b90
add esp, 8
test eax, eax
jne 0x411f4e
mov word [0x497ce0], 3
jmp 0x411f6f
lea ecx, [esp + 0x18]
push str.DUTCH
push ecx
call fcn.00451b90
add esp, 8
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
mov word [0x497ce0], ax
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
add esp, 0x24
ret
Function at 0x411f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
push edi
push eax
xor edi, edi
push 0xf003f
push edi
push str.Software
push 0x80000001
call esi
test eax, eax
jne 0x4120b7
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push edi
push str.UbiSoft_Entertainment
push edx
call esi
test eax, eax
je 0x411fe8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push edi
push str.TJPCRC
push edx
call esi
test eax, eax
je 0x41201d
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
mov eax, 4
mov esi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x1c]
push 0x4a61ac
push eax
push edi
push str.Joystick1
push ecx
call esi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push 0x4a61b0
push eax
push edi
push str.Joystick2
push ecx
call esi
mov eax, dword [0x4a771c]
sub eax, edi
je 0x412090
dec eax
jne 0x41209c
cmp dword [0x4a61ac], edi
jne 0x412096
cmp dword [0x4a61b0], edi
je 0x41209c
mov dword [0x4a61ac], 1
jmp 0x412096
mov dword [0x4a61ac], edi
mov dword [0x4a61b0], edi
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x41e7c0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x4a62e0
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov eax, 0x4a62e0
test eax, eax
je 0x41e828
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4a64e0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a64e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x4a64df], 0x5c
jne 0x41e81e
mov byte [ecx + 0x4a64df], 0
mov dword [0x4a65e0], 1
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov bl, 0x2e
movsx esi, bl
push esi
lea eax, [esp + 0x10]
push 0x4586f0
push eax
call 0x449fa5
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call edi
cmp eax, 5
nop
nop
push esi
push 0x4586f0
push 0x4a63e0
call 0x449fa5
add esp, 0xc
mov bl, 0x5a
inc bl
cmp bl, 0x5a
jle 0x41e830
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x41e980
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
mov dword [esp + 5], eax
push esi
mov dword [esp + 0xd], eax
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov dword [esp + 0x15], eax
mov word [esp + 0x19], ax
mov bl, 0x61
mov byte [esp + 0x1b], al
xor esi, esi
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], bl
push ecx
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
call edi
cmp eax, 5
jne 0x41e9db
mov eax, dword [0x4a65e8]
mov edx, 1
mov ecx, esi
shl edx, cl
or eax, edx
mov dword [0x4a65e8], eax
inc bl
inc esi
cmp bl, 0x7a
jle 0x41e9a7
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x402d20
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test ecx, ecx
je 0x402e08
test edx, edx
je 0x402e08
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], ecx
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402d6a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402d71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402d50
jmp 0x402d73
mov esi, 0x1505
jmp 0x402d73
mov esi, ecx
mov dword [esp + 4], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
mov dword [esp + 0x10], edx
jb 0x402e01
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402da4
inc ebx
dec ebp
je 0x402dff
mov eax, ebx
and eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402dff
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402da0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00409910
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402da0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00409930
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402da0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402e01
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402e10
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x402f11
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402f11
push ebx
call fcn.00409910
add esp, 4
test eax, eax
je 0x402e6a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402e71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402e50
jmp 0x402e73
mov esi, 0x1505
jmp 0x402e73
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x402f11
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402ea4
inc ebp
dec ebx
je 0x402f0f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402f0f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402ea0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402ea0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402ea0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402f0f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402f11
mov edi, dword [eax + 8]
jmp 0x402f11
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret