joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x40731b
cmp byte [esi + 1], 0
je 0x407323
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x407337
cmp byte [esi + 1], 0
je 0x40732b
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp + 8], ebx
jmp 0x40733f
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4072f5
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x40733f
mov eax, dword [esi + 0x1c]
mov dword [ebp + 8], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x407351
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.00434e1e
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40736f
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp edi, eax
jbe 0x40747d
jmp 0x40738e
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x40739d
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x4073b4
mov ebx, 0x404
cmp byte [esi], 0
je 0x4073d9
cmp byte [esi + 1], 0
je 0x40747d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x4073dc
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407405
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x407400
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x40742e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407416
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.004339b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40747d
lea eax, [ebx - 3]
test eax, eax
js 0x40746b
mov edi, edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40745f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40745f
cmp byte [eax + ecx + 2], 5
jne 0x40745f
cmp byte [eax + ecx + 3], 6
je 0x407465
test eax, eax
jns 0x407440
jmp 0x40746b
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40747d
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x407385
mov eax, dword [ebp - 0xc]
push eax
call fcn.00434de4
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4096af
cmp dword [edi + 4], 0xffffffff
jne 0x4096af
push esi
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409611
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x409645
cmp eax, 0x2f
je 0x409645
push 0x447790
push 0x104
push esi
call fcn.00435020
add esp, 0xc
mov esi, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jne 0x40966f
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40966f
pop ebx
pop esi
mov eax, 0x2000000
pop edi
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ebx
push ecx
push esi
call fcn.00406fa0
add esp, 0x10
test eax, eax
jne 0x40968f
mov eax, dword [ebp + 0x10]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
push eax
call fcn.00409000
add esp, 4
mov dword [edi], eax
neg eax
sbb eax, eax
pop ebx
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop edi
pop ebp
ret 0xc
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc

Function at 0x409d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x409dc4
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409dc4
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
movzx eax, word [esi]
test ax, ax
je 0x409e7b
mov ecx, esi
mov edx, esi
cmp ax, 0x2f
je 0x409de0
cmp ax, 0x5c
jne 0x409de2
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x409dd4
cmp ecx, esi
je 0x409e23
sub ecx, esi
push edi
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004339b0
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push ebx
mov word [ebp + edi - 0x414], cx
call fcn.00409d90
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x409e45
push ebx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00435095
add esp, 0xc
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00435020
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e7b
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00434758
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x40a9fb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40a947
cmp dword [esi + 0x40], edi
jae 0x40a947
push eax
call fcn.00433949
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x40a95f
lea eax, [edi + edi]
push eax
call fcn.0043429d
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004339b0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x40a9f8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44cf28]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x44cf28]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x40a977
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x40aa3a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x40aa1f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004339b0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40aa5c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004114b0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_FindResourceW]
push 5
push ebx
push esi
mov dword [ebp - 8], 0
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41170e
push 0xf0
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadResource]
xor ebx, ebx
test eax, eax
je 0x411694
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4116f7
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4116f7
push ebx
push edi
call fcn.0040aee0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4116e3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x411700
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x411700
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41170e
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
push esi
push edi
push str.IsWow64Process
xor edi, edi
push 0x44db98
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
mov dword [ebp + 0x18], edi
test esi, esi
je 0x411c8b
lea ecx, [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x411c8b
cmp dword [ebp + 0x18], edi
je 0x411c8b
lea edx, [ebp - 4]
push edx
push 0x20219
jmp 0x411c94
lea edx, [ebp - 4]
push edx
push 0x20019
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411ccb
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411ccb
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
test eax, eax
je 0x411cd9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push 0x44dc94
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x210], 0
je 0x412df2
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00434d00
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004125e0
lea eax, [ebp - 0x20c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412db4
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push str.MachineGuid
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434758
mov esp, ebp
pop ebp
ret
Function at 0x413ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x45be18], 1
jne 0x413ae7
or dword [0x45be18], 1
mov ecx, 0x45bba0
call fcn.0041dc20
push 0x446310
call fcn.00435667
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
push 0x45bdfc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00402570
cmp dword [ebp - 0x10], 0
jne 0x413b20
push 0x2e
push str.http:__www.v9.com_static_v9_PrivacyPolicy.html
lea ecx, [ebp - 0x20]
call fcn.004028a0
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x413b2c
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0xc], 8
jb 0x413b4f
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00433949
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00434758
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x45c668]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4165e8
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4165e8
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4165e8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x416496
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4165d3
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x114], edx
cmp cx, ax
jne 0x416526
push 3
lea edx, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], edx
call fcn.00415fd0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x110]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x416504
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x4165a7
push eax
call fcn.00434de4
add esp, 4
jmp 0x4165a7
mov edx, 0x1234
cmp dx, ax
jne 0x4165a7
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00415fd0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x41657d
push eax
call fcn.00434de4
add esp, 4
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x40b
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x4165a7
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x416490
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434758
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434758
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00434758
mov esp, ebp
pop ebp
ret 4
Function at 0x418320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor eax, eax
push esi
push 0x44
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00434d00
mov esi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
add esp, 0xc
xor ecx, ecx
push 0xfffffffffffffff6
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
call esi
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x18], eax
call esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push ecx
push edx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp + 0x10], bl
je 0x4183c9
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00434d00
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x41867d
lea eax, [ebp + 8]
push ebx
push eax
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00435095
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
xor edx, edx
mov word [ebp + eax*2 - 0x20a], dx
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], edx
add esp, 0xc
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea edx, [ebp - 0x22c]
mov eax, 0x215
lea ecx, [ebp - 0x20c]
push edx
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x418729
mov eax, dword [ebp + 8]
push eax
call fcn.00433949
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00434758
mov esp, ebp
pop ebp
ret
Function at 0x418740
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00434d00
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00434d00
mov eax, dword [ebp + 8]
mov esi, 8
add esp, 0x18
cmp dword [ebp + 0x1c], esi
jae 0x41879e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.00435095
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x38], esi
jae 0x4187be
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00435095
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
xor edx, edx
mov word [ebp + eax*2 - 0x412], dx
mov eax, dword [ebp + 0x34]
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x418], ax
mov eax, 0x214
mov word [ebp - 0x424], ax
add esp, 0xc
mov dword [ebp - 0x434], ecx
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0x414]
push eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x430], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], esi
jb 0x418881
mov ecx, dword [ebp + 8]
push ecx
call fcn.00433949
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x4188a6
mov eax, dword [ebp + 0x24]
push eax
call fcn.00433949
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00434758
mov esp, ebp
pop ebp
ret

Function at 0x4188c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00434d00
mov esi, 8
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
cmp dword [ebp + 0x1c], esi
jb 0x4188fe
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x418904
lea edx, [ebp + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0x40
cmp dword [ebp + 0x38], esi
jb 0x41891f
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
jmp 0x418925
lea ecx, [ebp + 0x24]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x1c], esi
jb 0x41894c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00433949
add esp, 4
xor edx, edx
cmp dword [ebp + 0x38], esi
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], dx
pop esi
jb 0x418972
mov eax, dword [ebp + 0x24]
push eax
call fcn.00433949
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x418980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x41898f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4189b5
test al, 0x10
je 0x4189b5
cmp dword [ebp + 0x1c], 8
jb 0x4189b1
mov eax, dword [ebp + 8]
push eax
call fcn.00433949
add esp, 4
mov al, 1
pop ebp
ret
cmp dword [ebp + 0x1c], 8
jb 0x4189c7
mov ecx, dword [ebp + 8]
push ecx
call fcn.00433949
add esp, 4
xor al, al
pop ebp
ret

Function at 0x418a80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x418a8f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp + 0x1c], 8
jb 0x418aa8
mov eax, dword [ebp + 8]
push eax
call fcn.00433949
add esp, 4
pop ebp
ret

Function at 0x418ff0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x459e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00434d00
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00434d00
push esi
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push 0x44df4c
push eax
call ebx
add esp, 0x1c
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4190a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x430]
call fcn.004028a0
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x4190d7
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41913f
test al, 0x10
je 0x41913f
cmp dword [ebp - 0x41c], 8
jb 0x4190ff
mov eax, dword [ebp - 0x430]
push eax
call fcn.00433949
add esp, 4
inc esi
cmp esi, 0xffff
jl 0x419042
xor ecx, ecx
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push 0x44dadc
mov ecx, edi
call fcn.004028a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434758
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x41c], 8
jb 0x419157
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.00433949
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [edi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419173
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x419125