joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41698d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x416b63
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43b5a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x416b63
test cl, 0x48
je 0x4169f8
cmp byte [eax + 5], 0xa
je 0x4169f8
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x416a32
call fcn.004131fe
mov dword [eax], 9
call fcn.00413207
mov dword [eax], esi
jmp 0x416a42
cmp eax, 0x6d
je 0x416b63
push eax
call fcn.00413210
pop ecx
or eax, 0xffffffff
jmp 0x416b65
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x416b5e
test eax, eax
je 0x416a71
cmp byte [ebx], 0xa
jne 0x416a71
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x416a7a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x416b58
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x416b48
cmp al, 0xd
je 0x416aac
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x416b3a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x416ac6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x416ac1
add dword [ebp + 0x10], 2
jmp 0x416b1a
mov dword [ebp + 0x10], eax
jmp 0x416b36
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416b36
cmp dword [ebp - 0xc], 0
je 0x416b36
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x416b0f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416b1a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x416b39
cmp ebx, dword [ebp + 0xc]
jne 0x416b1f
cmp byte [ebp - 1], 0xa
jne 0x416b1f
mov byte [ebx], 0xa
jmp 0x416b39
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b5e9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416b3a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x416a90
jmp 0x416b58
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x416b58
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x416b65
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416e9f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x437d80]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x438580]
je 0x416ed6
inc eax
cmp eax, 0x13
jb 0x416ec7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x438580]
jne 0x416ff9
mov eax, dword [0x43af30]
cmp eax, 1
je 0x416fd4
cmp eax, edx
jne 0x416f06
cmp dword [0x437d64], 1
je 0x416fd4
cmp ecx, 0xfc
je 0x416ff9
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416f3c
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00415a50
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004122b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416f70
mov eax, edi
push eax
call fcn.004122b0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4301c8
push edi
call fcn.00410d60
add esp, 0x10
push edi
call fcn.004122b0
push dword [esi + 0x438584]
mov ebx, eax
call fcn.004122b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410580
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415a50
push edi
push ebx
call fcn.00415a60
push 0x4301a8
push ebx
call fcn.00415a60
push dword [esi + 0x438584]
push ebx
call fcn.00415a60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041be0a
add esp, 0x2c
jmp 0x416ff9
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x438584]
push dword [esi]
call fcn.004122b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041229e
add ebp, 0x90
leave
ret
Function at 0x41be0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43b3d4], ebx
push esi
push edi
jne 0x41be8a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bec5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431a2c
push edi
call esi
test eax, eax
mov dword [0x43b3d4], eax
je 0x41bec5
push 0x431a1c
push edi
call esi
push 0x431a08
push edi
mov dword [0x43b3d8], eax
call esi
cmp dword [0x43af44], 2
mov dword [0x43b3dc], eax
jne 0x41be8a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43b3e4], eax
je 0x41be8a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43b3e0], eax
mov eax, dword [0x43b3e0]
test eax, eax
je 0x41becf
call eax
test eax, eax
je 0x41beb6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43b3e4]
test eax, eax
je 0x41beb6
test byte [ebp - 8], 1
jne 0x41becf
cmp dword [0x43af50], 4
jb 0x41bec9
or byte [ebp + 0x12], 0x20
jmp 0x41beee
xor eax, eax
jmp 0x41befe
or byte [ebp + 0x12], 4
jmp 0x41beee
mov eax, dword [0x43b3d8]
test eax, eax
je 0x41beee
call eax
mov ebx, eax
test ebx, ebx
je 0x41beee
mov eax, dword [0x43b3dc]
test eax, eax
je 0x41beee
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43b3d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cfae
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00410580
mov eax, dword [0x437d80]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041650f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41d0e3
push 2
push esi
push dword [ebp + 8]
call fcn.0041650f
add esp, 0xc
cmp eax, ebx
je 0x41d0e3
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41d083
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00412360
push 0x8000
push dword [ebp + 8]
call fcn.0041dc71
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41d039
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00415dd2
add esp, 0xc
cmp eax, 0xffffffff
je 0x41d059
sub edi, eax
test edi, edi
jg 0x41d031
jmp 0x41d071
call fcn.00413207
cmp dword [eax], 5
jne 0x41d06e
call fcn.004131fe
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041dc71
pop ecx
pop ecx
jmp 0x41d0cb
jge 0x41d0cb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041650f
push dword [ebp + 8]
call fcn.0041b825
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 0x41d0cb
call fcn.004131fe
mov dword [eax], 0xd
call fcn.00413207
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.0041650f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41d0e5
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041229e
leave
ret
Function at 0x41d991
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x431a78
call fcn.004129c4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43b408], edi
jne 0x41d9d5
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d9c0
mov dword [0x43b408], ebx
jmp 0x41d9d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41d9d5
mov dword [0x43b408], 2
mov eax, dword [0x43b408]
cmp eax, ebx
jne 0x41d9f5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41dab8
cmp eax, 2
je 0x41d9fe
cmp eax, edi
jne 0x41da26
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41da11
mov eax, dword [0x43b288]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41da2d
xor eax, eax
jmp 0x41dab8
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00410580
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41da60
cmp esi, edi
jne 0x41da76
push dword [ebp - 0x20]
call fcn.00410216
pop ecx
mov esi, eax
cmp esi, edi
je 0x41da26
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41daa9
cmp dword [ebp + 0x14], edi
jne 0x41da93
push edi
push edi
jmp 0x41da99
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41dab5
push esi
call fcn.00410228
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004129ff
ret
Function at 0x41dac1
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x431a88
call fcn.004129c4
xor esi, esi
cmp dword [0x43b40c], esi
jne 0x41db05
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41daf0
mov dword [0x43b40c], edi
jmp 0x41db05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41db05
mov dword [0x43b40c], 2
mov eax, dword [0x43b40c]
cmp eax, 2
je 0x41dbe6
cmp eax, esi
je 0x41dbe6
cmp eax, 1
jne 0x41db4a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41db33
mov eax, dword [0x43b288]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x41db51
xor eax, eax
jmp 0x41dbf8
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00410580
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41db87
cmp edi, esi
jne 0x41dba2
lea eax, [ebx + ebx]
push eax
call fcn.00410216
pop ecx
mov edi, eax
cmp edi, esi
je 0x41db4a
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41dbd5
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41dbbf
push esi
push esi
jmp 0x41dbc5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41dbe1
push edi
call fcn.00410228
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41dbf8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004129ff
ret

