joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416293
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415118
and dword [ebp - 4], 0
cmp dword [0x41c694], 0
mov ebx, eax
jne 0x416344
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4163f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4163f5
push eax
call fcn.004150a6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41c694], eax
call esi
push eax
call fcn.004150a6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41c698], eax
call esi
push eax
call fcn.004150a6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41c69c], eax
call esi
push eax
call fcn.004150a6
pop ecx
mov dword [0x41c6a4], eax
test eax, eax
je 0x416344
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004150a6
pop ecx
mov dword [0x41c6a0], eax
mov eax, dword [0x41c6a0]
cmp eax, ebx
je 0x41639c
cmp dword [0x41c6a4], ebx
je 0x41639c
push eax
call fcn.00415121
push dword [0x41c6a4]
mov esi, eax
call fcn.00415121
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41639c
test edi, edi
je 0x41639c
call esi
test eax, eax
je 0x416393
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416393
test byte [ebp - 0xc], 1
jne 0x41639c
or dword [ebp + 0x10], 0x200000
jmp 0x4163d5
mov eax, dword [0x41c698]
cmp eax, ebx
je 0x4163d5
push eax
call fcn.00415121
pop ecx
test eax, eax
je 0x4163d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4163d5
mov eax, dword [0x41c69c]
cmp eax, ebx
je 0x4163d5
push eax
call fcn.00415121
pop ecx
test eax, eax
je 0x4163d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41c694]
call fcn.00415121
pop ecx
test eax, eax
je 0x4163f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4163f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4d9c7cdf
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7656b1b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406da4
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.00409754
test esi, esi
jne 0x406dda
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.004098dc
jmp 0x406df8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ce8
mov edi, eax
test esi, esi
je 0x406df8
cmp dword [ebx], 0
je 0x406df8
dec esi
jmp 0x406de1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408878
mov byte [esp], al
cmp byte [esp], 0
jne 0x4085a2
test edi, edi
je 0x4085a2
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4084e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4084bd
cmp edi, 0xffffffff
je 0x40847d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40847d
mov byte [esp], 0
jmp 0x4085a2
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4084bd
test ebx, ebx
jne 0x4084af
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4084af
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4085a2
lea eax, [esp + 0xc]
call fcn.004080f8
dec ebp
test ebp, ebp
jg 0x408462
cmp edi, 0xffffffff
je 0x4084e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4084e0
mov byte [esp], 0
jmp 0x4085a2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408426
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408610
mov edx, eax
mov ebx, dword [0x5de8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408546
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408544
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408546
xor edi, edi
cmp byte [esp], 0
je 0x40856c
mov ebx, dword [esi]
test bl, 1
jne 0x408582
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40854c
mov byte [esp + 1], 1
jmp 0x408582
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40856c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084f9
cmp byte [esp], 0
je 0x4085a2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4093e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5de05c], 0
je 0x40944b
cmp word [0x5de348], 0xd7b2
jne 0x40940d
cmp dword [0x5de350], 0
jbe 0x40940d
mov eax, 0x5de344
call dword [0x5de360]
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
mov eax, 0x409478
call fcn.00409f98
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d8032], 0
jne 0x409467
push 0
push 0x5d89c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409614
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 [0x5d8034], 0
je 0x40963f
mov edx, edi
mov eax, esi
call dword [0x5d8034]
mov ebx, eax
jmp 0x409650
mov eax, 8
call fcn.00406a24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5de05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4095dc
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 0x409680
mov eax, ebx
call fcn.00406a40
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c010
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 0x40c175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409754
cmp si, word [0x5d8a00]
jb 0x40c0a8
cmp si, word [0x5d8c00]
ja 0x40c0a8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c0a8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d8a00]
jae 0x40c082
mov edi, ebx
dec edi
jmp 0x40c0a3
cmp si, word [ebx*8 + 0x5d8a00]
jbe 0x40c092
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c0a3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d8a04]
call fcn.0040bf30
jmp 0x40c0a8
cmp edi, dword [ebp - 8]
jae 0x40c06c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c157
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c157
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.0040a338
push dword [ebp - 0x160]
push 0x40c190
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a338
push dword [ebp - 0x164]
push 0x40c1a0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a338
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c17c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004097b4
ret
Function at 0x40c328
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 0x40c42c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e0b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5e0ba4]
jne 0x40c374
mov eax, esi
mov edx, 0x5e0ba6
mov ecx, 0x55
call fcn.0040a338
push 0x5e0b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c416
push 0x5e0b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409754
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c3e3
cmp byte [0x5e0b88], 0
je 0x40c3a8
mov edx, esi
mov eax, ebx
call fcn.0040c20c
jmp 0x40c3e3
mov edx, esi
mov eax, ebx
call fcn.0040c010
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c3e3
cmp dword [esi], 0
je 0x40c3cc
mov eax, esi
mov edx, 0x40c444
call fcn.0040a490
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c010
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a490
push 0x5e0b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5e0ba4], bx
mov eax, dword [esi]
call fcn.0040a294
mov ecx, eax
mov eax, 0x5e0ba6
mov edx, 0xaa
call fcn.0040be90
push 0x5e0b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c433
lea eax, [ebp - 4]
call fcn.00409754
ret
Function at 0x40c65c
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.00409838
xor eax, eax
push ebp
push 0x40c881
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c69c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c6b6
mov eax, dword [ebp - 4]
call fcn.0040a294
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be90
cmp word [ebp - 0x21a], 0
je 0x40c86b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c890
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c890
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c900
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c86b
xor eax, eax
push ebp
push 0x40c864
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c46c
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 0x40c7f4
mov eax, dword [ebp - 0x10]
call fcn.00406a24
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.0040a2fc
jmp 0x40c83f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c974
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c83f
mov eax, dword [ebp - 0x10]
call fcn.00406a24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c974
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86b
cmp dword [ebp - 8], 0
je 0x40c85a
mov eax, dword [ebp - 8]
call fcn.00406a40
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 0x40c888
lea eax, [ebp - 4]
call fcn.00409754
ret
Function at 0x40cb70
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.00409838
xor eax, eax
push ebp
push 0x40cc30
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
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.0040a338
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e8
mov eax, dword [ebx]
call fcn.0040ca38
test al, al
jne 0x40cc0d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a338
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e8
mov eax, dword [ebx]
call fcn.0040ca38
test al, al
jne 0x40cc0d
mov eax, ebx
call fcn.00409754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc37
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004097b4
lea eax, [ebp - 4]
call fcn.00409754
ret

