joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cc48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x1000c73b
cmp byte [edi + 0x4a], bl
je 0x1000c73b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x1000c72f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x1000c68f
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1000c6a7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x1000c6d0
dec eax
je 0x1000c6d4
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1000c72a
jmp 0x1000c736
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1000c6e4
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1000c70d
cmp ebx, 0x10
jae 0x1000c6f3
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10038601
add esp, 0x10
cmp esi, eax
jne 0x1000c727
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x1000c733
test esi, esi
jne 0x1000c69b
push esi
push 8
lea esi, [ebp - 0x2c]
call fcn.1000c250
jmp 0x1000c695
lea ecx, [ebp - 0x2c]
call fcn.10004a00
xor al, al
jmp 0x1000c73d
lea ecx, [ebp - 0x2c]
call fcn.10004a00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
Function at 0x1000c970
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005851b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10035f26
push 4
mov dword [ebp - 4], 0
call fcn.10036d51
mov edi, eax
add esp, 4
test edi, edi
je 0x1000c9ec
call fcn.1003591c
mov dword [edi], eax
call fcn.100356db
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10035610
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000c9e2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10035638
jmp 0x1000c9ee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e9b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bdf0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x1000eb73
mov ecx, dword [ebp + 8]
mov eax, edi
call fcn.1000eb90
lea esi, [ebp - 0x10]
call 0x10017650
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
push eax
call ebx
test eax, eax
jne 0x1000ea80
mov eax, 1
test byte [0x100742b0], al
jne 0x1000ea40
or dword [0x100742b0], eax
push 0x1005d2e0
mov dword [0x100742b4], esi
mov dword [0x100742b8], esi
mov dword [0x100742bc], esi
call fcn.10036a73
add esp, 4
push 0x100638f0
mov esi, 0x100742b4
call fcn.10021480
mov ecx, dword [ebp - 0x10]
mov edi, dword [edi]
add esp, 4
push 8
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x1000eb67
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.10020420
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push ecx
push edx
call fcn.100374fe
add esp, 8
test eax, eax
je 0x1000eac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10063958
call fcn.100048d0
mov esi, eax
call fcn.10021480
add esp, 8
jmp 0x1000eb2a
mov ecx, dword [ebp - 0x10]
mov edi, dword [edi]
push 8
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x1000eb02
push 0x100639a8
call fcn.100048d0
mov esi, eax
call fcn.10021480
mov edx, dword [ebp - 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000eb2a
push 4
push eax
mov eax, dword [ebp - 0x14]
push eax
call edi
jmp 0x1000eb2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AptNail_
call fcn.100048d0
mov esi, eax
call fcn.10021480
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call fcn.100374fe
add esp, 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000eb4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000eb73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100110d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058c68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.10036d51
add esp, 4
cmp eax, ebx
je 0x100111b4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.10036d51
add esp, 4
cmp eax, ebx
je 0x10011190
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.10036c63
push 0x10069948
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.1003bba8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.10036c63
push 0x10069948
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.1003bba8
int3

Function at 0x10020ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [edi]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002104c
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1006484a
mov ecx, esi
mov byte [esi], bl
call fcn.10004790
jmp 0x100210a9
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100210d0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
test eax, eax
je 0x1002108a
lea edi, [ebp - 0x2c]
call fcn.1000fe30
cmp dword [ebp - 0x18], 0x10
jb 0x100210a9
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x100210a1
push ebx
push 0x1006484a
mov ecx, esi
call fcn.10004790
cmp dword [ebp - 0x18], 0x10
jb 0x100210a9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100368b0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
Function at 0x100210d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005caf8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
push 0
mov edi, ecx
push 0x1006484a
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10004790
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002114c
push edi
lea ecx, [ebp - 0x30]
call fcn.10026a70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne 0x1002116a
cmp dword [ebp - 0x1c], 0x10
jb 0x1002114c
mov eax, dword [ebp - 0x30]
push eax
call fcn.100368b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.10026870
mov bl, 2
lea edi, [ebp - 0x5c]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.100269e0
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1000fe30
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x64], edi
jb 0x100211ab
mov eax, dword [ebp - 0x78]
push eax
call fcn.100368b0
add esp, 4
lea ecx, [ebp - 0x5c]
test ecx, ecx
je 0x100211e9
lea ecx, [ebp - 0x5a]
lea edx, [ebp - 0x5c]
call fcn.10021230
test eax, eax
je 0x100211e9
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x56], eax
jne 0x100211e9
test eax, eax
je 0x100211e9
lea edx, [ebp - 0x4f]
test edx, edx
je 0x100211e9
mov eax, edx
push eax
mov ecx, esi
call fcn.100212b0
test eax, eax
je 0x100211e9
mov esi, 1
jmp 0x100211eb
xor esi, esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10021209
push eax
call fcn.100375db
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x1c], edi
jb 0x1002121a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100368b0
add esp, 4
mov eax, esi
jmp 0x1002114e
Function at 0x10024d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cc48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10024e90
cmp byte [edi + 0x49], bl
je 0x10024e90
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x10024e84
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10024de4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10024dfc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10024e25
dec eax
je 0x10024e29
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10024e7f
jmp 0x10024e8b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10024e39
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10024e62
cmp ebx, 0x10
jae 0x10024e48
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10038601
add esp, 0x10
cmp esi, eax
jne 0x10024e7c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10024e88
test esi, esi
jne 0x10024df0
push esi
push 8
lea esi, [ebp - 0x2c]
call fcn.1000c250
jmp 0x10024dea
lea ecx, [ebp - 0x2c]
call fcn.10004a00
xor al, al
jmp 0x10024e92
lea ecx, [ebp - 0x2c]
call fcn.10004a00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
Function at 0x10025390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [ebp - 0x14]
call fcn.100252e0
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
mov ebx, eax
lea eax, [ecx - 0x10]
mov dword [ebp - 0x10], ebx
je 0x10025445
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x10025421
cmp dword [ecx - 8], 0
jge 0x10025411
push 0x80070057
call fcn.10001c80
mov dword [ecx - 0xc], 0
mov ecx, dword [edi]
xor edx, edx
mov word [ecx], dx
jmp 0x10025445
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10025437
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [edi], eax
cmp ebx, 0xffffffff
je 0x10025503
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003610d
mov ecx, dword [ebp - 0x10]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [esi + ebx*2], ax
test esi, esi
je 0x100254b1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100254a2
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.10001ac0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x10]
call fcn.1000b220
mov byte [ebp - 4], 1
call fcn.100014a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100254f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call 0x10017c30
push esi
call fcn.100375db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10025529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025ac0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025b4a
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.10003c80
mov ecx, dword [ebp - 4]
push 0
push ecx
call fcn.1003af10
add esp, 0x14
test eax, eax
jne 0x10025b2b
mov eax, dword [esi + 4]
mov edx, dword [ebp - 4]
push ebx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
mov eax, dword [ebp - 4]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10025b24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10025b4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10026750
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.1003bac0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
xor esi, esi
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x100267c4
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x100267c4
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x100267c4
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100368bb
mov esp, ebp
pop ebp
ret
Function at 0x10026a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebx]
push eax
mov esi, ecx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10026ace
mov ebx, dword [ebx]
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10026ace
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
jne 0x10026ad7
mov dword [esi + 0x10], edi
push edi
jmp 0x10026b64
lea eax, [ebx + 1]
push eax
call fcn.1003610d
mov edi, eax
add esp, 4
test edi, edi
je 0x10026b5b
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.1003bac0
mov eax, dword [ebp - 0x3c]
push ebx
push edi
call fcn.10026ba0
mov ecx, dword [ebp - 0x38]
add esp, 0x14
push ecx
add ebx, edi
push ebx
push edi
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10021e90
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.100375db
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 4
lea edi, [ebp - 0x2c]
mov byte [esi], bl
call fcn.1000fe30
cmp dword [ebp - 0x18], 0x10
jb 0x10026b7a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100368b0
add esp, 4
jmp 0x10026b7a
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
push 0x1006484a
mov ecx, esi
mov byte [esi], 0
call fcn.10004790
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret

Function at 0x10026ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10026be8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a6f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100597e7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10063798
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.1000d340
push 0x20
lea edi, [ebx + 0x10]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.10015370
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1002a790
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
and eax, 0x17
mov dword [esi + 0xc], eax
test dword [esi + 0x10], eax
je 0x1002a790
push 0
mov ecx, esi
call fcn.1000e3b0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push edi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.10015280
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x10074374]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4