joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8e34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4a33d8
push 0x80000001
call dword [sym.imp.vsansi.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a8ea2
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4a8ea8
push ecx
mov dword [ebp - 8], 4
call dword [sym.imp.vsansi.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [fcn.0040127c]
test esi, esi
pop esi
jne 0x4a8ea2
cmp dword [ebp - 0xc], 4
jne 0x4a8ea2
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4a8ede
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
je 0x4a8f67
mov esi, dword [ebp + 0xc]
cmp esi, 0x104
jl 0x4a8f67
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4a8f88
push 0x80000002
call dword [sym.imp.vsansi.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a8f67
lea edx, [ebp - 8]
push edx
push edi
push eax
push eax
mov eax, dword [ebp - 4]
push 0x4a8f74
lea ecx, [esi + esi]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.vsansi.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [fcn.0040127c]
test esi, esi
jne 0x4a8f67
push edi
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a8f67
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4a8ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4eee28]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
je 0x4a9030
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push 0x4a33d8
push 0x80000001
call dword [sym.imp.vsansi.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a90a9
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x4a90bc
push eax
call dword [sym.imp.vsansi.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [fcn.0040127c]
test edi, edi
pop edi
jne 0x4a9099
cmp dword [ebp - 8], 4
jne 0x4a9099
cmp dword [ebp - 0xc], 4
jne 0x4a9099
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], 0x409
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0x409
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x4e70c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x44
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.004013fc
add esp, 0xc
xor eax, eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x670], 0x44
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
call fcn.004a8ede
test al, al
jne 0x4a94f6
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401402
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x4a9604
lea ecx, [ebp - 0x61c]
push 0x208
push ecx
call fcn.0044a354
add esp, 0x14
test eax, eax
jl 0x4a94e3
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x4000020
push 1
push 0
push 0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.vsansi.dll_CreateProcessW]
test eax, eax
je 0x4a94e3
push ebx
push edi
mov edi, dword [0x4013f0]
mov ebx, 1
mov eax, dword [esi]
push 0x4e20
push eax
call edi
test eax, eax
jne 0x4a957c
mov ecx, dword [esi + 4]
push 1
push ecx
call edi
test eax, eax
jne 0x4a95c4
jmp 0x4a95ec
mov edx, dword [esi + 8]
push 0x4e20
push edx
call edi
cmp eax, 0x102
je 0x4a95d4
cmp eax, 0x80
je 0x4a95ca
mov eax, dword [esi]
push 1
push eax
call edi
test eax, eax
je 0x4a95ac
mov ecx, dword [esi + 4]
push ecx
call dword [0x401324]
jmp 0x4a95b8
mov edx, dword [esi + 4]
push 1
push edx
call edi
test eax, eax
jne 0x4a95ba
xor ebx, ebx
mov eax, dword [esi + 8]
push eax
call dword [0x401328]
test ebx, ebx
je 0x4a95d4
jmp 0x4a9560
mov ecx, dword [esi + 8]
push ecx
call dword [0x401328]
mov edx, dword [ebp - 0x62c]
mov esi, dword [fcn.0040138c]
push edx
call esi
mov eax, dword [ebp - 0x628]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00401402
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b3fc8
push 0x4e52de
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e70c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x224], ebx
push 0x200
push ebx
lea eax, [ebp - 0x21c]
push eax
call fcn.004013fc
add esp, 0xc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x224]
push ecx
push 0x200
lea edx, [ebp - 0x21c]
push edx
push edi
push esi
call dword [fcn.004012e8]
test eax, eax
je 0x4b3f84
cmp dword [ebp - 0x224], 0x200
jne 0x4b3f84
mov ax, word [ebp - 0x21c]
cmp ax, 0x5a4d
jne 0x4b3f76
mov eax, dword [ebp - 0x1e0]
mov ebx, dword [ebp + eax - 0x214]
jmp 0x4b3f9a
cmp ax, 0x4550
jne 0x4b3fa0
mov ebx, dword [ebp - 0x214]
jmp 0x4b3f9a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4b3fa9
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00401402
mov esp, ebp
pop ebp
ret 8
Function at 0x4b48a6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b4b90
push 0x4e52de
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4e70c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x13c], ecx
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x138], 0x409
mov dword [ebp - 0x130], eax
cmp esi, eax
jne 0x4b4929
mov eax, 0x80070057
jmp 0x4b4b00
lea edx, [ebp - 0x140]
push edx
push esi
call sub.vsansi.dll_GetFileVersionInfoSizeW
mov edi, eax
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x4b4964
call dword [fcn.004013b4]
test eax, eax
jle 0x4b4958
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x4b49d8
mov esi, 0x80004005
jmp 0x4b4aed
mov dword [ebp - 4], 0
push edi
push 0
call dword [fcn.004013c0]
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b49a5
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4b49b9
mov esi, 0x8007000e
jmp 0x4b4aed
push eax
push edi
mov eax, dword [ebp - 0x140]
push eax
push esi
call sub.vsansi.dll_GetFileVersionInfoW
test eax, eax
jne 0x4b49df
call dword [fcn.004013b4]
push eax
call fcn.004b3a08
mov esi, eax
jmp 0x4b4aed
test ebx, ebx
je 0x4b4a15
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x130]
push edx
push 0x472208
mov eax, dword [ebp - 0x120]
push eax
call sub.vsansi.dll_VerQueryValueW
test eax, eax
je 0x4b49cc
mov ecx, 0xd
mov esi, dword [ebp - 0x130]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x128]
push edx
push 0x4b4b58
mov eax, dword [ebp - 0x120]
push eax
call sub.vsansi.dll_VerQueryValueW
test eax, eax
jne 0x4b4a50
lea eax, [ebp - 0x138]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 4
jmp 0x4b4a56
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0x12c], 0
je 0x4b4aeb
mov edi, dword [ebp - 0x13c]
test edi, edi
je 0x4b4aeb
xor esi, esi
mov ebx, dword [ebp + 0x18]
test ebx, ebx
ja 0x4b4a7e
jmp 0x4b4aeb
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + esi*4]
push edx
movzx ecx, word [eax + 2]
push ecx
movzx edx, word [eax]
push edx
push 0x4b4b20
push 0x80
lea eax, [ebp - 0x11c]
push eax
call fcn.0044a354
add esp, 0x18
test eax, eax
jl 0x4b4ae1
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call sub.vsansi.dll_VerQueryValueW
test eax, eax
je 0x4b4ae1
mov edx, dword [ebp - 0x144]
push edx
mov ecx, edi
call fcn.004b43b9
add esi, 1
add edi, 0xc
cmp esi, ebx
jb 0x4b4a78
xor esi, esi
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4b4afe
push eax
call dword [fcn.004013c4]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00401402
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4b6d6c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc0]
push eax
call dword [sym.imp.vsansi.dll_DeleteFileW]
test eax, eax
jne 0x4b6d8b
call dword [fcn.004013b4]
cmp eax, 2
jne 0x4b6d93
mov ecx, esi
pop esi
jmp fcn.004b6b86
test eax, eax
jle 0x4b6da1
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esi + 0xc0]
push ecx
push eax
push 0
push 0xa547
add esi, 0xa90
push esi
call fcn.004ba044
add esp, 0x14
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x54a53884
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x6a936644
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x58fb3b8a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x57416091
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.231006122304243301941164
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.231006122304243301941164]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.231006122304243301941164
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.231006122304243301941164]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.036_
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x401a70
Capabilities:
Move file

Disassembly:
mov eax, 0x4080c4
call fcn.00403d44
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
push ebx
call fcn.004019d9
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push edi
push ebx
call fcn.004019d9
push edi
mov dword [ebp - 0x14], eax
call fcn.004037f0
inc eax
push eax
call fcn.00403960
mov esi, eax
push edi
push esi
mov dword [ebp + 0xc], esi
call fcn.00403870
add esp, 0x20
push 0x40ba38
push esi
call fcn.004037f0
pop ecx
lea eax, [eax + esi - 3]
push eax
call fcn.00403870
pop ecx
pop ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x401c65
push 0x40
call fcn.00403960
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
mov ebx, 0x80
test eax, eax
je 0x401b0d
push 1
mov ecx, eax
push dword [0x409128]
push ebx
push dword [ebp + 8]
call fcn.00402823
mov esi, eax
jmp 0x401b0f
xor esi, esi
or dword [ebp - 4], 0xffffffff
push 0x3c
call fcn.00403960
pop ecx
mov dword [ebp - 0x18], eax
push 1
pop ecx
test eax, eax
mov dword [ebp - 4], ecx
je 0x401b3c
push ecx
mov ecx, eax
push dword [0x409128]
push ebx
push edi
call fcn.0040272e
mov edi, eax
jmp 0x401b3e
xor edi, edi
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00401900
test al, al
pop ecx
je 0x401b7a
push 2
push 0xfffffffffffffff8
pop eax
mov ecx, esi
sub eax, dword [0x40ba40]
push eax
call fcn.004029fe
lea eax, [ebp - 0x10]
push 4
push eax
mov ecx, esi
call fcn.004029bd
push 0
push 0
mov ecx, esi
call fcn.004029fe
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.00403960
pop ecx
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004029bd
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040297a
push dword [ebp + 8]
call fcn.004037de
pop ecx
mov ecx, esi
call fcn.00402929
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.00403960
pop ecx
mov dword [ebp + 8], eax
push dword [0x409128]
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.004028ed
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp + 8]
call fcn.004029bd
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040297a
mov ecx, esi
call fcn.00402929
push dword [ebp + 8]
call fcn.004037de
pop ecx
lea eax, [ebp - 0x10]
push 4
push eax
mov ecx, edi
call fcn.0040297a
lea eax, [ebp - 0x14]
push 4
push eax
mov ecx, edi
call fcn.0040297a
push dword [0x40ba40]
mov ecx, edi
push dword [0x40ba30]
call fcn.0040297a
mov ecx, edi
call fcn.00402929
test esi, esi
je 0x401c40
mov eax, dword [esi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + esi]
mov eax, dword [eax + esi]
call dword [eax]
test edi, edi
je 0x401c53
mov eax, dword [edi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + edi]
mov eax, dword [eax + edi]
call dword [eax]
push dword [ebp + 0xc]
call fcn.00401c74
push dword [ebp + 0xc]
call fcn.004037de
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401c74
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x401c8b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 0x1f4
push edi
call fcn.00403960
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
call fcn.00403870
cmp byte [esi], 0x22
pop ecx
pop ecx
jne 0x401cd1
push esi
call fcn.004037f0
dec eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00401d76
push eax
push esi
call fcn.00403870
add esp, 0x14
xor eax, eax
cmp byte [eax + esi], 0x22
jne 0x401cdd
and byte [eax + esi], 0
inc eax
cmp eax, edi
jl 0x401cd3
push esi
xor edi, edi
call fcn.004037f0
dec eax
pop ecx
dec eax
test eax, eax
jle 0x401d22
mov al, byte [edi + esi]
cmp al, 0x65
je 0x401cfc
cmp al, 0x45
jne 0x401d14
mov al, byte [edi + esi + 1]
cmp al, 0x78
je 0x401d08
cmp al, 0x58
jne 0x401d14
mov al, byte [edi + esi + 2]
cmp al, 0x65
je 0x401d22
cmp al, 0x45
je 0x401d22
push esi
inc edi
call fcn.004037f0
dec eax
pop ecx
dec eax
cmp edi, eax
jl 0x401cf1
push esi
call fcn.004037f0
dec eax
pop ecx
dec eax
cmp edi, eax
jl 0x401d46
push esi
push dword [ebp + 8]
call fcn.00403870
push esi
push dword [ebp + 0xc]
call fcn.00403870
add esp, 0x10
jmp 0x401d6b
lea eax, [ebp - 4]
add edi, 3
push eax
push esi
mov dword [ebp - 4], edi
call fcn.00401dd3
push eax
push dword [ebp + 8]
call fcn.00403870
push esi
push dword [ebp + 0xc]
call fcn.00403870
add esp, 0x18
push esi
call fcn.004037de
pop ecx
pop edi
pop esi
leave
ret