joyce8/EMBER2024-capa huggingface dataset:
Function at 0x855058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008551a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85506a
add dl, dl
jne 0x855089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8550dc
xor eax, eax
add dl, dl
jne 0x855096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85517d
add dl, dl
jne 0x8550a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8550b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8550bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8550c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8550d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x855075
mov eax, 1
add dl, dl
jne 0x8550ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8550f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8550e1
sub eax, ebx
mov ebx, 1
jne 0x855128
mov ecx, 1
add dl, dl
jne 0x85510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x855119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x855105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x855075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x855136
cmp eax, 0x7d00
jae 0x85516d
cmp eax, 0x500
jb 0x855168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x855075
cmp eax, 0x7f
ja 0x855170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x855075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x855075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406bc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x494dc4], 0
je 0x406bee
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.0045a053
add esp, 4
mov ecx, eax
push 0
call fcn.00406930
mov dword [0x494dc4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.004086a0
mov ecx, dword [0x494dc4]
lea eax, [esp + 4]
push eax
call fcn.004078e0
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x406c3e
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.0040b1a0
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret

Function at 0x4078e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x48c10c
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407922
sub ecx, esi
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push 0x48c10c
push eax
mov ecx, edx
call fcn.00416d60
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x407984
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00406c90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x40799c
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.0040b1a0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 4
Function at 0x40e070
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x492250]
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.00424090
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00424270
cmp dword [ebp - 0x10], ebx
je 0x40e1db
nop
cmp byte [ebp - 0x2e4], 0
jne 0x40e0fa
test bl, 1
je 0x40e0e2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00414010
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0045c050
add esp, 0xc
jmp 0x40e113
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 0x40e149
test cl, cl
jne 0x40e12e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x40e149
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 0x40e180
test cl, cl
je 0x40e196
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0040e070
add esp, 4
test al, al
je 0x40e1f0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e192
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 0x40e1f0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00424270
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x40e1b6
push 0xffffffffffffffff
push 0
push eax
call fcn.00409cb0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40e1cb
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0040b1a0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x40e0c0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40e235
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
jbe 0x40e209
jmp 0x40e255
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40e205
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.0040b1a0
xor bl, bl
jmp 0x40e237
add eax, eax
cmp eax, 0x1000
jb 0x40e22c
test cl, 0x1f
jne 0x40e25a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40e25f
sub ecx, eax
cmp ecx, 4
jb 0x40e264
cmp ecx, 0x23
ja 0x40e269
mov ecx, eax
push ecx
call fcn.0045a086
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.00424170
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret
call fcn.0045ff61
call fcn.0045ff61
call fcn.0045ff61
call fcn.0045ff61
call fcn.0045ff61
int3
Function at 0x40e330
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 [0x492250]
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 0x40e36d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x40e526
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040d600
push 2
push ecx
push 0x48b54c
mov ecx, eax
call fcn.00409a40
cmp eax, 0xffffffff
mov eax, dword [esp + 0x28]
setne bl
cmp eax, 8
jb 0x40e3b1
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.0040b1a0
test bl, bl
je 0x40e43f
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0040d600
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.0040d4c0
mov edx, esi
mov ecx, eax
call fcn.0040e070
mov ecx, dword [esp + 0x2c]
add esp, 4
mov bl, al
cmp ecx, 8
jb 0x40e3fc
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0040b1a0
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], 0
cmp eax, 8
jb 0x40e42b
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.0040b1a0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40e449
mov eax, dword [edi]
jmp 0x40e44b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e359
test bl, 1
je 0x40e483
cmp dword [edi + 0x14], 8
jb 0x40e46c
mov ecx, dword [edi]
jmp 0x40e46e
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40e526
test bl, 0x10
jne 0x40e4af
cmp dword [edi + 0x14], 8
jb 0x40e490
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.0045a313
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e4e1
push 0x48b554
lea ecx, [esp + 0x30]
call fcn.004086a0
mov ebx, 1
lea edx, [esp + 0x2c]
push ebx
mov ecx, edi
call fcn.0040e070
add esp, 4
test al, al
jne 0x40e4e5
mov byte [esp + 0xf], al
jmp 0x40e4ea
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x40e4f8
lea ecx, [esp + 0x2c]
call fcn.004085c0
cmp byte [esp + 0xf], 0
je 0x40e526
cmp dword [edi + 0x14], 8
jb 0x40e507
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.0045a313
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.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x40e910
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 0x40e91e
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 0x40e930
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x40e950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x492250]
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 0x40ea7d
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x40e9a0
xor ecx, ecx
jmp 0x40e9bf
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e9b0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.0040cbe0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40e9dc
mov ecx, dword [eax]
jmp 0x40e9de
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040cbe0
lea ecx, [ebp - 0x230]
call fcn.0040db00
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x40ea12
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409cb0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40ea30
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040b1a0
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 0x40ea6b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0040b1a0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x492250]
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 0x40eb3b
cmp word [ebp - 0x210], 0
je 0x40eb3b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x40eaff
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040cbe0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
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 0x40eb10
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040cbe0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
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.0040e950
mov ecx, esi
test al, al
je 0x40eb8d
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.00409cb0
jmp 0x40eba4
sub esp, 8
mov eax, esp
mov dword [eax], 0x48b558
mov dword [eax + 4], 3
call fcn.0040cbe0
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x40ebc2
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.0040b1a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x40ebe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x492250]
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 0x40ec0d
mov ebx, dword [edi]
jmp 0x40ec0f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ec51
test al, 0x10
je 0x40ec33
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40ec3d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040d4c0
cmp dword [edi + 0x14], 8
jb 0x40ec67
mov eax, dword [edi]
jmp 0x40ec69
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.0040a970
test eax, eax
jne 0x40ec8e
test esi, esi
je 0x40ecd6
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40ecdc
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040ebe0
test al, al
jne 0x40eca1
xor bl, bl
jmp 0x40ecdc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ecda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40ecc9
mov ecx, edi
call fcn.0040e930
test al, al
jne 0x40ecda
test esi, esi
je 0x40ecd6
mov ecx, ebx
call fcn.00423c90
mov dword [esi], eax
xor bl, bl
jmp 0x40ecdc
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x40ecf4
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0040b1a0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x40eef0
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 + 0xc], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x40ef19
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
mov dword [esp + 0xc], 0
test esi, esi
je 0x40efc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0040f500
cmp esi, 0xffffffff
je 0x40ef93
mov dword [esp + 0xc], esi
call fcn.0041ad90
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x494eb0]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x40ef80
call fcn.0041aee0
mov ecx, dword [0x494eb0]
push dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x1c]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40efc6
cmp eax, 0xffffffff
je 0x40efc6
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40efc6
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x40efc9
or esi, 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040f500
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40efe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x492250]
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 0x40f132
cmp eax, 0x104
ja 0x40f132
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.004086a0
sub esp, 8
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x240]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0040cbe0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40f074
mov ecx, dword [eax]
jmp 0x40f076
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x228]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040cbe0
lea ecx, [ebp - 0x228]
call fcn.0040db00
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x40f0aa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409cb0
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x40f0c8
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.0040b1a0
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x218], 0
cmp eax, 8
jb 0x40f103
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.0040b1a0
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x40f121
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.0040b1a0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0045a313
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040d960
test al, al
jne 0x40f1c2
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040d960
test al, al
jne 0x40f1c2
cmp dword [edi + 0x10], 0x104
jae 0x40f1c2
cmp dword [esi + 0x10], 0x104
jae 0x40f1c2
cmp dword [esi + 0x14], 8
jb 0x40f18b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40f193
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f1c2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1c2
test al, 1
je 0x40f1bc
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x40f1d0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x40f292
cmp dword [edi + 0x10], 0x104
jae 0x40f292
cmp dword [edi + 0x14], 8
jb 0x40f20a
mov eax, dword [edi]
jmp 0x40f20c
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x40f214
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40f22b
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [esp + 0xc], eax
jb 0x40f241
mov eax, dword [esi]
jmp 0x40f243
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f27f
shr eax, 4
and al, 1
je 0x40f27f
push ecx
mov edx, edi
mov ecx, esi
call fcn.0040e540
add esp, 4
test al, al
je 0x40f27d
push 1
push esi
call fcn.0040e330
mov bl, 1
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4116e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x18]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov ebx, dword [eax + edx*4]
lea edx, [eax + edx*4]
cmp ebx, esi
jne 0x41173b
mov eax, esi
jmp 0x411740
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x411763
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x41174f
mov ecx, dword [ecx]
jmp 0x411733
mov eax, dword [edi]
cmp eax, dword [ecx + 8]
mov eax, dword [ebp + 8]
pop edi
cmovne ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8