joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100262a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x100262a9
xor ecx, ecx
jne 0x100262ad
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
ja 0x100262ea
jb 0x100262df
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jae 0x100262ea
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x1002631d
call fcn.100100c0
jmp 0x100263b6
cmp dword [ebp + 0xc], 0
jne 0x10026337
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
sbb edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
jmp 0x10026340
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x14], ecx
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jne 0x100263b4
call fcn.100100c0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
jmp 0x100263b6
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10026c60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3990
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b3ca0
lea ecx, [ebp - 0x1c]
call fcn.10010730
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000e440
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.10003cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x10026d49
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.1000e2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x44], eax
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov ecx, dword [eax + 0x60]
call ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10026d3d
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.1000e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000b440
mov eax, dword [ebp - 0x3c]
jmp 0x10026d9a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.1000e3c0
lea ecx, [ebp - 0x18]
call fcn.1000e200
mov byte [ebp - 4], 3
push 0x80
mov eax, dword [ebp + 8]
push eax
call fcn.10026db0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.1000e270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000b440
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10026db0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a38d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b3ca0
lea ecx, [ebp - 0x2c]
call fcn.10010730
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000e440
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.10003cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x10026e6a
lea ecx, [ebp - 0x38]
call fcn.1000e200
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
call fcn.1000e270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000b440
mov eax, dword [ebp - 0x3c]
jmp 0x10026ef3
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.1000e2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x90]
call edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10026ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10026ec3
push 0x80004005
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1000e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000b440
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10026f10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3950
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b3ca0
lea ecx, [ebp - 0x14]
call fcn.10010730
mov dword [ebp - 4], 0
push 0x100b3ca0
lea ecx, [ebp - 0x10]
call fcn.10010730
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000e440
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.1000e440
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.10003cb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x10027007
lea ecx, [ebp - 0x3c]
call fcn.1000e200
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
call fcn.1000e270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.1001fe70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000b440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000b440
mov eax, dword [ebp - 0x40]
jmp 0x100270ac
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000e2f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x94]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10027070
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10027070
push 0x80004005
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.1000e3c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.1001fe70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000b440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000b440
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10027530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.10003cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x100275c8
lea ecx, [ebp - 0x10]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
call edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov eax, dword [ebp - 0x18]
jmp 0x10027608
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov eax, dword [ebp - 0x1c]
jmp 0x10027608
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10027920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.10027980
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4550
je 0x1002796a
movsx ecx, word [ebp - 4]
cmp ecx, 0x5a4d
je 0x1002796a
movsx edx, word [ebp - 4]
cmp edx, 0x454e
je 0x1002796a
movsx eax, word [ebp - 4]
cmp eax, 0x454c
je 0x1002796a
mov dword [ebp - 8], 0
jmp 0x10027971
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10027980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100c7210]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10027af0
lea eax, [ebp - 4]
push eax
push 0xf8
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027ab0
cmp dword [ebp - 4], 0xf8
je 0x100279d0
xor eax, eax
jmp 0x10027a9b
movzx edx, word [ebp - 0x100]
cmp edx, 0x5a4d
je 0x100279f2
cmp dword [ebp - 0x100], 0x4550
je 0x100279f2
xor eax, eax
jmp 0x10027a9b
movzx eax, word [ebp - 0x100]
cmp eax, 0x5a4d
jne 0x10027a92
cmp dword [ebp - 0xc4], 0
je 0x10027a89
mov dword [ebp - 0x104], 0
push 0
mov eax, dword [ebp - 0xc4]
cdq
push edx
push eax
mov ecx, dword [ebp + 8]
call fcn.10027af0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp + 8]
call fcn.10027ab0
cmp dword [ebp - 4], 4
je 0x10027a49
xor eax, eax
jmp 0x10027a9b
cmp dword [ebp - 0x104], 0x4550
jne 0x10027a5c
mov eax, 0x4550
jmp 0x10027a9b
movsx eax, word [ebp - 0x104]
cmp eax, 0x454e
jne 0x10027a71
mov eax, 0x454e
jmp 0x10027a9b
movsx ecx, word [ebp - 0x104]
cmp ecx, 0x454c
jne 0x10027a87
mov eax, 0x454c
jmp 0x10027a9b
jmp 0x10027a90
mov eax, 0x5a4d
jmp 0x10027a9b
jmp 0x10027a99
mov eax, 0x4550
jmp 0x10027a9b
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10053547
mov esp, ebp
pop ebp
ret
Function at 0x10027b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5308
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x10027bbb
push str.CSysKitFileRoot64::WriteFile
push str.Common
push str.__s__Enter_Function__s__n
push 0
push 0
call fcn.1007f9a0
add esp, 0x14
movzx ecx, byte [0x100c98a2]
test ecx, ecx
je 0x10027bf3
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CSysKitFileRoot64::WriteFile
push str._s_hFile__0x_08x_lpBuffer__0x_08x_nNumberOfBytesToWrite___d_lpNumberOfBytesWritten__0x_08x_lpOverlapped__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x24
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
call fcn.10003cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x14], eax
movzx ecx, byte [0x100c98a2]
test ecx, ecx
je 0x10027c46
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.CSysKitFileRoot64::WriteFile
push str._s_hr__0x_08x_pSysKit64__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x18
cmp dword [ebp - 0x14], 0
jl 0x10027c85
lea ecx, [ebp - 0x10]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x18], eax
jmp 0x10027ca2
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x10027ce6
cmp dword [ebp - 0x18], 0
je 0x10027cbc
mov dword [ebp - 0x24], 0
jmp 0x10027cc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.CSysKitFileRoot64::WriteFile
push str._s_bret___d_LastError___d
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x18
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10027d10
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.10003cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10027d98
lea ecx, [ebp - 0x10]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x6c]
call ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov eax, dword [ebp - 0x18]
jmp 0x10027dc8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1001fe70
mov eax, dword [ebp - 0x1c]
jmp 0x10027dc8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f380
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3880
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b3ca0
lea ecx, [ebp - 0x20]
call fcn.10010730
mov dword [ebp - 4], 0
push 0x100b3ca0
lea ecx, [ebp - 0x1c]
call fcn.10010730
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000e440
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x1002f3f0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.1000e440
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.10003cb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1002f4a9
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1000e2f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
call edx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1002f49d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.1000e3c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1001fe70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1000b440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000b440
mov eax, dword [ebp - 0x40]
jmp 0x1002f4f8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.1000e3c0
lea ecx, [ebp - 0x18]
call fcn.1000e200
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x18]
call fcn.1000e270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1001fe70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1000b440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000b440
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100318f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3838
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b3ca0
lea ecx, [ebp - 0x10]
call fcn.10010730
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000e440
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x14]
call fcn.10003cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x100319c3
lea ecx, [ebp - 0x38]
call fcn.1000e200
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x10031991
mov ecx, dword [ebp - 0x3c]
and ecx, 0x10
je 0x10031991
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x38]
call fcn.1000e270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000b440
mov eax, dword [ebp - 0x40]
jmp 0x10031a48
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10031a0e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x10031a17
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1000e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1001fe70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000b440
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003df8c
Capabilities:
Resolve dns

Disassembly:
cmp dword [esi + 0x1c], 0
jne 0x1003dfc0
cmp byte [esp + 4], 0
je 0x1003dfc0
mov ecx, esi
call fcn.10024d00
test al, al
jne 0x1003dfc0
mov ecx, esi
call fcn.10009b50
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1003dfc0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
ret 4

Function at 0x1003e0b6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push ebx
je 0x1003e0c6
push 0x11
push 2
jmp 0x1003e0ca
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003e10d
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
mov edi, 0xffff
push edi
push ebx
mov dword [ebp + 8], 0x10000
call esi
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push edi
push ebx
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x1003e13d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c7210]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
mov eax, dword [ebp + 0x10]
je 0x1003e17d
mov word [ebp - 0x12], cx
mov ecx, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x14]
mov word [ebp - 0x14], 2
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x1003e180
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053547
leave
ret