joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e308
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e40e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x680c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x680c2c]
jne 0x40e354
mov eax, esi
mov edx, 0x680c2e
mov ecx, 0x55
call fcn.0040ae84
push 0x680c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e3f6
push 0x680c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a0c0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e3c3
cmp byte [0x680c10], 0
je 0x40e388
mov edx, esi
mov eax, ebx
call fcn.0040e1ec
jmp 0x40e3c3
mov edx, esi
mov eax, ebx
call fcn.0040dfec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e3c3
cmp dword [esi], 0
je 0x40e3ac
mov eax, esi
mov edx, 0x40e428
call fcn.0040afdc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dfec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040afdc
push 0x680c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x680c2c], bx
mov eax, dword [esi]
call fcn.0040add0
mov ecx, eax
mov eax, 0x680c2e
mov edx, 0xaa
call fcn.0040de68
push 0x680c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e415
lea eax, [ebp - 4]
call fcn.0040a0c0
pop eax
jmp eax
Function at 0x40e650
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.0040a1b4
xor eax, eax
push ebp
push 0x40e878
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e696
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e6b0
mov eax, dword [ebp - 4]
call fcn.0040add0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040de68
cmp word [ebp - 0x21e], 0
je 0x40e85b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e888
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e77f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e888
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e77f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e8c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e77f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e8c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e77f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e8f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e77f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e92c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e85b
xor eax, eax
push ebp
push 0x40e854
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e450
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 0x40e7e2
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
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.0040ae30
jmp 0x40e82d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e96c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e82d
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e96c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e85b
cmp dword [ebp - 0xc], 0
je 0x40e848
mov eax, dword [ebp - 0xc]
call fcn.00407000
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 0x40e87f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a120
pop eax
jmp eax
Function at 0x40eb8c
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.0040a1b4
xor eax, eax
push ebp
push 0x40ec4e
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.0040ae84
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b034
mov eax, dword [ebx]
call fcn.0040ea34
test al, al
jne 0x40ec29
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ae84
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b034
mov eax, dword [ebx]
call fcn.0040ea34
test al, al
jne 0x40ec29
mov eax, ebx
call fcn.0040a0c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec55
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a120
lea eax, [ebp - 4]
call fcn.0040a0c0
pop eax
jmp eax

Function at 0x410858
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 0x4256ac
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 0x4257dc
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 0x4257b4
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 0x42579d
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040ae84
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b360
test eax, eax
jle 0x42579d
mov eax, dword [ebp - 4]
test eax, eax
je 0x425751
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42575f
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.0040b204
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ae30
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b034
jmp 0x4257b4
add ebx, 2
cmp word [ebx], 0
jne 0x42579a
add ebx, 4
test ebx, ebx
je 0x4257ae
cmp word [ebx], 0
jne 0x4256fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4257e3
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a120
lea eax, [ebp - 4]
call fcn.0040a0c0
pop eax
jmp eax
Function at 0x425b90
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.0042f564
test al, al
je 0x425c5a
xor edx, edx
mov eax, ebx
call fcn.00427658
test al, al
je 0x425c5a
mov eax, ebx
call fcn.00427228
test al, 0x20
je 0x425c5a
mov eax, ebx
call fcn.0040add0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425c5a
test ah, 4
je 0x425c5a
test al, 0x10
je 0x425bf7
mov edi, 0x2000000
jmp 0x425bf9
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040add0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x425c5a
xor eax, eax
push ebp
push 0x425c53
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004258d8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425c5a
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 0x425f14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x425f6d
test eax, edx
je 0x425f70
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425f2b
movzx eax, word [eax]
sub eax, ecx
jmp 0x425f52
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 0x425f53
add ecx, 4
js 0x425f43
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425f50
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425f52
xor eax, eax
ret
test eax, eax
je 0x425f7c
test edx, edx
jne 0x425f1c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x427228
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 0x42737c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4271c8]
call fcn.0040d474
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4271f8]
call fcn.0040d474
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004276f0
test al, al
jne 0x42729e
mov dl, 1
mov eax, esi
call fcn.00427658
test al, al
je 0x427328
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00427e9c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042fa94
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.0040add0
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x427323
test byte [ebp - 0x14], 1
je 0x4272ee
or bl, 1
test byte [ebp - 0x14], 2
je 0x4272f7
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x427300
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x427314
dec eax
je 0x427319
dec eax
je 0x42731e
dec eax
jne 0x427340
or bl, 0x10
jmp 0x427340
or bl, 4
jmp 0x427340
or bl, 8
jmp 0x427340
call fcn.004308f0
push esi
mov ecx, dword [0x67d1f4]
mov dl, 1
mov eax, dword [0x41f928]
call fcn.0042e768
call fcn.004097b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427383
lea eax, [ebp - 0x1c]
call fcn.0040a0c0
lea eax, [ebp - 0xc]
mov edx, dword [0x4271f8]
call fcn.0040d598
lea eax, [ebp - 8]
mov edx, dword [0x4271c8]
call fcn.0040d598
lea eax, [ebp - 4]
call fcn.0040a0c0
pop eax
jmp eax

Function at 0x427658
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.0040add0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4276c2
test ah, 4
je 0x4276bb
test bl, bl
jne 0x427680
mov al, 1
jmp 0x4276e9
test al, 0x10
je 0x427688
xor eax, eax
jmp 0x4276e9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4276ac
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4276e9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4276e9
test al, 0x10
sete al
jmp 0x4276e9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4276e3
cmp ebx, 3
je 0x4276e3
cmp ebx, 0x7b
je 0x4276e3
mov eax, esi
call fcn.00427618
test al, al
jne 0x4276e7
xor eax, eax
jmp 0x4276e9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4276f0
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.0040add0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42778e
test esi, 0x400
jne 0x427725
test esi, 0x10
setne bl
jmp 0x42778e
cmp byte [esp], 0
je 0x427759
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42778e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42778e
test esi, 0x10
je 0x427765
mov bl, 1
jmp 0x42778e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42778c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42778e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427950
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 0x4279f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040add0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x4279da
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425b90
test al, al
je 0x4279da
mov eax, dword [ebp - 4]
call fcn.00428020
test al, al
je 0x4279ca
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00427d5c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042fa94
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040b034
mov eax, dword [ebp - 4]
call fcn.0040add0
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 0x4279fe
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a120
pop eax
jmp eax
Function at 0x427a08
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 0x427add
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a4f8
cmp byte [ebp - 9], 0
je 0x427a99
mov eax, ebx
call fcn.0040add0
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x427a99
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00425b90
test al, al
je 0x427a99
mov eax, dword [ebp - 8]
call fcn.00428020
test al, al
je 0x427a8e
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00427d5c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042fa94
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b034
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a4f8
push edi
mov eax, dword [ebp - 4]
call fcn.0040add0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x427ab3
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427ae4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a120
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a120
pop eax
jmp eax

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

Function at 0x42c708
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 0x42c741
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a258
jmp 0x42c74a
mov eax, ebx
mov edx, esi
call fcn.0040a4b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42c754
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 0x42c778
movzx eax, word [esp]
jmp 0x42c77a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42de94
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 0x42dfbb
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042dc9c
mov esi, eax
mov eax, dword [0x67d0cc]
cmp byte [eax], 0
je 0x42df61
mov eax, dword [0x67cce4]
call fcn.00407a84
call fcn.00407158
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 [0x42de64]
call fcn.0040d474
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 0x42dfd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42df9d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x67cc40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x681634]
call fcn.0040db0c
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 0x42dfc2
lea eax, [ebp - 4]
mov edx, dword [0x42de64]
call fcn.0040d598
pop eax
jmp eax
Function at 0x42f2b4
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 0x42f2f7
mov eax, dword [ebp - 0x10c]
mov dword [0x681950], eax
mov eax, 0x681954
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040ae84
mov eax, 0x681958
call fcn.0040a0c0
xor eax, eax
mov dword [0x68195c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x681814], 0xa
jl 0x42f44d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42f458
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42f44d
xor eax, eax
push ebp
push 0x42f446
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42f4b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42f3a6
cmp dword [ebp - 8], 2
jle 0x42f3a6
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42f379
adc edx, 0
mov eax, 0x681958
call fcn.0040af5c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x681958]
call fcn.0040add0
push eax
push 0
push 0
push 0x42f4b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42f400
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42f4d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42f400
cmp dword [ebp - 8], 2
jle 0x42f400
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42f3d5
adc edx, 0
mov eax, 0x681958
call fcn.0040af5c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x681958]
call fcn.0040add0
push eax
push 0
push 0
push 0x42f4d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x68195c
push 0
push 0
push 0x42f4e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42f42d
xor eax, eax
mov dword [0x68195c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f44d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x674710], 1
mov esp, ebp
pop ebp
ret
Function at 0x42f590
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 0x42f66a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a4f8
lea eax, [ebp - 4]
call fcn.0040a69c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040add0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42f652
mov eax, ebx
call fcn.00406fe4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42f64b
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.0040add0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42f633
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42f67c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42f633
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 0x42f652
mov eax, dword [ebp - 0x10]
call fcn.00407000
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f671
lea eax, [ebp - 4]
call fcn.0040a0c0
pop eax
jmp eax

Function at 0x430738
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.0040a5dc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410838
mov edi, eax
cmp edi, 0x104
jbe 0x4306e3
mov eax, edi
add eax, eax
call fcn.00406fe4
mov esi, eax
jmp 0x4306e5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410838
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x43071e
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 0x430708
mov eax, esp
cmp esi, eax
je 0x43072b
mov eax, esi
call fcn.00407000
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 0x430764
cmp bl, 0
je 0x430760
cmp bl, 0x41
jl 0x43075b
cmp bl, 0x5a
jg 0x43075b
or bl, 0x20
xor al, bl
inc esi
jmp 0x43073f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4306a4

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