joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9fc
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.0040a09c
xor eax, eax
push ebp
push 0x40dc25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40da3c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40da56
mov eax, dword [ebp - 4]
call fcn.0040aa20
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d224
cmp word [ebp - 0x21a], 0
je 0x40dc0d
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dca4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dc0d
xor eax, eax
push ebp
push 0x40dc06
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d80c
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 0x40db94
mov eax, dword [ebp - 0x10]
call fcn.00406eb4
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.0040aa84
jmp 0x40dbdf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dd18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dbdf
mov eax, dword [ebp - 0x10]
call fcn.00406eb4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dd18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc0d
cmp dword [ebp - 8], 0
je 0x40dbfa
mov eax, dword [ebp - 8]
call fcn.00406ed0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc2c
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax
Function at 0x40df38
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.0040a09c
xor eax, eax
push ebp
push 0x40dffa
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.0040aad8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac88
mov eax, dword [ebx]
call fcn.0040dde0
test al, al
jne 0x40dfd5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aad8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac88
mov eax, dword [ebx]
call fcn.0040dde0
test al, al
jne 0x40dfd5
mov eax, ebx
call fcn.00409fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e001
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a018
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax

Function at 0x40fc2c
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 0x424ba4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi

Function at 0x424dd0
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 0x425013
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00409fb8
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
mov ebx, eax
test ebx, ebx
jne 0x424ea7
cmp dword [ebp - 0x14], 0
jne 0x424ea7
xor edx, edx
mov eax, 6
call fcn.0042d874
test al, al
je 0x424ea7
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 0x424ea7
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aad8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00424ba4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a398
mov byte [ebp - 9], 1
jmp 0x424ff3
test ebx, ebx
jne 0x424eb5
cmp dword [ebp - 0x14], 0
je 0x424fa7
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 0x424fa7
xor eax, eax
push ebp
push 0x424fa0
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 0x424f87
xor eax, eax
push ebp
push 0x424f80
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.0041721c
test eax, eax
jbe 0x424f67
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aad8
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00424ba4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a398
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424f87
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424fa7
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
pop eax
jmp eax
cmp byte [ebp - 9], 0
jne 0x424ff3
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00424ce4
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a398
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x424ff3
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00424ba4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a398
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42501a
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040a018
pop eax
jmp eax
Function at 0x425024
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.0042d874
test al, al
je 0x4250ee
xor edx, edx
mov eax, ebx
call fcn.00426c78
test al, al
je 0x4250ee
mov eax, ebx
call fcn.004269ac
test al, 0x20
je 0x4250ee
mov eax, ebx
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4250ee
test ah, 4
je 0x4250ee
test al, 0x10
je 0x42508b
mov edi, 0x2000000
jmp 0x42508d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4250ee
xor eax, eax
push ebp
push 0x4250e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00424dd0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4250ee
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4253e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42543d
test eax, edx
je 0x425440
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4253fb
movzx eax, word [eax]
sub eax, ecx
jmp 0x425422
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 0x425423
add ecx, 4
js 0x425413
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425420
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425422
xor eax, eax
ret
test eax, eax
je 0x42544c
test edx, edx
jne 0x4253ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4269ac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x426b0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42694c]
call fcn.0040caa8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x42697c]
call fcn.0040caa8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00426d10
test al, al
jne 0x426a22
mov dl, 1
mov eax, esi
call fcn.00426c78
test al, al
je 0x426aac
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00427310
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042de5c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa20
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x426aa7
test byte [ebp - 0x14], 1
je 0x426a72
or bl, 1
test byte [ebp - 0x14], 2
je 0x426a7b
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x426a84
or bl, 0x20
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
sub eax, 2
je 0x426a98
dec eax
je 0x426a9d
dec eax
je 0x426aa2
dec eax
jne 0x426acd
or bl, 0x10
jmp 0x426acd
or bl, 4
jmp 0x426acd
or bl, 8
jmp 0x426acd
call fcn.0042ec6c
lea edx, [ebp - 0x20]
mov eax, dword [0x74ade4]
call fcn.0040fb64
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41ebcc]
call fcn.0042c6a0
call fcn.004096b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426b15
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040a018
lea eax, [ebp - 0xc]
mov edx, dword [0x42697c]
call fcn.0040cbcc
lea eax, [ebp - 8]
mov edx, dword [0x42694c]
call fcn.0040cbcc
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax

Function at 0x426b78
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 0x426ba5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x426c78
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.0040aa20
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426ce2
test ah, 4
je 0x426cdb
test bl, bl
jne 0x426ca0
mov al, 1
jmp 0x426d09
test al, 0x10
je 0x426ca8
xor eax, eax
jmp 0x426d09
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x426ccc
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x426d09
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x426d09
test al, 0x10
sete al
jmp 0x426d09
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x426d03
cmp ebx, 3
je 0x426d03
cmp ebx, 0x7b
je 0x426d03
mov eax, esi
call fcn.00426c38
test al, al
jne 0x426d07
xor eax, eax
jmp 0x426d09
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x426d10
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.0040aa20
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426dae
test esi, 0x400
jne 0x426d45
test esi, 0x10
setne bl
jmp 0x426dae
cmp byte [esp], 0
je 0x426d79
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x426dae
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x426dae
test esi, 0x10
je 0x426d85
mov bl, 1
jmp 0x426dae
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x426dac
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x426dae
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426db8
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 0x426e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x426e42
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425024
test al, al
je 0x426e42
mov eax, dword [ebp - 4]
call fcn.00427494
test al, al
je 0x426e32
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00427244
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042de5c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ac88
mov eax, dword [ebp - 4]
call fcn.0040aa20
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 0x426e66
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a018
pop eax
jmp eax
Function at 0x426e70
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 0x426f45
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a3e0
cmp byte [ebp - 9], 0
je 0x426f01
mov eax, ebx
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
test ah, 4
je 0x426f01
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00425024
test al, al
je 0x426f01
mov eax, dword [ebp - 8]
call fcn.00427494
test al, al
je 0x426ef6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00427244
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042de5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040ac88
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a3e0
push edi
mov eax, dword [ebp - 4]
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x426f1b
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426f4c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a018
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a018
pop eax
jmp eax

Function at 0x427084
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.0040aa20
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4270d9
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4270d3
test ah, 4
je 0x4270d3
test al, 0x10
je 0x4270d3
mov eax, esi
call fcn.0040aa20
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4270d9
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42b1c0
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 0x42b1f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a140
jmp 0x42b202
mov eax, ebx
mov edx, esi
call fcn.0040a398
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42b20c
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 0x42b22e
movzx eax, word [esp]
jmp 0x42b230
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42c530
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 0x42c657
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042c338
mov esi, eax
mov eax, dword [0x74ac20]
cmp byte [eax], 0
je 0x42c5fd
mov eax, dword [0x74a520]
call fcn.0040798c
call fcn.00407028
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 [0x42c500]
call fcn.0040caa8
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 0x42c670
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42c639
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x74a428]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x74f634]
call fcn.0040cec8
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 0x42c65e
lea eax, [ebp - 4]
mov edx, dword [0x42c500]
call fcn.0040cbcc
pop eax
jmp eax

Function at 0x42d8a0
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 0x42d97a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a3e0
lea eax, [ebp - 4]
call fcn.0040a548
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa20
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42d962
mov eax, ebx
call fcn.00406eb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42d95b
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.0040aa20
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42d943
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d98c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42d943
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 0x42d962
mov eax, dword [ebp - 0x10]
call fcn.00406ed0
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d981
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax
Function at 0x42d990
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 0x42da94
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a3e0
lea eax, [ebp - 4]
call fcn.0040a548
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa20
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42da7c
mov eax, ebx
call fcn.00406eb4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42da75
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.0040aa20
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42da5d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42daa8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42da5d
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 0x42da7c
mov eax, dword [ebp - 0x10]
call fcn.00406ed0
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42da9b
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax

Function at 0x42eab4
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42eae0
cmp bl, 0
je 0x42eadc
cmp bl, 0x41
jl 0x42ead7
cmp bl, 0x5a
jg 0x42ead7
or bl, 0x20
xor al, bl
inc esi
jmp 0x42eabb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ea20

Function at 0x42f3f8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aad8
add esp, 0x800
pop ebx
ret

Function at 0x42fa10
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00409fb8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040aa20
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42fa55
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a140
jmp 0x42fa6e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040abb0
push ebx
mov eax, dword [esi]
call fcn.0040aa20
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret