joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a6f
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x455308]
call fcn.00428507
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x426bac
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x426ad5
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x426aca
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x426b0f
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x426b69
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x426b69
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x426af6
jmp 0x426b69
test ax, ax
je 0x426b7c
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x426b65
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x426b5a
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x426b5a
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x426b5a
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x426b43
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x426b1c
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x426b83
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x426b8d
test ebp, ebp
jne 0x426bb4
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x426aba
test ebp, ebp
jne 0x426bc9
mov eax, ebx
jmp 0x426bcf
test edi, edi
je 0x426bc9
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x426bcf
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4274f3
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x42763b
xor ecx, ecx
cmp word [eax], cx
je 0x42763b
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0043e931
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0040e4f2
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42754c
cmp eax, 3
jne 0x427586
cmp word [esp + 0xa], 0x3a
jne 0x427586
cmp eax, 2
jne 0x42756a
lea eax, [esp + 8]
push 0x447398
push eax
call fcn.0043e993
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42763b
push 0xfffffffffffffffe
pop edi
jmp 0x42763b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x42759b
cmp ax, bx
jne 0x4275a5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x42758e
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4275e4
test byte [esp + 0x21c], 0x10
je 0x4275cb
push 0xfffffffffffffffe
pop edi
jmp 0x4275db
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x427639
cmp word [esp + 0x10], bp
jne 0x4275f2
cmp word [esp + 0x12], bp
je 0x427611
cmp word [esp + 0x10], bx
jne 0x427600
cmp word [esp + 0x12], bx
je 0x427611
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x427639
cmp word [esp + 0x12], ax
jne 0x427639
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x427626
test al, 0x10
je 0x427639
jmp 0x427636
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x427639
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x42765a
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x427683
test byte [esp + 8], 2
je 0x427677
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x427685
xor eax, eax
ret 8

Function at 0x4276a0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4276b9
push dword [0x455334]
call fcn.0042865d
pop edi
ret 4
push esi
push edi
push dword [0x455334]
call fcn.00428570
mov esi, eax
test esi, esi
je 0x427723
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42770f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4276fe
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x453fec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x455334]
call fcn.00428536
pop esi
pop edi
ret 4
Function at 0x427730
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x42776c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4279b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x455334]
call fcn.00428570
mov esi, eax
test esi, esi
je 0x427a2f
cmp dword [esi + 4], 0
je 0x427a00
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00427b60
test eax, eax
je 0x4279f4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427a3a
cmp dword [esp + 8], 0
je 0x427a3a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x427b60
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x427b83
push ebx
call fcn.00427730
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x427c07
mov ecx, ebp
sub ecx, 1
je 0x427bf2
sub ecx, 1
je 0x427bdb
sub ecx, 2
je 0x427bc6
push ebp
push eax
push dword [esp + 0x24]
call fcn.0041c880
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0041c880
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x427c50
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.0041c880
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x427ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x453fec]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x427e30
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x427cee
test ebp, ebp
je 0x427d96
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x427d0a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00427b60
mov dword [esp + 0x10], eax
jmp 0x427d24
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x427d99
test cl, cl
je 0x427d38
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x427d73
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x453fec]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x427d96
cmp dword [esp + 0x28], 0
jne 0x427ce0
cmp cl, 0xd
je 0x427da2
cmp cl, 0xa
jne 0x427ce0
dec esi
jmp 0x427e13
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x427e13
jmp 0x427da5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x427dad
dec esi
jmp 0x427e13
cmp cl, 0xd
jne 0x427e13
dec esi
cmp dword [edi], 0
je 0x427dcb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00427b60
mov dword [esp + 0x10], eax
jmp 0x427de1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x427e13
cmp dword [edi], 0
je 0x427df2
inc dword [ebx + 0xc]
jmp 0x427e13
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x427e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x453fec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x427fff
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x427e99
test ecx, ecx
je 0x427f5c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x427eb5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00427b60
mov dword [esp + 0x10], eax
jmp 0x427ecf
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x427f5f
test ax, ax
je 0x427eed
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x427f34
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x453fec]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x427f5f
cmp dword [esp + 0x2c], 0
jne 0x427e83
cmp ax, 0xd
je 0x427f66
cmp ax, 0xa
jne 0x427e83
sub edi, 2
jmp 0x427fde
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x427fde
cmp ax, 0xa
jne 0x427f71
sub edi, 2
jmp 0x427fde
cmp ax, 0xd
jne 0x427fde
sub edi, 2
cmp dword [ebp], 0
je 0x427f93
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00427b60
mov dword [esp + 0x10], eax
jmp 0x427fa9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x427fde
cmp dword [ebp], 0
je 0x427fbd
add dword [ebx + 0xc], 2
jmp 0x427fde
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x428010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x453fec]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x428160
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42805c
test edi, edi
je 0x4280cd
dec edi
push esi
push ebp
call fcn.00428280
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42806f
xor cl, cl
jmp 0x428071
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4280b4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x453fec]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4280cd
test eax, eax
jne 0x428052
cmp cl, 0xd
je 0x4280d1
cmp cl, 0xa
jne 0x428052
dec esi
jmp 0x428143
test eax, eax
jne 0x428143
cmp cl, 0xa
jne 0x4280d9
dec esi
jmp 0x428143
cmp cl, 0xd
jne 0x428143
dec esi
cmp dword [ebp + 4], 0
je 0x4280f8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00427b60
mov dword [esp + 0x20], eax
jmp 0x42810f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x428143
cmp dword [ebp + 4], 0
je 0x428121
inc dword [ebp + 0xc]
jmp 0x428143
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x428170
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x42826e
cmp word [edx], 0
je 0x42826e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42819e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4281f4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4281b0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x4281d6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00428380
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.004284a0
mov edi, eax
test edi, edi
je 0x4281ea
cmp dword [esi + 4], 0
je 0x428241
push dword [esp + 0x14]
push edi
push esi
call fcn.00428380
push edi
push 0
push dword [0x453fec]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x453fec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x428280
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x4282a7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00427b60
mov dword [esp + 4], eax
jmp 0x4282c1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x428374
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4282e6
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x4282f6
mov esi, 2
jmp 0x428312
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x428305
mov esi, 3
jmp 0x428312
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x428360
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x42833b
push ebx
push eax
push edi
call fcn.00427b60
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8
Function at 0x428380
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x428497
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4283cd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x428456
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x42843f
sub eax, 1
je 0x428426
sub eax, 2
je 0x42840f
push esi
push dword [esp + 0x24]
push ecx
call fcn.0041c880
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00427730
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x428485
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4283f7
xor eax, eax
pop edi
add esp, 8
ret 0xc

Function at 0x428fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428fdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428fdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401c66
pop dword [ebp - 0x28]
mov eax, 0x401c66
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xdae80493
sub dword [ebp - 0x38], 0x8c95bf48
mov dword [ebp - 0x34], 0x47c5d61
add dword [ebp - 0x34], 0x2db6eee4
mov dword [ebp - 0x30], 0xf110bdaa
sub dword [ebp - 0x30], 0xa4c4797c
mov dword [ebp - 0x2c], 0x92215c0f
sub dword [ebp - 0x2c], 0x92215c0f
lea eax, [ebp - 0x38]
push eax
mov eax, 0xe6b6b329
add eax, 0x19897d2b
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x1ebeb440
sub dword [ebp - 0x38], 0xaa4c4aea
mov dword [ebp - 0x34], 0xede2f68d
sub dword [ebp - 0x34], 0xac769518
mov dword [ebp - 0x30], 0x37f0d8a2
sub dword [ebp - 0x30], 0xd4816c36
mov dword [ebp - 0x2c], 0xd880d471
sub dword [ebp - 0x2c], 0xd880d471
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x32432
push 0
call eax
mov ecx, 0xbfc102b3
add ecx, 0x403f346d
xor edi, edi
add edi, eax
mov edx, 0x407000
add edx, dword [ebp - 0x28]
mov esi, 0xe75e2ab3
add esi, 0x218897ee
mov ebx, dword [edx]
add dword [ebp - 0x20], 0xe261fa37
add ebx, esi
xor dword [ebp - 0x14], eax
mov dword [edi], ebx
xor dword [ebp - 0x14], ebx
add edi, 4
add edx, 0x6adaf4e
add edx, 0xf95250b6
loop 0x401d7a
add eax, 0xb13730b
sub eax, 0xb12a3b8
mov ebx, eax
add eax, 5
mov ecx, 0x6ae136ec
add ecx, 0x955ec914
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x412678
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x412687
pop dword [ebp - 0x1c]
mov eax, 0x412687
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3735e
push 0
mov eax, 0xe47e19ef
add eax, 0x1bc346dd
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xb0ba202c
add ecx, 0x4f46292e
mov ebx, eax
mov edi, 0x446800
add edi, dword [ebp - 0x1c]
mov edx, 0x541e186a
mov dword [ebp - 0x14], 0x4ec15061
mov esi, dword [edi]
xor esi, edx
xor dword [ebp - 8], esi
mov dword [ebx], esi
add ebx, 0xb272d062
add ebx, 0x4d8d2fa2
add edi, 4
loop 0x4126d5
add eax, 0x1183b
xor ebx, ebx
add ebx, eax
add eax, 0xd8e88038
add eax, 0x27177fcd
mov ecx, 0xfb8583bb
sub ecx, 0xfb4583bb
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret