joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e090
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e1f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a480
cmp si, word [0x62ea18]
jb 0x40e128
cmp si, word [0x62ec18]
ja 0x40e128
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e128
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x62ea18]
jae 0x40e102
mov edi, ebx
dec edi
jmp 0x40e123
cmp si, word [ebx*8 + 0x62ea18]
jbe 0x40e112
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e123
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x62ea1c]
call fcn.0040dfb0
jmp 0x40e128
cmp edi, dword [ebp - 8]
jae 0x40e0ec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e1d7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e1d7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b048
push dword [ebp - 0x160]
push 0x40e214
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b048
push dword [ebp - 0x164]
push 0x40e224
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b048
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1fe
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a4e0
pop eax
jmp eax
Function at 0x40e3ac
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 0x40e4b2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x63ec18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x63ec30]
jne 0x40e3f8
mov eax, esi
mov edx, 0x63ec32
mov ecx, 0x55
call fcn.0040b048
push 0x63ec18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e49a
push 0x63ec18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a480
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e467
cmp byte [0x63ec14], 0
je 0x40e42c
mov edx, esi
mov eax, ebx
call fcn.0040e290
jmp 0x40e467
mov edx, esi
mov eax, ebx
call fcn.0040e090
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e467
cmp dword [esi], 0
je 0x40e450
mov eax, esi
mov edx, 0x40e4cc
call fcn.0040b1a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e090
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b1a4
push 0x63ec18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x63ec30], bx
mov eax, dword [esi]
call fcn.0040af94
mov ecx, eax
mov eax, 0x63ec32
mov edx, 0xaa
call fcn.0040df10
push 0x63ec18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4b9
lea eax, [ebp - 4]
call fcn.0040a480
pop eax
jmp eax
Function at 0x40e6f4
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.0040a574
xor eax, eax
push ebp
push 0x40e91c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e73a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e754
mov eax, dword [ebp - 4]
call fcn.0040af94
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040df10
cmp word [ebp - 0x21e], 0
je 0x40e8ff
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e92c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e823
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e92c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e823
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e968
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e823
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e968
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e823
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e99c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e823
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e9d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e8ff
xor eax, eax
push ebp
push 0x40e8f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e4f4
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 0x40e886
mov eax, dword [ebp - 0x14]
call fcn.00406e4c
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.0040aff4
jmp 0x40e8d1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ea10
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e8d1
mov eax, dword [ebp - 0x14]
call fcn.00406e4c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ea10
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8ff
cmp dword [ebp - 0xc], 0
je 0x40e8ec
mov eax, dword [ebp - 0xc]
call fcn.00406e68
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 0x40e923
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a4e0
pop eax
jmp eax
Function at 0x40ec2c
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.0040a574
xor eax, eax
push ebp
push 0x40ecee
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.0040b048
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1fc
mov eax, dword [ebx]
call fcn.0040ead8
test al, al
jne 0x40ecc9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b048
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1fc
mov eax, dword [ebx]
call fcn.0040ead8
test al, al
jne 0x40ecc9
mov eax, ebx
call fcn.0040a480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecf5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a4e0
lea eax, [ebp - 4]
call fcn.0040a480
pop eax
jmp eax

Function at 0x4108e0
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 0x425d3c
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.00430004
test al, al
je 0x425e06
xor edx, edx
mov eax, ebx
call fcn.0042752c
test al, al
je 0x425e06
mov eax, ebx
call fcn.004272e0
test al, 0x20
je 0x425e06
mov eax, ebx
call fcn.0040af94
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425e06
test ah, 4
je 0x425e06
test al, 0x10
je 0x425da3
mov edi, 0x2000000
jmp 0x425da5
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040af94
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x425e06
xor eax, eax
push ebp
push 0x425dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00425a80
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425e06
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 0x426060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4260b9
test eax, edx
je 0x4260bc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x426077
movzx eax, word [eax]
sub eax, ecx
jmp 0x42609e
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 0x42609f
add ecx, 4
js 0x42608f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42609c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42609e
xor eax, eax
ret
test eax, eax
je 0x4260c8
test edx, edx
jne 0x426068
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4272e0
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 0x427434
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x427280]
call fcn.0040d4b4
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4272b0]
call fcn.0040d4b4
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004275c4
test al, al
jne 0x427356
mov dl, 1
mov eax, esi
call fcn.0042752c
test al, al
je 0x4273e0
lea edx, [ebp - 0x1c]
mov eax, esi
Function at 0x42752c
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.0040af94
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427596
test ah, 4
je 0x42758f
test bl, bl
jne 0x427554
mov al, 1
jmp 0x4275bd
test al, 0x10
je 0x42755c
xor eax, eax
jmp 0x4275bd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427580
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4275bd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4275bd
test al, 0x10
sete al
jmp 0x4275bd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4275b7
cmp ebx, 3
je 0x4275b7
cmp ebx, 0x7b
je 0x4275b7
mov eax, esi
call fcn.004274ec
test al, al
jne 0x4275bb
xor eax, eax
jmp 0x4275bd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4275c4
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.0040af94
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x427662
test esi, 0x400
jne 0x4275f9
test esi, 0x10
setne bl
jmp 0x427662
cmp byte [esp], 0
je 0x42762d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427662
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x427662
test esi, 0x10
je 0x427639
mov bl, 1
jmp 0x427662
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427660
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x427662
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42766c
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 0x427741
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a8b8
cmp byte [ebp - 9], 0
je 0x4276fd
mov eax, ebx
call fcn.0040af94
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4276fd
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00425d3c
test al, al
je 0x4276fd
mov eax, dword [ebp - 8]
call fcn.00427bb4
test al, al
je 0x4276f2
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00427968
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004304b8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b1fc
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a8b8
push edi
mov eax, dword [ebp - 4]
call fcn.0040af94
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x427717
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427748
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a4e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a4e0
pop eax
jmp eax
Function at 0x427880
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.0040af94
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4278d5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4278cf
test ah, 4
je 0x4278cf
test al, 0x10
je 0x4278cf
mov eax, esi
call fcn.0040af94
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4278d5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42c940
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 0x42c979
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a618
jmp 0x42c982
mov eax, ebx
mov edx, esi
call fcn.0040a870
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42c98c
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 0x42c9b0
movzx eax, word [esp]
jmp 0x42c9b2
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42e6a8
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 0x42e7cf
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042e4b0
mov esi, eax
mov eax, dword [0x63af10]
cmp byte [eax], 0
je 0x42e775
mov eax, dword [0x63ab60]
call fcn.00407d60
call fcn.00406fc4
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 [0x42e678]
call fcn.0040d4b4
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 0x42e7e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42e7b1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x63aac8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x63f63c]
call fcn.0040dbb4
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 0x42e7d6
lea eax, [ebp - 4]
mov edx, dword [0x42e678]
call fcn.0040d5d8
pop eax
jmp eax
Function at 0x42fd54
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 0x42fd97
mov eax, dword [ebp - 0x10c]
mov dword [0x63f900], eax
mov eax, 0x63f904
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b048
mov eax, 0x63f908
call fcn.0040a480
xor eax, eax
mov dword [0x63f90c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x63f7c4], 0xa
jl 0x42feed
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42fef8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42feed
xor eax, eax
push ebp
push 0x42fee6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ff54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fe46
cmp dword [ebp - 8], 2
jle 0x42fe46
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fe19
adc edx, 0
mov eax, 0x63f908
call fcn.0040b120
lea eax, [ebp - 8]
push eax
mov eax, dword [0x63f908]
call fcn.0040af94
push eax
push 0
push 0
push 0x42ff54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42fea0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ff74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fea0
cmp dword [ebp - 8], 2
jle 0x42fea0
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fe75
adc edx, 0
mov eax, 0x63f908
call fcn.0040b120
lea eax, [ebp - 8]
push eax
mov eax, dword [0x63f908]
call fcn.0040af94
push eax
push 0
push 0
push 0x42ff74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x63f90c
push 0
push 0
push 0x42ff88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42fecd
xor eax, eax
mov dword [0x63f90c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42feed
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x630760], 1
mov esp, ebp
pop ebp
ret
Function at 0x430030
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 0x43010a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a8b8
lea eax, [ebp - 4]
call fcn.0040aa20
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040af94
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4300f2
mov eax, ebx
call fcn.00406e4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4300eb
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.0040af94
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4300d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x43011c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4300d3
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 0x4300f2
mov eax, dword [ebp - 0x10]
call fcn.00406e68
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430111
lea eax, [ebp - 4]
call fcn.0040a480
pop eax
jmp eax

Function at 0x431344
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.0040a960
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004108c0
mov edi, eax
cmp edi, 0x104
jbe 0x4312ef
mov eax, edi
add eax, eax
call fcn.00406e4c
mov esi, eax
jmp 0x4312f1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004108c0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x43132a
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 0x431314
mov eax, esp
cmp esi, eax
je 0x431337
mov eax, esi
call fcn.00406e68
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 0x431370
cmp bl, 0
je 0x43136c
cmp bl, 0x41
jl 0x431367
cmp bl, 0x5a
jg 0x431367
or bl, 0x20
xor al, bl
inc esi
jmp 0x43134b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4312b0

Function at 0x431cac
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.0040b048
add esp, 0x800
pop ebx
ret
Function at 0x4322a8
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.0040a480
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040af94
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4322ed
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a618
jmp 0x432306
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b120
push ebx
mov eax, dword [esi]
call fcn.0040af94
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43454c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43456a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x434582
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43457d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x434587
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x4345f5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x43463e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4345b3
inc dword [ebp - 0xc]
jmp 0x4345cb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x4345cb
cmp dword [ebp - 0xc], 0
jle 0x4345cb
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x4345ed
xor eax, eax
jmp 0x4345e9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4345e8
mov eax, esi
jmp 0x434641
inc eax
cmp eax, ecx
jle 0x4345d5
inc esi
cmp esi, dword [ebp - 8]
jl 0x43459f
jmp 0x43463e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x43463e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x434616
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x434638
xor eax, eax
jmp 0x434634
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x434633
mov eax, esi
jmp 0x434641
inc eax
cmp eax, ecx
jle 0x434620
inc esi
cmp esi, dword [ebp - 8]
jl 0x4345fe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10