joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462650
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x46266e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x462663
pop esi
ret

Function at 0x472ddf
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 0x472e21
call fcn.0047612e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x472e21
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472e18
xor eax, eax
jmp 0x472e29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472e2f
pop edi
pop esi
pop ebx
ret 4

Function at 0x473dba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4779d8
call fcn.00465bf0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0047612e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x473df9
call fcn.0047612e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x473e07
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x473e15
or eax, 0xffffffff
jmp 0x473efd
mov ecx, esi
call fcn.00473d30
mov dword [ebp - 0x14], eax
call fcn.00471423
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x473e4c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x473e4c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004713d7
push dword [ebp - 0x14]
call fcn.00470f08
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00473ac8
cmp eax, edi
je 0x473ebf
test byte [esi + 0x24], 0x10
je 0x473e8d
push 4
mov ecx, esi
pop ebx
call fcn.00470908
test ah, 1
je 0x473e85
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00472f31
cmp dword [esi + 0x1c], edi
je 0x473ebf
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047093c
jmp 0x473ebf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x473ed3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x473eec
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x473eec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00473d6a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x475ca0
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 0x475cce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475cec
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475c06
jmp 0x475cec
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475cec
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475c06
test edi, edi
mov eax, edi
jne 0x475cd6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4048cc
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.00406a68
test esi, esi
jne 0x404902
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.00406bd0
jmp 0x404920
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404810
mov edi, eax
test esi, esi
je 0x404920
cmp dword [ebx], 0
je 0x404920
dec esi
jmp 0x404909
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404954
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x566008], 0x8088405
inc edx
mov dword [ebx + 0x566008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4057f4
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.00405be0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405980
test edi, edi
je 0x405980
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4058b7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405892
cmp edi, 0xffffffff
je 0x405853
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405853
mov byte [esp], 0
jmp 0x405980
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405892
test ebx, ebx
jne 0x405888
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027c0
test eax, eax
jne 0x405888
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405980
call 0x405d04
dec ebp
test ebp, ebp
jg 0x405838
cmp edi, 0xffffffff
je 0x4058b7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058b5
mov byte [esp], 0
jmp 0x405980
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405802
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027c0
cmp ebx, eax
jne 0x4058b7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004059f0
mov edx, eax
mov ebx, dword [0x56d8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40591e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40591c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40591e
xor edi, edi
cmp byte [esp], 0
je 0x405947
mov ebx, dword [esi]
test bl, 1
jne 0x405960
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027c0
cmp ebx, eax
jne 0x405924
mov byte [esp + 1], 1
jmp 0x405960
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027c0
cmp ebx, eax
jne 0x405947
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4058d1
cmp byte [esp], 0
je 0x405980
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 0x406700
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56d058], 0
je 0x406767
cmp word [0x56d340], 0xd7b2
jne 0x406729
cmp dword [0x56d348], 0
jbe 0x406729
mov eax, 0x56d33c
call dword [0x56d358]
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, 0x406794
call fcn.00407294
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x566032], 0
jne 0x406783
push 0
push 0x5669c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406924
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 [0x566034], 0
je 0x40694f
mov edx, edi
mov eax, esi
call dword [0x566034]
mov ebx, eax
jmp 0x406960
mov eax, 8
call fcn.0040454c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x56d059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4068ec
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 0x406995
mov edx, 8
mov eax, ebx
call fcn.00404568
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408cb4
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 0x408e19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a68
cmp si, word [0x566a00]
jb 0x408d4c
cmp si, word [0x566c00]
ja 0x408d4c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408d4c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x566a00]
jae 0x408d26
mov edi, ebx
dec edi
jmp 0x408d47
cmp si, word [ebx*8 + 0x566a00]
jbe 0x408d36
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408d47
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x566a04]
call fcn.00408bc4
jmp 0x408d4c
cmp edi, dword [ebp - 8]
jae 0x408d10
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408dfb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408dfb
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.00407698
push dword [ebp - 0x160]
push 0x408e34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407698
push dword [ebp - 0x164]
push 0x408e44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407698
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004078d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e20
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406ac8
ret
Function at 0x408fcc
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 0x4090cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x56fb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x56fb98]
jne 0x409018
mov eax, esi
mov edx, 0x56fb9a
mov ecx, 0x55
call fcn.00407698
push 0x56fb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4090b9
push 0x56fb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a68
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409087
cmp byte [0x56fb7c], 0
je 0x40904c
mov edx, esi
mov eax, ebx
call fcn.00408eb0
jmp 0x409087
mov edx, esi
mov eax, ebx
call fcn.00408cb4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409087
cmp dword [esi], 0
je 0x409070
mov eax, esi
mov edx, 0x4090e8
call fcn.004077f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408cb4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004077f0
push 0x56fb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x56fb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.004075dc
push eax
push 0x56fb9a
call sub.kernel32.dll_lstrcpynW
push 0x56fb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090d6
lea eax, [ebp - 4]
call fcn.00406a68
ret
Function at 0x409304
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.00406b4c
xor eax, eax
push ebp
push 0x409529
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409344
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40935e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004075dc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409513
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409538
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40942d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409538
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40942d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409574
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40942d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409574
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40942d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40942d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409513
xor eax, eax
push ebp
push 0x40950c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409110
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 0x40949c
mov eax, dword [ebp - 0x10]
call fcn.0040454c
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.00407644
jmp 0x4094e7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40961c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4094e7
mov eax, dword [ebp - 0x10]
call fcn.0040454c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40961c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409513
cmp dword [ebp - 8], 0
je 0x409502
mov eax, dword [ebp - 8]
call fcn.00404568
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 0x409530
lea eax, [ebp - 4]
call fcn.00406a68
ret
Function at 0x409810
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.00406b4c
xor eax, eax
push ebp
push 0x4098d0
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.00407698
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407848
mov eax, dword [ebx]
call fcn.004096d8
test al, al
jne 0x4098ad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407698
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407848
mov eax, dword [ebx]
call fcn.004096d8
test al, al
jne 0x4098ad
mov eax, ebx
call fcn.00406a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098d7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ac8
lea eax, [ebp - 4]
call fcn.00406a68
ret

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

Disassembly:
cmp eax, edx
je 0x41bc11
test eax, edx
je 0x41bc14
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41bbcf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41bbf6
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 0x41bbf7
add ecx, 4
js 0x41bbe7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41bbf4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41bbf6
xor eax, eax
ret
test eax, eax
je 0x41bc20
test edx, edx
jne 0x41bbc0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41cdc0
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.004075dc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ce2a
test ah, 4
je 0x41ce23
test bl, bl
jne 0x41cde8
mov al, 1
jmp 0x41ce51
test al, 0x10
je 0x41cdf0
xor eax, eax
jmp 0x41ce51
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ce14
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ce51
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ce51
test al, 0x10
sete al
jmp 0x41ce51
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ce4b
cmp ebx, 3
je 0x41ce4b
cmp ebx, 0x7b
je 0x41ce4b
mov eax, esi
call fcn.0041cd80
test al, al
jne 0x41ce4f
xor eax, eax
jmp 0x41ce51
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41ce58
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.004075dc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41ceff
test esi, 0x400
jne 0x41ce94
test esi, 0x10
setne bl
jmp 0x41cf1e
cmp byte [esp], 0
je 0x41cec8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cf1e
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41cf1e
test esi, 0x10
je 0x41ced4
mov bl, 1
jmp 0x41cf1e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cefb
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41cf1e
mov bl, 1
jmp 0x41cf1e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41cf18
cmp eax, 3
je 0x41cf18
cmp eax, 0x7b
je 0x41cf18
cmp eax, 0x35
jne 0x41cf1c
xor ebx, ebx
jmp 0x41cf1e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421c88
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 0x421cc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406bd0
jmp 0x421cca
mov eax, ebx
mov edx, esi
call fcn.00406e28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421cd4
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 0x421cf6
movzx eax, word [esp]
jmp 0x421cf8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4229bc
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 0x422ae1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004227c4
mov esi, eax
mov eax, dword [0x56c630]
cmp byte [eax], 0
je 0x422a89
mov eax, dword [0x56c0a0]
call fcn.00404a3c
call fcn.004046c0
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 [0x42298c]
call fcn.00408704
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 0x422afc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422ac5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x56bfd8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56fc48]
call fcn.004087f8
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 0x422ae8
lea eax, [ebp - 4]
mov edx, dword [0x42298c]
call fcn.00408710
ret

Function at 0x4237a0
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 0x423876
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e70
lea eax, [ebp - 4]
call fcn.00406fd8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004075dc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x423860
mov eax, ebx
call fcn.0040454c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423859
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.004075dc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x423843
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423888
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x423843
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 0x423860
mov eax, dword [ebp - 0x10]
call fcn.00404568
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42387d
lea eax, [ebp - 4]
call fcn.00406a68
ret