joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c97e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x5c9a0e
sub esp, 0x8c
mov eax, dword [esp + 0x90]
test byte [eax], al
mov dword [esp], eax
call fcn.005c87d0
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x90]
movzx ebx, word [edx + 0x14]
mov ebp, ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x2c], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.005cae90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], 0
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
lea edx, [0x68b3d4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.0044dbd0
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
xor ebp, ebp
jmp 0x5c99f1
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], edx
lea eax, [ecx + ebp*8]
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov ebx, dword [edx + 0x10]
mov dword [esp], eax
call ebx
movzx eax, word [esp + 4]
mov word [esp], ax
call fcn.005c96d0
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x14]
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x5c]
mov edx, eax
xor eax, eax
call fcn.00462794
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
lea eax, [0x68b3d4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 1
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
lea ecx, [0x630ded]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x80], edx
lea edx, [0x68a4e0]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 1
mov dword [esp], 0
lea ebx, [esp + 0x5c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 6
mov dword [esp + 0xc], 6
call fcn.0044d890
mov eax, dword [esp + 0x40]
lea ebp, [eax + 1]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
cmp ebp, eax
jl 0x5c98e0
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ebx
add esp, 0x8c
ret
call fcn.004610f0
jmp fcn.005c97e0
Function at 0x5cdbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5cdd7c
sub esp, 0x7c
mov eax, dword [esp + 0x80]
test byte [eax], al
mov dword [esp], eax
call fcn.005c87d0
mov eax, dword [esp + 0x80]
movzx ecx, word [eax + 0x14]
mov edx, dword [esp + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x28], ebx
mov ebp, ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0x80]
movzx ecx, byte [eax + 0x16]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov ebp, ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx + 0x17]
mov ebp, ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004cd320
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x3c]
mov edx, eax
xor eax, eax
call fcn.00462790
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
lea eax, [0x68b3d4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp], 0
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], 8
mov dword [esp + 0xc], 8
call fcn.0044d890
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
call fcn.004610f0
jmp fcn.005cdbc0
Function at 0x5ce2a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ce426
sub esp, 0x74
mov eax, dword [esp + 0x78]
test byte [eax], al
mov dword [esp], eax
call fcn.005c87d0
mov eax, dword [esp + 0x78]
movzx ecx, word [eax + 0x14]
mov edx, dword [esp + 4]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x24], ebx
mov ebp, ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0x78]
movzx ecx, byte [eax + 0x16]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov ebp, ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
movzx ebx, byte [edx + 0x17]
mov ebp, ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004a2b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x34]
mov edx, eax
xor eax, eax
call fcn.00462790
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
lea eax, [0x68b3d4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 1
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp], 0
lea eax, [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], 8
mov dword [esp + 0xc], 8
call fcn.0044d890
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x74
ret
call fcn.004610f0
jmp fcn.005ce2a0
Function at 0x40223f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x402274
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x402271
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40227d
add edx, 0x28
cmp edx, esi
jne 0x40225f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40227a

Function at 0x4026f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402731
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402731
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402731
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402731
cmp dword [ecx + 0x74], 0xe
jbe 0x402731
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
and eax, eax
sub eax, esi
push eax
mov esi, dword [esp]
add esp, 4
call fcn.0043b688
mov esi, eax
sub eax, 0xe482a0db
xor dword [ebx], ecx
sub eax, 0x645cac8a
inc ebx
and eax, esi
inc eax
or esi, eax
cmp ebx, edi
jne fcn.0043b650
and esi, eax
ret
Function at 0x403a20
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push edi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push 0x405214
push 0x80000002
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403acd
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x405230
push 0x80000002
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x403a9b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403acd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp byte [ebp - 0x61c], 0x51
jne 0x403acd
cmp byte [ebp - 0x61b], 0x45
jne 0x403acd
cmp byte [ebp - 0x61a], 0x4d
jne 0x403acd
cmp byte [ebp - 0x619], 0x55
je 0x403bec
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.user32.dll_CharUpperA]
mov esi, dword [sym.imp.msvcrt.dll_strstr]
lea eax, [ebp - 0x21c]
push 0x405244
push eax
call esi
add esp, 8
test eax, eax
jne 0x403beb
lea ecx, [ebp - 0x21c]
push 0x40524c
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403beb
lea edx, [ebp - 0x21c]
push 0x405258
push edx
call esi
add esp, 8
test eax, eax
jne 0x403beb
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 0x115], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
cmp eax, 0xcd1a40
je 0x403beb
cmp eax, 0x6cbbc508
je 0x403beb
cmp eax, 0x774e1682
je 0x403beb
cmp eax, 0x837f873e
je 0x403beb
cmp eax, 0x8b6f64bc
je 0x403beb
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.shlwapi.dll_StrStrIA]
push 0x405264
lea ecx, [ebp - 0x118]
push ecx
call esi
test eax, eax
jne 0x403beb
push 0x405270
lea edx, [ebp - 0x118]
push edx
call esi
test eax, eax
jne 0x403beb
push 0x40527c
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
jne 0x403beb
xor edi, edi
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403c29
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x406000]
inc esi
xor eax, edx
dec ecx
jne 0x403c14
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4022bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4022bb
lcall 0x5de5, 0x8b10c483
jmp fcn.0080597c
Function at 0x402e59
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402e67
call fcn.00402e2f
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e94
test cl, 7
je 0x402e94
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e75
cmp esi, 8
jb 0x402f18
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e9e
xor edx, edx
test esi, esi
jbe 0x402f38
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402f1f
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403406
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x403498
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407bb6
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0aa
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004083f2
test al, al
jne 0x403474
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b0aa
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403498
push eax
push 0xaf
call fcn.0040a3e6
push eax
push 0x413300
call fcn.0040bf4d
add esp, 0xc
leave
ret 8
Function at 0x4050d5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.004038fe
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.004066ae
test al, al
je 0x40527a
cmp word [ebp - 0x2440], di
je 0x40527a
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cba
push eax
call fcn.0040f20f
test eax, eax
je 0x40527a
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407cba
push eax
call fcn.0040f20f
test eax, eax
jne 0x40527a
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4051cb
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea1f
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407cba
push eax
call fcn.0040b2e8
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405dea
test al, al
je 0x4051b3
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x405164
cmp word [ebp - 0x800], di
je 0x40527a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea1f
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cba
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407cba
push eax
call fcn.0040b0d4
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x40527a
lea ecx, [ebp - 0x1c20]
call fcn.004054e6
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405dea
test al, al
jne 0x405241
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00405833
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x40526b
lea ecx, [ebp - 0x1c20]
call fcn.00405551
lea ecx, [ebp - 0x1c20]
call fcn.004055d6
lea ecx, [ebp - 0x1c20]
call fcn.004056cb
mov al, 1
jmp 0x40527c
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4056ee
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405708
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40571b
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40572e
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00407517
test eax, eax
je 0x405767
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405767
cmp word [eax], bx
je 0x405767
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40577b
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405797
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4057f9
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4057c5
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040b0d4
jmp 0x4057ce
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4057e1
push dword [ebp + 8]
push eax
call fcn.0040af69
jmp 0x4057ef
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040effc
push dword [esi + 4]
mov ecx, esi
call fcn.0040552a
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x405956
cmp dword [ebp + 0xc], esi
jbe 0x40594b
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4059a6
mov ecx, edi
call fcn.004056a8
test al, al
je 0x40598c
cmp dword [ebp + 0xc], esi
jbe 0x40598c
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405930
jmp 0x4059a9
cmp dword [edi + 0xc], 1
jne 0x4059a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4059a1
xor eax, eax
jmp 0x4059a9
or eax, 0xffffffff
jmp 0x4059a9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405bea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405cfa
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405c17
dec eax
je 0x405c0c
dec eax
jne 0x405c17
push 0xfffffffffffffff4
jmp 0x405c0e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405c66
cmp dword [ebp + 0xc], edi
jbe 0x405c81
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405c3e
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405c81
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405c2e
jmp 0x405c7d
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405cf4
cmp byte [esi + 0x14], 0
je 0x405cf4
cmp dword [esi + 0xc], 0
jne 0x405cf4
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.0040357b
test al, al
je 0x405cde
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405c1f
test eax, eax
jbe 0x405c1f
push 0
mov ecx, esi
call fcn.00405606
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405b4b
jmp 0x405c1f
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403805
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x405dea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00407517
test eax, eax
je 0x405e14
mov eax, dword [esp + 8]
test eax, eax
je 0x405e14
cmp word [eax], 0
je 0x405e14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405e31
cmp dword [esp + 4], 0
je 0x405e2f
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e2f
xor eax, eax
inc eax
jmp 0x405e31
xor eax, eax
ret 8

Function at 0x405e5f
Capabilities:
Get file attributes

Disassembly:
call fcn.00407517
test eax, eax
je 0x405e7f
mov eax, dword [esp + 8]
test eax, eax
je 0x405e7f
cmp word [eax], 0
je 0x405e7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405e89
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405e8c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00407517
test eax, eax
je 0x405eb1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405eb1
cmp word [eax], 0
je 0x405eb1
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405ec3
cmp dword [ebp + 8], 0
je 0x405eca
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405ecc
xor al, al
pop ebp
ret 0xc
Function at 0x405f02
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00407517
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405f28
cmp esi, ebx
je 0x405f28
cmp word [esi], bx
je 0x405f28
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405f37
cmp dword [ebp + 8], ebx
je 0x405f65
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405f50
cmp byte [ebp + 0x10], bl
je 0x405f4c
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e8c
xor eax, eax
jmp 0x405f68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405f65
cmp eax, 3
je 0x405f65
xor eax, eax
inc eax
jmp 0x405f68
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10