joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407eb0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a3eb
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], 0
push 0x44
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.0041cb70
add esp, 0xc
mov dword [ebp - 0x84], 0x44
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
movzx edx, byte [0x4500da]
test edx, edx
je 0x408039
lea ecx, [ebp - 0x40]
call fcn.004090d0
mov dword [ebp - 4], 0
push str.CmdLine
lea ecx, [ebp - 0xb8]
call fcn.00409520
mov byte [ebp - 4], 1
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0x450154
call fcn.00408c40
push eax
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00404830
add esp, 8
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408f50
lea ecx, [ebp - 0xd0]
call fcn.00408f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.004093c0
lea ecx, [ebp - 0x28]
call fcn.004090d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
push 0x449668
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00411ac0
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x28]
call fcn.00408f50
lea ecx, [ebp - 0xe8]
call fcn.00408f00
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00408e00
push eax
mov ecx, 0x4501ec
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408f00
jmp 0x40806c
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, 0x4501ec
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x40807a
or eax, 0xffffffff
jmp 0x4080b0
movzx ecx, byte [0x4500e3]
test ecx, ecx
jne 0x408094
push 0xffffffffffffffff
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret

Function at 0x408110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x449680
call fcn.0041f45e
add esp, 8
cmp eax, 0xffffffff
je 0x408132
push str.C:Program_FilesSampleUpdateServiceSamUdSrv.exe.Bak
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop ebp
ret
Function at 0x408140
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 1], 1
mov ecx, 0x4501d4
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40816c
mov byte [ebp - 1], 0
movzx eax, byte [0x4500e3]
test eax, eax
jne 0x408190
mov ecx, 0x4501ec
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408190
mov byte [ebp - 1], 0
push 0
mov ecx, 0x45018c
call fcn.00408e00
push eax
call fcn.0041f45e
add esp, 8
cmp eax, 0xffffffff
je 0x4081c3
mov ecx, 0x45018c
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4081c3
mov byte [ebp - 1], 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4501a4
call fcn.00408e00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4081e7
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x4081f4
or eax, 0xffffffff
jmp 0x4081f6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
xor eax, eax
je 0x409d8b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x409c93
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040aff0
jmp 0x409d9f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0040ef20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x409d39
jg 0x409cbf
cmp dword [ebp + 0xc], 0
jbe 0x409d39
cmp dword [ebp - 8], 0
jl 0x409d39
jg 0x409ccd
cmp dword [ebp - 0xc], 0
jbe 0x409d39
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x409ceb
jl 0x409cdf
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x409ceb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040f1a0
push eax
call fcn.0040fcc0
add esp, 0xc
push 0
push 2
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041b150
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040efe0
cmp dword [ebp + 0x10], 0
jl 0x409d7b
jg 0x409d47
cmp dword [ebp + 0xc], 0
jbe 0x409d7b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x409d7b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00424df3
add esp, 0x10
xor edx, edx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x409d9f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040aff0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
xor eax, eax
je 0x409ee3
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x409de3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040b120
jmp 0x409ef7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0040f020
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x409e89
jg 0x409e0f
cmp dword [ebp + 0xc], 0
jbe 0x409e89
cmp dword [ebp - 8], 0
jl 0x409e89
jg 0x409e1d
cmp dword [ebp - 0xc], 0
jbe 0x409e89
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x409e3b
jl 0x409e2f
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x409e3b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040f1c0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040fcc0
add esp, 0xc
push 0
push 2
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041b150
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040f140
cmp dword [ebp + 0x10], 0
jl 0x409ed3
jg 0x409e97
cmp dword [ebp + 0xc], 0
jbe 0x409ed3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x409ed3
mov ecx, dword [ebp - 4]
call fcn.0040e7e0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425e86
add esp, 0x10
xor edx, edx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x409ef7
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040b120
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.0040fc20
mov word [ebp - 0x3e], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3e]
push ecx
call fcn.0040fc90
add esp, 8
movzx edx, al
test edx, edx
je 0x40a3d5
lea eax, [ebp + 8]
push eax
call fcn.0040fc30
add esp, 4
jmp 0x40a566
mov ecx, dword [ebp - 0x38]
call fcn.0040f1a0
test eax, eax
je 0x40a41a
mov ecx, dword [ebp - 0x38]
call fcn.0040f1a0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.0040f0e0
cmp esi, eax
jae 0x40a41a
lea ecx, [ebp + 8]
push ecx
call fcn.0040a580
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x38]
call fcn.0040ef50
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x40a566
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x40a42d
call fcn.0040fc20
jmp 0x40a566
mov ecx, dword [ebp - 0x38]
call fcn.0040e7e0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x40a480
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040a580
add esp, 4
movzx ecx, ax
push ecx
call fcn.00403f50
add esp, 8
movzx edx, al
test edx, edx
je 0x40a46e
mov ax, word [ebp + 8]
mov word [ebp - 0x3a], ax
jmp 0x40a477
call fcn.0040fc20
mov word [ebp - 0x3a], ax
mov ax, word [ebp - 0x3a]
jmp 0x40a566
mov dword [ebp - 0x4c], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0040a580
add esp, 4
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x2a]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.004020a0
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jl 0x40a561
cmp dword [ebp - 0x44], 1
jle 0x40a4df
cmp dword [ebp - 0x44], 3
je 0x40a52d
jmp 0x40a561
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x48], ecx
je 0x40a511
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00424df3
add esp, 0x10
cmp dword [ebp - 0x48], eax
je 0x40a511
call fcn.0040fc20
jmp 0x40a566
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x34], edx
je 0x40a526
mov ax, word [ebp + 8]
jmp 0x40a566
call fcn.0040fc20
jmp 0x40a566
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
call fcn.00403f50
add esp, 8
movzx eax, al
test eax, eax
je 0x40a552
mov cx, word [ebp + 8]
mov word [ebp - 0x3c], cx
jmp 0x40a55b
call fcn.0040fc20
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
jmp 0x40a566
call fcn.0040fc20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret 4
Function at 0x40b9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x40baee
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x40ba08
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040cc00
jmp 0x40bb02
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0040ef20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x40ba9c
jg 0x40ba30
cmp dword [ebp + 0xc], 0
jbe 0x40ba9c
cmp dword [ebp - 8], 0
jl 0x40ba9c
jg 0x40ba3e
cmp dword [ebp - 0xc], 0
jbe 0x40ba9c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x40ba5c
jl 0x40ba50
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x40ba5c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040f1a0
push eax
call fcn.004016a0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040fa70
cmp dword [ebp + 0x10], 0
jl 0x40bade
jg 0x40baaa
cmp dword [ebp + 0xc], 0
jbe 0x40bade
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x40bade
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00424df3
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x40bb02
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040cc00
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x40bc36
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x40bb48
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040cd20
jmp 0x40bc4a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0040f020
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x40bbdc
jg 0x40bb70
cmp dword [ebp + 0xc], 0
jbe 0x40bbdc
cmp dword [ebp - 8], 0
jl 0x40bbdc
jg 0x40bb7e
cmp dword [ebp - 0xc], 0
jbe 0x40bbdc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x40bb9c
jl 0x40bb90
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x40bb9c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040f1c0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004016a0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040fba0
cmp dword [ebp + 0x10], 0
jl 0x40bc26
jg 0x40bbea
cmp dword [ebp + 0xc], 0
jbe 0x40bc26
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x40bc26
mov ecx, dword [ebp - 4]
call fcn.0040f2b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00425e86
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x40bc4a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040cd20
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x38], ecx
call fcn.004017f0
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00401770
add esp, 8
movzx edx, al
test edx, edx
je 0x40c105
lea eax, [ebp + 8]
push eax
call fcn.004017a0
add esp, 4
jmp 0x40c286
mov ecx, dword [ebp - 0x38]
call fcn.0040f1a0
test eax, eax
je 0x40c147
mov ecx, dword [ebp - 0x38]
call fcn.0040f1a0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.0040fb40
cmp esi, eax
jae 0x40c147
lea ecx, [ebp + 8]
push ecx
call fcn.00401750
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.0040f9e0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c286
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x40c15a
call fcn.004017f0
jmp 0x40c286
mov ecx, dword [ebp - 0x38]
call fcn.0040f2b0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x40c1a9
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00401750
add esp, 4
movzx ecx, al
push ecx
call fcn.00403f10
add esp, 8
movzx edx, al
test edx, edx
je 0x40c199
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x40c1a1
call fcn.004017f0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x40c286
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.00401750
add esp, 4
mov byte [ebp - 0x2a], al
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.004020a0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x40c281
cmp dword [ebp - 0x3c], 1
jle 0x40c204
cmp dword [ebp - 0x3c], 3
je 0x40c251
jmp 0x40c281
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x40c236
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00424df3
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40c236
call fcn.004017f0
jmp 0x40c286
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x40c24a
mov eax, dword [ebp + 8]
jmp 0x40c286
call fcn.004017f0
jmp 0x40c286
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.00403f10
add esp, 8
movzx eax, al
test eax, eax
je 0x40c274
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
jmp 0x40c27c
call fcn.004017f0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x40c286
call fcn.004017f0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret 4
Function at 0x40e870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x40e897
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x40e89e
mov al, 1
jmp 0x40e977
call fcn.0040fc20
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x32], ax
call fcn.0040fc20
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x32]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0040fc90
add esp, 8
movzx eax, al
test eax, eax
je 0x40e8df
xor al, al
jmp 0x40e977
mov dword [ebp - 0x44], 0x20
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.004020e0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40e91b
cmp dword [ebp - 0x38], 1
je 0x40e922
cmp dword [ebp - 0x38], 3
je 0x40e971
jmp 0x40e975
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3e], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x3c], ecx
je 0x40e951
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00424df3
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x40e951
xor al, al
jmp 0x40e977
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x40e965
mov dword [ebp - 0x40], 1
jmp 0x40e96c
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
jmp 0x40e977
mov al, 1
jmp 0x40e977
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret
Function at 0x40f340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x40f367
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40f36e
mov al, 1
jmp 0x40f442
call fcn.004017f0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.004017f0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00401770
add esp, 8
movzx eax, al
test eax, eax
je 0x40f3aa
xor al, al
jmp 0x40f442
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.004020e0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40f3e6
cmp dword [ebp - 0x34], 1
je 0x40f3ed
cmp dword [ebp - 0x34], 3
je 0x40f43c
jmp 0x40f440
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x40f41c
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00424df3
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40f41c
xor al, al
jmp 0x40f442
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40f430
mov dword [ebp - 0x3c], 1
jmp 0x40f437
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x40f442
mov al, 1
jmp 0x40f442
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret

Function at 0x42c53a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c1fd

Function at 0x42c545
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c37e

Function at 0x43261d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004322dd