joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd64
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 0x40decb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a5dc
cmp si, word [0x619a30]
jb 0x40ddfc
cmp si, word [0x619c30]
ja 0x40ddfc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ddfc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x619a30]
jae 0x40ddd6
mov edi, ebx
dec edi
jmp 0x40ddf7
cmp si, word [ebx*8 + 0x619a30]
jbe 0x40dde6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ddf7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x619a34]
call fcn.0040dc80
jmp 0x40ddfc
cmp edi, dword [ebp - 8]
jae 0x40ddc0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40deab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40deab
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.0040b0f4
push dword [ebp - 0x160]
push 0x40dee8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b0f4
push dword [ebp - 0x164]
push 0x40def8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b0f4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b32c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ded2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a63c
pop eax
jmp eax
Function at 0x40e080
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 0x40e186
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x621c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x621c2c]
jne 0x40e0cc
mov eax, esi
mov edx, 0x621c2e
mov ecx, 0x55
call fcn.0040b0f4
push 0x621c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e16e
push 0x621c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a5dc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e13b
cmp byte [0x621c10], 0
je 0x40e100
mov edx, esi
mov eax, ebx
call fcn.0040df64
jmp 0x40e13b
mov edx, esi
mov eax, ebx
call fcn.0040dd64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e13b
cmp dword [esi], 0
je 0x40e124
mov eax, esi
mov edx, 0x40e1a0
call fcn.0040b24c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dd64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b24c
push 0x621c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x621c2c], bx
mov eax, dword [esi]
call fcn.0040b040
mov ecx, eax
mov eax, 0x621c2e
mov edx, 0xaa
call fcn.0040dbe0
push 0x621c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e18d
lea eax, [ebp - 4]
call fcn.0040a5dc
pop eax
jmp eax
Function at 0x40e3c8
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.0040a6d0
xor eax, eax
push ebp
push 0x40e5f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e40e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e428
mov eax, dword [ebp - 4]
call fcn.0040b040
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dbe0
cmp word [ebp - 0x21e], 0
je 0x40e5d3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e600
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e600
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e63c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e63c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e670
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e5d3
xor eax, eax
push ebp
push 0x40e5cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e1c8
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 0x40e55a
mov eax, dword [ebp - 0x14]
call fcn.00406fec
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.0040b0a0
jmp 0x40e5a5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e6e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e5a5
mov eax, dword [ebp - 0x14]
call fcn.00406fec
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e6e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b0a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5d3
cmp dword [ebp - 0xc], 0
je 0x40e5c0
mov eax, dword [ebp - 0xc]
call fcn.00407008
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 0x40e5f7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a63c
pop eax
jmp eax
Function at 0x40e904
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.0040a6d0
xor eax, eax
push ebp
push 0x40e9c6
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.0040b0f4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b2a4
mov eax, dword [ebx]
call fcn.0040e7ac
test al, al
jne 0x40e9a1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b0f4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b2a4
mov eax, dword [ebx]
call fcn.0040e7ac
test al, al
jne 0x40e9a1
mov eax, ebx
call fcn.0040a5dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9cd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a63c
lea eax, [ebp - 4]
call fcn.0040a5dc
pop eax
jmp eax

Function at 0x410530
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 0x425130
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 0x425260
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 0x425238
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 0x425221
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040b0f4
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b570
test eax, eax
jle 0x425221
mov eax, dword [ebp - 4]
test eax, eax
je 0x4251d5
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4251e3
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.0040b414
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040b0a0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b2a4
jmp 0x425238
add ebx, 2
cmp word [ebx], 0
jne 0x42521e
add ebx, 4
test ebx, ebx
je 0x425232
cmp word [ebx], 0
jne 0x425182
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425267
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a63c
lea eax, [ebp - 4]
call fcn.0040a5dc
pop eax
jmp eax
Function at 0x425614
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.0042ecd8
test al, al
je 0x4256de
xor edx, edx
mov eax, ebx
call fcn.00426e2c
test al, al
je 0x4256de
mov eax, ebx
call fcn.00426be0
test al, 0x20
je 0x4256de
mov eax, ebx
call fcn.0040b040
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4256de
test ah, 4
je 0x4256de
test al, 0x10
je 0x42567b
mov edi, 0x2000000
jmp 0x42567d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040b040
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4256de
xor eax, eax
push ebp
push 0x4256d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0042535c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4256de
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 0x425930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x425989
test eax, edx
je 0x42598c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425947
movzx eax, word [eax]
sub eax, ecx
jmp 0x42596e
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 0x42596f
add ecx, 4
js 0x42595f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42596c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42596e
xor eax, eax
ret
test eax, eax
je 0x425998
test edx, edx
jne 0x425938
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x426be0
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 0x426d34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x426b80]
call fcn.0040d2b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x426bb0]
call fcn.0040d2b8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00426ec4
test al, al
jne 0x426c56
mov dl, 1
mov eax, esi
call fcn.00426e2c
test al, al
je 0x426ce0
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0042745c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042f208
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.0040b040
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x426cdb
test byte [ebp - 0x14], 1
je 0x426ca6
or bl, 1
test byte [ebp - 0x14], 2
je 0x426caf
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x426cb8
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x426ccc
dec eax
je 0x426cd1
dec eax
je 0x426cd6
dec eax
jne 0x426cf8
or bl, 0x10
jmp 0x426cf8
or bl, 4
jmp 0x426cf8
or bl, 8
jmp 0x426cf8
call fcn.00430064
push esi
mov ecx, dword [0x61e890]
mov dl, 1
mov eax, dword [0x41f494]
call fcn.0042dedc
call fcn.00409cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d3b
lea eax, [ebp - 0x1c]
call fcn.0040a5dc
lea eax, [ebp - 0xc]
mov edx, dword [0x426bb0]
call fcn.0040d3dc
lea eax, [ebp - 8]
mov edx, dword [0x426b80]
call fcn.0040d3dc
lea eax, [ebp - 4]
call fcn.0040a5dc
pop eax
jmp eax

Function at 0x426e2c
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.0040b040
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426e96
test ah, 4
je 0x426e8f
test bl, bl
jne 0x426e54
mov al, 1
jmp 0x426ebd
test al, 0x10
je 0x426e5c
xor eax, eax
jmp 0x426ebd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426e80
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x426ebd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x426ebd
test al, 0x10
sete al
jmp 0x426ebd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x426eb7
cmp ebx, 3
je 0x426eb7
cmp ebx, 0x7b
je 0x426eb7
mov eax, esi
call fcn.00426dec
test al, al
jne 0x426ebb
xor eax, eax
jmp 0x426ebd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x426ec4
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.0040b040
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426f62
test esi, 0x400
jne 0x426ef9
test esi, 0x10
setne bl
jmp 0x426f62
cmp byte [esp], 0
je 0x426f2d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426f62
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x426f62
test esi, 0x10
je 0x426f39
mov bl, 1
jmp 0x426f62
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426f60
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x426f62
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42706c
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 0x427113
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b040
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x4270f6
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425614
test al, al
je 0x4270f6
mov eax, dword [ebp - 4]
call fcn.004275e0
test al, al
je 0x4270e6
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00427390
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042f208
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040b2a4
mov eax, dword [ebp - 4]
call fcn.0040b040
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 0x42711a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a63c
pop eax
jmp eax

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

Function at 0x42be7c
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 0x42beb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a774
jmp 0x42bebe
mov eax, ebx
mov edx, esi
call fcn.0040a9cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bec8
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 0x42beec
movzx eax, word [esp]
jmp 0x42beee
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42d608
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 0x42d72f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042d410
mov esi, eax
mov eax, dword [0x61e780]
cmp byte [eax], 0
je 0x42d6d5
mov eax, dword [0x61e3ac]
call fcn.00407de4
call fcn.00407160
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 [0x42d5d8]
call fcn.0040d2b8
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 0x42d748
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42d711
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x61e30c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x622634]
call fcn.0040d884
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 0x42d736
lea eax, [ebp - 4]
mov edx, dword [0x42d5d8]
call fcn.0040d3dc
pop eax
jmp eax
Function at 0x42ea28
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 0x42ea6b
mov eax, dword [ebp - 0x10c]
mov dword [0x622950], eax
mov eax, 0x622954
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b0f4
mov eax, 0x622958
call fcn.0040a5dc
xor eax, eax
mov dword [0x62295c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x622814], 0xa
jl 0x42ebc1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42ebcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42ebc1
xor eax, eax
push ebp
push 0x42ebba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ec28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42eb1a
cmp dword [ebp - 8], 2
jle 0x42eb1a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42eaed
adc edx, 0
mov eax, 0x622958
call fcn.0040b1cc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x622958]
call fcn.0040b040
push eax
push 0
push 0
push 0x42ec28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42eb74
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ec48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42eb74
cmp dword [ebp - 8], 2
jle 0x42eb74
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42eb49
adc edx, 0
mov eax, 0x622958
call fcn.0040b1cc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x622958]
call fcn.0040b040
push eax
push 0
push 0
push 0x42ec48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x62295c
push 0
push 0
push 0x42ec5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42eba1
xor eax, eax
mov dword [0x62295c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ebc1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x61b730], 1
mov esp, ebp
pop ebp
ret
Function at 0x42ed04
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 0x42edde
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040aa14
lea eax, [ebp - 4]
call fcn.0040ab34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b040
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42edc6
mov eax, ebx
call fcn.00406fec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42edbf
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.0040b040
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42eda7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42edf0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42eda7
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 0x42edc6
mov eax, dword [ebp - 0x10]
call fcn.00407008
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ede5
lea eax, [ebp - 4]
call fcn.0040a5dc
pop eax
jmp eax

Function at 0x42feac
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.0040aac0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410510
mov edi, eax
cmp edi, 0x104
jbe 0x42fe57
mov eax, edi
add eax, eax
call fcn.00406fec
mov esi, eax
jmp 0x42fe59
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410510
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42fe92
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 0x42fe7c
mov eax, esp
cmp esi, eax
je 0x42fe9f
mov eax, esi
call fcn.00407008
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 0x42fed8
cmp bl, 0
je 0x42fed4
cmp bl, 0x41
jl 0x42fecf
cmp bl, 0x5a
jg 0x42fecf
or bl, 0x20
xor al, bl
inc esi
jmp 0x42feb3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42fe18

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