joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420a90
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 0x420bc0
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 0x420b98
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 0x420b81
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a858
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ac1c
test eax, eax
jle 0x420b81
mov eax, dword [ebp - 4]
test eax, eax
je 0x420b35
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x420b43
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.0040ab78
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a81c
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040aa08
jmp 0x420b98
add ebx, 2
cmp word [ebx], 0
jne 0x420b7e
add ebx, 4
test ebx, ebx
je 0x420b92
cmp word [ebx], 0
jne 0x420ae2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420bc7
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409e1c
lea eax, [ebp - 4]
call fcn.00409dbc
pop eax
jmp eax
Function at 0x420cbc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x420eff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00409dbc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x420d93
cmp dword [ebp - 0x14], 0
jne 0x420d93
xor edx, edx
mov eax, 6
call fcn.004292dc
test al, al
je 0x420d93
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x420d93
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a858
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420a90
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a19c
mov byte [ebp - 9], 1
jmp 0x420edf
test ebx, ebx
jne 0x420da1
cmp dword [ebp - 0x14], 0
je 0x420e93
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x420e93
xor eax, eax
push ebp
push 0x420e8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420e73
xor eax, eax
push ebp
push 0x420e6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.004131d8
test eax, eax
jbe 0x420e53
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a858
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420a90
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a19c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420e73
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420e93
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
cmp byte [ebp - 9], 0
jne 0x420edf
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00420bd0
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a19c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x420edf
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420a90
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a19c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420f06
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409e1c
pop eax
jmp eax
Function at 0x420f10
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.004292dc
test al, al
je 0x420fda
xor edx, edx
mov eax, ebx
call fcn.004227b8
test al, al
je 0x420fda
mov eax, ebx
call fcn.004224ec
test al, 0x20
je 0x420fda
mov eax, ebx
call fcn.0040a7b8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420fda
test ah, 4
je 0x420fda
test al, 0x10
je 0x420f77
mov edi, 0x2000000
jmp 0x420f79
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a7b8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x420fda
xor eax, eax
push ebp
push 0x420fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00420cbc
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420fda
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 0x421130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421189
test eax, edx
je 0x42118c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421147
movzx eax, word [eax]
sub eax, ecx
jmp 0x42116e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x42116f
add ecx, 4
js 0x42115f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42116c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42116e
xor eax, eax
ret
test eax, eax
je 0x421198
test edx, edx
jne 0x421138
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4224ec
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 ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42264e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42248c]
call fcn.0040c770
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4224bc]
call fcn.0040c770
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00422850
test al, al
jne 0x422562
mov dl, 1
mov eax, esi
call fcn.004227b8
test al, al
je 0x4225ec
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00422fb4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00429838
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.0040a7b8
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4225e7
test byte [ebp - 0x14], 1
je 0x4225b2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4225bb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4225c4
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4225d8
dec eax
je 0x4225dd
dec eax
je 0x4225e2
dec eax
jne 0x42260d
or bl, 0x10
jmp 0x42260d
or bl, 4
jmp 0x42260d
or bl, 8
jmp 0x42260d
call fcn.0042a688
lea edx, [ebp - 0x20]
mov eax, dword [0x537444]
call fcn.0040f724
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41a9c8]
call fcn.0042811c
call fcn.00409434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422655
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409e1c
lea eax, [ebp - 0xc]
mov edx, dword [0x4224bc]
call fcn.0040c894
lea eax, [ebp - 8]
mov edx, dword [0x42248c]
call fcn.0040c894
lea eax, [ebp - 4]
call fcn.00409dbc
pop eax
jmp eax

Function at 0x4226b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4226e5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4227b8
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.0040a7b8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422822
test ah, 4
je 0x42281b
test bl, bl
jne 0x4227e0
mov al, 1
jmp 0x422849
test al, 0x10
je 0x4227e8
xor eax, eax
jmp 0x422849
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42280c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x422849
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422849
test al, 0x10
sete al
jmp 0x422849
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x422843
cmp ebx, 3
je 0x422843
cmp ebx, 0x7b
je 0x422843
mov eax, esi
call fcn.00422778
test al, al
jne 0x422847
xor eax, eax
jmp 0x422849
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422850
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.0040a7b8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4228ee
test esi, 0x400
jne 0x422885
test esi, 0x10
setne bl
jmp 0x4228ee
cmp byte [esp], 0
je 0x4228b9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4228ee
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4228ee
test esi, 0x10
je 0x4228c5
mov bl, 1
jmp 0x4228ee
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4228ec
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4228ee
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422aac
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 0x422b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a7b8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x422b36
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00420f10
test al, al
je 0x422b36
mov eax, dword [ebp - 4]
call fcn.004230c4
test al, al
je 0x422b26
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00422e74
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00429838
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040aa08
mov eax, dword [ebp - 4]
call fcn.0040a7b8
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 0x422b5a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409e1c
pop eax
jmp eax
Function at 0x422b64
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 0x422c39
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a1e4
cmp byte [ebp - 9], 0
je 0x422bf5
mov eax, ebx
call fcn.0040a7b8
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422bf5
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00420f10
test al, al
je 0x422bf5
mov eax, dword [ebp - 8]
call fcn.004230c4
test al, al
je 0x422bea
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00422e74
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00429838
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040aa08
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a1e4
push edi
mov eax, dword [ebp - 4]
call fcn.0040a7b8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x422c0f
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c40
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409e1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409e1c
pop eax
jmp eax

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

Function at 0x426c5c
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 0x426c95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409f44
jmp 0x426c9e
mov eax, ebx
mov edx, esi
call fcn.0040a19c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426ca8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426cca
movzx eax, word [esp]
jmp 0x426ccc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x427fcc
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 0x4280f3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427dd4
mov esi, eax
mov eax, dword [0x5373b8]
cmp byte [eax], 0
je 0x428099
mov eax, dword [0x5371d8]
call fcn.00407744
call fcn.00406fa0
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 [0x427f9c]
call fcn.0040c770
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 0x42810c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4280d5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x537194]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x53b634]
call fcn.0040cb60
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 0x4280fa
lea eax, [ebp - 4]
mov edx, dword [0x427f9c]
call fcn.0040c894
pop eax
jmp eax
Function at 0x429308
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42940c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a1e4
lea eax, [ebp - 4]
call fcn.0040a300
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7b8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4293f4
mov eax, ebx
call fcn.00406e2c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4293ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7b8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4293d5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429420
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4293d5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4293f4
mov eax, dword [ebp - 0x10]
call fcn.00406e48
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429413
lea eax, [ebp - 4]
call fcn.00409dbc
pop eax
jmp eax

Function at 0x42a4d0
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.0040a28c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f7cc
mov edi, eax
cmp edi, 0x104
jbe 0x42a47b
mov eax, edi
add eax, eax
call fcn.00406e2c
mov esi, eax
jmp 0x42a47d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f7cc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42a4b6
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 0x42a4a0
mov eax, esp
cmp esi, eax
je 0x42a4c3
mov eax, esi
call fcn.00406e48
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 0x42a4fc
cmp bl, 0
je 0x42a4f8
cmp bl, 0x41
jl 0x42a4f3
cmp bl, 0x5a
jg 0x42a4f3
or bl, 0x20
xor al, bl
inc esi
jmp 0x42a4d7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42a43c

Function at 0x42adf4
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.0040a858
add esp, 0x800
pop ebx
ret
Function at 0x48ab60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x48ab68
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4ca6c8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4ca70b
cmp byte [ebx + 0x11], 0
jne 0x4ca70b
cmp byte [ebx + 0x24], 0
jne 0x4ca70b
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4ca722
mov ecx, dword [0x537370]
mov dl, 1
mov eax, dword [0x49c5e8]
call fcn.00428258
call fcn.00409434
pop ebx
ret
mov ecx, dword [0x537370]
mov dl, 1
mov eax, dword [0x49c5e8]
call fcn.00428258
call fcn.00409434
pop ebx
ret

Function at 0x4caf8c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4cafda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004ca574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4caff3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4caffc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004ca574
dec esi
jne 0x4cb01e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x50b0e8
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x50b14d
mov eax, dword [esp]
call fcn.0050b3a8
test al, al
je 0x50b14d
mov eax, dword [esp]
call fcn.0050b1a8
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x50b130
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x50b14d
cmp ax, 0x5a
ja 0x50b14d
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5144b8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x53501c
test edx, edx
jne 0x5144d7
xor eax, eax
jmp 0x5145f5
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x5144f4
push esi
push edx
push eax
call fcn.00514618
add esp, 0xc
jmp 0x5145f5
push esi
push edx
push eax
call fcn.005148d8
add esp, 0xc
jmp 0x5145f5
pop esi
pop ebx
pop ecx
pop ebp
ret