joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476b34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x476ce2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x476cbe
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x476cbe
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x476afc]
call fcn.0040953c
add esp, 4
lea eax, [ebp - 4]
call fcn.0040aac4
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x612c70]
push eax
call fcn.00457974
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409388
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00405008
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x46a09c]
call fcn.004734d0
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x476c9c
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00475148
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00474158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476cbe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476ce9
lea eax, [ebp - 8]
mov edx, dword [0x476afc]
call fcn.00409548
lea eax, [ebp - 4]
call fcn.0040aac4
ret

Function at 0x482094
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x60c114
test edx, edx
jne 0x4820b3
xor eax, eax
jmp 0x4821d1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4820d0
push esi
push edx
push eax
call fcn.004821d8
add esp, 0xc
jmp 0x4821d1
push esi
push edx
push eax
call fcn.00482498
add esp, 0xc
jmp 0x4821d1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4072f0
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.00409e7c
test esi, esi
jne 0x407326
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.0040a004
jmp 0x407344
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071d4
mov edi, eax
test esi, esi
je 0x407344
cmp dword [ebx], 0
je 0x407344
dec esi
jmp 0x40732d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408a90
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.00408f50
mov byte [esp], al
cmp byte [esp], 0
jne 0x408c19
test edi, edi
je 0x408c19
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b59
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408b34
cmp edi, 0xffffffff
je 0x408af5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408af5
mov byte [esp], 0
jmp 0x408c19
cmp dword [esi], 1
jg 0x408b34
cmp dword [esi], 0
jne 0x408b26
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b26
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408c19
lea eax, [esp + 0xc]
call fcn.0040874c
dec ebp
test ebp, ebp
jg 0x408ada
cmp edi, 0xffffffff
je 0x408b59
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b57
mov byte [esp], 0
jmp 0x408c19
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408a9e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b59
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408c94
mov edx, eax
mov ebx, dword [0x8a78fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408bbd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408bbb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408bbd
xor edi, edi
cmp byte [esp], 0
je 0x408be3
mov ebx, dword [esi]
test bl, 1
jne 0x408bf9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bc3
mov byte [esp + 1], 1
jmp 0x408bf9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408be3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408b70
cmp byte [esp], 0
je 0x408c19
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 0x409ad8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8a705c], 0
je 0x409b3f
cmp word [0x8a7348], 0xd7b2
jne 0x409b01
cmp dword [0x8a7350], 0
jbe 0x409b01
mov eax, 0x8a7344
call dword [0x8a7360]
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, 0x409b6c
call fcn.0040a730
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x884038], 0
jne 0x409b5b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409d3c
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 [0x88403c], 0
je 0x409d67
mov edx, edi
mov eax, esi
call dword [0x88403c]
mov ebx, eax
jmp 0x409d78
mov eax, 8
call fcn.00406f10
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8a705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409d04
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 0x409da8
mov eax, ebx
call fcn.00406f2c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d020
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 0x40d185
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409e7c
cmp si, word [0x884a10]
jb 0x40d0b8
cmp si, word [0x884c10]
ja 0x40d0b8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d0b8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x884a10]
jae 0x40d092
mov edi, ebx
dec edi
jmp 0x40d0b3
cmp si, word [ebx*8 + 0x884a10]
jbe 0x40d0a2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d0b3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x884a14]
call fcn.0040cf40
jmp 0x40d0b8
cmp edi, dword [ebp - 8]
jae 0x40d07c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d167
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d167
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.0040ab08
push dword [ebp - 0x160]
push 0x40d1a0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab08
push dword [ebp - 0x164]
push 0x40d1b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab08
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d18c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409edc
ret
Function at 0x40d338
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 0x40d43c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8a9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x8a9c2c]
jne 0x40d384
mov eax, esi
mov edx, 0x8a9c2e
mov ecx, 0x55
call fcn.0040ab08
push 0x8a9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d426
push 0x8a9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409e7c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d3f3
cmp byte [0x8a9c10], 0
je 0x40d3b8
mov edx, esi
mov eax, ebx
call fcn.0040d21c
jmp 0x40d3f3
mov edx, esi
mov eax, ebx
call fcn.0040d020
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d3f3
cmp dword [esi], 0
je 0x40d3dc
mov eax, esi
mov edx, 0x40d454
call fcn.0040ac60
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d020
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac60
push 0x8a9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x8a9c2c], bx
mov eax, dword [esi]
call fcn.0040aa50
mov ecx, eax
mov eax, 0x8a9c2e
mov edx, 0xaa
call fcn.0040cea0
push 0x8a9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d443
lea eax, [ebp - 4]
call fcn.00409e7c
ret
Function at 0x40d66c
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.00409f60
xor eax, eax
push ebp
push 0x40d891
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d6ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d6c6
mov eax, dword [ebp - 4]
call fcn.0040aa50
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cea0
cmp word [ebp - 0x21a], 0
je 0x40d87b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d8a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d8a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d8dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d8dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d910
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d944
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d87b
xor eax, eax
push ebp
push 0x40d874
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d47c
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 0x40d804
mov eax, dword [ebp - 0x10]
call fcn.00406f10
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.0040aab4
jmp 0x40d84f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d984
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d84f
mov eax, dword [ebp - 0x10]
call fcn.00406f10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d984
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d87b
cmp dword [ebp - 8], 0
je 0x40d86a
mov eax, dword [ebp - 8]
call fcn.00406f2c
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 0x40d898
lea eax, [ebp - 4]
call fcn.00409e7c
ret
Function at 0x40db98
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.00409f60
xor eax, eax
push ebp
push 0x40dc58
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.0040ab08
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acb8
mov eax, dword [ebx]
call fcn.0040da48
test al, al
jne 0x40dc35
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab08
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acb8
mov eax, dword [ebx]
call fcn.0040da48
test al, al
jne 0x40dc35
mov eax, ebx
call fcn.00409e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc5f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409edc
lea eax, [ebp - 4]
call fcn.00409e7c
ret

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

Disassembly:
cmp eax, edx
je 0x428051
test eax, edx
je 0x428054
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42800f
movzx eax, word [eax]
sub eax, ecx
jmp 0x428036
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 0x428037
add ecx, 4
js 0x428027
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x428034
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x428036
xor eax, eax
ret
test eax, eax
je 0x428060
test edx, edx
jne 0x428000
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x429660
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 0x42968d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x429760
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.0040aa50
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4297ca
test ah, 4
je 0x4297c3
test bl, bl
jne 0x429788
mov al, 1
jmp 0x4297f1
test al, 0x10
je 0x429790
xor eax, eax
jmp 0x4297f1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4297b4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4297f1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4297f1
test al, 0x10
sete al
jmp 0x4297f1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4297eb
cmp ebx, 3
je 0x4297eb
cmp ebx, 0x7b
je 0x4297eb
mov eax, esi
call fcn.00429720
test al, al
jne 0x4297ef
xor eax, eax
jmp 0x4297f1
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4297f8
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.0040aa50
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42989f
test esi, 0x400
jne 0x429834
test esi, 0x10
setne bl
jmp 0x4298cf
cmp byte [esp], 0
je 0x429868
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4298cf
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4298cf
test esi, 0x10
je 0x429874
mov bl, 1
jmp 0x4298cf
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42989b
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4298cf
mov bl, 1
jmp 0x4298cf
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4298c9
cmp eax, 3
je 0x4298c9
cmp eax, 0xa1
je 0x4298c9
cmp eax, 0x7b
je 0x4298c9
cmp eax, 0x35
je 0x4298c9
cmp eax, 0x15
je 0x4298c9
cmp eax, 0x43
jne 0x4298cd
xor ebx, ebx
jmp 0x4298cf
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429afc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040aa50
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x429b51
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x429b4b
test ah, 4
je 0x429b4b
test al, 0x10
je 0x429b4b
mov eax, esi
call fcn.0040aa50
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x429b51
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42a038
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0
call sub.kernel32.dll_SetLastError
push esp
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x42a068
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040ab08
add esp, 0x20c
pop ebx
ret

Function at 0x42e440
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
test eax, eax
jle 0x42e479
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a004
jmp 0x42e482
mov eax, ebx
mov edx, esi
call fcn.0040a25c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42e48c
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
test eax, eax
jle 0x42e4ae
movzx eax, word [esp]
jmp 0x42e4b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42f7e8
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 0x42f90d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042f5f0
mov esi, eax
mov eax, dword [0x8a66a8]
cmp byte [eax], 0
je 0x42f8b5
mov eax, dword [0x8a5be4]
call fcn.00407934
call fcn.00407084
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42f7b8]
call fcn.0040c5b0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42f928
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42f8f1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8a5a34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8aa634]
call fcn.0040cb44
push eax
call sub.user32.dll_LoadStringW
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 0x42f914
lea eax, [ebp - 4]
mov edx, dword [0x42f7b8]
call fcn.0040c6d4
ret

Function at 0x430a8c
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 0x430b62
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a2a4
lea eax, [ebp - 4]
call fcn.0040a40c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa50
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x430b4c
mov eax, ebx
call fcn.00406f10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x430b45
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.0040aa50
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x430b2f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x430b74
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x430b2f
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 0x430b4c
mov eax, dword [ebp - 0x10]
call fcn.00406f2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430b69
lea eax, [ebp - 4]
call fcn.00409e7c
ret