joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402eb0
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba33
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], ecx
push 0x3ec
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x43c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00418500
push eax
lea ecx, [ebp - 0x10]
call fcn.004155a0
lea ecx, [ebp - 0x10]
call fcn.00403820
mov ecx, dword [ebp - 0x43c]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x43c]
cmp dword [edx + 0x24], 0xffffffff
jne 0x402f76
lea ecx, [ebp - 0x14]
call fcn.00403fe0
mov dword [ebp - 4], 0
push 0x27e1
lea ecx, [ebp - 0x14]
call fcn.004046e0
push 0
push 0x42d504
lea ecx, [ebp - 0x14]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x43c]
add ecx, 4
call fcn.00403f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404a50
jmp 0x4030dd
push 0x3ff
mov ecx, dword [ebp - 0x43c]
add ecx, 4
call fcn.00403eb0
mov ecx, dword [ebp - 0x43c]
mov dword [ecx + 0x30], eax
push 0x3ff
lea edx, [ebp - 0x438]
push edx
mov ecx, dword [ebp - 0x43c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00403e20
test eax, eax
je 0x4030ce
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.0041c220
add esp, 0xc
push 0x104
lea edx, [ebp - 0x42c]
push edx
push 0x42d508
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403011
push 0
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov word [ebp - 0x224], dx
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.0041c220
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.0041bdae
add esp, 0xc
push 0x42d52c
lea eax, [ebp - 0x224]
push eax
call fcn.00403be0
add esp, 8
lea ecx, [ebp - 0x430]
call fcn.00403fe0
mov dword [ebp - 4], 1
push 0x3ff
mov ecx, dword [ebp - 0x43c]
add ecx, 4
call fcn.00403eb0
push eax
push 0x42d548
lea ecx, [ebp - 0x430]
push ecx
call fcn.00404000
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x430]
call fcn.00418500
push eax
push str.DiskReadOnly
push 0x42d56c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00404a50
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.004036b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4055b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x74], 0x80004004
jne 0x4055d7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x74], 0
mov eax, 0x80004004
jmp 0x4056be
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.0040aea0
test eax, eax
jne 0x405648
mov edx, dword [ebp + 8]
mov dword [edx + 0x74], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x70
call fcn.00409630
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7c], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
mov ecx, dword [ebp + 8]
sub ecx, 0x28
push ecx
push 0x4056d0
push 0
push 0
call fcn.0041c9fd
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
mov ecx, dword [ebp + 0xc]
push 0
push 0x64
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.0041cb20
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 4]
push esi
mov ecx, dword [ecx]
push ecx
push edx
push eax
call fcn.0041cab0
push eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.00417780
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jb 0x4056b8
ja 0x4056a4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
cmp eax, dword [edx]
jb 0x4056b8
push 0
push 1
push 0x111
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.0040adc0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405c40
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041c220
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x42d6f4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.0041c220
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.0041bdae
add esp, 0xc
push 0x42d718
lea ecx, [ebp - 0x418]
push ecx
call fcn.00403be0
add esp, 8
lea edx, [ebp - 0x418]
push edx
push 0
push 0x42d734
push 0x42d75c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x405d01
mov eax, 1
jmp 0x405d03
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret
Function at 0x406840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x436a98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406a50
cmp dword [ebp - 0x10], 1
jle 0x406a50
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040afd0
mov dword [ebp - 4], 0
push 0x42d864
lea ecx, [ebp - 0x1c]
call fcn.0040b0e0
test eax, eax
je 0x4068cf
push 0x42d87c
lea ecx, [ebp - 0x1c]
call fcn.0040b0e0
test eax, eax
jne 0x406902
cmp dword [ebp - 0x10], 3
jne 0x4068e4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00408a10
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404a50
jmp 0x406a50
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040afd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b090
movzx edx, ax
cmp edx, 0x22
jne 0x406947
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b0b0
cmp dword [ebp - 0x10], 2
jne 0x406962
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004081d0
cmp dword [ebp - 0x10], 2
jle 0x406a2b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040afd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b090
movzx edx, ax
cmp edx, 0x22
jne 0x4069b1
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b0b0
mov byte [ebp - 0x1d], 0
cmp dword [ebp - 0x10], 3
jle 0x406a00
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040afd0
mov byte [ebp - 4], 3
push 0x42d894
lea ecx, [ebp - 0x28]
call fcn.0040b0e0
test eax, eax
je 0x4069f0
push 0x42d8a0
lea ecx, [ebp - 0x28]
call fcn.0040b0e0
test eax, eax
jne 0x4069f4
mov byte [ebp - 0x1d], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404a50
movzx edx, byte [ebp - 0x1d]
push edx
lea ecx, [ebp - 0x24]
call fcn.00418500
push eax
lea ecx, [ebp - 0x18]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004081d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00404a50
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0x80
je 0x406d7c
mov eax, 1
jmp 0x406e3b
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x48]
test ecx, ecx
jne 0x406d90
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x4c], 0
je 0x406d9a
mov eax, 1
jmp 0x406e3b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x202
je 0x406db7
cmp dword [ebp - 0x18], 0x205
je 0x406df9
jmp 0x406e39
mov ecx, dword [ebp - 0x14]
call fcn.004073e0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 8
mov ecx, dword [ebp - 0x14]
add ecx, 0xe0
call fcn.00409b50
jmp 0x406e39
mov ecx, dword [ebp - 0x14]
call fcn.004073e0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xe4
call fcn.00409b50
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4081d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x64
call fcn.004047d0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x68
call fcn.004047d0
mov edx, dword [ebp - 8]
mov al, byte [ebp + 0x10]
mov byte [edx + 0x6c], al
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x407bc0
push 0
push 0
call fcn.0041c9fd
add esp, 0x18
push eax
lea ecx, [ebp - 4]
call fcn.00401ad0
lea ecx, [ebp - 4]
call fcn.0040a3b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bdea
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x436a98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call fcn.00403fe0
mov dword [ebp - 4], 0
push 0x2794
lea ecx, [ebp - 0x10]
call fcn.004046e0
push 5
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
push 0x42dc98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408a10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42be15
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040afd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b090
movzx ecx, ax
cmp ecx, 0x22
jne 0x408a80
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.0040b070
sub eax, 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b0b0
mov edx, dword [0x42dca4]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x42dca8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x5a
jmp 0x408aa3
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x41
jl 0x408af4
mov dx, word [ebp - 0x24]
mov word [ebp - 0x1c], dx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x408af2
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004081d0
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a50
mov eax, dword [ebp - 0x28]
jmp 0x408b6b
jmp 0x408a9a
lea ecx, [ebp - 0x10]
call fcn.0040a4b0
mov byte [ebp - 4], 1
push 0x27f6
lea ecx, [ebp - 0x10]
call fcn.00403c00
push 0x42dcac
lea ecx, [ebp - 0x10]
call fcn.00409950
lea ecx, [ebp - 0x20]
call fcn.00418500
push eax
lea ecx, [ebp - 0x10]
call fcn.00409950
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
push 0x281f
push 0x27dd
mov ecx, dword [ebp - 0x30]
call fcn.00407160
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a50
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 4
Function at 0x40a790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0041c220
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x40a810
cmp dword [ebp - 0x11c], 5
jae 0x40a804
cmp dword [ebp - 0x11c], 4
jne 0x40a810
cmp dword [ebp - 0x118], 0x5a
jb 0x40a810
mov dword [ebp - 0x128], 0
jmp 0x40a81a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret

Function at 0x40bd90
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0041c220
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40bde4
mov eax, 0x80004005
jmp 0x40bea5
push 0x42dd78
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x40be37
mov eax, 0x80004005
jmp 0x40bea5
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x214]
je 0x40be4c
mov eax, 0x80004005
jmp 0x40bea5
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.KuaiZipDrive.sys
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40bea3
mov eax, 0x80004005
jmp 0x40bea5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret
Function at 0x40da20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x50], ax
push 0x3e
push 0
lea ecx, [ebp - 0x4e]
push ecx
call fcn.0041c220
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 8], edx
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x1004
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40da78
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x40da84
lea edx, [ebp - 0x50]
push edx
call fcn.0041c765
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret

Function at 0x40dae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c21b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], ecx
push 0x104
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x230], eax
xor eax, eax
mov ecx, dword [ebp - 0x230]
mov word [ecx], ax
push str.Lang
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov ecx, dword [ebp - 0x238]
mov word [ecx + 0x410], ax
xor edx, edx
mov eax, dword [ebp - 0x238]
mov word [eax + 0x208], dx
push 0x42e1c8
push 0x42e1b8
push 0x42e1b8
push 0x42e194
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x22c]
push edx
push 1
push 0
lea eax, [ebp - 0x224]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40dbc1
jmp 0x40dc29
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00401ad0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0x208
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x238]
add eax, 0x208
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.LangModule
lea ecx, [ebp - 0x228]
call fcn.00418500
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0040e090
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 4
Function at 0x40dde0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x468], ecx
mov eax, dword [ebp - 0x468]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x42e1f4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x460], 0
push 0x24c
push 0
lea eax, [ebp - 0x45c]
push eax
call fcn.0041c220
add esp, 0xc
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40de63
xor eax, eax
jmp 0x40df28
mov dword [ebp - 0x464], 0
push 0x42e1f0
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40de99
push 0x42e1e8
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40de9b
jmp 0x40deff
mov edx, dword [ebp - 0x460]
and edx, 0x10
je 0x40dea8
jmp 0x40deff
mov eax, dword [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x468]
add ecx, 0x410
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x468]
add eax, 0x410
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x468]
add ecx, 0x410
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp + 8]
test eax, eax
je 0x40deff
mov dword [ebp - 0x464], 1
jmp 0x40df18
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40de6d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 8
Function at 0x412150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00411f20
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004120f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4121bb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00411f50
mov eax, dword [ebp - 0x224]
jmp 0x41224c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412221
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00412150
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x412218
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00411f50
mov eax, dword [ebp - 0x228]
jmp 0x41224c
mov dword [ebp - 4], 0x100
jmp 0x4121c2
lea ecx, [ebp - 0x14]
call fcn.00412030
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00411fd0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00411f50
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 4
Function at 0x412840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x412849
xor ecx, ecx
jne 0x412849
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41286a
mov eax, 0xd
jmp 0x4128c5
xor eax, eax
jne 0x412851
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x41287b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8