Function at 0x40d5b0
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 0x420478
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4204d1
test eax, edx
je 0x4204d4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42048f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4204b6
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 0x4204b7
add ecx, 4
js 0x4204a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4204b4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4204b6
xor eax, eax
ret
test eax, eax
je 0x4204e0
test edx, edx
jne 0x420480
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4217e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x421815
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4218a8
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.0040a294
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42194f
test esi, 0x400
jne 0x4218e4
test esi, 0x10
setne bl
jmp 0x42197f
cmp byte [esp], 0
je 0x421918
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42197f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x42197f
test esi, 0x10
je 0x421924
mov bl, 1
jmp 0x42197f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42194b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x42197f
mov bl, 1
jmp 0x42197f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x421979
cmp eax, 3
je 0x421979
cmp eax, 0xa1
je 0x421979
cmp eax, 0x7b
je 0x421979
cmp eax, 0x35
je 0x421979
cmp eax, 0x15
je 0x421979
cmp eax, 0x43
jne 0x42197d
xor ebx, ebx
jmp 0x42197f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425738
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 0x425771
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004098dc
jmp 0x42577a
mov eax, ebx
mov edx, esi
call fcn.00409b34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425784
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 0x4257a6
movzx eax, word [esp]
jmp 0x4257a8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426aa0
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 0x426bc5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004268a8
mov esi, eax
mov eax, dword [0x5dce70]
cmp byte [eax], 0
je 0x426b6d
mov eax, dword [0x5dcb4c]
call fcn.00407348
call fcn.00406b98
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 [0x426a70]
call fcn.0040b710
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 0x426be0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426ba9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5dcac8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5e0c54]
call fcn.0040bb30
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 0x426bcc
lea eax, [ebp - 4]
mov edx, dword [0x426a70]
call fcn.0040b834
ret
Function at 0x427c5c
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 0x427d32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409b7c
lea eax, [ebp - 4]
call fcn.00409cdc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a294
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427d1c
mov eax, ebx
call fcn.00406a24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x427d15
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.0040a294
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427cff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427d44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427cff
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 0x427d1c
mov eax, dword [ebp - 0x10]
call fcn.00406a40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d39
lea eax, [ebp - 4]
call fcn.00409754
ret

Function at 0x427d48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x427e48
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409b7c
lea eax, [ebp - 4]
call fcn.00409cdc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a294
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427e32
mov eax, ebx
call fcn.00406a24
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x427e2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a294
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427e15
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427e5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427e15
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427e32
mov eax, dword [ebp - 0x10]
call fcn.00406a40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427e4f
lea eax, [ebp - 4]
call fcn.00409754
ret