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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413540
sub eax, edx
push eax
push edi
push 0xffffffffffffffff
call fcn.00413350
mov word [esi + 0x214], ax
shr eax, 0x10
xor ecx, ecx
mov word [esi + 0x216], ax
xor eax, eax
mov word [esi + 0x21a], ax
mov word [esi + 0x218], cx
mov byte [esi + 0x21e], cl
mov byte [esi + 0x21d], cl
mov byte [esi + 0x21c], cl
mov al, byte [edi]
test al, al
je 0x4135e6
lea ecx, [ecx]
add byte [esi + 0x21c], al
xor byte [esi + 0x21d], al
mov dl, byte [esi + 0x21e]
add dl, al
rol dl, 1
movzx ecx, al
mov byte [esi + 0x21e], dl
mov dx, word [ecx*4 + 0x45d318]
xor dx, word [esi + 0x218]
movzx ax, al
xor dx, ax
mov word [esi + 0x218], dx
mov cx, word [ecx*4 + 0x45d31a]
add cx, ax
add word [esi + 0x21a], cx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413590
pop edi
pop esi
ret 4

Function at 0x4136d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, ecx
test edi, edi
je 0x41378a
push ebx
push esi
mov esi, dword [esp + 0x10]
jmp 0x4136f0
mov ecx, 0x1234
add word [eax + 0x214], cx
movzx ecx, word [eax + 0x214]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x45d318]
xor word [eax + 0x216], dx
mov bx, word [eax + 0x21a]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x45d31a]
sub word [eax + 0x218], dx
movzx edx, word [eax + 0x218]
xor edx, ecx
mov word [eax + 0x214], dx
mov edx, 1
mov ecx, edx
dec edi
ror bx, cl
inc esi
xor bx, word [eax + 0x216]
ror bx, cl
movzx ecx, bx
xor word [eax + 0x214], cx
mov word [eax + 0x21a], cx
movzx ecx, word [eax + 0x214]
shr ecx, 8
xor byte [esi - 1], cl
test edi, edi
jne 0x4136f0
pop esi
pop ebx
pop edi
ret 8
Function at 0x414800
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 0x414868
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x414844
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 0x414830
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.00441bb0
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x4148b8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x414894
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 0x414880
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.00441bb0
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 0x4148d2
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x4148d2
dec eax
sub ecx, 4
test eax, eax
ja 0x4148c3
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x4148f3
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 0x4148e3
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x414900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x414a2a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x414a2a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x45dbcc]
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 0x414930
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.00441f20
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x4149d7
mov ebp, dword [0x45dbc8]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x45dbcc]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x4149ca
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x4149ca
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x4149a0
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x4149c2
add ecx, esi
cmp ecx, 0x7fff
jb 0x4149bc
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x4149a0
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x414970
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 0x414a07
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 0x4149f0
cmp dword [edi], 0x11
jbe 0x414a21
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x414a21
dec eax
mov dword [edi], eax
test eax, eax
jne 0x414a12
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 0x414a40
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 0x414b25
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x45dbcc]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x414a8b
add ecx, ecx
cmp ecx, 0x7fff
jb 0x414a78
add ecx, 0xffff8001
mov edx, dword [0x45dbc8]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x414a93
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x414ad8
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 0x414ace
add eax, eax
cmp eax, 0x7fff
jb 0x414abe
add eax, 0xffff8001
mov ebp, dword [0x45dbc8]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x414ad0
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x414aa0
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x414b03
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 0x414af0
cmp dword [esi], 0x11
jbe 0x414b1e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x414b1e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x414b10
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 0x416b20
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00442380
mov eax, dword [0x4577c0]
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 0x416be5
push 0x400
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.004288d0
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416b70
sub eax, edx
lea ecx, [esp + 8]
sar eax, 1
push ecx
mov esi, eax
call fcn.00429ba0
test al, al
jne 0x416bc3
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 0x416bb0
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x416be5
push 0x104
push 0xe6e
call fcn.00432f80
push eax
push 0
call fcn.00413250
add esp, 0xc
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00441a0e
add esp, 0x1004
ret 8

Function at 0x416d40
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 0xff
jne 0x416d56
cmp byte [esi + 8], 0
je 0x416dae
mov eax, edi
sub eax, 1
je 0x416d69
sub eax, 1
je 0x416d94
sub eax, 0xfd
jne 0x416d72
cmp dword [0x46260c], 0
jne 0x416d78
mov dword [0x46260c], edi
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
je 0x416d8e
call fcn.00438440
push edi
call fcn.0044345b
mov eax, dword [0x46260c]
test eax, eax
je 0x416da2
cmp eax, 1
jne 0x416d78
mov dword [0x46260c], 2
jmp 0x416d78
pop edi
pop esi
ret 4

Function at 0x416f10
Capabilities:
Terminate process

Disassembly:
cmp byte [0x45dbd4], 0
push esi
mov esi, ecx
jne 0x416f3e
mov eax, dword [esp + 8]
push eax
push 0xce4
call fcn.00432f80
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x416f4c
cmp eax, 1
jne 0x416f56
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x416f6d
call fcn.00438440
push 2
call fcn.0044345b
int3

Function at 0x416fd0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00416dc0
mov eax, dword [esp + 8]
push eax
push 0xe5a
call fcn.00432f80
push eax
push 0
push esi
call fcn.00416c00
inc dword [0x462610]
add esp, 0x10
mov dword [0x46260c], 5
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x417014
call fcn.00438440
push 5
call fcn.0044345b
int3

Function at 0x417090
Capabilities:
Terminate process

Disassembly:
cmp byte [0x45dbd4], 0
push esi
mov esi, ecx
jne 0x4170be
mov eax, dword [esp + 8]
push eax
push 0xce2
call fcn.00432f80
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x4170cc
cmp eax, 1
jne 0x4170d6
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4170ed
call fcn.00438440
push 2
call fcn.0044345b
int3
Function at 0x4171e0
Capabilities:
Terminate process

Disassembly:
push esi
push 0xce6
mov esi, ecx
call fcn.00432f80
push eax
push 0
push esi
call fcn.00416c00
inc dword [0x462610]
add esp, 0xc
mov dword [0x46260c], 8
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x41721a
call fcn.00438440
push 8
call fcn.0044345b
int3

Function at 0x417230
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0xce0
mov esi, ecx
call fcn.00432f80
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x417263
cmp eax, 1
jne 0x41726d
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x417284
call fcn.00438440
push 2
call fcn.0044345b
int3

Function at 0x417290
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push eax
push 0xcde
mov esi, ecx
call fcn.00432f80
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
inc dword [0x462610]
mov dword [0x46260c], 5
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4172d9
call fcn.00438440
push 5
call fcn.0044345b
int3

Function at 0x417370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x417391
push eax
push 0xd0e
call fcn.00432f80
push eax
push 0
call fcn.00413250
add esp, 0xc
call fcn.004128b0
mov ecx, esi
call fcn.00416dc0
inc dword [0x462610]
mov dword [0x46260c], 6
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4173be
call fcn.00438440
push 6
call fcn.0044345b
int3
Function at 0x41aab0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44e83b
mov eax, dword fs:[0]
push eax
mov eax, 0x30c4
call fcn.00442380
mov eax, dword [0x4577c0]
xor eax, esp
mov dword [esp + 0x30c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4577c0]
xor eax, esp
push eax
lea eax, [esp + 0x30d4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30e4]
lea ecx, [esp + 0x1844]
call fcn.00438c60
lea ecx, [esp + 0x1868]
call fcn.00438c60
lea ecx, [esp + 0x188c]
call fcn.00438c60
push 0
lea eax, [esp + 0xc34]
push eax
push edi
push 0
call fcn.0041e6b0
test al, al
je 0x41acd2
cmp word [esp + 0x18b0], 0
je 0x41acd2
lea ecx, [esp + 0x18b0]
push ecx
lea edx, [esp + 0x1034]
push edx
call fcn.00428a20
push eax
call fcn.00439330
test eax, eax
je 0x41acd2
lea eax, [esp + 0x18b0]
push eax
push edi
call fcn.00428a20
push eax
call fcn.00439330
test eax, eax
jne 0x41acd2
mov word [esp + 0x20d0], ax
xor esi, esi
jmp 0x41ab90
test ax, ax
jne 0x41ac04
push 0x400
push edi
lea ecx, [esp + 0x20d8]
push ecx
call fcn.00437cd0
push esi
push str.rtmp_d
lea edx, [esp + 0x20d8]
push edx
call fcn.00428a20
push eax
mov edx, 0x400
call fcn.0042e8b0
add esp, 0xc
lea eax, [esp + 0x20d0]
push eax
push 0
call fcn.0041c3d0
test al, al
je 0x41abe8
xor eax, eax
mov word [esp + 0x20d0], ax
jmp 0x41abf0
mov ax, word [esp + 0x20d0]
add esi, 0x7b
cmp esi, 0x2710
jl 0x41ab90
test ax, ax
je 0x41acd2
push 0x400
push edi
lea ecx, [esp + 0x28d8]
push ecx
call fcn.00437cd0
lea edx, [esp + 0x1030]
push edx
call fcn.00428a20
mov esi, eax
lea eax, [esp + 0x28d0]
push eax
call fcn.00428a20
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x41ac33
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x20d0]
push ecx
lea edx, [esp + 0x28d4]
push edx
call esi
test eax, eax
je 0x41acd2
lea ecx, [esp + 0x10]
call fcn.0041b0b0
push edi
push 0
mov dword [esp + 0x30e4], 0
xor bl, bl
call fcn.0041c3d0
test al, al
jne 0x41ac92
push 1
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.0041b690
mov bl, al
lea eax, [esp + 0x28d0]
push eax
lea ecx, [esp + 0x20d4]
push ecx
call esi
test bl, bl
je 0x41acba
lea ecx, [esp + 0x10]
call fcn.0041b130
lea ecx, [esp + 0x10]
call fcn.0041b1e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30dc], 0xffffffff
call fcn.0041b4c0
mov al, 1
jmp 0x41acd4
xor al, al
mov ecx, dword [esp + 0x30d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30c0]
xor ecx, esp
call fcn.00441a0e
add esp, 0x30d0
ret 4
Function at 0x41b4f0
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x16], 0
mov dword [edi + 0xc18], 0
mov al, 1
jne 0x41b50c
mov al, byte [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
je 0x41b523
mov dword [esp + 0x1c], 0xc0000000
mov ebp, 1
test al, al
je 0x41b531
mov ebp, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov esi, eax
call fcn.0041efe0
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x41b572
test ebx, ebx
je 0x41b572
cmp word [ebx], 0
je 0x41b572
mov ecx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x41b58a
mov edx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b5a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41b5a6
mov dword [edi + 0xc18], 1
cmp esi, 0xffffffff
setne al
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov byte [esp + 0x1c], al
test al, al
je 0x41b640
mov dword [edi + 4], esi
test ebx, ebx
je 0x41b5f6
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b5d0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x418]
push ebx
push ecx
call fcn.00443610
add esp, 0xc
jmp 0x41b5ff
xor edx, edx
mov word [edi + 0x418], dx
test ebp, ebp
je 0x41b622
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b608
sub eax, edx
inc eax
push eax
lea eax, [edi + 0x17]
push ebp
push eax
call fcn.00443610
add esp, 0xc
jmp 0x41b631
push 0x1000000
lea ecx, [edi + 0x17]
push ecx
push ebx
call fcn.004390c0
mov edx, dword [edi + 4]
push edx
mov ecx, edi
call fcn.0041b100
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x41b7e0
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 0x41b807
cmp edi, 0x4e20
jbe 0x41b7fc
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 0x41b878
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41b856
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x41b83b
cmp eax, 3
jne 0x41b856
cmp edi, 0x4e20
jbe 0x41b856
push 0x4e20
push ebx
mov ecx, esi
call fcn.0041b7e0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x41b86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x41b86f
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 0x41bc10
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 0x41be2e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41bc4e
sub eax, 1
je 0x41bc43
sub eax, 1
jne 0x41bc4e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x41bc70
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x41bc70
mov ebx, dword [esp + 0x34]
jmp 0x41bc70
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41bcc4
xor edi, edi
test ebx, ebx
jbe 0x41bce9
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x41bc94
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 0x41bce9
add edi, 0x4000
cmp edi, ebx
jb 0x41bc84
jmp 0x41bce1
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 0x41be28
cmp byte [esi + 0x14], 0
je 0x41be28
cmp dword [esi + 0xc], 0
jne 0x41be28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041b300
mov ebx, eax
lea eax, [esi + 0x17]
push eax
mov dword [esp + 0x2c], edx
call fcn.0041c170
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 0x41bd79
ja 0x41bd3a
cmp dword [esp + 0x1c], ebp
jbe 0x41bd79
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x41bd79
jl 0x41bd51
cmp edx, 0xffffffff
ja 0x41bd79
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x41bd79
jg 0x41bd64
cmp ecx, 0xffffffff
jbe 0x41bd79
lea edx, [esi + 0x418]
push edx
lea eax, [esi + 0x17]
push eax
mov ecx, 0x46260c
call fcn.00416fd0
push 0
lea ebx, [esi + 0x418]
push ebx
lea edi, [esi + 0x17]
push edi
mov ecx, 0x46260c
call fcn.00417020
test al, al
je 0x41be0f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x41bc60
test eax, eax
jbe 0x41bc60
mov ecx, esi
call fcn.0041b300
mov ecx, dword [esp + 0x10]
xor ebp, ebp
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebp
cmp ecx, 0xffffffff
je 0x41bc60
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 0x41bc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41bc60
cmp byte [esi + 0x14], 0
je 0x41bc60
push ebx
push edi
mov ecx, 0x46260c
call fcn.00417090
jmp 0x41bc60
lea eax, [esi + 0x418]
push eax
lea ecx, [esi + 0x17]
push ecx
push 0
push 0
mov ecx, 0x46260c
call fcn.00417290
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x41c0f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4577c0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00428830
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 0x41c14c
cmp eax, 5
je 0x41c14c
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00441a0e
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.00441a0e
add esp, 0x404
ret 4

Function at 0x41c170
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4577c0]
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.00428830
cmp dword [0x45ffe8], 0
jne 0x41c1cd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c1c0
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45ffe8], eax
cmp dword [0x45ffe8], 0
je 0x41c24e
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00428ee0
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 [0x45ffe8]
test eax, eax
je 0x41c24e
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x41c24e
push 1
push 0
push 0
push eax
call fcn.004425d0
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.00441a0e
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 0x41c29b
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00441a0e
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.00441a0e
add esp, 0x42c
ret 4