joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46086f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004111d0
mov eax, dword [0x493ea0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00419e47
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4609a2
push 2
push esi
push dword [ebp + 8]
call fcn.00419e47
add esp, 0xc
cmp eax, ebx
je 0x4609a2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x460942
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00411d70
push 0x8000
push dword [ebp + 8]
call fcn.004609b0
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4608f8
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00419f66
add esp, 0xc
cmp eax, 0xffffffff
je 0x460918
sub edi, eax
test edi, edi
jg 0x4608f0
jmp 0x460930
call fcn.00413007
cmp dword [eax], 5
jne 0x46092d
call fcn.00412ffe
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004609b0
pop ecx
pop ecx
jmp 0x46098a
jge 0x46098a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419e47
push dword [ebp + 8]
call fcn.0041bb58
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x46098a
call fcn.00412ffe
mov dword [eax], 0xd
call fcn.00413007
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00419e47
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4609a4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00410507
leave
ret
Function at 0x462e73
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x472f70
call fcn.00411d0c
sub esp, 0x9c
mov eax, dword [0x493ea0]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.00468808
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00402fc0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x462f04
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00411d70
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x462efd
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x462f04
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00411889
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x462f19
call fcn.00462adb
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00411d70
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x462f96
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0046eb29
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x463234
je 0x462fc2
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
cmp dword [ebp + 0x18], ebx
je 0x462ff8
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00404e90
push ebx
mov ecx, edi
call fcn.00403230
jmp 0x462fe1
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004122c8
cmp eax, ebx
pop ecx
pop ecx
jne 0x462fde
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410507
leave
ret 0x1c

Function at 0x4667d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x46680e
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040fa24
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00409ab0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4679fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x467a3f
call fcn.0046eb29
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x467a3f
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x467a5a
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00466b61
test ebx, ebx
mov esi, eax
je 0x467a58
test edi, edi
je 0x467a58
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x468bb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x468bea
call fcn.0046eb29
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x468bfb
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x468c34
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x468c19
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x468c21
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x468c32
test ax, ax
jne 0x468c32
test si, si
je 0x468c34
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x468c43
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x468e95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x472e2b
call fcn.00411d0c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0046eb29
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x468ee3
call fcn.0046eb29
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x468ef4
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
jne 0x468f00
or eax, 0xffffffff
jmp 0x469003
mov ecx, esi
call fcn.004689d5
mov dword [ebp - 0x14], eax
call fcn.00465de3
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x468f43
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x468f43
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x468f43
push 0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00467090
push dword [ebp - 0x14]
call fcn.00465d3b
push edi
push eax
push ebx
mov ecx, esi
call fcn.00468c88
xor ebx, ebx
cmp eax, ebx
je 0x468fb7
test byte [esi + 0x38], 0x10
je 0x468f85
push 4
pop edi
mov ecx, esi
call fcn.00467d9e
test ah, 1
je 0x468f7d
push 5
pop edi
push edi
mov ecx, esi
call fcn.004657df
cmp dword [esi + 0x1c], ebx
je 0x468fb7
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00467f43
jmp 0x468fb7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x468fcb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x468fe4
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x468fe4
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00468a0f
cmp dword [esi + 0x54], ebx
je 0x469000
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46a5df
Capabilities:
Get disk information

Disassembly:
mov eax, 0x473101
call fcn.00411d0c
sub esp, 0x150
mov eax, dword [0x493ea0]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x46a627
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
jmp 0x46a62b
cmp eax, esi
jb 0x46a632
xor eax, eax
jmp 0x46a707
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.0046a59d
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x46a6f7
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
jne 0x46a686
xor esi, esi
jmp 0x46a6fa
test byte [ebp - 0x158], 2
jne 0x46a696
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x46a6f7
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46a6f7
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x46a682
cmp dword [ebp - 0x154], edi
jbe 0x46a682
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x46a682
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401580
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410507
leave
ret 8
Function at 0x46adcb
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00411d70
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov eax, dword [edi + 4]
cmp eax, dword [0x47a1ec]
je 0x46aed2
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x46ae3b
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x46ae42
cmp ebx, ebx
jne 0x46ae42
xor eax, eax
jmp 0x46aed5
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x46ae4f
mov byte [esi + 0x20], bl
jmp 0x46ae63
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004103e5
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004103e5
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004103e5
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x46aebe
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x46aed2
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46bbe8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x493ea0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x46bc37
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, esi
jne 0x46bc37
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
je 0x46bc43
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00410507
leave
ret 8
Function at 0x46c455
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x493ea0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x46c4a2
push dword [ebp + 8]
call fcn.0046ee8d
mov esi, eax
test esi, esi
je 0x46c4ca
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x46c4ca
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x476da8
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00410507
leave
ret 0xc

Function at 0x46db09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x46db1f
mov edi, dword [esi + 0xc]
jmp 0x46db49
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
test edi, edi
jne 0x46db49
call fcn.0046b308
call fcn.0046eb29
cmp dword [eax + 0x1038], 0
je 0x46db61
push edi
mov ecx, ebx
call fcn.0046ce7e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0046da28
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x46db7f
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x46db8b
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46ef3c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x472e4f
call fcn.00411d0c
mov eax, 0x1014
call fcn.004111d0
mov eax, dword [0x493ea0]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x46f037
push dword [ebp + 0xc]
call fcn.0046ee8d
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x46ef85
push dword [ebp + 0x14]
jmp 0x46f068
push esi
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x46f002
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00403230
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.00409ab0
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x46f025
lea eax, [ebp + 0xc]
push eax
call fcn.00404b30
jmp 0x46f02d
push dword [ebp + 0x14]
call fcn.004061f0
lea ecx, [ebx - 0x10]
call fcn.00401580
jmp 0x46f070
cmp dword [ebp + 0x14], edi
jne 0x46f043
mov dword [ebp + 0x14], 0x474f1a
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.004061f0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00410507
leave
ret 0x10

Function at 0x46f1e5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x493ea0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x46f243
push 0x479b1c
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00412565
add esp, 0x10
cmp eax, 0xffffffff
je 0x46f257
cmp eax, esi
jae 0x46f257
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x46f259
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne 0x46f20e
jmp 0x46f25a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00410507
leave
ret
Function at 0x46f27a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x493ea0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x46f31c
call eax
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x46f41e
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x46f3cc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f41f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f3c1
cmp dword [ebp - 0x24], 1
jne 0x46f3c1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x479b2c
push eax
call fcn.00412506
add esp, 0xc
cmp eax, 1
jne 0x46f3c1
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x46f41f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x46f41f
lea ecx, [ebp - 0x18]
push ecx
push 0x46f264
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.kernel32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x46f41f
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x46f445
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0046f1e5
cmp eax, ebx
pop ecx
pop ecx
jne 0x46f447
inc edi
cmp edi, esi
jl 0x46f42e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00410507
leave
ret 4