joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4f8
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.00407544
xor eax, eax
push ebp
push 0x40a71d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a538
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40a552
push 0x105
mov eax, dword [ebp - 4]
call fcn.004082a8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a707
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a72c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a72c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a768
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a768
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a79c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a7d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x40a707
xor eax, eax
push ebp
push 0x40a700
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a304
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_1
test eax, eax
jne 0x40a690
mov eax, dword [ebp - 0x10]
call fcn.004046b8
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408310
jmp 0x40a6db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40a6db
mov eax, dword [ebp - 0x10]
call fcn.004046b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a707
cmp dword [ebp - 8], 0
je 0x40a6f6
mov eax, dword [ebp - 8]
call fcn.004046d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a724
lea eax, [ebp - 4]
call fcn.00407460
ret
Function at 0x40aa00
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.00407544
xor eax, eax
push ebp
push 0x40aac0
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.00408364
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408514
mov eax, dword [ebx]
call fcn.0040a8c8
test al, al
jne 0x40aa9d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408364
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408514
mov eax, dword [ebx]
call fcn.0040a8c8
test al, al
jne 0x40aa9d
mov eax, ebx
call fcn.00407460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aac7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074c0
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x41f744
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 0x41f86d
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 0x41f847
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 0x41f830
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00408364
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408830
test eax, eax
jle 0x41f830
mov eax, dword [ebp - 4]
test eax, eax
je 0x41f7e4
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41f7f2
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.00408684
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00408310
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00408514
jmp 0x41f847
add ebx, 2
cmp word [ebx], 0
jne 0x41f82d
add ebx, 4
test ebx, ebx
je 0x41f841
cmp word [ebx], 0
jne 0x41f796
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f874
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.004074c0
lea eax, [ebp - 4]
call fcn.00407460
ret
Function at 0x41f960
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 0x41fb9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00407460
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 0x41fa37
cmp dword [ebp - 0x14], 0
jne 0x41fa37
xor edx, edx
mov eax, 6
call fcn.0042829c
test al, al
je 0x41fa37
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 0x41fa37
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408364
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041f744
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407840
mov byte [ebp - 9], 1
jmp 0x41fb7f
test ebx, ebx
jne 0x41fa45
cmp dword [ebp - 0x14], 0
je 0x41fb33
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 0x41fb33
xor eax, eax
push ebp
push 0x41fb2c
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 0x41fb15
xor eax, eax
push ebp
push 0x41fb0e
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.00410620
test eax, eax
jbe 0x41faf7
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408364
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041f744
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407840
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fb15
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 0x41fb33
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41fb7f
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041f87c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00407840
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41fb7f
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041f744
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00407840
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fba4
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.004074c0
ret
Function at 0x41fbb0
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.0042829c
test al, al
je 0x41fc78
xor edx, edx
mov eax, ebx
call fcn.004219f8
test al, al
je 0x41fc78
mov eax, ebx
call fcn.004215f4
test al, 0x20
je 0x41fc78
mov eax, ebx
call fcn.004082a8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41fc78
test ah, 4
je 0x41fc78
test al, 0x10
je 0x41fc17
mov edi, 0x2000000
jmp 0x41fc19
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.004082a8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41fc78
xor eax, eax
push ebp
push 0x41fc71
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041f960
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fc78
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 0x42009c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4200f5
test eax, edx
je 0x4200f8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4200b3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4200da
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 0x4200db
add ecx, 4
js 0x4200cb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4200d8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4200da
xor eax, eax
ret
test eax, eax
je 0x420104
test edx, edx
jne 0x4200a4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x420a30
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 0x420a48
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x420a50
mov al, 1
jmp 0x420a6d
movzx esi, word [ebp]
mov eax, esi
call fcn.00410a34
test al, al
jne 0x420a69
cmp si, 0x5f
je 0x420a69
xor eax, eax
jmp 0x420a6b
mov al, 1
xor al, 1
test al, al
jne 0x420afd
test bl, bl
je 0x420abd
mov eax, ebp
test eax, eax
je 0x420a84
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x420af9
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00410ac0
test al, al
jne 0x420ab1
cmp di, 0x5f
je 0x420ab1
cmp di, 0x2e
je 0x420ab1
xor eax, eax
jmp 0x420ab3
mov al, 1
test al, al
je 0x420afd
inc esi
dec ebx
jne 0x420a91
jmp 0x420af9
mov eax, ebp
test eax, eax
je 0x420ac8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x420af9
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00410ac0
test al, al
jne 0x420aef
cmp di, 0x5f
je 0x420aef
xor eax, eax
jmp 0x420af1
mov al, 1
test al, al
je 0x420afd
inc esi
dec ebx
jne 0x420ad5
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4215f4
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 0x421728
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x421738]
mov dl, 1
mov eax, esi
call fcn.00421a90
test al, al
jne 0x421645
mov dl, 1
mov eax, esi
call fcn.004219f8
test al, al
je 0x4216db
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.00421ed0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.004287b8
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.004082a8
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x4216d6
test byte [ebp - 0xc], 1
je 0x4216a1
or bl, 1
test byte [ebp - 0xc], 2
je 0x4216aa
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x4216b3
or bl, 0x20
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
sub eax, 2
je 0x4216c7
dec eax
je 0x4216cc
dec eax
je 0x4216d1
dec eax
jne 0x421702
or bl, 0x10
jmp 0x421702
or bl, 4
jmp 0x421702
or bl, 8
jmp 0x421702
call fcn.00429080
lea edx, [ebp - 0x428]
mov eax, dword [0x711468]
call fcn.0040b3d0
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41b0a0]
call fcn.00427288
call fcn.00406b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42172f
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.004074c0
lea eax, [ebp - 4]
call fcn.00407460
ret
Function at 0x4219f8
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.004082a8
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421a62
test ah, 4
je 0x421a5b
test bl, bl
jne 0x421a20
mov al, 1
jmp 0x421a89
test al, 0x10
je 0x421a28
xor eax, eax
jmp 0x421a89
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x421a4c
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov al, 1
jmp 0x421a89
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421a89
test al, 0x10
sete al
jmp 0x421a89
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x421a83
cmp ebx, 3
je 0x421a83
cmp ebx, 0x7b
je 0x421a83
mov eax, esi
call fcn.004219b8
test al, al
jne 0x421a87
xor eax, eax
jmp 0x421a89
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421a90
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.004082a8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421b37
test esi, 0x400
jne 0x421acc
test esi, 0x10
setne bl
jmp 0x421b56
cmp byte [esp], 0
je 0x421b00
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x421b56
push eax
call sub.KERNEL32.DLL_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x421b56
test esi, 0x10
je 0x421b0c
mov bl, 1
jmp 0x421b56
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x421b33
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor ebx, ebx
jmp 0x421b56
mov bl, 1
jmp 0x421b56
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 2
je 0x421b50
cmp eax, 3
je 0x421b50
cmp eax, 0x7b
je 0x421b50
cmp eax, 0x35
jne 0x421b54
xor ebx, ebx
jmp 0x421b56
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421c5c
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.004082a8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421cb1
call sub.KERNEL32.DLL_GetLastError_2
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421cab
test ah, 4
je 0x421cab
test al, 0x10
je 0x421cab
mov eax, esi
call fcn.004082a8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421cb1
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4263d4
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 0x42640d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004075e8
jmp 0x426416
mov eax, ebx
mov edx, esi
call fcn.00407840
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426420
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 0x426442
movzx eax, word [esp]
jmp 0x426444
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427118
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 0x42723d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426f20
mov esi, eax
mov eax, dword [0x711280]
cmp byte [eax], 0
je 0x4271e5
mov eax, dword [0x710aa8]
call fcn.00404fcc
call fcn.0040482c
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 [0x4270e8]
call fcn.004096a0
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 0x427258
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x427221
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x71099c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x714c50]
call fcn.004099ec
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 0x427244
lea eax, [ebp - 4]
mov edx, dword [0x4270e8]
call fcn.004097c4
ret
Function at 0x4282bc
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 0x428392
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407888
lea eax, [ebp - 4]
call fcn.00407a24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004082a8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42837c
mov eax, ebx
call fcn.004046b8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428375
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.004082a8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42835f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4283a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42835f
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 0x42837c
mov eax, dword [ebp - 0x10]
call fcn.004046d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428399
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x428ef4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407964
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b464
mov edi, eax
cmp edi, 0x104
jbe 0x428e9b
mov eax, edi
add eax, eax
call fcn.004046b8
mov esi, eax
jmp 0x428e9d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b464
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x428ed8
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x428ec2
mov eax, esp
cmp esi, eax
je 0x428ee5
mov eax, esi
call fcn.004046d4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x428f20
cmp bl, 0
je 0x428f1c
cmp bl, 0x41
jl 0x428f17
cmp bl, 0x5a
jg 0x428f17
or bl, 0x20
xor al, bl
inc esi
jmp 0x428efb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428e5c

Function at 0x429758
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_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408364
add esp, 0x800
pop ebx
ret
Function at 0x429c08
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.00407460
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004082a8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x429c4d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004075e8
jmp 0x429c66
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040843c
push ebx
mov eax, dword [esi]
call fcn.004082a8
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x45b190
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x45b22e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x45b1f2
cmp byte [ebx + 0x10], 0
jne 0x45b1f2
cmp byte [ebx + 0x3c], 0
jne 0x45b1f2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x45b213
lea edx, [ebp - 4]
mov eax, dword [0x711154]
call fcn.0040b3d0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x447548]
call fcn.00427288
call fcn.00406b58
jmp 0x45b213
lea edx, [ebp - 8]
mov eax, dword [0x711154]
call fcn.0040b3d0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x447548]
call fcn.00427288
call fcn.00406b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b235
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074c0
ret

Function at 0x45bb30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x45bb7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0045b0c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bb97
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x45bba0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0045b0c8
dec esi
jne 0x45bbc2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret