joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d3f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x11
push dword [0x5f8498]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [0x5f85c4]
add eax, 0xfffffff0
mov dword [ebp - 0x34], 0x41
push eax
mov dword [ebp - 0x38], 0x5c3354
call fcn.0040c780
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x4069b0
cmp dword [esi - 4], 1
jle 0x406a7c
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040c500
mov esi, dword [ebp - 0x14]
push ebx
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
or edi, 0xffffffff
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x406b3b
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x24]
call fcn.00410c40
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov ebx, dword [0x5f85c4]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x406b1a
mov eax, dword [ebx + 0xc]
shr eax, 0x1f
test al, al
jne 0x406b0c
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x406b0c
push edx
call fcn.0040c780
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, edi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b02
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [0x5f85c4], eax
jmp 0x406b1a
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5f85c4
call fcn.0040c8c0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406b38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x406b5c
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
pop ebx
jg 0x406b73
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b350
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
sub eax, 0x10
push eax
call fcn.0040c780
add eax, 0x10
mov dword [edi + 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
sub eax, 0x10
push eax
call fcn.0040c780
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
mov eax, dword [esi + 0x60]
sub eax, 0x10
push eax
call fcn.0040c780
mov ecx, dword [ebp - 0xc]
add esp, 0xc
add eax, 0x10
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d9a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.004388e8
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x40b89d
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40b96e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b96e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b96e
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40b902
nop
cmp esi, ecx
jae 0x40b96e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40b8f0
cmp esi, ecx
jae 0x40b96e
cmp word [esi], 0
je 0x40b96e
mov ebx, dword [ebp - 0x10]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40b92d
push edi
mov ecx, ebx
call fcn.0040c850
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.0055e60d
push eax
call fcn.00402c80
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40b983
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004027b0
int3
Function at 0x40c270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d9a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x40c37f
test eax, 0xffff0000
jne 0x40c37f
push ebx
push edi
movzx edi, ax
push edi
mov dword [ebp - 4], 0
call fcn.004388e8
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40c37b
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40c37b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c37b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c37a
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40c324
cmp esi, ecx
jae 0x40c37a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40c312
cmp esi, ecx
jae 0x40c37a
cmp word [esi], 0
je 0x40c37a
mov ebx, dword [ebp - 0x10]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40c34f
push edi
mov ecx, ebx
call fcn.0040c850
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.0055e60d
push eax
call fcn.00402c80
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40c391
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop esi
pop edi
mov dl, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov al, dl
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004027b0
int3

Function at 0x40f020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5c548c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40f0b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f0b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40f0b5
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40f0b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f0ae
push edi
push ebx
push eax
call fcn.0055acc0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40f0a7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fb80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57db8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push ecx
mov edi, esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
call fcn.00438044
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40fcdf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c270
test al, al
jne 0x40fc08
test esi, esi
jne 0x40fbea
xor ecx, ecx
jmp 0x40fbff
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fbf0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c8c0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f6a0
mov dword [ebp - 4], 2
mov esi, esp
mov edi, dword [eax]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
call fcn.00438044
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40fce9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040c270
test al, al
jne 0x40fc7b
test ebx, ebx
jne 0x40fc5e
xor ecx, ecx
jmp 0x40fc72
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fc63
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040f6a0
add esp, 4
push 0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fcb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40fccc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
push 0x80004005
call fcn.004027b0
int3
Function at 0x40fd00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57db2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.00410b50
push ecx
mov edi, esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00438044
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40fdd2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c270
test al, al
jne 0x40fd89
test esi, esi
jne 0x40fd6c
xor ecx, ecx
jmp 0x40fd80
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd71
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f6a0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fdc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3

Function at 0x40fde0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57db2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push ecx
mov edi, esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00438044
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40feb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c270
test al, al
jne 0x40fe68
test esi, esi
jne 0x40fe47
xor ecx, ecx
jmp 0x40fe5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe50
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f6a0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fe9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3
Function at 0x410b50
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57db2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push ecx
mov edi, esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00438044
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x410c2b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c270
test al, al
jne 0x410bd8
test esi, esi
jne 0x410bb7
xor ecx, ecx
jmp 0x410bcf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410bc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c8c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f6a0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x3e
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410c1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3
Function at 0x411bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
push 0x40
push dword [esi]
lea ecx, [esi + 4]
call fcn.004101e0
mov eax, dword [esi + 0x20]
lea edx, [esp + 8]
push 0
push edx
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push eax
push ecx
push dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esi + 0x20]
cmp dword [eax + 4], 0
mov ecx, dword [eax]
ja 0x411c0a
test ecx, ecx
je 0x411c2a
mov dword [esp + 8], 0
test ecx, ecx
je 0x411c2a
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push dword [ebp + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
test eax, eax
je 0x411c3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417050
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6000
call fcn.00559000
push esi
mov esi, ecx
push edi
mov edi, edx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x417066
sub esi, edx
cmp esi, 0x1000
jb 0x41708a
call fcn.00562ce9
pop edi
pop esi
mov dword [eax], 0x26
xor eax, eax
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x417096
cmp byte [esi + ecx - 1], 0x5c
jne 0x417096
dec esi
push esi
push ecx
lea eax, [ebp - 0x1000]
push eax
call fcn.0055acc0
mov byte [ebp + esi - 0x1000], 0
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4170b4
sub esi, ecx
cmp esi, 0x1000
jae 0x417077
test esi, esi
je 0x4170d1
cmp byte [esi + edi - 1], 0x5c
jne 0x4170d1
dec esi
push ebx
push esi
lea eax, [ebp - 0x2000]
push edi
push eax
call fcn.0055acc0
add esp, 0xc
mov byte [ebp + esi - 0x2000], 0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x6000]
push 0x1000
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1000]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jle 0x417135
push 0x1000
lea eax, [ebp - 0x4000]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2000]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jg 0x41715a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.00562ce9
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4000]
push eax
lea eax, [ebp - 0x6000]
push eax
call fcn.005653a0
add esp, 8
neg eax
sbb eax, eax
inc eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417300
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00559000
push esi
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x417313
sub esi, edx
cmp esi, 0x1000
jb 0x417336
call fcn.00562ce9
mov dword [eax], 0x26
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x417342
cmp byte [esi + ecx - 1], 0x5c
jne 0x417342
dec esi
push esi
push ecx
lea eax, [ebp - 0x1004]
push eax
call fcn.0055acc0
add esp, 8
mov byte [ebp + esi - 0x1004], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x1004]
push 0
call fcn.00416e50
add esp, 8
test eax, eax
je 0x41732f
mov eax, dword [ebp - 4]
sub eax, 0
je 0x4173a0
sub eax, 1
je 0x41738e
sub eax, 1
jne 0x41732f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00562ce9
pop esi
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x3004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1004]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x4173eb
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.00562ce9
mov dword [eax], ebx
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3004]
push eax
call fcn.00564cbb
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov esi, dword [eax]
sub ebx, edi
mov dword [esp + 0x14], ebx
je 0x4175f7
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 0
cmp dword [esp + 0x10], edx
ja 0x417603
jb 0x4174d7
cmp ebx, eax
ja 0x417603
sub eax, ebx
sbb edx, 0
cmp dword [ebp + 0x10], edx
ja 0x417603
mov edx, dword [ebp + 0xc]
jb 0x4174f2
cmp edx, eax
ja 0x417603
add edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
adc eax, dword [ebp + 0x10]
cmp dword [esi + 0x20], edx
jne 0x417505
cmp dword [esi + 0x24], eax
je 0x41755a
push 0
push eax
push edx
push dword [esi + 0x18]
call fcn.00564958
add esp, 0x10
test eax, eax
je 0x417557
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.00562ce9
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x417646
test edi, edi
je 0x417646
test eax, eax
jne 0x417547
mov dword [esi + 0x30], edi
push edi
call fcn.00563033
add esp, 4
push eax
push edi
jmp 0x41762e
mov ecx, dword [ebp + 0x18]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
cmp edi, ecx
jae 0x4175a4
mov edx, 0x100000
nop word [eax + eax]
mov ebx, ecx
sub ebx, edi
cmp ebx, 0x100000
push eax
cmova ebx, edx
push ebx
push 1
push edi
call fcn.005655b3
add esp, 0x10
cmp ebx, eax
jne 0x4175a6
mov ecx, dword [ebp + 0x18]
add edi, ebx
mov eax, dword [esp + 0x10]
mov edx, 0x100000
cmp edi, ecx
jb 0x417570
mov ebx, dword [esp + 0x14]
je 0x4175de
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.00562ce9
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x417646
test edi, edi
je 0x417646
test eax, eax
jne 0x4175d1
mov dword [esi + 0x30], edi
push edi
call fcn.00563033
add esp, 4
push eax
push edi
jmp 0x41762e
add ebx, dword [esi + 0x28]
mov ecx, 0
mov eax, dword [esi + 0x2c]
adc eax, ecx
add ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
adc eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00562ce9
mov dword [eax], 0x1b
mov eax, dword [esi + 0x30]
cmp eax, 0x1b
je 0x417646
test eax, eax
jne 0x417621
mov dword [esi + 0x30], 0x1b
push 0x1b
call fcn.00563033
add esp, 4
push eax
push 0x1b
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.00562942
add esp, 4
push eax
call fcn.00402c20
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret