joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f0a0
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4223d8
call fcn.0041fd98
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x423e5c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41ee75
cmp eax, esi
jne 0x41ee68
xor esi, esi
inc esi
mov edi, esi
jmp 0x41ee78
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ee4c
xor esi, esi
inc esi
cmp dword [0x423e60], esi
jne 0x41ee8a
push 0x1f
call fcn.00563000
pop ecx
jmp 0x41eec4
cmp dword [0x423e60], ebx
jne 0x41eebe
mov dword [0x423e60], esi
push 0x401028
push 0x401018
call fcn.0041effe
pop ecx
pop ecx
test eax, eax
je 0x41eec4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41efee
mov dword [0x423ae0], esi
cmp dword [0x423e60], esi
jne 0x41eee7
push 0x401014
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x423e60], 2
test edi, edi
jne 0x41eef4
xor eax, eax
mov ecx, 0x423e5c
xchg dword [ecx], eax
cmp dword [0x423e70], 0
je 0x41ef20
push 0x423e70
call fcn.0041fbf0
pop ecx
test eax, eax
je 0x41ef20
push ebx
push 2
push ebx
mov esi, dword [0x423e70]
mov ecx, esi
call dword [0x42486c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x41eead
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x41ef8b
test ax, ax
je 0x41ef5a
test edx, edx
jne 0x41ef8b
test ax, ax
je 0x41ef5a
cmp ax, si
ja 0x41ef5a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x41ef45
test byte [ebp - 0x3c], 1
je 0x41ef66
movzx eax, word [ebp - 0x38]
jmp 0x41ef69
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x423adc], eax
cmp dword [0x423af4], 0
jne 0x41efd3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x41ef9c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x41ef34
cmp dword [0x423ae0], 0
jne 0x41efe7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x423adc]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0041fce5
jmp 0x41ee23

Function at 0x41fad4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x422418
call fcn.0041fd98
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fb34
cmp eax, 0xffffffff
je 0x41fb34
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41fb2d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41fb2d
cmp edx, 0x10000000
jae 0x41fb2d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41fb2a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4046f0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, 0x104
push edi
cmp dword [esi + 0x10], eax
jae 0x404788
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], eax
jae 0x404788
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x40471c
mov ecx, dword [edi]
jmp 0x40471e
mov ecx, edi
cmp dword [esi + 0x14], eax
jb 0x404727
mov eax, dword [esi]
jmp 0x404729
mov eax, esi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40473d
pop edi
mov al, 1
pop esi
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp + 8], eax
jb 0x404753
mov eax, dword [esi]
jmp 0x404755
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404777
shr eax, 4
and al, 1
je 0x404777
mov edx, edi
mov ecx, esi
call fcn.00404cb0
mov bl, al
test bl, bl
jne 0x404781
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, 0x104
push edi
cmp dword [esi + 0x10], eax
jae 0x404813
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], eax
jae 0x404813
cmp dword [esi + 0x14], 8
jb 0x4047b4
mov eax, dword [esi]
jmp 0x4047b6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4047c9
shr eax, 4
and al, 1
jne 0x4047d7
push edi
push esi
call fcn.004046f0
add esp, 8
pop edi
pop esi
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4047e1
mov ecx, dword [edi]
jmp 0x4047e3
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x4047ed
mov eax, dword [esi]
jmp 0x4047ef
mov eax, esi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x404803
pop edi
mov al, 1
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00404d20
add esp, 4
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x4049d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x104
mov esi, ecx
mov dword [ebp - 0x43c], esi
cmp dword [edi + 0x10], eax
jae 0x404b98
cmp dword [esi + 0x10], eax
jae 0x404b98
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0046e0e0
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.0046e0e0
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x404a46
mov eax, dword [edi]
jmp 0x404a48
mov eax, edi
lea edx, [ebp - 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404a50
cmp dword [esi + 0x14], 8
jb 0x404a69
mov eax, dword [esi]
jmp 0x404a6b
mov eax, esi
lea edx, [ebp - 0x41c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404a73
xor eax, eax
mov dword [ebp - 0x454], eax
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov word [ebp - 0x440], ax
lea ecx, [ebp - 0x45c]
lea edx, [ebp - 0x41c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x458], 2
mov dword [ebp - 0x450], edx
mov word [ebp - 0x44c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
test esi, esi
je 0x404b82
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
lea ecx, [ebp - 0x438]
mov dword [ebx], esi
mov dword [ebx + 4], 5
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], dx
call fcn.00402710
push 3
push 0x49b4a8
lea ecx, [ebp - 0x438]
call fcn.00407470
mov eax, dword [ebp - 0x43c]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
call fcn.00402600
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebx + 8]
call fcn.00402710
cmp dword [ebp - 0x424], 8
jb 0x404b82
mov edx, dword [ebp - 0x438]
push edx
call fcn.0046d64b
add esp, 4
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x404bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
cmp byte [ebp + 0x10], bl
je 0x404bf4
push 1
call fcn.00404870
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x404bfe
mov eax, dword [edi]
jmp 0x404c00
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404c27
call fcn.00413010
cmp eax, 3
jl 0x404c1e
push edi
call fcn.00405960
jmp 0x404c24
push ebx
call fcn.00404870
add esp, 4
push 3
xor eax, eax
push 0x49b4b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
call fcn.00402ed0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00401a30
cmp dword [esp + 0x28], 8
jb 0x404c6f
mov eax, dword [esp + 0x14]
push eax
call fcn.0046d64b
add esp, 4
push ebx
lea esi, [esp + 0x34]
call fcn.00404870
add esp, 4
cmp dword [esp + 0x44], 8
mov bl, al
jb 0x404c92
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x404d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [ebp - 0x40], ecx
xor edx, edx
mov edi, 7
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
call fcn.00402710
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x404d65
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404e15
shr eax, 4
and al, 1
je 0x404e15
push 3
xor eax, eax
push 0x49b4b0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
call fcn.00402ed0
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jbe 0x404da9
xor al, al
jmp 0x404deb
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x48], bl
jb 0x404db6
mov edx, dword [esi]
jmp 0x404db8
mov edx, esi
mov edi, dword [ebp - 0x3c]
add ecx, ecx
add eax, eax
sub ecx, eax
add ecx, edx
mov edx, dword [ebp - 0x28]
mov ebx, edi
cmp edx, 8
jae 0x404dd0
lea ebx, [ebp - 0x3c]
add eax, ebx
cmp edx, 8
mov edx, edi
jae 0x404ddc
lea edx, [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
push edi
push eax
mov eax, edx
call fcn.00412c40
add esp, 8
test al, al
sete bl
cmp dword [ebp - 0x28], 8
jb 0x404e02
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0046d64b
add esp, 4
test bl, bl
je 0x404e15
push 4
push 0x49b4b8
lea ecx, [ebp - 0x20]
call fcn.00407470
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
lea edi, [ebp - 0x20]
call fcn.004049d0
pop edi
pop ebx
test al, al
je 0x404e86
push 1
push esi
call fcn.00404360
add esp, 8
test al, al
je 0x404e5a
cmp dword [ebp - 0xc], 8
jb 0x404e4a
mov edx, dword [ebp - 0x20]
push edx
call fcn.0046d64b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x40]
mov dword [eax + 4], 2
jb 0x404e4a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046d64b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x404e98
mov edx, dword [ebp - 0x20]
push edx
call fcn.0046d64b
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret

Function at 0x404eb0
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 0x404ebe
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 0x404ed0
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 0x404ede
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ef2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x404f00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0x49b5bc
xor ebx, ebx
push 1
push ebx
mov dword [esp + 0x24], ebx
push 0x496a9c
mov dword [esp + 0x24], ebx
mov byte [esp + 0x23], bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x405024
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push 0x49b5cc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x405014
cmp dword [esi + 0x14], 8
jb 0x404f78
mov eax, dword [esi]
jmp 0x404f7a
mov eax, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
test eax, eax
js 0x405014
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 1
push ebx
push eax
call edx
test eax, eax
js 0x405014
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 2
push ebx
push 0x104
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.00406cb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
xor edx, edx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00402710
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00402710
lea ecx, [esp + 0x18]
call fcn.00401f80
lea ecx, [esp + 0x34]
call fcn.00401f80
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x405024
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405034
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x25c]
mov al, byte [esp + 0xf]
pop esi
pop ebx
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.00413010
cmp eax, 4
jge 0x4052f1
xor al, al
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
pop ebp
ret

Function at 0x405320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push 0x104
mov dword [ebp - 0x268], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40549b
push ebx
push esi
push edi
xor edi, edi
xor edx, edx
mov ebx, 7
lea eax, [ebp - 0x210]
mov word [ebp - 0x264], dx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405382
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x264]
call fcn.00402ed0
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x264]
mov word [ebp - 0x248], cx
push edx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], edi
call fcn.00402710
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x248]
xor eax, eax
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x22c], ax
call fcn.00402710
lea esi, [ebp - 0x22c]
call fcn.00401d80
mov ecx, dword [ebp - 0x268]
push 0xffffffffffffffff
push edi
mov edx, esi
push edx
call fcn.00402710
mov esi, 8
cmp dword [ebp - 0x218], esi
jb 0x405430
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0046d64b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x22c], cx
cmp dword [ebp - 0x234], esi
jb 0x40545c
mov edx, dword [ebp - 0x248]
push edx
call fcn.0046d64b
add esp, 4
mov dword [ebp - 0x238], edi
xor eax, eax
cmp dword [ebp - 0x250], esi
pop edi
pop esi
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x248], ax
pop ebx
jb 0x40548b
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.0046d64b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push esi
mov esi, ecx
mov dword [esp + 4], 0
jb 0x405580
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x49b4f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40565f
push 0x104
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x105
ja 0x40565f
test eax, eax
je 0x40565f
xor ecx, ecx
push eax
lea edx, [esp + 0x44]
mov word [esp + 0x28], cx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.00402ed0
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402710
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402710
mov esi, 8
cmp dword [esp + 0x1c], esi
jb 0x405637
mov eax, dword [esp + 8]
push eax
call fcn.0046d64b
add esp, 4
cmp dword [esp + 0x38], esi
jb 0x40564a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0046d64b
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
xor al, al
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x405960
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 [0x4a02f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 8
push edi
mov dword [esp + 0xc], 0
cmp dword [esi + 0x14], ebx
jb 0x405990
mov edi, dword [esi]
jmp 0x405992
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4059b5
shr al, 4
and al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004018f0
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], ebx
jb 0x4059cd
mov eax, dword [esi]
jmp 0x4059cf
mov eax, esi
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004029c0
test eax, eax
jne 0x405a0c
cmp dword [esp + 0x24], ebx
jb 0x4059f8
mov edx, dword [esp + 0x10]
push edx
call fcn.0046d64b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call fcn.00405960
add esp, 4
test al, al
jne 0x405a44
cmp dword [esp + 0x24], ebx
jb 0x4059f8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046d64b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.00404ed0
add esp, 4
lea ecx, [esp + 0x10]
test al, al
jne 0x405a85
call fcn.00401f80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00401f80
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret

Function at 0x405c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push edi
jb 0x405c5e
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x405ccb
cmp esi, 0xffffffff
je 0x405ccb
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405cbb
mov eax, dword [esp + 0xc]
cmp eax, edi
jne 0x405cbb
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405cb3
call fcn.0040a060
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405ccb
call fcn.0040a060
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push 0x104
mov dword [ebp - 0x264], eax
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
cmp eax, edi
je 0x405e56
cmp eax, 0x104
ja 0x405e56
xor eax, eax
push ebx
mov word [ebp - 0x260], ax
mov ebx, 7
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405d52
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00402ed0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x260]
xor edx, edx
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], edi
mov word [ebp - 0x244], dx
call fcn.00402710
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x244]
mov word [ebp - 0x228], cx
push edx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
call fcn.00402710
lea esi, [ebp - 0x228]
call fcn.00401d80
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push edi
mov eax, esi
push eax
call fcn.00402710
mov esi, 8
cmp dword [ebp - 0x214], esi
jb 0x405e00
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0046d64b
add esp, 4
xor edx, edx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
mov word [ebp - 0x228], dx
cmp dword [ebp - 0x230], esi
jb 0x405e2c
mov eax, dword [ebp - 0x244]
push eax
call fcn.0046d64b
add esp, 4
cmp dword [ebp - 0x24c], esi
pop esi
pop ebx
jb 0x405e45
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.0046d64b
add esp, 4
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret