joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e0ac
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x44749c
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41e0cf
mov esi, edi
jmp 0x41e1ee
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x41e1ee
mov edx, 0x41e1f4
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e0fd
mov eax, edi
xor edx, edx
call fcn.0041fe3c
mov esi, edi
jmp 0x41e1ee
mov edx, 0x41e1fc
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e127
push 0xa
push edi
mov eax, dword [0x432d14]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41e1ee
mov edx, 0x41e214
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e14b
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41e1ee
mov edx, 0x41e230
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e167
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41e1ee
mov edx, 0x41e248
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e194
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041a0e8
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41e1ee
mov edx, 0x41e254
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e1c1
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041a664
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41e1ee
mov edx, 0x41e260
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x41e1ee
call fcn.00403d40
mov eax, 0x7fff
call fcn.00403d68
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x41f8f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x41f94e
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41f931
mov eax, dword [0x432d3c]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41f953
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41f94e
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41f953
cmp dword [edi], 0xffffffff
jne 0x41f918
cmp dword [edi], 0xffffffff
je 0x41f998
mov eax, dword [0x4326d8]
inc eax
push eax
mov eax, 0x44b734
mov ecx, 1
mov edx, dword [0x41f8ac]
call fcn.004076f4
add esp, 4
cmp dword [0x44b734], 0
je 0x41f996
mov eax, dword [0x44b734]
mov edx, dword [0x4326d8]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x4326d8]
mov bl, 1
test bl, bl
jne 0x41f9a9
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x432d3c]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fb24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x41fbab
push 0
push 0
push 0x2000
mov eax, dword [0x432ab8]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x432ca8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x432ab8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41fb9d
cmp ebx, dword [edi]
je 0x41fba3
mov byte [ebp - 1], 0
jmp 0x41fc00
cmp esi, 0x4000
ja 0x41fb4c
test esi, esi
je 0x41fbf7
push 0
push 0
push 0x2000
mov eax, dword [0x432ab8]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x432ca8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x432ab8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41fbf1
cmp esi, dword [edi]
je 0x41fbf7
mov byte [ebp - 1], 0
jmp 0x41fc00
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41fe3c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41fe59
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41fed0
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41fe72
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.0041e0ac
test eax, eax
jne 0x41fec5
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41fea3
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x41fed0
mov edx, eax
mov eax, esi
call fcn.004179e4
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x42067c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff994
mov edi, eax
mov eax, edi
call fcn.00427758
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x25c]
push eax
push 0x208
push ebx
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x4207be
lea ebx, [esp + 0x258]
mov edx, 0x4207d0
mov ecx, 4
mov eax, ebx
call fcn.0041340c
test eax, eax
jne 0x420744
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.00413500
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x420725
cmp edi, dword [esp + 4]
jae 0x420725
mov eax, dword [esp + 4]
movzx ebx, word [eax]
mov eax, dword [esp + 4]
mov word [eax], 0
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov eax, dword [esp + 4]
mov word [eax], bx
cmp esi, 0xffffffff
je 0x42071e
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x4207c4
xor eax, eax
jmp 0x4207c4
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42073d
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x4207c4
xor eax, eax
jmp 0x4207c4
cmp dword [esp + 4], 0
je 0x420755
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x420768
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x4207be
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041f9b4
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041fa38
test esi, esi
jne 0x4207be
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x4207ae
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x4207be
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x4207be
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x4207be
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x4207be
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x423228
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4233d6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x423310
xor esi, esi
push 0x20a
lea eax, [ebp - 0x212]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x423286
cmp ebx, 0x103
jne 0x4233ba
xor ebx, ebx
jmp 0x4233ba
cmp word [ebp - 0x212], 0x2e
jne 0x4232f4
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x212]
push eax
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x4233ba
lea eax, [ebp - 0x212]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x4233e8
mov ecx, 1
call fcn.004209c0
mov eax, dword [0x432c60]
cmp dword [eax], 0
je 0x42330a
mov dword [ebp - 4], 1
jmp 0x4233bd
inc esi
jmp 0x42325a
xor edx, edx
mov eax, esi
call fcn.004275f0
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041798c
test eax, eax
je 0x42332f
mov word [eax], 0
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x423385
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x4233e8
mov ecx, 1
call fcn.004209c0
jmp 0x4233ba
push 0
lea edx, [ebp - 0x430]
mov eax, dword [0x432c78]
call fcn.00408e50
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], esi
mov byte [ebp - 0x434], 0xa
lea ecx, [ebp - 0x438]
mov edx, 1
call fcn.00426e00
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4233dd
lea eax, [ebp - 0x430]
call fcn.00406414
ret
Function at 0x4233f8
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4234e8
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x423427
cmp word [ebx], 0
jne 0x423460
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x4234c8
push 0
lea edx, [ebp - 4]
mov eax, dword [0x432c78]
call fcn.00408e50
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.00426e00
jmp 0x4234c8
test ebx, ebx
je 0x42346d
mov eax, ebx
call fcn.0040685c
jmp 0x42346f
xor eax, eax
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x4234a2
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xa
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0xa
lea edx, [ebp - 0x1c]
mov eax, 0x4234f8
mov ecx, 1
call fcn.004209c0
jmp 0x4234c8
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x432b48]
call fcn.00408e50
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.00426e00
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4234ef
lea eax, [ebp - 0x20]
call fcn.00406414
lea eax, [ebp - 4]
call fcn.00406414
ret
Function at 0x4240ac
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
add esp, 0xfffffec8
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
test ebx, ebx
je 0x424147
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.0041308c
cmp word [esp + 4], 0x5a4d
jne 0x424141
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.004130bc
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.0041308c
cmp dword [esp], 0x4550
jne 0x424141
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.0041308c
cmp word [esp + 0x54], 0
jbe 0x424141
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.0041308c
movzx esi, word [esp + 0x9c]
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
add esp, 0x138
pop esi
pop ebx
ret

Function at 0x426c68
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x426d79
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov word [ebp - 0xc], 0x3d
movzx eax, word [ebp - 4]
dec eax
add ax, 0x41
mov word [ebp - 0xa], ax
mov word [ebp - 8], 0x3a
mov word [ebp - 6], 0
xor ebx, ebx
lea eax, [ebp - 0xc]
call fcn.0041e0ac
mov esi, eax
test esi, esi
je 0x426cca
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x426d54
test esi, esi
je 0x426cdf
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [ebp - 0xa]
mov word [ebp - 0x216], ax
movzx eax, word [ebp - 8]
mov word [ebp - 0x214], ax
mov word [ebp - 0x212], 0x5c
mov word [ebp - 0x210], 0
lea edx, [ebp - 0x216]
lea eax, [ebp - 0xc]
call fcn.0041e334
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x426d4a
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
mov eax, dword [0x432aa8]
call fcn.00408e50
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.00426e00
test esi, esi
je 0x426d54
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x432e10]
xor edx, edx
call fcn.0041fe3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d80
lea eax, [ebp - 0x21c]
call fcn.00406414
ret
Function at 0x426fe8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov esi, edx
mov dword [esp], eax
mov dword [esp + 0x1c], 0xffffffff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov eax, 3
and eax, esi
cmp eax, 2
ja 0x42702c
mov edx, 1
and edx, esi
mov ecx, 8
and ecx, esi
and edx, ecx
je 0x427034
or eax, 0xffffffff
jmp 0x427209
test eax, eax
je 0x42705d
mov edi, 0x40000000
mov edx, 0x427214
mov eax, dword [esp]
call fcn.004133ac
test eax, eax
je 0x427056
mov dword [esp + 4], 1
mov ebp, 2
jmp 0x427067
mov edi, 0x80000000
mov ebp, 3
cmp esi, 0x10a
jne 0x4270e8
push 0
push 0x80
push 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x80000000
or eax, edi
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x427131
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x427131
call sub.kernel32.dll_GetLastError_2
mov dword [0x4329a0], eax
cmp dword [0x4329a0], 0x6e
jne 0x4270e0
mov dword [0x4329a0], 2
or eax, 0xffffffff
jmp 0x427209
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x427131
call sub.kernel32.dll_GetLastError_2
mov dword [0x4329a0], eax
cmp dword [0x4329a0], 0x6e
jne 0x427129
mov dword [0x4329a0], 2
or eax, 0xffffffff
jmp 0x427209
push 8
push ebx
call sub.msvcrt.dll__open_osfhandle
add esp, 8
mov edi, eax
test esi, 8
je 0x427200
mov eax, edi
call fcn.0041fd1c
test eax, eax
jne 0x427200
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x427200
mov word [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov ebp, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x4329a0], eax
cmp ebp, 0xffffffff
jne 0x4271b2
cmp dword [0x4329a0], 0
je 0x4271b2
cmp edi, 0xffffffff
je 0x4271ad
push edi
call sub.msvcrt.dll__close
pop ecx
or eax, 0xffffffff
jmp 0x427209
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov ebp, eax
test ebp, ebp
jne 0x4271e1
xor eax, eax
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
cmp word [esp + 8], 0x1a
jne 0x427200
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, edi
call fcn.0042732c
mov eax, edi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x427654
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x427680
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x427688
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x4276bb
mov al, 1
jmp 0x427700
cmp eax, 2
je 0x4276fe
cmp eax, 5
je 0x4276fe
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x4276fe
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x4276fe
mov al, 1
jmp 0x427700
xor eax, eax
add esp, 0x224
ret

Function at 0x427c8c
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x427d74
mov eax, dword [0x432b30]
cmp dword [eax], 0
jne 0x427d74
mov eax, dword [0x432a2c]
cmp byte [eax], 0
jne 0x427d74
mov eax, 0x20c
call fcn.00403980
mov dword [esp], eax
cmp dword [esp], 0
je 0x427d74
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x427d74
test ebx, ebx
je 0x427cf2
mov eax, ebx
call fcn.0040685c
jmp 0x427cf4
xor eax, eax
add eax, esi
add eax, dword [0x44b964]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.004039b4
cmp dword [esp], 0
je 0x427d74
mov eax, dword [0x432bdc]
cmp byte [eax], 0
je 0x427d2d
mov eax, dword [0x44b964]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.004179e4
jmp 0x427d63
mov edx, 0x427d78
mov eax, dword [esp]
call fcn.004179f8
cmp dword [esp], 0
je 0x427d4a
mov eax, dword [esp]
call fcn.0040685c
jmp 0x427d4c
xor eax, eax
mov dword [0x44b964], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004179f8
mov eax, dword [0x432bdc]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.0040399c
pop edx
pop esi
pop ebx
ret
Function at 0x428194
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.00428174
inc eax
jne 0x4282ef
mov eax, edi
call fcn.0040685c
mov dword [esp], eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
call fcn.004074d8
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [0x432b40]
mov ecx, 1
mov edx, dword [0x4177a0]
call fcn.004076f4
add esp, 4
mov eax, dword [esp]
lea eax, [eax + eax*2]
call fcn.00403980
lea esi, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + esi*8], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, edi
call fcn.004132e4
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov dword [eax + esi*8 + 4], ebp
push ebp
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + esi*8 + 8], eax
push 2
push 0
push 0
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403980
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x10]
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
dec eax
test eax, eax
jl 0x4282de
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x4282d7
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42845c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
or ebx, 0xffffffff
mov eax, dword [0x432b40]
mov eax, dword [eax]
call fcn.004074e0
test eax, eax
jl 0x42849c
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
mov edi, dword [0x432b40]
mov edi, dword [edi]
cmp esi, dword [edi + ecx*8 + 4]
jne 0x428498
mov ebx, edx
jmp 0x42849c
inc edx
dec eax
jne 0x428483
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 0xc]
mov ecx, dword [0x432b40]
mov ecx, dword [ecx]
sub edx, dword [ecx + eax*8 + 0x14]
cmp edx, dword [ebp - 8]
jae 0x4284c3
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
jmp 0x4284cb
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x10]
lea edx, [ebx + ebx*2]
mov ecx, dword [0x432b40]
mov ecx, dword [ecx]
add eax, dword [ecx + edx*8 + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x428508
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x428501
lea eax, [ebx + ebx*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
add dword [edx + eax*8 + 0x14], ecx
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4