joyce8/EMBER2024-capa huggingface dataset:
Function at 0xfb1930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00fa8bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.00e14e90
lea ecx, [ebp - 0x20]
call fcn.00ed0ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0xfb19b6
xor al, al
jmp 0xfb19de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0xfb19d4
cmp dword [ebp - 0x64], 3
je 0xfb19d4
mov dword [ebp - 0x70], 0
jmp 0xfb19db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 4

Function at 0xfb19f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00fa8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.00fa8bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.00e14e90
lea ecx, [ebp - 0x58]
call fcn.00ed0ca0
lea ecx, [ebp - 0x3c]
call fcn.00e14e90
lea ecx, [ebp - 0x20]
call fcn.00ed0ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 8
Function at 0xfb1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0xfb1ac6
xor al, al
jmp 0xfb1b56
call fcn.00fb2470
movzx ecx, al
test ecx, ecx
jne 0xfb1af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xfb1af3
xor al, al
jmp 0xfb1b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.00fb2450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00fa8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
call fcn.00fb24b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.00e14e90
lea ecx, [ebp - 0x20]
call fcn.00ed0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 4
Function at 0xfb1d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0xfb1dca
xor al, al
jmp 0xfb1f7a
call fcn.00fb2470
movzx eax, al
test eax, eax
jne 0xfb1dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xfb1dfa
xor al, al
jmp 0xfb1f7a
push 0xffffffffffffffff
push 0xfdea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00fb2570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.00fb2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00e14e90
cmp dword [ebp - 0x60], 0
jbe 0xfb1ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0xfb1ea1
push 0xffffffffffffffff
push 0xfdeb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.00fb2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00f7d370
add esp, 8
mov ecx, eax
call fcn.00e14c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.00fb2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.00e14e90
cmp dword [ebp - 0x60], 0
jbe 0xfb1f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0xfb1f2a
push 0xffffffffffffffff
push 0xfdebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.00fb2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0xfb1f37
xor al, al
jmp 0xfb1f7a
mov ecx, dword [ebp + 8]
call fcn.00fa8b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00faa380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.00fa8f80
lea ecx, [ebp - 0x58]
call fcn.00ed0ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 8
Function at 0xfb2000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0xfb2026
xor al, al
jmp 0xfb223c
lea ecx, [ebp - 0x218]
call fcn.00e150e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00fa9310
movzx ecx, al
test ecx, ecx
je 0xfb20a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00e16550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00f7d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.00e1fd10
lea ecx, [ebp - 0x3c]
call fcn.00e14e90
lea ecx, [ebp - 0x20]
call fcn.00ed0ca0
lea ecx, [ebp - 0x218]
call fcn.00e14c40
mov dword [ebp - 0x1fc], eax
jmp 0xfb2108
push 0xfdec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00fa8e60
mov ecx, eax
call fcn.00e1b350
push eax
call fcn.00e1e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.00ed0ca0
lea ecx, [ebp - 0x58]
call fcn.00ed0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0xfb2108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00e14e90
mov al, byte [ebp - 0x232]
jmp 0xfb223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0xfb2131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0xfb219b
xor edx, edx
je 0xfb217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00f84170
mov ecx, eax
call fcn.00f7f550
push eax
call fcn.00e116a0
add esp, 8
push eax
call fcn.00e116a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00f84580
jmp 0xfb2131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00e14e90
mov al, byte [ebp - 0x233]
jmp 0xfb223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0xfb21da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00e14e90
mov al, byte [ebp - 0x234]
jmp 0xfb223c
xor edx, edx
je 0xfb2217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00f84170
mov ecx, eax
call fcn.00f7f550
push eax
call fcn.00e116a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00f84580
jmp 0xfb21da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00e14e90
mov al, byte [ebp - 0x235]
jmp 0xfb223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 8
Function at 0xfb2250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.00fa89b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.00f9b8e0
lea ecx, [ebp - 0x144]
call fcn.00f7da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0xfb2328
xor ecx, ecx
je 0xfb22fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00f84170
mov ecx, eax
call fcn.00f7f550
push eax
call fcn.00e116a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00f84580
jmp 0xfb22b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.00fb2400
lea ecx, [ebp - 0x144]
call fcn.00fb24d0
lea ecx, [ebp - 0x140]
call fcn.00f9f370
mov eax, dword [ebp + 8]
jmp 0xfb23e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0xfb2338
jmp 0xfb2388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00f57a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.00f7da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0xfb228b
lea ecx, [ebp - 0x144]
call fcn.00f7da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00faa380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00fa8f80
lea ecx, [ebp - 0xe4]
call fcn.00ed0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00fb2400
lea ecx, [ebp - 0x144]
call fcn.00fb24d0
lea ecx, [ebp - 0x140]
call fcn.00f9f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f58a41
mov esp, ebp
pop ebp
ret 4

