joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004259a0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00425ac0
cmp dword [ebp - 0x10], ebx
je 0x41831b
nop
cmp byte [ebp - 0x2e4], 0
jne 0x41825a
test bl, 1
je 0x418242
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00420760
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0050ba40
add esp, 0xc
jmp 0x418273
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
test bl, 1
je 0x418296
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x4182c9
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004181d0
add esp, 4
test al, al
je 0x418377
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4182db
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418377
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00425ac0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x418303
push 0xffffffffffffffff
push 0
push eax
call fcn.00406020
lea ecx, [ebp - 0x38]
call fcn.004054e0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x418220
lea ecx, [ebp - 0x20]
call fcn.004054e0
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x418337
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.00425ea0
push dword [ebp - 0x54]
call fcn.004f08f8
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.004054e0
lea ecx, [ebp - 0x8c]
call fcn.004054e0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004054e0
xor bl, bl
jmp 0x418325
Function at 0x418430
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41846c
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4185b6
lea eax, [esp + 0x14]
push eax
call fcn.0041a5e0
push 2
push 0
push 0x61fd18
mov ecx, eax
call fcn.00419550
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004054e0
cmp esi, 0xffffffff
je 0x4184f0
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041a5e0
mov esi, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0041a4a0
mov edx, esi
mov ecx, eax
call fcn.004181d0
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.004054e0
lea ecx, [esp + 0x2c]
call fcn.004054e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4184fa
mov eax, dword [edi]
jmp 0x4184fc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418458
test bl, 1
je 0x418534
cmp dword [edi + 0x14], 8
jb 0x41851d
mov ecx, dword [edi]
jmp 0x41851f
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4185b6
test bl, 0x10
jne 0x418560
cmp dword [edi + 0x14], 8
jb 0x418541
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push 0x61fd20
lea ecx, [esp + 0x18]
call fcn.00405570
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.004181d0
add esp, 4
lea ecx, [esp + 0x14]
test al, al
setne bl
call fcn.004054e0
test bl, bl
je 0x4185b6
cmp dword [edi + 0x14], 8
jb 0x418597
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x4189e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4189ee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x418a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x418a08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418a1b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x418a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x418b02
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x418a72
xor ecx, ecx
jmp 0x418a8f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a80
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00419ee0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x418aaa
mov ecx, dword [eax]
jmp 0x418aac
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00419ee0
lea ecx, [esp + 8]
call fcn.0041a9c0
lea eax, [esp + 8]
cmp esi, eax
je 0x418ada
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406020
lea ecx, [esp + 8]
call fcn.004054e0
lea ecx, [esp + 0x20]
call fcn.004054e0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x418b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x418bcf
cmp word [esp + 0x20], 0
je 0x418bcf
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x418b93
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00419ee0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418ba0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00419ee0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.004055d0
lea eax, [esp + 8]
push eax
call fcn.00418a20
add esp, 4
mov ecx, esi
test al, al
je 0x418bf7
lea eax, [esp + 8]
push eax
call fcn.004055f0
jmp 0x418c0e
sub esp, 8
mov eax, esp
mov dword [eax], 0x61fd24
mov dword [eax + 4], 3
call fcn.00419ee0
lea ecx, [esp + 8]
call fcn.004054e0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x418c30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x54], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], eax
call fcn.004055d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
nop
lea ecx, [ebp - 0x20]
call fcn.004055d0
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00406020
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.0041fc70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b80
lea ecx, [ebp - 0x50]
call fcn.004054e0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x418ce0
lea ecx, [eax + 1]
cmp ecx, 0x7ffffffe
ja 0x418de3
cmp edx, ecx
jae 0x418cc6
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00407060
jmp 0x418cda
test ecx, ecx
jne 0x418ce0
cmp edx, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov word [eax], cx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, 8
lea ecx, [ebp - 0x20]
mov edx, 0x5f
cmovae ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x64]
call fcn.0042f6a0
cmp dword [ebp - 0x60], 0xffffffff
ja 0x418d00
mov edx, dword [ebp - 0x64]
jb 0x418d1b
cmp edx, 0xffff7fff
ja 0x418d00
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.0041fc70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b80
lea ecx, [ebp - 0x50]
call fcn.004054e0
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.0041a690
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x418d76
push 0xffffffffffffffff
push 0
push eax
call fcn.00406020
lea ecx, [ebp - 0x50]
call fcn.004054e0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x418da8
lea ecx, [ebp - 0x20]
call fcn.004054e0
inc esi
cmp esi, 0x32
jl 0x418c60
xor bl, bl
jmp 0x418dc8
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x418dbe
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00406020
lea ecx, [ebp - 0x20]
call fcn.004054e0
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.004054e0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004c07f3
int3
Function at 0x418e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x418e7d
mov ebx, dword [edi]
jmp 0x418e7f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418ec1
test al, 0x10
je 0x418ea3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x418ead
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041a4a0
cmp dword [edi + 0x14], 8
jb 0x418ed7
mov ecx, dword [edi]
jmp 0x418ed9
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.0040abd0
add esp, 0x10
test eax, eax
jne 0x418f0a
test esi, esi
je 0x418f4e
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x418f54
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00418e50
test al, al
je 0x418f4e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x418f41
mov ecx, edi
call fcn.00418a00
test al, al
jne 0x418f52
test esi, esi
je 0x418f4e
mov ecx, ebx
call fcn.00425680
mov dword [esi], eax
xor bl, bl
jmp 0x418f54
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.004054e0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret

Function at 0x419020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x419040
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004194e0
mov eax, dword [esp + 8]
test eax, eax
je 0x419091
cmp eax, 0xffffffff
je 0x419091
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419091
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x419094
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00419470
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4190b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4191ac
cmp eax, 0x104
ja 0x4191ac
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405570
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00419ee0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x419144
mov ecx, dword [eax]
jmp 0x419146
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00419ee0
lea ecx, [ebp - 0x240]
call fcn.0041a9c0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x41917a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406020
lea ecx, [ebp - 0x240]
call fcn.004054e0
lea ecx, [ebp - 0x258]
call fcn.004054e0
lea ecx, [ebp - 0x228]
call fcn.004054e0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret

Function at 0x4191c0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x419252
cmp dword [edi + 0x10], 0x104
jae 0x419252
cmp dword [edi + 0x14], 8
jb 0x4191e6
mov eax, dword [edi]
jmp 0x4191e8
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4191f0
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x419206
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x41921c
mov eax, dword [esi]
jmp 0x41921e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419240
shr eax, 4
and al, 1
je 0x419240
mov edx, edi
mov ecx, esi
call fcn.00419260
mov bl, al
test bl, bl
jne 0x419249
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c480
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xa3b9b4], 0
je 0x41c4a9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.004c2355
mov ecx, eax
call fcn.0041c330
mov dword [0xa3b9b4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405570
lea eax, [ebp - 0x1c]
push eax
call fcn.0041cc60
lea ecx, [ebp - 0x1c]
call fcn.004054e0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x41cc60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0xa3b9b4]
call fcn.004055d0
mov edx, 0x61ff90
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41cc92
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x61ff90
push eax
call fcn.0041eee0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41ccec
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.0041c550
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.004054e0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret 4

Function at 0x420560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0xa3b9b4]
mov ecx, ebx
push 0x621934
call fcn.0041c7e0
test al, al
jne 0x4205ab
push str.vmodule
mov ecx, ebx
call fcn.0041c7e0
test al, al
je 0x42063b
cmp dword [0xa3b9b8], 0
je 0x4205c2
cmp byte [0xa3bae8], 0
jne 0x4206f9
int3
mov eax, dword [0xa3b9d4]
push 0x10
mov dword [0xa3b9b8], eax
call fcn.004c2355
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x621934
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041c890
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041c890
push eax
mov ecx, esi
call fcn.0042bbd0
lea ecx, [esp + 0x1c]
mov dword [0xa3b9d4], eax
call fcn.00405680
lea ecx, [esp + 0x34]
call fcn.00405680
mov eax, dword [edi]
mov dword [0xa269ac], eax
test al, 1
jne 0x42065a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
mov eax, dword [0xa3b9cc]
test eax, eax
je 0x420674
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xa3b9cc], 0
mov edx, dword [0xa3b9d0]
test edx, edx
jne 0x420697
push 0x18
call fcn.004c2355
add esp, 4
mov ecx, eax
call fcn.004055d0
mov edx, eax
mov dword [0xa3b9d0], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x4206a4
xor ecx, ecx
jmp 0x4206bf
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4206b0
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405f20
cmp dword [edi + 0xc], 0
jne 0x4206e2
mov eax, dword [0xa3b9d0]
cmp dword [eax + 0x14], 8
jb 0x4206db
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00420420
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e463
int3
Function at 0x420760
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00420f10
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0041bbb0
mov eax, dword [0xa3b9c8]
test eax, eax
je 0x4207c9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x4208de
test byte [0xa269ac], 2
je 0x4207e9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4207ee
cmp dword [ebx], 2
jl 0x42082d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.00513b33
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00513e5b
push 2
call fcn.00513b33
add esp, 0x14
push eax
call fcn.005137c8
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0xa269ac], 1
je 0x420865
call fcn.00420420
test al, al
je 0x420865
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0xa3b9cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x4208de
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x420899
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0050ad80
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0042b840
add esp, 4
cmp dword [0xa3b9d8], 0
je 0x4208d4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041bbb0
lea eax, [esp + 0x28]
push eax
call dword [0xa3b9d8]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00405680
jmp 0x4208de
cmp byte [0xa3bae8], 0
jne 0x420921
int3
lea ecx, [esp + 0x10]
call fcn.00405680
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0041ae90
push esi
mov dword [esi], 0x5fe180
call fcn.004c109f
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e463
int3

Function at 0x421080
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x421091
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4210b4
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 4]
mov eax, dword [esp]
test edx, edx
jg 0x4210cd
jl 0x4210c5
test eax, eax
jae 0x4210cd
or eax, 0xffffffff
mov edx, bind
mov esp, ebp
pop ebp
ret