joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403430
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a8]
cmp dword [eax + 0x174], 3
jne 0x403450
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xf060
push 0x112
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x403c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c43f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f31b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push 4
push str.EULA
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00405280
mov byte [ebp - 4], 1
call fcn.0043e3b0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0043dcd0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x403c89
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00405920
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403cc0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
Function at 0x40daa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x40dac7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x40dac2
mov eax, dword [ebx]
jmp 0x40dac4
mov eax, ebx
mov byte [eax], 0
call fcn.00413000
test al, al
je 0x40dad9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040fdd0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40dad0
push 0x10000
call fcn.00493d9f
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.0049dbe5
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40db66
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x40db3c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.0040a840
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x40db7c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.0049dbe5
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x40db20
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0049cc37
add esp, 4
test eax, eax
jne 0x40db7f
mov byte [ebp - 1], 1
jmp 0x40db83
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.0049cebf
add esp, 4
test esi, esi
je 0x40db99
push esi
call fcn.00493d9a
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4f31b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40eb4d
cmp byte [ebx + 0x3d], 0
je 0x40eb4d
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40ea3d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
call fcn.00405120
push 0
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.0040e800
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x18]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40eacc
sub eax, 1
je 0x40ead0
sub eax, 2
je 0x40eb2e
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.00404eb0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x40eb0f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049d47a
add esp, 0x10
cmp esi, eax
jne 0x40eaad
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x40eb2e
test esi, esi
jne 0x40ea70
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.0040e8d0
jmp 0x40ea68
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.00404eb0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
Function at 0x40f250
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x4f31b4]
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.0041ac70
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041ad90
cmp dword [ebp - 0x10], ebx
je 0x40f39b
nop
cmp byte [ebp - 0x2e4], 0
jne 0x40f2da
test bl, 1
je 0x40f2c2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.0041a040
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004991f0
add esp, 0xc
jmp 0x40f2f3
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 0x40f316
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 0x40f349
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0040f250
add esp, 4
test al, al
je 0x40f3f7
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40f35b
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 0x40f3f7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041ad90
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x40f383
push 0xffffffffffffffff
push 0
push eax
call fcn.00405380
lea ecx, [ebp - 0x38]
call fcn.00404d70
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x40f2a0
lea ecx, [ebp - 0x20]
call fcn.00404d70
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x40f3b7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.0041b1c0
push dword [ebp - 0x54]
call fcn.00489c95
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.00404d70
lea ecx, [ebp - 0x8c]
call fcn.00404d70
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493b18
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00404d70
xor bl, bl
jmp 0x40f3a5
Function at 0x40f4b0
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 [0x4f31b4]
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 0x40f4ec
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x40f635
lea eax, [esp + 0x14]
push eax
call fcn.00412890
push 2
push ecx
push 0x4e5f3c
mov ecx, eax
call fcn.00410b30
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00404d70
cmp esi, 0xffffffff
je 0x40f56f
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00412890
mov esi, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00412750
mov edx, esi
mov ecx, eax
call fcn.0040f250
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00404d70
lea ecx, [esp + 0x2c]
call fcn.00404d70
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40f579
mov eax, dword [edi]
jmp 0x40f57b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f4d8
test bl, 1
je 0x40f5b3
cmp dword [edi + 0x14], 8
jb 0x40f59c
mov ecx, dword [edi]
jmp 0x40f59e
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f635
test bl, 0x10
jne 0x40f5df
cmp dword [edi + 0x14], 8
jb 0x40f5c0
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.00493b18
mov esp, ebp
pop ebp
ret
push 0x4e5f44
lea ecx, [esp + 0x18]
call fcn.00404e00
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.0040f250
add esp, 4
lea ecx, [esp + 0x14]
test al, al
setne bl
call fcn.00404d70
test bl, bl
je 0x40f635
cmp dword [edi + 0x14], 8
jb 0x40f616
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.00493b18
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.00493b18
mov esp, ebp
pop ebp
ret
Function at 0x40fa60
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 0x40fa6e
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 0x40fa80
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x40faa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4f31b4]
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 0x40fb82
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x40faf2
xor ecx, ecx
jmp 0x40fb0f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb00
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00412190
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40fb2a
mov ecx, dword [eax]
jmp 0x40fb2c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412190
lea ecx, [esp + 8]
call fcn.004130b0
lea eax, [esp + 8]
cmp esi, eax
je 0x40fb5a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405380
lea ecx, [esp + 8]
call fcn.00404d70
lea ecx, [esp + 0x20]
call fcn.00404d70
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
Function at 0x40fba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4f31b4]
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 0x40fc4f
cmp word [esp + 0x20], 0
je 0x40fc4f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x40fc13
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00412190
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00493b18
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 0x40fc20
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00412190
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00404e60
lea eax, [esp + 8]
push eax
call fcn.0040faa0
add esp, 4
mov ecx, esi
test al, al
je 0x40fc77
lea eax, [esp + 8]
push eax
call fcn.00404e80
jmp 0x40fc8e
sub esp, 8
mov eax, esp
mov dword [eax], 0x4e5f48
mov dword [eax + 4], 3
call fcn.00412190
lea ecx, [esp + 8]
call fcn.00404d70
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
Function at 0x40fcb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4f31b4]
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 0x40fcdd
mov ebx, dword [edi]
jmp 0x40fcdf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fd21
test al, 0x10
je 0x40fd03
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40fd0d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00412750
cmp dword [edi + 0x14], 8
jb 0x40fd37
mov eax, dword [edi]
jmp 0x40fd39
mov eax, edi
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x14]
push dword [edi + 0x10]
cmovae ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
call fcn.004051d0
add esp, 8
test eax, eax
jne 0x40fd69
test esi, esi
je 0x40fdad
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40fdb3
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040fcb0
test al, al
je 0x40fdad
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40fdb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40fda0
mov ecx, edi
call fcn.0040fa80
test al, al
jne 0x40fdb1
test esi, esi
je 0x40fdad
mov ecx, ebx
call fcn.0041a950
mov dword [esi], eax
xor bl, bl
jmp 0x40fdb3
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00404d70
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret

Function at 0x40fe70
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 0x40fe90
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.004103b0
mov eax, dword [esp + 8]
test eax, eax
je 0x40fee1
cmp eax, 0xffffffff
je 0x40fee1
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 0x40fee1
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x40fee4
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00410340
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ff00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4f31b4]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40ffe9
cmp eax, 0x104
ja 0x40ffe9
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.00404e00
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.00412190
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40ff89
mov ecx, dword [eax]
jmp 0x40ff8b
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412190
lea ecx, [esp + 0x20]
call fcn.004130b0
lea eax, [esp + 0x20]
cmp esi, eax
je 0x40ffb9
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405380
lea ecx, [esp + 0x20]
call fcn.00404d70
lea ecx, [esp + 0x38]
call fcn.00404d70
lea ecx, [esp + 8]
call fcn.00404d70
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret

Function at 0x410000
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 0x410092
cmp dword [edi + 0x10], 0x104
jae 0x410092
cmp dword [edi + 0x14], 8
jb 0x410026
mov eax, dword [edi]
jmp 0x410028
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x410030
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x410046
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 0x41005c
mov eax, dword [esi]
jmp 0x41005e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410080
shr eax, 4
and al, 1
je 0x410080
mov edx, edi
mov ecx, esi
call fcn.004100a0
mov bl, al
test bl, bl
jne 0x410089
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 0x414880
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x414891
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 0x4148b4
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 0x4148cd
jl 0x4148c5
test eax, eax
jae 0x4148cd
or eax, 0xffffffff
mov edx, 0x7fffffff
mov esp, ebp
pop ebp
ret
Function at 0x414fa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4f31b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x54], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
sub esp, 8
mov edi, ecx
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x414fd5
mov ecx, dword [eax]
jmp 0x414fd7
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x50]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412190
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404e80
lea ecx, [ebp - 0x50]
call fcn.00404d70
push ecx
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004181f0
push 0x3c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004991f0
add esp, 0xc
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [ebp - 0x7c], eax
mov eax, 5
cmovne eax, ecx
mov dword [ebp - 0x84], str.runas
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4150ad
lea ecx, [edi + 4]
mov byte [edi], al
push eax
mov dword [ecx], eax
call fcn.004103b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4150dd
cmp byte [0x5076f0], 0
je 0x4150dc
jmp 0x415100
cmp byte [esi], 0
je 0x4150bd
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x58]
lea ecx, [edi + 4]
mov byte [edi], 0
push esi
mov dword [ecx], 0
call fcn.004103b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, eax
jmp 0x4150a0
int3
lea ecx, [ebp - 0x20]
call fcn.00404d70
lea ecx, [ebp - 0x38]
call fcn.00404d70
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493b18
mov esp, ebp
pop ebp
ret
push 1
call fcn.004a38ae
int3
Function at 0x416d20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.00494520
mov eax, dword [0x4f31b4]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x4c9b98]
mov esi, eax
test esi, esi
jne 0x416e67
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x416df4
cmp word [esp + 0x10], ax
jne 0x416db8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00405280
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416dc0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405280
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x416e62
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x416e47
cmp eax, 0x400
ja 0x416e47
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00405230
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00493b18
mov esp, ebp
pop ebp
ret 8

Function at 0x418140
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f31b4]
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 [0x5075c4]
call fcn.00404e60
mov edx, 0x4e6348
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x418172
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x4e6348
push eax
call fcn.00415700
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4181cc
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.00417a50
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.00404d70
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00493b18
mov esp, ebp
pop ebp
ret 4