Function at 0xfb3a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xfb3a6c
call fcn.00f5aeef
mov dword [eax], esi
call fcn.00f5aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00f58cab
mov eax, esi
jmp 0xfb3ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0xfb3a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xfb3a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00f5af02
pop ecx
call fcn.00f5aedc
mov eax, dword [eax]
jmp 0xfb3ac1
test al, 0x10
jne 0xfb3abf
test al, 1
je 0xfb3abf
test byte [ebp + 0xc], 2
je 0xfb3abf
call fcn.00f5aeef
mov dword [eax], 5
call fcn.00f5aedc
mov dword [eax], 0xd
jmp 0xfb3a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x404608
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406afc
test esi, esi
jne 0x404640
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406c38
jmp 0x40465e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040454c
mov edi, eax
test esi, esi
je 0x40465e
cmp dword [ebx], 0
je 0x40465e
dec esi
jmp 0x404647
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405efc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58b054], 0
je 0x405f5d
cmp word [0x58b330], 0xd7b2
jne 0x405f25
cmp dword [0x58b338], 0
jbe 0x405f25
mov eax, 0x58b32c
call dword [0x58b348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x582034], 0
jne 0x405f79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406108
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x582038], 0
je 0x40612e
mov edx, esi
mov eax, ebx
call dword [0x582038]
jmp 0x40613d
mov eax, 8
call fcn.0040425c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x58b055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060d0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4075b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4075f2
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407612
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406d0c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408bd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408d3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406afc
cmp si, word [0x5827d4]
jb 0x408c72
cmp si, word [0x5829d4]
ja 0x408c72
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408c72
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5827d4]
jae 0x408c4c
mov edi, ebx
dec edi
jmp 0x408c6d
cmp si, word [ebx*8 + 0x5827d4]
jbe 0x408c5c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408c6d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5827d8]
call fcn.00408ae8
jmp 0x408c72
cmp edi, dword [ebp - 0xc]
jae 0x408c36
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408d21
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d21
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d0c
push dword [ebp - 0x164]
push 0x408d5c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d0c
push dword [ebp - 0x168]
push 0x408d6c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d0c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004070c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d46
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406af4
ret
Function at 0x408d70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408f56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58db5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x58db74]
cmp ax, word [ebp - 2]
jne 0x408dc8
mov eax, dword [ebp - 6]
mov edx, 0x58db78
mov ecx, 0x55
call fcn.00406d0c
push 0x58db5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f40
push 0x58db5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406afc
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f08
cmp byte [0x58db58], 0
je 0x408ebe
call dword [0x58db50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x58db54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408eb7
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x58db4c]
test al, al
je 0x408e90
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0040425c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x58db4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408e85
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408e81
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408e6e
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f08
movzx eax, word [ebp - 0x16]
push eax
call dword [0x58db54]
cmp dword [ebp - 0x10], 0
je 0x408eb6
mov eax, dword [ebp - 0x10]
call fcn.00404278
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408bd8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408f08
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408eed
mov eax, dword [ebp - 6]
mov edx, 0x408f70
call fcn.00406f20
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408bd8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406f20
mov eax, dword [ebp - 6]
push 0x58db5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x58db74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406b88
push eax
push 0x58db78
call sub.kernel32.dll_lstrcpynW
push 0x58db5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f5d
lea eax, [ebp - 0x1c]
call fcn.00406aec
ret
Function at 0x409194
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ae4
xor eax, eax
push ebp
push 0x409379
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4091d4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4091ee
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b88
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409363
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409388
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40927d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409388
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40927d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40927d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409363
xor eax, eax
push ebp
push 0x40935c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f98
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092ec
mov eax, dword [ebp - 0x10]
call fcn.0040425c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cb8
jmp 0x409337
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409430
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409337
mov eax, dword [ebp - 0x10]
call fcn.0040425c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409430
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409363
cmp dword [ebp - 8], 0
je 0x409352
mov eax, dword [ebp - 8]
call fcn.00404278
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409380
lea eax, [ebp - 4]
call fcn.00406aec
ret