Function at 0x4230ad
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 0x4230f0
call fcn.00428a68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4230f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42310b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422208
test ebx, ebx
mov esi, eax
je 0x423109
test edi, edi
je 0x423109
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x424043
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b285
call fcn.0041233c
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.00428a68
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x424091
call fcn.00428a68
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 0x4240a2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4240ae
or eax, 0xffffffff
jmp 0x4241b1
mov ecx, esi
call fcn.00423b85
mov dword [ebp - 0x14], eax
call fcn.004214a8
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4240f1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4240f1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4240f1
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.00422740
push dword [ebp - 0x14]
call fcn.00421400
push edi
push eax
push ebx
mov ecx, esi
call fcn.00423e36
xor ebx, ebx
cmp eax, ebx
je 0x424165
test byte [esi + 0x38], 0x10
je 0x424133
push 4
pop edi
mov ecx, esi
call fcn.0041fcf7
test ah, 1
je 0x42412b
push 5
pop edi
push edi
mov ecx, esi
call fcn.00420ea4
cmp dword [esi + 0x1c], ebx
je 0x424165
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041fe36
jmp 0x424165
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x424179
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x424192
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x424192
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.00423bbf
cmp dword [esi + 0x54], ebx
je 0x4241ae
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 0x425c41
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x437d80]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x425c94
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x425c94
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x425c9c
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041229e
leave
ret 8
Function at 0x4266fb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x437d80]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x42674c
push edi
call fcn.0042a09d
mov esi, eax
test esi, esi
je 0x426770
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
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
jmp 0x426770
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42c9bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041229e
leave
ret 0xc

Function at 0x42780a
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 0x427820
mov edi, dword [esi + 0xc]
jmp 0x42784a
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]
mov edi, eax
test edi, edi
jne 0x42784a
call fcn.0042552c
call fcn.00428a68
cmp dword [eax + 0x1038], 0
je 0x427862
push edi
mov ecx, ebx
call fcn.00426b30
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00427729
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x427880
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42788c
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 0x428bdb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x437d80]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x428c0e
push 0x42f2fc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x428c20
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x428c55
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00412745
add esp, 0x10
cmp eax, 0xffffffff
je 0x428c55
cmp eax, esi
jae 0x428c55
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x428c57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041229e
leave
ret
Function at 0x428c7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x437d80]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], 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 0x428d24
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 - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], 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 - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x428e26
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x428dd4
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 0x428e27
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 0x428dc9
cmp dword [ebp - 0x24], 1
jne 0x428dc9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42f30c
push eax
call fcn.0041279c
add esp, 0xc
cmp eax, 1
jne 0x428dc9
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 - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428e27
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x428e27
lea ecx, [ebp - 0x18]
push ecx
push 0x428c64
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x428e27
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 - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x428e4c
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.00428bdb
cmp eax, ebx
pop ecx
jne 0x428e4e
inc edi
cmp edi, esi
jl 0x428e36
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041229e
leave
ret 4