joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac68
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.00407be0
xor eax, eax
push ebp
push 0x40ae8d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40aca8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40acc2
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040897c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40ae77
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ae9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ad91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ae9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ad91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aed8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ad91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aed8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ad91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ad91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ae77
xor eax, eax
push ebp
push 0x40ae70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040aa74
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 0x40ae00
mov eax, dword [ebp - 0x10]
call fcn.00404810
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.004089e4
jmp 0x40ae4b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40af80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ae4b
mov eax, dword [ebp - 0x10]
call fcn.00404810
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40af80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004089e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae77
cmp dword [ebp - 8], 0
je 0x40ae66
mov eax, dword [ebp - 8]
call fcn.0040482c
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 0x40ae94
lea eax, [ebp - 4]
call fcn.00407afc
ret
Function at 0x40b170
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.00407be0
xor eax, eax
push ebp
push 0x40b230
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.00408a38
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408be8
mov eax, dword [ebx]
call fcn.0040b038
test al, al
jne 0x40b20d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408a38
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408be8
mov eax, dword [ebx]
call fcn.0040b038
test al, al
jne 0x40b20d
mov eax, ebx
call fcn.00407afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b237
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407b5c
lea eax, [ebp - 4]
call fcn.00407afc
ret

Function at 0x41de1c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41df45
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41df1f
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41df08
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00408a38
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408f04
test eax, eax
jle 0x41df08
mov eax, dword [ebp - 4]
test eax, eax
je 0x41debc
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41deca
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00408d58
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.004089e4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00408be8
jmp 0x41df1f
add ebx, 2
cmp word [ebx], 0
jne 0x41df05
add ebx, 4
test ebx, ebx
je 0x41df19
cmp word [ebx], 0
jne 0x41de6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41df4c
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00407b5c
lea eax, [ebp - 4]
call fcn.00407afc
ret
Function at 0x41e038
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41e275
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00407afc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x41e10f
cmp dword [ebp - 0x14], 0
jne 0x41e10f
xor edx, edx
mov eax, 6
call fcn.00427a20
test al, al
je 0x41e10f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x41e10f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408a38
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041de1c
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407edc
mov byte [ebp - 9], 1
jmp 0x41e257
test ebx, ebx
jne 0x41e11d
cmp dword [ebp - 0x14], 0
je 0x41e20b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x41e20b
xor eax, eax
push ebp
push 0x41e204
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41e1ed
xor eax, eax
push ebp
push 0x41e1e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00410404
test eax, eax
jbe 0x41e1cf
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408a38
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041de1c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407edc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e1ed
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e20b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41e257
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041df54
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00407edc
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41e257
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041de1c
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00407edc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e27c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00407b5c
ret
Function at 0x41e288
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00427a20
test al, al
je 0x41e350
xor edx, edx
mov eax, ebx
call fcn.0041fec4
test al, al
je 0x41e350
mov eax, ebx
call fcn.0041fa78
test al, 0x20
je 0x41e350
mov eax, ebx
call fcn.0040897c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e350
test ah, 4
je 0x41e350
test al, 0x10
je 0x41e2ef
mov edi, 0x2000000
jmp 0x41e2f1
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040897c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41e350
xor eax, eax
push ebp
push 0x41e349
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041e038
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e350
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41e760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e7b9
test eax, edx
je 0x41e7bc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41e777
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e79e
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 0x41e79f
add ecx, 4
js 0x41e78f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e79c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e79e
xor eax, eax
ret
test eax, eax
je 0x41e7c8
test edx, edx
jne 0x41e768
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41efc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41efd8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41efe0
mov al, 1
jmp 0x41effd
movzx esi, word [ebp]
mov eax, esi
call fcn.00410720
test al, al
jne 0x41eff9
cmp si, 0x5f
je 0x41eff9
xor eax, eax
jmp 0x41effb
mov al, 1
xor al, 1
test al, al
jne 0x41f08d
test bl, bl
je 0x41f04d
mov eax, ebp
test eax, eax
je 0x41f014
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f089
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004107ac
test al, al
jne 0x41f041
cmp di, 0x5f
je 0x41f041
cmp di, 0x2e
je 0x41f041
xor eax, eax
jmp 0x41f043
mov al, 1
test al, al
je 0x41f08d
inc esi
dec ebx
jne 0x41f021
jmp 0x41f089
mov eax, ebp
test eax, eax
je 0x41f058
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f089
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004107ac
test al, al
jne 0x41f07f
cmp di, 0x5f
je 0x41f07f
xor eax, eax
jmp 0x41f081
mov al, 1
test al, al
je 0x41f08d
inc esi
dec ebx
jne 0x41f065
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41fa78
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41fbac
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41fbbc]
mov dl, 1
mov eax, esi
call fcn.0041ff5c
test al, al
jne 0x41fac9
mov dl, 1
mov eax, esi
call fcn.0041fec4
test al, al
je 0x41fb5f
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.00420618
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00427f3c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040897c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41fb5a
test byte [ebp - 0xc], 1
je 0x41fb25
or bl, 1
test byte [ebp - 0xc], 2
je 0x41fb2e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41fb37
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41fb4b
dec eax
je 0x41fb50
dec eax
je 0x41fb55
dec eax
jne 0x41fb86
or bl, 0x10
jmp 0x41fb86
or bl, 4
jmp 0x41fb86
or bl, 8
jmp 0x41fb86
call fcn.00428a80
lea edx, [ebp - 0x428]
mov eax, dword [0x646918]
call fcn.0040bbec
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41ab58]
call fcn.00426dc8
call fcn.00407214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fbb3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407b5c
lea eax, [ebp - 4]
call fcn.00407afc
ret
Function at 0x41fec4
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.0040897c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ff2e
test ah, 4
je 0x41ff27
test bl, bl
jne 0x41feec
mov al, 1
jmp 0x41ff55
test al, 0x10
je 0x41fef4
xor eax, eax
jmp 0x41ff55
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41ff18
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ff55
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ff55
test al, 0x10
sete al
jmp 0x41ff55
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ff4f
cmp ebx, 3
je 0x41ff4f
cmp ebx, 0x7b
je 0x41ff4f
mov eax, esi
call fcn.0041fe84
test al, al
jne 0x41ff53
xor eax, eax
jmp 0x41ff55
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41ff5c
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.0040897c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x420003
test esi, 0x400
jne 0x41ff98
test esi, 0x10
setne bl
jmp 0x420022
cmp byte [esp], 0
je 0x41ffcc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x420022
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x420022
test esi, 0x10
je 0x41ffd8
mov bl, 1
jmp 0x420022
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41ffff
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x420022
mov bl, 1
jmp 0x420022
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42001c
cmp eax, 3
je 0x42001c
cmp eax, 0x7b
je 0x42001c
cmp eax, 0x35
jne 0x420020
xor ebx, ebx
jmp 0x420022
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42018c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x420231
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040897c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x420216
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0041e288
test al, al
je 0x420216
mov eax, dword [ebp - 4]
call fcn.00420a74
test al, al
je 0x420206
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0042057c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00427f3c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00408be8
mov eax, dword [ebp - 4]
call fcn.0040897c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420238
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407b5c
ret
Function at 0x420244
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420317
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407f24
cmp byte [ebp - 9], 0
je 0x4202d5
mov eax, ebx
call fcn.0040897c
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4202d5
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041e288
test al, al
je 0x4202d5
mov eax, dword [ebp - 8]
call fcn.00420a74
test al, al
je 0x4202ca
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0042057c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00427f3c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00408be8
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407f24
push edi
mov eax, dword [ebp - 4]
call fcn.0040897c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4202ef
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42031e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407b5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407b5c
ret

Function at 0x420440
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.0040897c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x420495
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42048f
test ah, 4
je 0x42048f
test al, 0x10
je 0x42048f
mov eax, esi
call fcn.0040897c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x420495
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425f24
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 0x425f5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407c84
jmp 0x425f66
mov eax, ebx
mov edx, esi
call fcn.00407edc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425f70
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 0x425f92
movzx eax, word [esp]
jmp 0x425f94
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x426c58
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 0x426d7d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426a60
mov esi, eax
mov eax, dword [0x64676c]
cmp byte [eax], 0
je 0x426d25
mov eax, dword [0x646080]
call fcn.004052e8
call fcn.00404984
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 [0x426c28]
call fcn.00409e10
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 0x426d98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426d61
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x645f90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x649c50]
call fcn.0040a15c
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 0x426d84
lea eax, [ebp - 4]
mov edx, dword [0x426c28]
call fcn.00409f34
ret

Function at 0x427a40
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 0x427b16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407f24
lea eax, [ebp - 4]
call fcn.004080d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040897c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427b00
mov eax, ebx
call fcn.00404810
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x427af9
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.0040897c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427ae3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427b28
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427ae3
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 0x427b00
mov eax, dword [ebp - 0x10]
call fcn.0040482c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427b1d
lea eax, [ebp - 4]
call fcn.00407afc
ret