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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 0x118]
push dword [ebp + 0xc]
mov ecx, 0x46
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
lea esi, [edi + 8]
mov dword [edi + 4], esi
call fcn.012c5b04
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x12c5af8
mov ecx, dword [ebp - 0x118]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [ebp - 0x114]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [esi + 0xc], eax
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x12c5adf
push ebx
nop dword [eax]
movzx eax, byte [ecx + 3]
dec edi
movzx edx, byte [eax + 0x12ca024]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x12cbe24]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cba24]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb624]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb224]
mov dword [esi], edx
mov ebx, dword [ecx + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x12ca024]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x12cba24]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb624]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cbe24]
movzx eax, bl
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb224]
mov dword [esi + 4], edx
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x12ca024]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x12cba24]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb624]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cbe24]
movzx eax, bl
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb224]
mov dword [esi + 8], edx
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x10
sub ecx, 0x10
movzx eax, al
movzx edx, byte [eax + 0x12ca024]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x12cba24]
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb624]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cbe24]
movzx eax, bl
movzx eax, byte [eax + 0x12ca024]
xor edx, dword [eax*4 + 0x12cb224]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x12c5984
pop ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x12c7be4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov word [edi], cx
test eax, eax
je 0x12c7dc8
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x12c7dc7
nop dword [eax]
mov dword [ebp - 0x18], 0x25b6
mov eax, dword [ebp - 0x18]
xor eax, 0x25
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x18]
inc eax
xor eax, 0x30
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x18]
add eax, 2
xor eax, 0x32
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x18]
add eax, 3
xor eax, 0x58
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 0xc], ax
mov ax, word [ebp - 0x14]
xor eax, eax
mov cx, word [ebp + eax*2 - 0x14]
mov edx, dword [ebp - 0x18]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0x14], dx
inc eax
cmp eax, 4
jb 0x12c7c56
xor eax, eax
mov word [ebp - 0xc], ax
movsx eax, byte [esi + ebx + 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [esi + 0x754]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x12c7cdf
mov eax, 0x29
mov word [ebp - 8], ax
mov eax, 0x70
mov word [ebp - 6], ax
mov eax, 0x77
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
xor ecx, ecx
mov ax, word [ebp - 8]
nop dword [eax + eax]
mov ax, word [ebp + ecx*2 - 8]
movzx eax, ax
add eax, 0xfffffffc
mov word [ebp + ecx*2 - 8], ax
inc ecx
cmp ecx, 3
jb 0x12c7cc4
lea eax, [ebp - 8]
jmp 0x12c7d2d
mov eax, 0x2a
mov word [ebp - 0x22], ax
mov eax, 0x71
mov word [ebp - 0x20], ax
mov eax, 0x78
mov word [ebp - 0x1e], ax
mov eax, 0x32
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
xor ecx, ecx
mov ax, word [ebp - 0x22]
nop dword [eax + eax]
mov ax, word [ebp + ecx*2 - 0x22]
movzx eax, ax
add eax, 0xfffffffb
mov word [ebp + ecx*2 - 0x22], ax
inc ecx
cmp ecx, 4
jb 0x12c7d14
lea eax, [ebp - 0x22]
push edi
push eax
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [esi + 0x754]
call eax
mov dword [ebp - 0x38], 0x4957
mov eax, 0x4972
mov word [ebp - 0x34], ax
mov ecx, 0x493b
mov word [ebp - 0x32], cx
mov edx, 0x4924
mov word [ebp - 0x30], dx
add esp, 0xc
mov word [ebp - 0x2e], ax
xor eax, eax
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], dx
xor edx, edx
mov word [ebp - 0x28], ax
mov ax, word [ebp - 0x34]
nop word [eax + eax]
mov ax, word [ebp + edx*2 - 0x34]
movzx ecx, ax
movzx eax, word [ebp - 0x38]
xor ecx, eax
mov word [ebp + edx*2 - 0x34], cx
inc edx
cmp edx, 6
jb 0x12c7d84
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x754]
push edi
call eax
add esp, 0x10
sub ebx, 1
jne 0x12c7c14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4015a0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 4]
sub edx, dword [edi]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4015ed
or eax, 0xffffffff
jmp 0x401726
call fcn.00401750
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4016dc
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402ff0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4016a8
cmp dword [esi + 0x10], 0
je 0x4016a8
cmp dword [esi + 0x14], 8
jb 0x40164e
mov eax, dword [esi]
jmp 0x401650
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40166b
mov ecx, esi
call fcn.00405d10
mov ecx, esi
call fcn.00405b00
jmp 0x4016a8
cmp dword [esi + 0x10], 0
je 0x4016a8
cmp dword [esi + 0x14], 8
jb 0x40167b
mov eax, dword [esi]
jmp 0x40167d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4016a8
mov ecx, esi
call fcn.00405420
test al, al
jne 0x4016a8
cmp dword [esi + 0x14], 8
jb 0x4016a3
mov eax, dword [esi]
jmp 0x4016a5
mov eax, esi
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x4016c0
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
add esi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
cmp esi, dword [edi + 4]
jne 0x401603
lea ecx, [ebp - 0x28]
call fcn.00409b80
mov dword [ebp - 4], 1
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00406030
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x40170d
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4420c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.0040a140
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4017b8
or esi, 0xffffffff
jmp 0x4017fb
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4017d1
lea esi, [eax - 2]
jmp 0x4017fb
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4017ef
push 0x44fdac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x401813
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442280
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4587e8]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov eax, dword [0x4587e8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x50]
call fcn.00409a90
mov dword [esp + 0x78], 0
xor eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp word [esi], ax
jne 0x4023c9
xor ecx, ecx
jmp 0x4023df
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00403620
mov byte [esp + 0x78], 1
cmp dword [esp + 0x48], 0
jne 0x402457
lea ecx, [esp + 8]
call fcn.004018a0
mov byte [esp + 0x78], 2
cmp dword [esp + 0x18], 0
je 0x402552
push 0xe
push ecx
push dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x60]
call fcn.00403df0
test eax, eax
je 0x402552
mov byte [esp + 0x78], 1
cmp dword [esp + 0x1c], 8
jb 0x402440
push dword [esp + 8]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
push 0xe
push ecx
push dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x60]
call fcn.00403df0
test eax, eax
jne 0x4024cf
push esi
lea ecx, [esp + 0x24]
call fcn.004026b0
mov byte [esp + 0x78], 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00401410
mov byte [esp + 0x78], 6
cmp dword [esp + 0x34], 8
jb 0x4024a1
push dword [esp + 0x20]
call fcn.00423c7d
add esp, 4
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.004015a0
mov byte [esp + 0x78], 1
lea ecx, [esp + 8]
call fcn.00401510
xor esi, esi
mov byte [esp + 0x78], 0
cmp dword [esp + 0x4c], 8
jb 0x4024e9
push dword [esp + 0x38]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x40251b
push dword [esp + 0x50]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [esp + 0x50], ax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00423c82
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x20]
call fcn.00402080
mov byte [esp + 0x78], 3
cmp dword [eax + 0x14], 8
jb 0x402568
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x78], 2
cmp dword [esp + 0x34], 8
jb 0x402594
push dword [esp + 0x20]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov byte [esp + 0x78], 1
cmp dword [esp + 0x1c], 8
jb 0x4025c3
push dword [esp + 8]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
or esi, 0xffffffff
jmp 0x4024d1
Function at 0x405180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x10], 0
push edi
mov edi, edx
jne 0x405196
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 8
jb 0x40519e
mov ecx, dword [ecx]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4051c7
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
neg ebx
sbb bl, bl
and bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x405420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429d8
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x40545c
xor al, al
jmp 0x405572
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402ff0
mov dword [ebp - 4], 0
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.0040e3b0
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040e3b0
cmp dword [ebp - 0x18], 3
ja case.default.0x4054c8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
ja case.default.0x4054c8
jmp dword [eax*4 + 0x405590]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x405528
mov eax, dword [esi + 0x10]
lea edx, [eax - 1]
cmp eax, edx
ja 0x405501
push str.invalid_string_position
call fcn.0042341c
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40550d
mov ecx, dword [esi]
jmp 0x40550f
mov ecx, esi
cmp word [ecx + edx*2], 0x5c
je case.0x4054c8.3
cmp eax, 8
jb 0x40551d
mov esi, dword [esi]
cmp word [esi + edx*2], 0x2f
jne case.0x4054c8.0
mov bl, 1
jmp 0x405544
test byte [ebp - 0x278], 0x10
push eax
je 0x40553c
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x405544
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x40555c
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret
Function at 0x405b00
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442948
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402ff0
mov dword [ebp - 4], 0
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.0040e470
cmp dword [ebp - 0x1c], 0
je 0x405cc4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x405cc4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
lea edx, [eax + 2]
jmp 0x405bb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405bb0
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042396e
mov edi, eax
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
push ecx
push esi
push edi
call fcn.00424c56
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x1c]
mov word [edi + eax*2 + 2], cx
xorps xmm0, xmm0
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x38], cx
mov ecx, 0x414
mov ax, word [ebp - 0x44]
or ax, cx
mov dword [ebp - 0x3e], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3a], 0
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0
mov ecx, 0xffbf
and ax, cx
mov word [ebp - 0x44], ax
mov bl, 1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx ebx, bl
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov byte [ebp - 0x2d], bl
mov dword [ebp - 4], ecx
jmp 0x405c95
test edi, edi
je 0x405ca2
push edi
call fcn.00424883
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x405cba
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, bl
jmp 0x405ce4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x405cdc
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret
Function at 0x406030
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov bl, dl
cmp dword [esi + 0x10], 0
je 0x4060da
cmp dword [esi + 0x14], 8
jb 0x40604b
mov eax, dword [esi]
jmp 0x40604d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4060da
mov ecx, esi
call fcn.00405420
test al, al
je 0x40606f
xor al, al
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 0x14], 8
jb 0x406079
mov eax, dword [esi]
jmp 0x40607b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4060da
test bl, bl
je 0x4060da
cmp dword [esi + 0x14], 8
jb 0x406094
mov eax, dword [esi]
jmp 0x406096
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4060b8
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x4060ae
mov ecx, dword [esi]
jmp 0x4060b0
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4060c2
mov eax, dword [esi]
jmp 0x4060c4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4060da
mov ecx, esi
call fcn.00406430
pop esi
pop ebx
pop ecx
ret
pop esi
mov al, 1
pop ebx
pop ecx
ret