joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f498
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b554
xor eax, eax
push ebp
push 0x40f6c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40f4de
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40f4f8
mov eax, dword [ebp - 4]
call fcn.0040bfd8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040ecb0
cmp word [ebp - 0x21e], 0
je 0x40f6a3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f6d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f6d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f70c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f70c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f740
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f774
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f6a3
xor eax, eax
push ebp
push 0x40f69c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040f298
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f62a
mov eax, dword [ebp - 0x14]
call fcn.00406ffc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c038
jmp 0x40f675
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f7b4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f675
mov eax, dword [ebp - 0x14]
call fcn.00406ffc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f7b4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6a3
cmp dword [ebp - 0xc], 0
je 0x40f690
mov eax, dword [ebp - 0xc]
call fcn.00407018
mov eax, dword [ebp - 0x10]
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 0x40f6c7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4c0
pop eax
jmp eax
Function at 0x40f9d4
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.0040b554
xor eax, eax
push ebp
push 0x40fa96
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.0040c074
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c224
mov eax, dword [ebx]
call fcn.0040f87c
test al, al
jne 0x40fa71
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c074
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c224
mov eax, dword [ebx]
call fcn.0040f87c
test al, al
jne 0x40fa71
mov eax, ebx
call fcn.0040b460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa9d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b4c0
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax

Function at 0x411600
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 0x426794
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 0x4268c4
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 0x42689c
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 0x426885
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040c074
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c4f0
test eax, eax
jle 0x426885
mov eax, dword [ebp - 4]
test eax, eax
je 0x426839
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x426847
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.0040c394
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040c038
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040c224
jmp 0x42689c
add ebx, 2
cmp word [ebx], 0
jne 0x426882
add ebx, 4
test ebx, ebx
je 0x426896
cmp word [ebx], 0
jne 0x4267e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268cb
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040b4c0
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax
Function at 0x426c78
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.00430c20
test al, al
je 0x426d42
xor edx, edx
mov eax, ebx
call fcn.0042895c
test al, al
je 0x426d42
mov eax, ebx
call fcn.0042852c
test al, 0x20
je 0x426d42
mov eax, ebx
call fcn.0040bfd8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426d42
test ah, 4
je 0x426d42
test al, 0x10
je 0x426cdf
mov edi, 0x2000000
jmp 0x426ce1
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040bfd8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x426d42
xor eax, eax
push ebp
push 0x426d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004269c0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d42
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 0x427038
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x427091
test eax, edx
je 0x427094
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42704f
movzx eax, word [eax]
sub eax, ecx
jmp 0x427076
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x427077
add ecx, 4
js 0x427067
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x427074
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x427076
xor eax, eax
ret
test eax, eax
je 0x4270a0
test edx, edx
jne 0x427040
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4283d8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4284b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x42849c
test edi, edi
je 0x42849c
xor edx, edx
mov eax, 6
call fcn.00430c20
test al, al
je 0x42849c
lea edx, [ebp - 4]
mov eax, edi
call fcn.00429134
mov eax, dword [ebp - 4]
call fcn.0042852c
test al, 0x20
je 0x42849c
mov eax, esi
call fcn.004293f8
test al, al
je 0x428462
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00431150
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040c1cc
mov eax, dword [ebp - 8]
call fcn.0040bfd8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x428471
mov eax, esi
call fcn.0040bfd8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428482
test bl, 0x10
je 0x428482
mov ebx, 1
jmp 0x428484
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040bfd8
push eax
mov eax, edi
call fcn.0040bfd8
push eax
call sub.kernel32.dll_CreateSymbolicLinkW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4284c0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4c0
pop eax
jmp eax

Function at 0x42852c
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 ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x428680
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4284cc]
call fcn.0040e388
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4284fc]
call fcn.0040e388
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004289f4
test al, al
jne 0x4285a2
mov dl, 1
mov eax, esi
call fcn.0042895c
test al, al
je 0x42862c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429274
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00431150
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.0040bfd8
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x428627
test byte [ebp - 0x14], 1
je 0x4285f2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4285fb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x428604
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x428618
dec eax
je 0x42861d
dec eax
je 0x428622
dec eax
jne 0x428644
or bl, 0x10
jmp 0x428644
or bl, 4
jmp 0x428644
or bl, 8
jmp 0x428644
call fcn.00431fac
push esi
mov ecx, dword [0x67349c]
mov dl, 1
mov eax, dword [0x420a10]
call fcn.0042fe24
call fcn.0040ab1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428687
lea eax, [ebp - 0x1c]
call fcn.0040b460
lea eax, [ebp - 0xc]
mov edx, dword [0x4284fc]
call fcn.0040e4ac
lea eax, [ebp - 8]
mov edx, dword [0x4284cc]
call fcn.0040e4ac
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax
Function at 0x42895c
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.0040bfd8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4289c6
test ah, 4
je 0x4289bf
test bl, bl
jne 0x428984
mov al, 1
jmp 0x4289ed
test al, 0x10
je 0x42898c
xor eax, eax
jmp 0x4289ed
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4289b0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4289ed
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4289ed
test al, 0x10
sete al
jmp 0x4289ed
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4289e7
cmp ebx, 3
je 0x4289e7
cmp ebx, 0x7b
je 0x4289e7
mov eax, esi
call fcn.0042891c
test al, al
jne 0x4289eb
xor eax, eax
jmp 0x4289ed
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4289f4
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.0040bfd8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x428a92
test esi, 0x400
jne 0x428a29
test esi, 0x10
setne bl
jmp 0x428a92
cmp byte [esp], 0
je 0x428a5d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x428a92
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x428a92
test esi, 0x10
je 0x428a69
mov bl, 1
jmp 0x428a92
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x428a90
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x428a92
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428c54
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 0x428cfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040bfd8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x428cde
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00426c78
test al, al
je 0x428cde
mov eax, dword [ebp - 4]
call fcn.004293f8
test al, al
je 0x428cce
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00429134
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00431150
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040c224
mov eax, dword [ebp - 4]
call fcn.0040bfd8
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 0x428d02
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b4c0
pop eax
jmp eax
Function at 0x428d0c
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 0x428de1
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b898
cmp byte [ebp - 9], 0
je 0x428d9d
mov eax, ebx
call fcn.0040bfd8
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x428d9d
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00426c78
test al, al
je 0x428d9d
mov eax, dword [ebp - 8]
call fcn.004293f8
test al, al
je 0x428d92
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00429134
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00431150
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040c224
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b898
push edi
mov eax, dword [ebp - 4]
call fcn.0040bfd8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x428db7
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428de8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b4c0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4c0
pop eax
jmp eax

Function at 0x428f20
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.0040bfd8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x428f75
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428f6f
test ah, 4
je 0x428f6f
test al, 0x10
je 0x428f6f
mov eax, esi
call fcn.0040bfd8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x428f75
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ddc4
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 0x42ddfd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040b5f8
jmp 0x42de06
mov eax, ebx
mov edx, esi
call fcn.0040b850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42de10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42de34
movzx eax, word [esp]
jmp 0x42de36
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42f550
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 0x42f677
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042f358
mov esi, eax
mov eax, dword [0x673394]
cmp byte [eax], 0
je 0x42f61d
mov eax, dword [0x672ffc]
call fcn.00408014
call fcn.00407170
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 [0x42f520]
call fcn.0040e388
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 0x42f690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42f659
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x672f5c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x677634]
call fcn.0040e954
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 0x42f67e
lea eax, [ebp - 4]
mov edx, dword [0x42f520]
call fcn.0040e4ac
pop eax
jmp eax
Function at 0x430970
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4309b3
mov eax, dword [ebp - 0x10c]
mov dword [0x677950], eax
mov eax, 0x677954
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c074
mov eax, 0x677958
call fcn.0040b460
xor eax, eax
mov dword [0x67795c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x677814], 0xa
jl 0x430b09
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x430b14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x430b09
xor eax, eax
push ebp
push 0x430b02
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x430b70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x430a62
cmp dword [ebp - 8], 2
jle 0x430a62
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x430a35
adc edx, 0
mov eax, 0x677958
call fcn.0040c14c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x677958]
call fcn.0040bfd8
push eax
push 0
push 0
push 0x430b70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x430abc
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x430b90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x430abc
cmp dword [ebp - 8], 2
jle 0x430abc
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x430a91
adc edx, 0
mov eax, 0x677958
call fcn.0040c14c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x677958]
call fcn.0040bfd8
push eax
push 0
push 0
push 0x430b90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x67795c
push 0
push 0
push 0x430ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x430ae9
xor eax, eax
mov dword [0x67795c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430b09
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x66b730], 1
mov esp, ebp
pop ebp
ret
Function at 0x430c4c
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 0x430d26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b898
lea eax, [ebp - 4]
call fcn.0040ba3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bfd8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x430d0e
mov eax, ebx
call fcn.00406ffc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x430d07
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.0040bfd8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x430cef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x430d38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x430cef
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 0x430d0e
mov eax, dword [ebp - 0x10]
call fcn.00407018
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430d2d
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax

Function at 0x431df4
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.0040b97c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004115e0
mov edi, eax
cmp edi, 0x104
jbe 0x431d9f
mov eax, edi
add eax, eax
call fcn.00406ffc
mov esi, eax
jmp 0x431da1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004115e0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x431dda
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 0x431dc4
mov eax, esp
cmp esi, eax
je 0x431de7
mov eax, esi
call fcn.00407018
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 0x431e20
cmp bl, 0
je 0x431e1c
cmp bl, 0x41
jl 0x431e17
cmp bl, 0x5a
jg 0x431e17
or bl, 0x20
xor al, bl
inc esi
jmp 0x431dfb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x431d60

Function at 0x432738
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.0040c074
add esp, 0x800
pop ebx
ret