joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b365
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x436e78
cmp edx, dword [eax]
je 0x41b387
add eax, 8
inc ecx
cmp eax, 0x436f08
jl 0x41b378
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x436e78]
jne 0x41b4b5
mov eax, dword [0x43a030]
cmp eax, 1
je 0x41b48f
test eax, eax
jne 0x41b3b8
cmp dword [0x4363e8], 1
je 0x41b48f
cmp edx, 0xfc
je 0x41b4b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b3ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004172d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b432
lea eax, [ebp - 0x1a4]
push eax
call fcn.004172d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d348
push edi
call fcn.00412510
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418420
lea eax, [ebp - 0xa0]
push 0x42d328
push eax
call fcn.00418420
push dword [esi + 0x436e7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041d22c
add esp, 0x2c
pop edi
jmp 0x41b4b5
lea eax, [ebp + 8]
lea esi, [esi + 0x436e7c]
push 0
push eax
push dword [esi]
call fcn.004172d0
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]
pop esi
leave
ret

Function at 0x424321
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x424363
call fcn.00427f09
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x424363
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42435a
xor eax, eax
jmp 0x42436b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00424371
pop edi
pop esi
pop ebx
ret 4

Function at 0x4289ed
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x428a1b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428a39
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428953
jmp 0x428a39
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428a39
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428953
test edi, edi
mov eax, edi
jne 0x428a23
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404b40
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406eac
test esi, esi
jne 0x404b76
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.00407034
jmp 0x404b94
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404a84
mov edi, eax
test esi, esi
je 0x404b94
cmp dword [ebx], 0
je 0x404b94
dec esi
jmp 0x404b7d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405b48
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405f34
mov byte [esp], al
cmp byte [esp], 0
jne 0x405cd1
test edi, edi
je 0x405cd1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405be3
cmp edi, 0xffffffff
je 0x405ba7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405ba7
mov byte [esp], 0
jmp 0x405cd1
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405be3
test ebx, ebx
jne 0x405bdc
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027b0
test eax, eax
jne 0x405bdc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405cd1
pause
dec ebp
test ebp, ebp
jg 0x405b8c
cmp edi, 0xffffffff
je 0x405c08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c06
mov byte [esp], 0
jmp 0x405cd1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405b56
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027b0
cmp ebx, eax
jne 0x405c08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d44
mov edx, eax
mov ebx, dword [0x6308cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405c6f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405c6d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405c6f
xor edi, edi
cmp byte [esp], 0
je 0x405c98
mov ebx, dword [esi]
test bl, 1
jne 0x405cb1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027b0
cmp ebx, eax
jne 0x405c75
mov byte [esp + 1], 1
jmp 0x405cb1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027b0
cmp ebx, eax
jne 0x405c98
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c22
cmp byte [esp], 0
je 0x405cd1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406b10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x630054], 0
je 0x406b71
cmp word [0x630330], 0xd7b2
jne 0x406b39
cmp dword [0x630338], 0
jbe 0x406b39
mov eax, 0x63032c
call dword [0x630348]
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 0x406b9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x626028], 0
jne 0x406b8d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406d68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x62602c], 0
je 0x406d93
mov edx, edi
mov eax, esi
call dword [0x62602c]
mov ebx, eax
jmp 0x406da4
mov eax, 8
call fcn.004047b8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x630055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d30
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406dd9
mov edx, 8
mov eax, ebx
call fcn.004047d4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409a00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406eac
cmp si, word [0x6267dc]
jb 0x409a98
cmp si, word [0x6269dc]
ja 0x409a98
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409a98
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6267dc]
jae 0x409a72
mov edi, ebx
dec edi
jmp 0x409a93
cmp si, word [ebx*8 + 0x6267dc]
jbe 0x409a82
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409a93
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6267e0]
call fcn.00409910
jmp 0x409a98
cmp edi, dword [ebp - 8]
jae 0x409a5c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409b47
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409b47
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407e40
push dword [ebp - 0x160]
push 0x409b80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407e40
push dword [ebp - 0x164]
push 0x409b90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407e40
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b6c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f0c
ret
Function at 0x409d18
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409e1b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x632b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x632b6e]
jne 0x409d64
mov eax, esi
mov edx, 0x632b70
mov ecx, 0x55
call fcn.00407e40
push 0x632b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409e05
push 0x632b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406eac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409dd3
cmp byte [0x632b54], 0
je 0x409d98
mov edx, esi
mov eax, ebx
call fcn.00409bfc
jmp 0x409dd3
mov edx, esi
mov eax, ebx
call fcn.00409a00
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409dd3
cmp dword [esi], 0
je 0x409dbc
mov eax, esi
mov edx, 0x409e34
call fcn.00407f98
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409a00
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407f98
push 0x632b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x632b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407d8c
push eax
push 0x632b70
call sub.kernel32.dll_lstrcpynW
push 0x632b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e22
lea eax, [ebp - 4]
call fcn.00406eac
ret
Function at 0x40a050
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.00406f90
xor eax, eax
push ebp
push 0x40a275
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a090
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a0aa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407d8c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a25f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a284
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a179
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a284
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a179
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a179
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a179
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a179
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a328
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a25f
xor eax, eax
push ebp
push 0x40a258
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409e5c
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 0x40a1e8
mov eax, dword [ebp - 0x10]
call fcn.004047b8
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.00407dec
jmp 0x40a233
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a368
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a233
mov eax, dword [ebp - 0x10]
call fcn.004047b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a368
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407dec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a25f
cmp dword [ebp - 8], 0
je 0x40a24e
mov eax, dword [ebp - 8]
call fcn.004047d4
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 0x40a27c
lea eax, [ebp - 4]
call fcn.00406eac
ret
Function at 0x40a5b4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f90
xor eax, eax
push ebp
push 0x40a674
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407e40
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407ff0
mov eax, dword [ebx]
call fcn.0040a47c
test al, al
jne 0x40a651
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407e40
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407ff0
mov eax, dword [ebx]
call fcn.0040a47c
test al, al
jne 0x40a651
mov eax, ebx
call fcn.00406eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a67b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f0c
lea eax, [ebp - 4]
call fcn.00406eac
ret

Function at 0x40afac
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41dfe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e039
test eax, edx
je 0x41e03c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dff7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e01e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41e01f
add ecx, 4
js 0x41e00f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e01c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e01e
xor eax, eax
ret
test eax, eax
je 0x41e048
test edx, edx
jne 0x41dfe8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407d8c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f0ee
test ah, 4
je 0x41f0e7
test bl, bl
jne 0x41f0ac
mov al, 1
jmp 0x41f115
test al, 0x10
je 0x41f0b4
xor eax, eax
jmp 0x41f115
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41f0d8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41f115
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41f115
test al, 0x10
sete al
jmp 0x41f115
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41f10f
cmp ebx, 3
je 0x41f10f
cmp ebx, 0x7b
je 0x41f10f
mov eax, esi
call fcn.0041f044
test al, al
jne 0x41f113
xor eax, eax
jmp 0x41f115
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41f11c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407d8c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1c3
test esi, 0x400
jne 0x41f158
test esi, 0x10
setne bl
jmp 0x41f1dd
cmp byte [esp], 0
je 0x41f18c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41f1dd
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41f1dd
test esi, 0x10
je 0x41f198
mov bl, 1
jmp 0x41f1dd
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41f1bf
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41f1dd
mov bl, 1
jmp 0x41f1dd
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41f1d7
cmp eax, 3
je 0x41f1d7
cmp eax, 0x7b
jne 0x41f1db
xor ebx, ebx
jmp 0x41f1dd
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4230e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42311d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407034
jmp 0x423126
mov eax, ebx
mov edx, esi
call fcn.0040728c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423130
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x423152
movzx eax, word [esp]
jmp 0x423154
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423f35
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423c20
mov esi, eax
mov eax, dword [0x62f0d0]
cmp byte [eax], 0
je 0x423edd
mov eax, dword [0x62e9a4]
call fcn.00404ca4
call fcn.00404934
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423de8]
call fcn.00409338
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423f50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x423f19
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62e8a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x632c38]
call fcn.00409544
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423f3c
lea eax, [ebp - 4]
mov edx, dword [0x423de8]
call fcn.0040945c
ret

Function at 0x424fac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x425082
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004072d4
lea eax, [ebp - 4]
call fcn.0040747c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407d8c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42506c
mov eax, ebx
call fcn.004047b8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x425065
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407d8c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42504f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x425094
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42504f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42506c
mov eax, dword [ebp - 0x10]
call fcn.004047d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425089
lea eax, [ebp - 4]
call fcn.00406eac
ret