joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426fd0
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4c24b6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d88f0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x51a024], ebx
jne 0x427197
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 0x427055
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b9
call fcn.00465ff0
push eax
call fcn.00498f80
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 [0x5030ad], al
jne 0x427075
mov byte [esp + 0x14], bl
cmp byte [0x519779], bl
je 0x42707a
mov byte [esp + 0x14], 1
push 8
call fcn.004b0160
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x4270a1
mov dword [eax], 0x4c69f8
mov dword [eax + 4], 1
mov edi, eax
jmp 0x4270a3
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
push 0x73f0
call fcn.004b0160
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 1
cmp eax, ebx
je 0x4270d8
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, eax
call fcn.004268c0
mov esi, eax
jmp 0x4270da
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 [0x5030ae], bl
mov byte [0x5030af], 1
mov byte [0x5030ac], bl
lea eax, [eax + eax + 1]
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x5030af], 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 [0x5030ad], bl
je 0x42714b
cmp byte [0x519779], bl
je 0x42714b
cmp ebp, 0x40100
jne 0x42714b
call fcn.00493da0
mov ecx, 0x5200a8
call fcn.00449f60
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 0x427197
cmp byte [0x5030ac], bl
jne 0x427197
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x427197
push 0x53c
call fcn.00465ff0
push eax
call fcn.00498f80
add esp, 4
mov ecx, 0x5062f4
call fcn.0042c340
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 0x427c80
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 0x427ce8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x427cc4
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 0x427cb0
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.004afc30
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x427d38
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x427d14
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 0x427d00
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.004afc30
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 0x427d52
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x427d52
dec eax
sub ecx, 4
test eax, eax
ja 0x427d43
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x427d73
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 0x427d63
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x427d80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x427eaa
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x427eaa
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x5030b4]
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 0x427db0
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004afbb0
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x427e57
mov ebp, dword [0x5030b0]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x5030b4]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x427e4a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x427e4a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x427e20
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x427e42
add ecx, esi
cmp ecx, 0x7fff
jb 0x427e3c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x427e20
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x427df0
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 0x427e87
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 0x427e70
cmp dword [edi], 0x11
jbe 0x427ea1
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x427ea1
dec eax
mov dword [edi], eax
test eax, eax
jne 0x427e92
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 0x427ec0
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 0x427fa5
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x5030b4]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x427f0b
add ecx, ecx
cmp ecx, 0x7fff
jb 0x427ef8
add ecx, 0xffff8001
mov edx, dword [0x5030b0]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x427f13
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x427f58
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 0x427f4e
add eax, eax
cmp eax, 0x7fff
jb 0x427f3e
add eax, 0xffff8001
mov ebp, dword [0x5030b0]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x427f50
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x427f20
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x427f83
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 0x427f70
cmp dword [esi], 0x11
jbe 0x427f9e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x427f9e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x427f90
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 0x42a050
Capabilities:
Get file system object information

Disassembly:
sub esp, 0xab8
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0xab4], eax
mov eax, dword [esp + 0xabc]
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 0x4c679c
mov dword [esi], eax
call edi
test eax, eax
jne 0x42a0c0
push 0x400
lea edx, [esp + 0x2c0]
push edx
call fcn.0048a680
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 + 0xabc]
pop edi
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0xab8
ret 4

Function at 0x42a520
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x4d88f0]
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.004af72c
add esp, 0x2b8
ret 8
Function at 0x42b840
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov eax, 0x1050
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x104c], 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 0x42b965
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 0x42b965
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42b965
mov edx, dword [eax + 8]
lea ecx, [esp + 0x854]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42b965
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
push 0x400
shr ebx, 0xf
lea eax, [esp + 0x85c]
push eax
lea ecx, [esp + 0x5c]
not bl
push ecx
and bl, 1
call fcn.0046f3f0
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b8f5
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x56], 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 + 0x54]
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.0042b760
pop ebx
mov ecx, dword [esp + 0x1054]
pop edi
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x1050
ret
Function at 0x42c190
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x42c258
push 0x400
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.004555f0
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c1e0
sub eax, edx
lea ecx, [esp + 8]
sar eax, 1
push ecx
mov esi, eax
call fcn.00456a50
test al, al
jne 0x42c233
lea edx, [esp + 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x808]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c220
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x42c258
push 0x104
push 0x564
call fcn.00465ff0
push eax
push 0x4c6d2c
call fcn.00499570
add esp, 0xc
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x1004
ret 8
Function at 0x433430
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4c286b
mov eax, dword fs:[0]
push eax
mov eax, 0x30cc
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x30c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4d88f0]
xor eax, esp
push eax
lea eax, [esp + 0x30dc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30ec]
lea ecx, [esp + 0x184c]
call fcn.004128b0
lea ecx, [esp + 0x1870]
call fcn.004128b0
lea ecx, [esp + 0x1894]
call fcn.004128b0
push 0
lea eax, [esp + 0xc3c]
push eax
push edi
push 0
call fcn.0043a670
test al, al
je 0x433652
cmp word [esp + 0x18b8], 0
je 0x433652
lea ecx, [esp + 0x18b8]
push ecx
lea edx, [esp + 0x103c]
push edx
call fcn.00455740
push eax
call fcn.00476b80
test eax, eax
je 0x433652
lea eax, [esp + 0x18b8]
push eax
push edi
call fcn.00455740
push eax
call fcn.00476b80
test eax, eax
jne 0x433652
mov word [esp + 0x20d8], ax
xor esi, esi
jmp 0x433510
test ax, ax
jne 0x433584
push 0x400
push edi
lea ecx, [esp + 0x20e0]
push ecx
call fcn.0046f3f0
push esi
push str.rtmp_d
lea edx, [esp + 0x20e0]
push edx
call fcn.00455740
push eax
mov edx, 0x400
call fcn.00407140
add esp, 0xc
lea eax, [esp + 0x20d8]
push eax
push 0
call fcn.00434ec0
test al, al
je 0x433568
xor eax, eax
mov word [esp + 0x20d8], ax
jmp 0x433570
mov ax, word [esp + 0x20d8]
add esi, 0x7b
cmp esi, 0x2710
jl 0x433510
test ax, ax
je 0x433652
push 0x400
push edi
lea ecx, [esp + 0x28e0]
push ecx
call fcn.0046f3f0
lea edx, [esp + 0x1038]
push edx
call fcn.00455740
mov esi, eax
lea eax, [esp + 0x28d8]
push eax
call fcn.00455740
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x4335b3
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x20d8]
push ecx
lea edx, [esp + 0x28dc]
push edx
call esi
test eax, eax
je 0x433652
lea ecx, [esp + 0x10]
call fcn.004339e0
mov dword [esp + 0x30e4], 0
push edi
push 0
xor bl, bl
call fcn.00434ec0
test al, al
jne 0x433612
push 9
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.00433fe0
mov bl, al
lea eax, [esp + 0x28d8]
push eax
lea ecx, [esp + 0x20dc]
push ecx
call esi
test bl, bl
je 0x43363a
lea ecx, [esp + 0x10]
call fcn.00433a60
lea ecx, [esp + 0x10]
call fcn.00433b10
mov dword [esp + 0x30e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00433df0
mov al, 1
jmp 0x433654
xor al, al
mov ecx, dword [esp + 0x30dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30c8]
xor ecx, esp
call fcn.004af72c
add esp, 0x30d8
ret 4
Function at 0x433e20
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xc20], 0
jne 0x433e43
test cl, 4
jne 0x433e43
xor al, al
jmp 0x433e45
mov al, 1
mov edx, ecx
shr edx, 1
and dl, 1
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test cl, 1
je 0x433e6a
or esi, 0x40000000
mov ebx, 1
test al, al
je 0x433e78
mov ebx, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov ebp, eax
call fcn.00444190
test eax, eax
je 0x433eb5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x433eb5
cmp word [eax], 0
je 0x433eb5
push 0
push ebp
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x433ec9
push 0
push ebp
mov ebp, dword [esp + 0x1c]
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x433ee5
mov dword [edi + 0xc20], 1
cmp esi, 0xffffffff
setne bl
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
test bl, bl
je 0x433f96
mov dword [edi + 4], esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x433f38
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433f12
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x41e]
push esi
push edx
call fcn.004b0420
add esp, 0xc
jmp 0x433f41
xor eax, eax
mov word [edi + 0x41e], ax
test ebp, ebp
je 0x433f7c
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433f50
sub eax, edx
inc eax
push eax
lea ecx, [edi + 0x1d]
push ebp
push ecx
call fcn.004b0420
mov eax, dword [edi + 4]
add esp, 0xc
push eax
mov ecx, edi
call fcn.00433a30
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
push 0x1000000
lea edx, [edi + 0x1d]
push edx
push esi
call fcn.00476820
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00433a30
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc

Function at 0x434160
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x434187
cmp edi, 0x4e20
jbe 0x43417c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4341f8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4341d6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x4341bb
cmp eax, 3
jne 0x4341d6
cmp edi, 0x4e20
jbe 0x4341d6
push 0x4e20
push ebx
mov ecx, esi
call fcn.00434160
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x4341ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4341ef
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x434520
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 0x43473e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x43455e
sub eax, 1
je 0x434553
sub eax, 1
jne 0x43455e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x434580
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x434580
mov ebx, dword [esp + 0x34]
jmp 0x434580
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x4345d4
xor edi, edi
test ebx, ebx
jbe 0x4345f9
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x4345a4
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 0x4345f9
add edi, 0x4000
cmp edi, ebx
jb 0x434594
jmp 0x4345f1
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 0x434738
cmp byte [esi + 0x14], 0
je 0x434738
cmp dword [esi + 0xc], 0
jne 0x434738
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00433c30
mov ebx, eax
lea eax, [esi + 0x1d]
push eax
mov dword [esp + 0x2c], edx
call fcn.00434c60
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x434689
ja 0x43464a
cmp dword [esp + 0x1c], ebp
jbe 0x434689
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x434689
jl 0x434661
cmp edx, 0xffffffff
ja 0x434689
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x434689
jg 0x434674
cmp ecx, 0xffffffff
jbe 0x434689
lea edx, [esi + 0x41e]
push edx
lea eax, [esi + 0x1d]
push eax
mov ecx, 0x5062f4
call fcn.0042c5b0
push 0
lea ebx, [esi + 0x41e]
push ebx
lea edi, [esi + 0x1d]
push edi
mov ecx, 0x5062f4
call fcn.0042c630
test al, al
je 0x43471f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x434570
test eax, eax
jbe 0x434570
mov ecx, esi
call fcn.00433c30
mov ecx, dword [esp + 0x10]
xor ebp, ebp
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebp
cmp ecx, 0xffffffff
je 0x434570
mov ebp, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebp, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x434570
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434570
cmp byte [esi + 0x14], 0
je 0x434570
push ebx
push edi
mov ecx, 0x5062f4
call fcn.0042c710
jmp 0x434570
lea eax, [esi + 0x41e]
push eax
lea ecx, [esi + 0x1d]
push ecx
push 0
push 0
mov ecx, 0x5062f4
call fcn.0042cae0
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x434b60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00455550
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x434bbc
cmp eax, 5
je 0x434bbc
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004af72c
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.004af72c
add esp, 0x404
ret 4

Function at 0x434be0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x804
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
lea ecx, [esp]
push ecx
push eax
call fcn.00456b30
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 0x434c3c
cmp eax, 5
je 0x434c3c
xor eax, eax
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004af72c
add esp, 0x804
ret 4
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.004af72c
add esp, 0x804
ret 4

Function at 0x434c60
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00455550
cmp dword [0x503cd4], 0
jne 0x434cbd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x434cb0
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x503cd4], eax
cmp dword [0x503cd4], 0
je 0x434d3e
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00455c40
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x503cd4]
test eax, eax
je 0x434d3e
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x434d3e
push 1
push 0
push 0
push eax
call fcn.004b01d0
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004af72c
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x434d8b
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004af72c
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.004af72c
add esp, 0x42c
ret 4