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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005131d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100e8018]
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 edi, edx
mov dword [ebp - 0x34], edi
mov ebx, ecx
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.100048d0
cmp byte [ebp + 8], 0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
je 0x1001062d
push ebx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
jmp 0x1001064c
mov eax, 0x5a4d
cmp ax, word [ebx]
jne 0x10010733
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x10010733
test eax, eax
je 0x10010733
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10010733
add eax, ebx
je 0x10010733
mov ecx, dword [eax + 0x1c]
xor edi, edi
mov edx, dword [eax + 0x24]
add ecx, ebx
mov dword [ebp - 0x38], ecx
add edx, ebx
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], ecx
cmp dword [eax + 0x18], edi
jbe 0x10010733
nop dword [eax]
mov edx, dword [ecx + edi*4]
add edx, ebx
mov dword [ebp - 0x2c], 0
mov eax, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100106b3
sub eax, esi
lea ecx, [ebp - 0x2c]
push eax
push edx
call fcn.100045d0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0
movzx esi, word [eax + edi*2]
lea eax, [ebp - 0x2c]
push eax
call fcn.10003fc0
mov edx, dword [ebp - 0x38]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [edx + ecx*4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10010721
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10010717
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010751
push edx
push ecx
call fcn.1003140a
add esp, 8
mov eax, dword [ebp - 0x3c]
inc edi
cmp edi, dword [eax + ebx + 0x18]
jae 0x10010733
mov ecx, dword [ebp - 0x40]
jmp 0x10010690
mov al, 1
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.100313c7
mov esp, ebp
pop ebp
ret
call fcn.100397bd
int3
Function at 0x10016870
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051b70
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x100e8018]
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, ecx
mov dword [ebp - 0x874], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x87c], esi
cmp esi, 0xffffffff
je 0x10016a35
push 0x424
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.100346a0
add esp, 0xc
mov dword [ebp - 0x438], 0x428
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x10016a2e
nop dword [eax]
mov edx, dword [ebx + 0x754]
lea esi, [ebp - 0x438]
mov eax, dword [ebp - 0x424]
lea edi, [ebp - 0x864]
mov ecx, 0x10a
mov dword [ebp - 0x86c], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
lea esi, [ebx + 0x754]
xor ebx, ebx
mov dword [ebp - 0x878], edx
mov dword [ebp - 0x870], ecx
cmp byte [ecx + 0xd], bl
jne 0x10016973
mov eax, ecx
mov ecx, dword [ebp - 0x86c]
nop dword [eax]
mov dword [ebp - 0x870], eax
cmp dword [eax + 0x10], ecx
jae 0x10016962
mov eax, dword [eax + 8]
xor ebx, ebx
jmp 0x1001696b
mov edx, eax
mov ebx, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10016950
mov eax, ecx
cmp byte [edx + 0xd], 0
jne 0x10016982
cmp eax, dword [edx + 0x10]
jae 0x10016a0c
cmp dword [esi + 4], 0x3c7522
je 0x10016a51
mov dword [ebp - 0x884], esi
mov dword [ebp - 4], 0
push 0x43c
mov dword [ebp - 0x880], 0
call fcn.100313da
mov ecx, dword [ebp - 0x86c]
lea esi, [ebp - 0x864]
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x880], 0
mov dword [eax + 0x10], ecx
lea edi, [eax + 0x14]
mov ecx, 0x10a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x878]
push eax
push ebx
mov ebx, dword [ebp - 0x874]
push dword [ebp - 0x870]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [ebx + 0x754]
mov word [eax + 0xc], 0
call fcn.10004e40
jmp 0x10016a12
mov ebx, dword [ebp - 0x874]
mov esi, dword [ebp - 0x87c]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x10016900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.100313c7
mov esp, ebp
pop ebp
ret
call fcn.10001aa0
int3
Function at 0x10017310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100e8018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10017359
push str.Failed_to_get_ntdll__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtContinue
push esi
call edi
mov dword [0x100ee8bc], eax
test eax, eax
jne 0x10017378
push str.Failed_to_import_NtContinue__n
jmp 0x100173a9
push str.ZwCreateFile
push esi
call edi
mov dword [0x100ee8c0], eax
test eax, eax
jne 0x10017390
push str.Failed_to_import_ZwCreateFile__n
jmp 0x100173a9
push str.RtlGetVersion
push esi
call edi
mov esi, eax
mov dword [0x100ee8c4], esi
test esi, esi
jne 0x100173c9
push str.Failed_to_import_RtlGetVersion__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0
push 0
push eax
mov dword [ebp - 0x128], 0
call fcn.100346a0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
js 0x100174f4
cmp dword [ebp - 0x11c], 6
jne 0x100174f4
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x1001742f
cmp eax, 3
jne 0x100174f4
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001746a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleHandleA_failed_for__ntdll.dll_:__u_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
push str.DbgPrint
push eax
call edi
mov esi, eax
test esi, esi
jne 0x100174a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_failed_for__ntdll_DbgPrint_:__u_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x124]
push eax
push 0x40
push 1
push esi
call edi
test eax, eax
je 0x100174d5
lea eax, [ebp - 0x128]
mov byte [esi], 0xc3
push eax
push dword [ebp - 0x124]
push 1
push esi
call edi
test eax, eax
jne 0x100174f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 1]
push eax
push esi
push str.VirtualProtect_failed_for___p___p_:__u_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0x14
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100313c7
mov esp, ebp
pop ebp
ret
Function at 0x1001c8b0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0xc], 0
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
push 0x3000
mov dword [ebp - 8], 0xffffffff
lea eax, [eax*2 + 2]
push eax
push 0
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x1001c919
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_VirtualAllocEx_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x10]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1001c94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_WriteProcessMemory_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001ca3f
push 0x100d7bdc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x1001c97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_GetModuleHandle_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001ca3f
push 0x100d8ba0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001c9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_GetProcAddress_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001ca38
push 0
push 0
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x1001c9dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_CreateRemoteThread_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001ca35
push 0x4e20
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001ca08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_WaitForSingleObject_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001ca35
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0
jne 0x1001ca2e
push str.Error_:_CreateRemoteThread_LoadLibrary__failed_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
jmp 0x1001ca35
mov dword [ebp - 0xc], 1
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1001d52f
push 0
push 0
push dword [ebp + 8]
push 0x1001d130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10023140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100e5d10
push 0x10032dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100e8018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
test ecx, ecx
jne 0x100231a0
push str.Parameter_DllHandle_must_not_be_NULL_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x100231cb
push str.Parameter_PreferredBase_must_not_be_NULL_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edx], esi
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp ax, word [ecx]
je 0x100231e1
push str.Invalid_IMAGE_DOS_SIGNATURE_n
jmp 0x1002323e
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x100231f4
push str.Invalid_IMAGE_NT_SIGNATURE_n
jmp 0x1002323e
test byte [eax + ecx + 0x5e], 0x40
mov edi, 1
cmove esi, edi
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax + ecx + 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xfffffffe
test ecx, ecx
je 0x10023253
test esi, esi
je 0x10023253
mov dword [edx], ecx
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100268c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.Creating_thread..._n
push dword [0x100ee8a4]
mov esi, ecx
call fcn.1000f610
add esp, 8
push 0
push 0
push esi
push 0x100266d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x1002690e
push str.CreateThread_failed__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
and eax, 0xffffec77
add eax, 0x1388
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10026959
cmp dword [ebp - 4], 0x103
jne 0x10026959
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Thread_timed_out_and_was_terminated._n
jmp 0x100268f9
xor eax, eax
cmp byte [0x100eae52], al
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x100277a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ee8a8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
jne 0x100277cf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
jmp 0x100277fd
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10027801
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed_with_status_0x_X_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
test esi, esi
je 0x1002784b
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1002784b
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1002784b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1002784b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10027b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x100e8018]
xor eax, esp
mov dword [esp + 0x114], eax
push 0xfc
lea eax, [esp + 0x18]
push 0
push eax
call fcn.100346a0
movups xmm0, xmmword [0x100d9d30]
mov eax, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0xc
mov dword [esp], eax
movups xmmword [esp + 4], xmm0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
lea edx, [esp + 0x14]
mov ecx, 0x10027a10
call fcn.1002d300
add esp, 0x14
test al, al
jne 0x10027bb3
push str.Error:_RunShellcode_failed__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x108], 0x1f
ja 0x10027bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10027bf0
push eax
push str.Error:_WinExec_call_failed__Error_code__d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x114]
mov eax, 1
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret

Function at 0x10028540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str._CALL__GetSystemDirectoryW_nullptr__0____get_string_length_n
push dword [0x100ee8a4]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
call fcn.1000f610
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
push edi
push str._DONE__GetSystemDirectoryW_nullptr__0____d_n
push dword [0x100ee8a4]
call fcn.1000f610
lea ebx, [edi*4 + 4]
push ebx
push str._CALL__malloc__zu__n
push dword [0x100ee8a4]
call fcn.1000f610
push ebx
call fcn.1003980e
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x100285c4
push ebx
push str._ERROR__malloc__zu__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push str._SUCCESS__malloc__zu____p_n
push dword [0x100ee8a4]
call fcn.1000f610
push edi
push esi
push str._CALL__GetSystemDirectoryW__p___d__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10028626
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str._ERROR__GetSystemDirectoryW__p___d_:_GetLastError_____d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0x14
push esi
call fcn.100395e6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push esi
push str._SUCCESS__GetSystemDirectoryW__p___d____s_n
push dword [0x100ee8a4]
call fcn.100105b0
mov ecx, esi
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028641
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 8]
push esi
call fcn.1000ff20
mov byte [ebp - 1], 1
push esi
call fcn.100395e6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b9e0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x100e8018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100346a0
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.100346a0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x1002bbe7
test eax, eax
je 0x1002bbe7
push ebx
lea ebx, [ebp - 0x20c]
lea eax, [ebp - 0xa0c]
push esi
sub ebx, eax
xor esi, esi
mov dword [ebp - 0xa10], esi
push edi
nop word [eax + eax]
mov edx, 0x400
lea eax, [ebp - 0xa0c]
nop dword [eax + eax]
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x1002ba8e
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1002ba8e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002ba70
lea ecx, [eax - 2]
test edx, edx
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
test edx, edx
mov eax, 0x8007007a
cmovne eax, ecx
je 0x1002bbc0
mov edi, dword [esi + 0x100e9658]
lea eax, [ebp - 0xa0c]
mov ecx, 0x400
nop
cmp word [eax], 0
je 0x1002bace
add eax, 2
sub ecx, 1
jne 0x1002bac0
mov eax, 0x400
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
xor edx, edx
and esi, eax
test ecx, ecx
mov eax, 0x80070057
cmovne eax, edx
je 0x1002bbb8
mov edx, 0x400
lea ecx, [ebp - 0xa0c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x1002bb21
mov eax, SysReAllocString
sub edi, ecx
test eax, eax
je 0x1002bb21
movzx esi, word [edi + ecx]
test si, si
je 0x1002bb21
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x1002bb08
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
je 0x1002bbb8
push ecx
push 0x80
push 4
push ecx
push ecx
push 0x10000000
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1002bbaa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1002bb9c
mov esi, dword [ebp - 0xa10]
add esi, 4
mov dword [ebp - 0xa10], esi
cmp esi, 0x18
jb 0x1002ba60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteFileW_failed__Last_Error__d_n
jmp 0x1002bbc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileW_failed__Last_Error__d_n
jmp 0x1002bbc6
push eax
push str.StringCchCatW_failed__HRESULT__x_n
jmp 0x1002bbc6
push eax
push str.StringCchCopyW_failed__HRESULT__x_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPathW_failed__Last_Error__d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
call fcn.100313c7
mov esp, ebp
pop ebp
ret
Function at 0x1002bc20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
xor eax, eax
xor esi, esi
test edi, edi
je 0x1002bcac
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
nop word [eax + eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x10000000
push dword [ecx + esi*4]
call ebx
cmp eax, 0xffffffff
je 0x1002bc90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1002bc82
mov ecx, dword [ebp - 4]
inc esi
cmp esi, edi
jb 0x1002bc40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteFileW_failed__Last_Error__d_n
jmp 0x1002bc9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileW_failed__Last_Error__d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002bcc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002bd69
mov edx, dword [ebp - 4]
mov edx, dword [edx + esi*4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002bd06
sub ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0
sar ecx, 1
push eax
add ecx, ecx
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002bd43
push edi
call ebx
mov eax, dword [ebp - 4]
inc esi
cmp esi, 0xc
jb 0x1002bcd6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed__Last_Error__d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileW_failed__Last_Error__d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
xor esi, esi
nop dword [eax + eax]
mov edx, dword [esi + 0x100e9670]
mov eax, edx
lea edi, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bdb0
push 0
sub eax, edi
push eax
push edx
push 0
call ebx
cmp eax, 0xffffffff
jne 0x1002bdd7
add esi, 4
cmp esi, 0x30
jb 0x1002bda0
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.Error:_SOCKET_ERROR_expected_but_not_triggered__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret