joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c96
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x462ffa
call fcn.0041b2ae
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x409e3c
push esi
call fcn.0041b415
mov edi, eax
pop ecx
test edi, edi
je 0x409e3c
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409e35
call fcn.0040a360
mov ebx, dword [ebp + 0xc]
test al, al
je 0x409de9
call fcn.0040a2de
test al, al
jne 0x409de9
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409de9
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x409de9
and dword [ebp - 4], 0
call fcn.00402f13
push eax
lea ecx, [ebp - 0x18]
call fcn.0040274f
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0040551f
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x409dad
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00403258
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x409d38
jmp 0x409de9
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.004032a7
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.0040a927
push 0x20
mov ecx, ebx
call fcn.0040a73a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00403258
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x409e32
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4673fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409e32
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x467434
push ebx
call fcn.0040551f
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x409e35
mov ebx, dword [ebp - 0x10]
push edi
call fcn.0041b41e
pop ecx
mov al, bl
call fcn.0041b277
ret

Function at 0x40a3c2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0043af20
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a412
cmp dword [ebp - 0x114], 6
jb 0x40a412
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret
Function at 0x40a4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x47d088
call fcn.0041b430
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.0043af20
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a586
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.0043af20
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a586
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x40a586
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a5ac
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40bc89
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4632ad
mov eax, dword fs:[0]
push eax
mov eax, 0x116c
call fcn.0041b390
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x40be3d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x40be3d
test esi, esi
je 0x40be3d
push esi
call ebx
test eax, eax
je 0x40bcf0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.0043af20
add esp, 0xc
lea ecx, [ebp - 0x1178]
push 1
push 0x40
push 1
push edi
call fcn.0040b5ff
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10c0]
mov dword [ebp - 4], ebx
call fcn.0040b716
mov eax, dword [ebp - 0x1178]
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
jne 0x40be11
mov esi, 0x46860c
mov eax, dword [ebp - 0x10c0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10b4], ebx
jne 0x40be11
test byte [ecx], 1
jne 0x40be11
push ebx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1178]
call fcn.0040c494
lea eax, [ebp - 0x1010]
push str.check
push eax
call fcn.0043c4f0
pop ecx
pop ecx
test eax, eax
je 0x40bdc3
lea eax, [ebp - 0x1010]
push str._trate_
push eax
call fcn.0043c4f0
pop ecx
pop ecx
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bdba
jmp 0x40bdd3
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bdcc
push ebx
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x10c0]
call fcn.0040cd45
push ebx
push 2
push esi
lea ecx, [ebp - 0x10c0]
call fcn.0040cd45
mov eax, dword [ebp - 0x1178]
lea ecx, [ebp - 0x116c]
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
je 0x40bd50
lea ecx, [ebp - 0x1178]
call fcn.0040c295
lea ecx, [ebp - 0x10c0]
call fcn.0040c2c7
lea ecx, [ebp - 0x10c0]
call fcn.0040bab3
lea ecx, [ebp - 0x1178]
call fcn.0040ba09
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b266
leave
ret
Function at 0x40be57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40bedb
cmp byte [esi + 0x3d], 0
je 0x40bedb
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40bead
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40beb1
sub eax, 1
je 0x40beb5
dec eax
sub eax, 1
je 0x40bedb
xor al, al
jmp 0x40bedd
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40bed2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004437c4
add esp, 0x10
cmp edi, eax
jne 0x40bead
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40bedd
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret

Function at 0x40c717
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40c73d
xor eax, eax
jmp 0x40c801
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c766
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c766
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c801
cmp dword [esi + 0x4c], 0
je 0x40c7ff
mov ecx, esi
call fcn.0040c1a9
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40c792
push dword [esi + 0x4c]
push eax
call fcn.0040b3e2
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40c7ff
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40c7ff
cmp eax, 1
jle 0x40c7ce
cmp eax, 3
jne 0x40c7ff
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40c784
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x40c7f1
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.004437c4
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40c7ff
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x40c801
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b266
leave
ret 4
Function at 0x40ce0f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40ce31
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ceed
jmp 0x40cee8
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40ce52
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40ce54
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40cedc
jg 0x40ce67
test esi, esi
je 0x40cedc
test ecx, ecx
jl 0x40cea9
jg 0x40ce71
test eax, eax
je 0x40cea9
cmp ebx, ecx
jg 0x40ce83
jl 0x40ce7b
cmp esi, eax
jae 0x40ce83
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0043a420
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40ceaf
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40cedc
jg 0x40ceb9
test esi, esi
je 0x40cedc
cmp dword [edi + 0x4c], 0
je 0x40cedc
mov ecx, edi
call fcn.0040c1a9
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0044315c
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x40cfbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40cfde
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d090
jmp 0x40d08b
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40cfff
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40d001
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40d07f
jg 0x40d014
test esi, esi
je 0x40d07f
test ecx, ecx
jl 0x40d058
jg 0x40d01e
test eax, eax
je 0x40d058
cmp edi, ecx
jg 0x40d030
jl 0x40d028
cmp esi, eax
jae 0x40d030
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0043a420
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40d05b
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40d07f
jg 0x40d065
test esi, esi
je 0x40d07f
cmp dword [ebx + 0x4c], 0
je 0x40d07f
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.004437c4
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d1c2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d227
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x468654
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b266
leave
ret 4
Function at 0x40d3ab
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47d440
push 0x43c390
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a1c
call fcn.0041b390
mov eax, dword [0x483104]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x2a34], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2a28], eax
test eax, eax
je 0x40d57c
mov ecx, eax
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40d40b
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2a30], ecx
cmp ecx, 4
jl 0x40d57c
mov ebx, 0x104
cmp ecx, ebx
jg 0x40d57c
mov dword [ebp - 4], esi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40d463
push 0x800
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.0043af20
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.0043af20
add esp, 0x18
lea eax, [ebp - 0x2a2c]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x40d57c
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0043af20
add esp, 0xc
push dword [ebp - 0x2a28]
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004090b4
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00443e30
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040d238
mov ecx, eax
mov dword [ebp - 0x2a28], ecx
cmp dword [ebp - 0x2a2c], 0
jbe 0x40d57c
mov eax, dword [ebp + esi*4 - 0x2a24]
cmp ebx, eax
je 0x40d573
cmp ecx, eax
je 0x40d573
push 0x400
lea ecx, [ebp - 0xa24]
push ecx
push eax
mov ecx, edi
call fcn.0040d2b3
test eax, eax
je 0x40d56d
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.00443e30
push dword [ebp - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00443bfb
add esp, 0x14
test eax, eax
jne 0x40d56d
push dword [ebp + esi*4 - 0x2a24]
push edi
call fcn.0040d926
mov ecx, dword [ebp - 0x2a28]
inc esi
cmp esi, dword [ebp - 0x2a2c]
jb 0x40d508
xor eax, eax
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.0041b266
leave
ret 8
Function at 0x40d59a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47d420
push 0x43c390
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a14
call fcn.0041b390
mov eax, dword [0x483104]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x2a28], eax
cmp dword [ebp + 0xc], 0
je 0x40d756
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40d5f4
sub ecx, edx
sar ecx, 1
mov edi, 0x104
cmp ecx, edi
ja 0x40d756
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40d63d
mov ebx, 0x800
push ebx
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.0043af20
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.0043af20
add esp, 0x18
lea eax, [ebp - 0x2a2c]
push eax
push ebx
lea eax, [ebp - 0x2a24]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x40d756
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0043af20
add esp, 0xc
push dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.004090b4
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.00443e30
pop ecx
pop ecx
mov edi, esi
cmp dword [ebp - 0x2a2c], 0
jbe 0x40d756
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
mov ecx, dword [ebp - 0x2a28]
call fcn.0040d2b3
test eax, eax
je 0x40d749
push ebx
lea eax, [ebp - 0xa24]
push eax
call fcn.00443e30
pop ecx
pop ecx
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d72e
test dx, dx
je 0x40d72a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d72e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d708
mov eax, esi
jmp 0x40d733
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d749
push dword [ebp + edi*4 - 0x2a24]
push dword [ebp - 0x2a28]
call fcn.0040d926
inc edi
cmp edi, dword [ebp - 0x2a2c]
jb 0x40d6cf
xor eax, eax
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.0041b266
leave
ret 8
Function at 0x40d774
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x848
push 0x47d460
call fcn.0041b430
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x40d8a6
cmp word [esi], ax
je 0x40d8a6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x40d7a7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x40d8a6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d8a6
push 0x800
xor eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.0043af20
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.0040d8c1
push 0x3c
pop esi
push esi
xor eax, eax
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.0043af20
add esp, 0x28
mov dword [ebp - 0x858], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x468684
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40d86f
cmp dword [ebp + 0x1c], 0
je 0x40d86f
push 0xffffffffffffffff
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x40d884
test esi, esi
je 0x40d894
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x40d894
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40d8af
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x40d926
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40d953
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
Function at 0x40e68b
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
push 0x428
mov eax, 0x463508
call fcn.0041b2e2
mov esi, ecx
mov dword [ebp - 0x430], esi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40e6bd
xor eax, eax
jmp 0x40e832
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x40e6b6
and dword [ebp - 4], 0
call fcn.00402f13
push eax
lea ecx, [ebp - 0x424]
call fcn.0040274f
xor eax, eax
inc eax
push 0x208
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043af20
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0043af20
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x420]
push eax
call fcn.00443dc6
pop ecx
push 0
mov ecx, edi
call fcn.0040e1f7
movzx eax, ax
push eax
call fcn.004441b2
movzx eax, ax
pop ecx
cmp word [ebp - 0x420], ax
jne 0x40e766
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40e7b7
push 0
mov ecx, edi
call fcn.0040e1f7
movzx eax, ax
push eax
push str._c:.temp
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040d8c1
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x40e7b7
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.004027d9
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
push 0
lea eax, [ebp - 0x428]
mov ecx, esi
push eax
call fcn.0040ea0c
mov ecx, dword [ebp - 0x428]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403258
mov esi, dword [ebp - 0x424]
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e81d
push dword [edi]
call ebx
test eax, eax
je 0x40e83a
mov ecx, dword [ebp - 0x430]
push esi
call fcn.0040f0db
and dword [ebp - 0x42c], 0
lea ecx, [esi - 0x10]
call fcn.00403258
mov eax, dword [ebp - 0x42c]
call fcn.0041b28c
ret 8
mov ecx, dword [ebp - 0x434]
lea eax, [ebp - 0x424]
push eax
call fcn.004028e8
jmp 0x40e824

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e8a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8a5
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40e886
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e8a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e8a1
test al, 0x10
je 0x40e8a1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40e8a5
xor eax, eax
jmp 0x40e8a8
xor eax, eax
inc eax
pop esi
pop ebp
ret 4