joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a1e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi], 2
jne 0x42a2a2
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, eax
mov byte [esp + 0xc], al
shr eax, 0x18
mov byte [esp + 0xf], al
shr ecx, 8
lea eax, [esp + 0x10]
push eax
push 4
mov byte [esp + 0x15], cl
lea ecx, [esp + 0x14]
push ecx
push 0x20
shr edx, 0x10
push ebx
mov byte [esp + 0x22], dl
call fcn.00429100
xor edx, edx
mov dword [edi + 4], edx
mov eax, edx
lea esi, [edx - 2]
push ebp
movzx ebp, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi - 1]
and ecx, 3
add ecx, ecx
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x15]
add ecx, ecx
shl ebp, cl
mov ecx, esi
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x16]
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi + 1]
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x17]
add ecx, ecx
add ecx, ecx
shl ebp, cl
add edx, 4
add esi, 4
xor eax, ebp
cmp edx, 0x20
jb 0x42a241
mov dword [edi + 4], eax
pop ebp
cmp dword [edi], 3
jne 0x42a2c5
lea edx, [esp + 0x10]
push edx
push 0x20
add edi, 4
push edi
push 0x20
push ebx
call fcn.00429100
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x28
ret 8
Function at 0x42ed80
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4d41e6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x534c04], ebx
jne 0x42ef47
push str.WinRAR_DragDrop
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push ebx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42ee05
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b9
call fcn.00475cc0
push eax
call fcn.004ad8e0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [0x51c6dd], al
jne 0x42ee25
mov byte [esp + 0x14], bl
cmp byte [0x533b59], bl
je 0x42ee2a
mov byte [esp + 0x14], 1
push 8
call fcn.004c2bd0
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x42ee51
mov dword [eax], 0x4d9d20
mov dword [eax + 4], 1
mov edi, eax
jmp 0x42ee53
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
push 0xd600
call fcn.004c2bd0
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 1
cmp eax, ebx
je 0x42ee88
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, eax
call fcn.0042ea90
mov esi, eax
jmp 0x42ee8a
xor esi, esi
mov dword [esp + 0x2c], ebp
xor eax, eax
cmp byte [esp + 0x14], bl
lea edx, [esp + 0x20]
setne al
push edx
mov byte [0x51c6de], bl
mov byte [0x51c6df], 1
mov byte [0x51c6dc], bl
lea eax, [eax + eax + 1]
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x51c6df], bl
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
mov ebp, eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp byte [0x51c6dd], bl
je 0x42eefb
cmp byte [0x533b59], bl
je 0x42eefb
cmp ebp, 0x40100
jne 0x42eefb
call fcn.004a8510
mov ecx, 0x5404f0
call fcn.00451d40
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0x40100
je 0x42ef47
cmp byte [0x51c6dc], bl
jne 0x42ef47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x42ef47
push 0x53c
call fcn.00475cc0
push eax
call fcn.004ad8e0
add esp, 4
mov ecx, 0x51ff10
call fcn.00433f70
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42f850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, edx
jbe 0x42f8b8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x42f894
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
lea ebx, [ebx]
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
inc ecx
mov dword [ebx + eax], ebp
add eax, 4
cmp ecx, dword [esi]
jbe 0x42f880
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, dword [esi]
lea edx, [edi + ecx*4]
add eax, eax
add eax, eax
push eax
push edx
lea eax, [ebx + ecx*4]
push eax
call fcn.004c2da0
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x42f908
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x42f8e4
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
mov ebp, dword [eax + edx]
xor ebp, dword [eax]
inc ecx
mov dword [eax + ebx], ebp
add eax, 4
cmp ecx, dword [edi]
jbe 0x42f8d0
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [edi]
lea eax, [esi + ecx*4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [ebx + ecx*4]
push ecx
call fcn.004c2da0
mov edx, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], edx
pop ebx
ret 0xc
test eax, eax
jbe 0x42f922
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x42f922
dec eax
sub ecx, 4
test eax, eax
ja 0x42f913
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x42f943
sub edi, esi
lea ecx, [esi + eax*4]
sub edx, esi
mov esi, dword [ecx + edi]
xor esi, dword [ecx]
dec eax
mov dword [ecx + edx], esi
sub ecx, 4
test eax, eax
ja 0x42f933
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x42f950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x42fa7a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x42fa7a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x51c6e4]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x42f980
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004c2670
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x42fa27
mov ebp, dword [0x51c6e0]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x51c6e4]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x42fa1a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x42fa1a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x42f9f0
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x42fa12
add ecx, esi
cmp ecx, 0x7fff
jb 0x42fa0c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x42f9f0
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x42f9c0
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x42fa57
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x42fa40
cmp dword [edi], 0x11
jbe 0x42fa71
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x42fa71
dec eax
mov dword [edi], eax
test eax, eax
jne 0x42fa62
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x42fa90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x42fb75
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x51c6e4]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x42fadb
add ecx, ecx
cmp ecx, 0x7fff
jb 0x42fac8
add ecx, 0xffff8001
mov edx, dword [0x51c6e0]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x42fae3
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x42fb28
lea edx, [esi + ecx*8 - 4]
mov edi, edi
mov dword [edx + 4], ebp
mov eax, dword [edi + ecx*4]
mov eax, dword [ebx + eax*4]
cmp eax, 0x7fff
je 0x42fb1e
add eax, eax
cmp eax, 0x7fff
jb 0x42fb0e
add eax, 0xffff8001
mov ebp, dword [0x51c6e0]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x42fb20
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x42faf0
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x42fb53
lea eax, [esi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
lea esp, [esp]
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], ebp
sub eax, 4
sub edx, 1
jne 0x42fb40
cmp dword [esi], 0x11
jbe 0x42fb6e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x42fb6e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x42fb60
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], ebp
pop ebp
ret 8
Function at 0x431b90
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x12b8
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x12b4], eax
mov eax, dword [esp + 0x12bc]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4001
mov esi, ecx
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4d9468
mov dword [esi], eax
call edi
test eax, eax
jne 0x431c05
push eax
push 0x800
lea edx, [esp + 0x2c4]
push edx
call fcn.0049f1e0
push 0x4001
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x2cc]
push ecx
call edi
mov edx, dword [esi]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x12bc]
pop edi
pop esi
xor ecx, esp
call fcn.004c1c22
add esp, 0x12b8
ret 4

Function at 0x432060
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
mov esi, dword [esp + 0x2c4]
push edi
mov edi, dword [esp + 0x2cc]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push esi
call ebx
mov ecx, dword [esp + 0x10]
push 0x400b
push 0x2b4
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [edi + 0x18], ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c0]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x2b8
ret 8
Function at 0x433390
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov eax, 0x2050
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x204c], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
mov esi, ecx
mov eax, dword [esi]
push 0x110a
push eax
call edi
test eax, eax
je 0x4334bb
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x113e
push edx
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], eax
call edi
test eax, eax
je 0x4334bb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4334bb
mov edx, dword [eax + 8]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4334bb
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
push 0x800
shr ebx, 0xf
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x105c]
not bl
push ecx
and bl, 1
call fcn.0047fbe0
lea eax, [esp + 0x1054]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433445
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x1056], dx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
movzx eax, bl
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x40
lea ecx, [esp + 0x1054]
push edx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx eax, byte [esi + 8]
push eax
mov ecx, esi
call fcn.004332a0
pop ebx
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
xor ecx, esp
call fcn.004c1c22
add esp, 0x2050
ret
Function at 0x433cb0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1000], eax
push edi
mov edi, dword [esp + 0x100c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x433d4c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433ce0
push esi
sub eax, edx
sar eax, 1
push edi
mov esi, eax
call fcn.00461570
test al, al
jne 0x433d26
lea eax, [esp + 8]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433d13
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
pop esi
jbe 0x433d4c
push 0x104
push 0x564
call fcn.00475cc0
push eax
push 0x4da03c
call fcn.004adf30
add esp, 0xc
mov ecx, dword [esp + 0x1004]
pop edi
xor ecx, esp
call fcn.004c1c22
add esp, 0x1004
ret 4
Function at 0x43b590
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4d474b
mov eax, dword fs:[0]
push eax
mov eax, 0x5028
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x5024], eax
push ebx
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x5038]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5048]
push 0x800
lea eax, [esp + 0x2038]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x43b7a2
cmp eax, 0x800
jae 0x43b7a2
push 0x800
lea ecx, [esp + 0x3038]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x43b7a2
cmp eax, 0x800
jae 0x43b7a2
lea edx, [esp + 0x2034]
push edx
call fcn.00460c50
mov ebx, eax
lea eax, [esp + 0x3034]
push eax
call fcn.00460c50
mov esi, eax
cmp word [esi], 0
je 0x43b7a2
push esi
push ebx
call fcn.00487680
test eax, eax
je 0x43b7a2
push esi
push edi
call fcn.00460c50
push eax
call fcn.00487680
test eax, eax
jne 0x43b7a2
mov word [esp + 0x1034], ax
xor esi, esi
lea esp, [esp]
test ax, ax
jne 0x43b6f2
push 0x800
push edi
lea ecx, [esp + 0x103c]
push ecx
call fcn.0047fbe0
push esi
push str.rtmp_d
lea edx, [esp + 0x103c]
push edx
call fcn.00460c50
push eax
mov edx, 0x800
call fcn.00407810
add esp, 0xc
lea eax, [esp + 0x1034]
push eax
call fcn.0043d340
test al, al
je 0x43b6d6
xor eax, eax
mov word [esp + 0x1034], ax
jmp 0x43b6de
mov ax, word [esp + 0x1034]
add esi, 0x7b
cmp esi, 0x2710
jl 0x43b680
test ax, ax
je 0x43b7a2
push 0x800
push edi
lea ecx, [esp + 0x403c]
push ecx
call fcn.0047fbe0
push 0x800
push ebx
lea edx, [esp + 0x403c]
push edx
call fcn.00460e20
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x1034]
push eax
lea ecx, [esp + 0x4038]
push ecx
call esi
test eax, eax
je 0x43b7a2
lea ecx, [esp + 0x10]
call fcn.0043ba40
mov dword [esp + 0x5040], 0
push edi
xor bl, bl
call fcn.0043d340
test al, al
jne 0x43b762
push 9
push edi
lea ecx, [esp + 0x18]
call fcn.0043bc10
mov bl, al
lea edx, [esp + 0x4034]
push edx
lea eax, [esp + 0x1038]
push eax
call esi
test bl, bl
je 0x43b78a
lea ecx, [esp + 0x10]
call fcn.0043bd40
lea ecx, [esp + 0x10]
call fcn.0043bda0
mov dword [esp + 0x5040], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0043c140
mov al, 1
jmp 0x43b7a4
xor al, al
mov ecx, dword [esp + 0x5038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5024]
xor ecx, esp
call fcn.004c1c22
add esp, 0x5034
ret 4
Function at 0x43ba80
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1010
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
mov edx, dword [esp + 0x1018]
push ebx
push ebp
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
push edi
mov dword [esp + 0x18], eax
mov dword [esi + 0x1020], 0
jne 0x43bac9
test dl, 4
jne 0x43bac9
xor cl, cl
jmp 0x43bacb
mov cl, 1
mov ebx, edx
shr ebx, 1
and bl, 1
movzx ebp, bl
neg ebp
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
test dl, 1
je 0x43baf0
or ebp, 0x40000000
mov dword [esp + 0x10], 1
test cl, cl
je 0x43bb04
mov dword [esp + 0x10], 3
mov ecx, dword [esp + 0x10]
xor ebx, ebx
cmp byte [esi + 0x15], bl
push 0
setne bl
dec ebx
and ebx, 0x8000000
push ebx
push 3
push 0
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43bb8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00461ef0
test al, al
je 0x43bb7e
mov ecx, dword [esp + 0x10]
push 0
push ebx
push 3
push 0
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43bb79
mov dword [esp + 0x14], eax
cmp edi, 0xffffffff
jne 0x43bb8f
cmp dword [esp + 0x14], 2
jne 0x43bb8f
mov dword [esi + 0x1020], 1
cmp edi, 0xffffffff
setne bl
mov byte [esi + 0x12], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
test bl, bl
je 0x43bbbe
mov eax, dword [esp + 0x18]
push 0x800
mov dword [esi + 4], edi
push eax
add esi, 0x1e
push esi
call fcn.0047fbe0
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x1010
ret 8
Function at 0x43be40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x43bfe5
cmp dword [esi + 0xc], 1
jne 0x43be64
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x43be80
mov ebx, dword [esp + 0x34]
jmp 0x43be80
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x43bed4
xor edi, edi
test ebx, ebx
jbe 0x43bef9
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x43bea4
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x43bef9
add edi, 0x4000
cmp edi, ebx
jb 0x43be94
jmp 0x43bef1
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x43bfdf
cmp byte [esi + 0x14], 0
je 0x43bfdf
cmp dword [esi + 0xc], 0
jne 0x43bfdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ebx, eax
lea eax, [esi + 0x1e]
push eax
mov dword [esp + 0x24], edx
call fcn.0043ca20
push edi
mov dword [esp + 0x18], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x43bf84
ja 0x43bf4c
cmp dword [esp + 0x14], ebp
jbe 0x43bf84
mov edi, dword [esp + 0x20]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x43bf84
jl 0x43bf63
cmp edx, 0xffffffff
ja 0x43bf84
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x28], eax
js 0x43bf84
jg 0x43bf76
cmp ecx, 0xffffffff
jbe 0x43bf84
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x51ff10
call fcn.00434120
push 0
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x51ff10
call fcn.00434170
test al, al
je 0x43bfcf
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x43be70
test eax, eax
jbe 0x43be70
mov edi, dword [esi]
mov edx, dword [edi + 0xc]
push 0
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
xor ebx, ebx
sub eax, ecx
sbb edx, ebx
push edx
mov edx, dword [edi + 8]
push eax
mov ecx, esi
call edx
jmp 0x43be70
lea eax, [esi + 0x1e]
push eax
push 0
mov ecx, 0x51ff10
call fcn.004343d0
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x43c1f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 1
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0xc], ebp
jne 0x43c21c
cmp edi, 0x4e20
jbe 0x43c211
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c2be
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x43c270
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x43c254
cmp eax, 3
jne 0x43c270
cmp edi, 0x4e20
jbe 0x43c270
push 0x4e20
push ebx
mov ecx, esi
call fcn.0043c1f0
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp dword [esi + 0xc], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x43c28b
call ebp
cmp eax, 0x6d
jne 0x43c28b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 0xc], 0
jne 0x43c2b4
cmp edi, 0x8000
jbe 0x43c2b4
call ebp
cmp eax, 0x21
jne 0x43c2b4
push 0x8000
push ebx
mov ecx, esi
call fcn.0043c1f0
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x43c990
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push 0x800
lea ecx, [esp + 4]
push ecx
push eax
call fcn.004615c0
movzx edx, word [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x43c9f6
cmp eax, 5
je 0x43c9f6
xor eax, eax
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004c1c22
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
mov eax, 1
call fcn.004c1c22
add esp, 0x1004
ret 4

Function at 0x43ca20
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
push esi
push 0x800
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00460ef0
lea edx, [esp + 0xc]
push edx
movzx edx, word [esp + 0x20]
xor esi, esi
lea eax, [esp + 0x18]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x24]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43cab7
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
ja 0x43cab7
push 1
push esi
push esi
push eax
call fcn.004c2390
mov ecx, dword [esp + 4]
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.004c1c22
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x101c]
pop esi
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.004c1c22
add esp, 0x101c
ret 4