joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bfcd
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 2
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jle 0x43bff4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040e1aa
add esp, 0xc
test al, al
je 0x43bff4
mov eax, dword [ebp + 0x10]
jmp 0x43c013
mov ax, word [esi]
cmp ax, word [edi]
jne 0x43c011
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x43c011
cmp ax, 0x3a
jne 0x43c011
push 2
pop eax
jmp 0x43c013
xor eax, eax
push 0
lea eax, [esi + eax*2]
push eax
push edi
call fcn.0043bf14
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop edi
pop esi
pop ebp
ret

Function at 0x43c06f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push 0x12
push edi
call ebx
push 0x12
push 0x4acea4
push edi
call fcn.004128b6
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x43c0d3
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43c0d3
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43c700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov dword [ebp + 0x10], 0x80
mov edi, ebx
test ebx, ebx
ja 0x43c729
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret
and dword [ebp + 0x14], 0
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43c760
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x43c757
cmp dword [ebp + 0x10], eax
jg 0x43c754
mov eax, edi
jmp 0x43c757
dec dword [ebp + 0x10]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub ebx, eax
jmp 0x43c718
and dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x43c71c
mov eax, dword [ebp + 0x18]
cmp edi, eax
jbe 0x43c71c
cmp ebx, eax
jbe 0x43c716
lea edi, [edi + eax - 1]
shr edi, 1
cmp edi, eax
jbe 0x43c718
and edi, 0xfffffe00
jmp 0x43c718
Function at 0x43c7fb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4c1348], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.DLL_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x43c828
or dword [0x4c1348], 2
test byte [ebp - 0xf0], 0x80
je 0x43c838
or dword [0x4c1348], 4
test byte [ebp - 0xee], 0x80
je 0x43c848
or dword [0x4c1348], 1
test byte [ebp - 0xa5], 0x80
je 0x43c858
or dword [0x4c1348], 8
test byte [ebp - 0xa4], 0x80
je 0x43c868
or dword [0x4c1348], 8
leave
ret
Function at 0x43d3d9
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x43d411
cmp dword [ebp + 0xc], 2
jb 0x43d426
cmp dword [ebp + 0xc], 3
jbe 0x43d40a
cmp dword [ebp + 0xc], 5
jne 0x43d426
mov dword [ebp - 4], 0x4a7ce0
jmp 0x43d411
mov dword [ebp - 4], 0x4a7cf0
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4c0e64]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43d42d
xor eax, eax
jmp 0x43d572
push ebx
push edi
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.SETUPAPI.DLL_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x43d54e
mov ebx, dword [sym.imp.SETUPAPI.DLL_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 8], esi
je 0x43d533
cmp dword [ebp - 8], 0x400
ja 0x43d533
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.00492e00
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x43d533
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x43d533
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x43d52a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43d55b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x43d46d
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x43d570
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43d6a8
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.0043d658
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x43d6c9
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
je 0x43d6eb
xor eax, eax
jmp 0x43d7c7
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
push ebx
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
push 0x4ae19c
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.DLL_CreateDCA]
mov ebx, dword [sym.imp.GDI32.DLL_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x43d72d
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x43d735
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x14]
jle 0x43d73d
mov edi, dword [ebp - 0x14]
cmp esi, eax
jle 0x43d743
mov esi, eax
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
cmp edi, ecx
mov ebx, dword [sym.imp.GDI32.DLL_DeleteDC]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
jle 0x43d7be
cmp esi, ecx
jle 0x43d7be
push dword [ebp - 4]
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
push esi
push dword [ebp - 0x14]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.DLL_SelectObject]
push eax
push edi
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x43d793
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x43d7be
push 0xcc0020
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
push 0
push edi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [ebp - 0x1c]
push edi
call esi
push edi
mov dword [ebp - 0x10], eax
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43e52f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x43e5ed
cmp word [esi + 2], 0x3a
jne 0x43e5ed
cmp word [esi + 4], 0
jne 0x43e5ed
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x43e56f
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x43e5c6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x43e5c6
cmp dword [ebp + 0xc], edi
jae 0x43e5ab
mov eax, edi
jmp 0x43e5fd
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.004128b6
add esp, 0xc
lea eax, [edi - 1]
jmp 0x43e5fd
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x43e5fd
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x43e5fd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
pop edi
pop esi
leave
ret
Function at 0x43faff
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x43fb53
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x43fb31
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x43fb53
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x43fb4e
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x43fb9d
cmp edx, esi
je 0x43fb9d
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x43fba0
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402b5a
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x44113c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.004051d2
cmp dword [ebp - 8], ebx
je 0x441181
push dword [ebp - 8]
call fcn.004875b9
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x441185
jl 0x441181
cmp esi, ebx
jae 0x441185
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0043dc57
cmp edi, ebx
jl 0x4411cf
jg 0x441197
cmp esi, ebx
jbe 0x4411cf
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0043dc99
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x4411c9
jg 0x4411c7
cmp ecx, esi
jbe 0x4411c9
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.0043de39
lea ecx, [ebp - 4]
call fcn.00437e1a
lea ecx, [ebp - 8]
call fcn.00402b5a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441579
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
and eax, 1
mov dword [ebp - 4], eax
call fcn.004875b9
mov ebx, eax
test ebx, ebx
pop ecx
jg 0x44159f
xor eax, eax
jmp 0x441729
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.0043ddc3
mov esi, dword [edi]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x441725
test eax, eax
je 0x441725
push 0xa
lea eax, [ebx + esi]
push 0
push eax
call fcn.00492e00
lea eax, [ebx + 0xa]
add esp, 0xc
mov dword [ebp + 0x10], eax
push 2
push 0x4ac84c
push esi
call fcn.00437f1d
add esp, 0xc
test eax, eax
jne 0x44160c
push ebx
push esi
call fcn.0043c1c0
pop ecx
pop ecx
push 2
push 0x4ac848
push esi
call fcn.00437f1d
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x44164a
cmp byte [esi + 1], 0
jne 0x44164a
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.0041286c
add dword [ebp + 0x10], 2
add esp, 0xc
inc ebx
xor eax, eax
inc ebx
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x441677
cmp byte [esi], al
jne 0x441680
cmp byte [esi + 1], al
je 0x441680
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.0041286c
add esp, 0xc
inc ebx
inc ebx
add dword [ebp + 0x10], 2
mov word [esi], 0xfffe
jmp 0x4415ef
mov eax, ebx
shr eax, 1
jmp 0x441727
mov eax, dword [edi]
and dword [edi], 0
push ebx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.0043ddc3
mov eax, dword [edi]
mov cx, word [0x4ac848]
push 3
mov word [eax], cx
pop eax
push eax
push 0x4ac850
push esi
mov dword [ebp + 0x10], eax
call fcn.0043e050
add esp, 0xc
test eax, eax
jne 0x4416bc
cmp dword [ebp - 4], eax
je 0x4416eb
jmp 0x4416bf
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 1]
push ecx
mov ecx, dword [edi]
inc ecx
inc ecx
push ecx
mov ecx, ebx
sub ecx, eax
push ecx
add eax, esi
push eax
push 8
push 0xfde9
call dword [0x4c0b9c]
cmp dword [ebp - 4], 0
je 0x44171e
test eax, eax
jg 0x441722
or dword [ebp - 4], 2
lea eax, [ebx + 1]
push eax
mov eax, dword [edi]
inc eax
inc eax
push eax
push ebx
push esi
push 8
push 0
call dword [0x4c0b9c]
and dword [ebp + 0x10], 0
test eax, eax
jg 0x441722
cmp dword [ebp - 4], 0
je 0x4416bc
xor eax, eax
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00437e1a
mov eax, esi
jmp 0x441727
test eax, eax
jle 0x44170e
inc eax
jmp 0x441710
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441a32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004051d2
cmp dword [ebp - 4], ebx
je 0x441a86
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0043afdf
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402b5a
mov al, bl
pop ebx
leave
ret

Function at 0x441d07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x4c0bc8]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, ebx
jne 0x441db2
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0x1000
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0043dc99
mov eax, dword [edi]
mov byte [eax], bl
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push dword [ebp - 4]
call ebx
cmp eax, 0xea
mov dword [ebp - 8], eax
jne 0x441d9d
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 6
push eax
mov ecx, edi
call fcn.0043dc99
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call ebx
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 8], 0
je 0x441dc0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x441dbb
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x441df1
xor ecx, ecx
cmp dword [esi], ecx
jge 0x441dc8
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esi]
mov edx, dword [edi]
inc eax
shr eax, 1
lea eax, [edx + eax*2]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.0043dc99
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442015
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004051d2
cmp dword [ebp - 4], esi
jne 0x442049
or esi, 0xffffffff
jmp 0x442084
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x442044
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x442081
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402b5a
mov eax, esi
pop esi
leave
ret
Function at 0x442588
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
xor edx, edx
cmp ecx, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
ja 0x4425b5
cmp dword [ebp + 0x18], edx
jbe 0x4425be
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
cmp eax, edx
jne 0x4425c8
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, edx
mov esi, dword [ebp + 8]
jg 0x4425e2
push 0x200
push dword [esi]
call fcn.0043b675
pop ecx
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
mov ebx, eax
inc ebx
inc ebx
lea eax, [ebx + 2]
imul eax, edi
push eax
push 0
push dword [ebp + 0xc]
call fcn.00492e00
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.0043908b
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x44265d
jb 0x44263b
cmp dword [ebp + 0x18], ecx
ja 0x44265d
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x442653
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x442640
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.00492f10
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.0043908b
mov eax, dword [ebp + 0xc]
add esp, 0x10
add eax, edi
inc ebx
imul ebx, edi
push 0
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push eax
push dword [esi]
mov dword [ebp + 0x10], eax
call ebx
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2 + 0x10000]
mov dword [ebp + 0xc], eax
je 0x442713
push edi
push 0
push eax
call fcn.00492e00
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x4426e1
jb 0x4426d3
cmp dword [eax], 2
jae 0x4426e1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov ecx, dword [ecx + 0x24]
mov dword [eax + 4], ecx
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00492f10
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.0043908b
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442e5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x442e76
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x442e95
mov al, byte [esi + 1]
test al, al
jne 0x442e8d
xor eax, eax
jmp 0x442f17
inc dword [ebp - 4]
inc esi
mov byte [ebp + 0xb], al
inc esi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
call edi
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.0043dc99
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x442edd
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x442f1a
test cl, cl
jle 0x442ed4
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x442ec2
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x442f10
cmp esi, ecx
jle 0x442f10
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x4ace8c]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x442ef2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x442f23
xor dl, dl
jmp 0x442f49
cmp dl, 0x2f
jne 0x442f2d
add dl, 0xd2
jmp 0x442f49
cmp dl, 0x39
ja 0x442f37
add dl, 0xd2
jmp 0x442f49
cmp dl, 0x5a
ja 0x442f41
add dl, 0xcb
jmp 0x442f49
cmp dl, 0x7a
ja 0x442f4e
add dl, 0xc5
movzx edx, dl
jmp 0x442f51
or edx, 0xffffffff
test edx, edx
jl 0x442f80
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x442f75
test cl, cl
jle 0x442ed4
cmp byte [esi], 0
jne 0x442ed4
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x442f5f
xor eax, eax
jmp 0x442f15