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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50e008]
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, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4acc29
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4acd7b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4acd46
test eax, eax
je 0x4acd46
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4acd49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4acccb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4accbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4acccb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4accd9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00409b00
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4acd46
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4acc84
jmp 0x4acd49
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4acd72
test edx, edx
je 0x4acd6e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4acc40
mov al, 1
jmp 0x4acd7d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4acd7b
mov dword [ecx], eax
xor al, al
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.004c4853
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b90e2
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x4b90f9
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x4b9104
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x4b91f6
push 0x50f36c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x4b912d
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x4b9141
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x4b9152
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x50f384]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x4b9167
mov dword [ebx + 4], eax
jmp 0x4b91b8
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.004b09c0
mov ebx, dword [0x50f384]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x4b91b8
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x4b91a9
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x4b91af
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x4b918f
xor ebp, ebp
cmp dword [ebx], eax
jne 0x4b91eb
cmp dword [ebx], 0
je 0x4b91db
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
and eax, 0xfffffffc
push eax
push dword [ebx]
call fcn.00404000
pop ecx
pop ecx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.004c4894
pop ecx
pop ecx
mov dword [0x50f384], ebp
push 0x50f36c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x4b923c
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x50f368
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4b9252
push 0x50f36c
call ebx
lea ecx, [edi + 0xc0]
call fcn.004b9b94
lea ecx, [edi + 0x40]
call fcn.00403cf0
lea ecx, [edi + 0x28]
call fcn.00403cf0
lea ecx, [edi + 0x10]
call fcn.00403cf0
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x4b9286
push ecx
call fcn.004b9bce
ret
Function at 0x4b9e3b
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x348]
cmp dword [ebp + 0x14], 8
jb 0x4b9e55
mov ebp, dword [ebp]
mov esi, dword [ebx + 0x24]
push edi
mov edi, dword [ebx + 0x360]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
xor esi, esi
lea eax, [ebx + 0x3c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x74], esi
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
pop edi
test eax, eax
je 0x4b9fb3
cmp dword [esp + 0x10], 2
jne 0x4b9fb3
cmp dword [esp + 0x14], esi
je 0x4b9fb3
cmp dword [esp + 0x30], esi
je 0x4b9fb3
cmp dword [esp + 0x34], esi
je 0x4b9fb3
cmp dword [esp + 0x38], esi
je 0x4b9fb3
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x80], esi
push eax
push 0x34
lea eax, [esp + 0x84]
mov dword [esp + 0x8c], esi
push eax
push dword [esp + 0xc0]
xorps xmm0, xmm0
mov dword [esp + 0x98], esi
movups xmmword [esp + 0x9c], xmm0
mov dword [esp + 0xbc], esi
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x8c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b9fb3
mov ecx, dword [esp + 0x30]
mov al, 1
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], ecx
jmp 0x4b9fb5
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x4be9e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4be9eb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004bea00
Function at 0x404b20
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x267
push 8
push eax
mov ebx, ecx
call edi
mov ecx, dword [0x4086b4]
push 0x267
push 8
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
call edi
push ebx
push 0x102
push ebp
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push ebx
push 0x102
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edx, dword [0x4086b4]
add esp, 0x18
push 0x267
push 8
push edx
call edi
push 0x407420
push 0x102
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ebx, eax
call ebp
mov eax, dword [0x4086b4]
add esp, 0xc
push 0x208
push 8
push eax
call edi
mov edi, eax
push 0x102
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x404cf7
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x404ca6
lea edx, [esp + 0x4c]
push edx
push 0x102
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c16
sub eax, edx
sar eax, 1
mov edx, eax
lea ecx, [edx + 0x5a]
cmp edx, ecx
ja 0x404c48
sub ecx, edx
add ecx, 1
shr ecx, 1
lea edi, [ebx + edx*2]
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
push str..exe
push 0x102
push ebx
mov word [ebx + edx*2 + 0xb6], 0
call ebp
lea eax, [esp + 0x58]
push eax
push 0x102
push esi
call ebp
add esp, 0x18
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x102
push esi
mov word [esi + 6], 0
call ebp
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [esi + 6], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404bec
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4086b4]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call ebp
mov edx, dword [0x4086b4]
push ebx
push 0
push edx
call ebp
mov eax, dword [0x4086b4]
push esi
push 0
push eax
call ebp
mov ecx, dword [0x4086b4]
push edi
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405260
add esp, 0x26c
ret
Function at 0x404d30
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes
Set file attributes

Disassembly:
push ecx
mov eax, dword [0x4086b4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x2c6
push 8
push eax
call esi
mov ecx, dword [0x4086b4]
push 0x2bc
push 8
push ecx
mov ebx, eax
call esi
push 0x104
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x15e
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d80
sub eax, edx
sar eax, 1
add eax, 0xffffffff
js 0x404da0
cmp word [esi + eax*2], 0x2e
je 0x404e0f
sub eax, 1
jns 0x404d94
mov edx, dword [esp + 8]
push esi
mov word [esi + edx*2], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x404dc5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push pe_nt_image_headers32
push esi
call edi
push 6
push ebx
call edi
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov edx, dword [0x4086b4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push edx
call esi
mov eax, dword [0x4086b4]
push ebx
push 0
push eax
call esi
pop esi
pop ebx
pop ecx
ret
add eax, 0xffffffff
lea ecx, [eax - 0x5a]
cmp eax, ecx
jl 0x404da0
lea esp, [esp]
cmp word [esi + eax*2], 0x20
jne 0x404dee
mov edx, eax
sub eax, 1
cmp eax, ecx
jge 0x404e20
jmp 0x404da4
Function at 0x405090
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
push 0x208
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ebx, eax
push 0x102
push ebx
push 0
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push pe_nt_image_headers32
push 4
push 0
push 1
push 0x80000000
push ebx
call esi
push 0
push 6
push 2
push 0
push 1
mov edi, eax
mov eax, dword [esp + 0x58]
push 0x40000000
push eax
mov dword [esp + 0x38], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4051db
push ebp
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebp, eax
push 4
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1c
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esp + 0x34]
mov eax, 1
add ecx, 0xffffffff
cmp ecx, eax
jb 0x405165
mov dl, 0x49
cmp byte [eax + esi], 0x4d
jne 0x40515e
cmp byte [eax + esi + 1], dl
jne 0x40515e
cmp byte [eax + esi + 2], 0x4c
jne 0x40515e
cmp byte [eax + esi + 3], dl
je 0x405169
add eax, 1
cmp eax, ecx
jbe 0x405145
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x18f79]
cmp eax, ecx
lea edi, [eax + esi - 6]
ja 0x4051b2
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub ecx, eax
add ecx, 1
mov ebx, ecx
mov dl, byte [edi]
push 0
lea eax, [esp + 0x28]
push eax
sub dl, 3
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
add edi, 1
sub ebx, 1
jne 0x405184
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret

Function at 0x405260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40526a
repz ret
jmp fcn.0040558b
Function at 0x452b20
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x267
push 8
push eax
mov ebx, ecx
call edi
mov ecx, dword [0x4086b4]
push 0x267
push 8
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
call edi
push ebx
push 0x102
push ebp
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push ebx
push 0x102
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edx, dword [0x4086b4]
add esp, 0x18
push 0x267
push 8
push edx
call edi
push 0x407420
push 0x102
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ebx, eax
call ebp
mov eax, dword [0x4086b4]
add esp, 0xc
push 0x208
push 8
push eax
call edi
mov edi, eax
push 0x102
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x452cf7
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x452ca6
lea edx, [esp + 0x4c]
push edx
push 0x102
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452c16
sub eax, edx
sar eax, 1
mov edx, eax
lea ecx, [edx + 0x5a]
cmp edx, ecx
ja 0x452c48
sub ecx, edx
add ecx, 1
shr ecx, 1
lea edi, [ebx + edx*2]
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
push str..exe
push 0x102
push ebx
mov word [ebx + edx*2 + 0xb6], 0
call ebp
lea eax, [esp + 0x58]
push eax
push 0x102
push esi
call ebp
add esp, 0x18
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x102
push esi
mov word [esi + 6], 0
call ebp
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [esi + 6], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452bec
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4086b4]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call ebp
mov edx, dword [0x4086b4]
push ebx
push 0
push edx
call ebp
mov eax, dword [0x4086b4]
push esi
push 0
push eax
call ebp
mov ecx, dword [0x4086b4]
push edi
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453260
add esp, 0x26c
ret
Function at 0x452d30
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes
Set file attributes

Disassembly:
push ecx
mov eax, dword [0x4086b4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x2c6
push 8
push eax
call esi
mov ecx, dword [0x4086b4]
push 0x2bc
push 8
push ecx
mov ebx, eax
call esi
push 0x104
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x15e
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452d80
sub eax, edx
sar eax, 1
add eax, 0xffffffff
js 0x452da0
cmp word [esi + eax*2], 0x2e
je 0x452e0f
sub eax, 1
jns 0x452d94
mov edx, dword [esp + 8]
push esi
mov word [esi + edx*2], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x452dc5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push pe_nt_image_headers32
push esi
call edi
push 6
push ebx
call edi
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov edx, dword [0x4086b4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push edx
call esi
mov eax, dword [0x4086b4]
push ebx
push 0
push eax
call esi
pop esi
pop ebx
pop ecx
ret
add eax, 0xffffffff
lea ecx, [eax - 0x5a]
cmp eax, ecx
jl 0x452da0
lea esp, [esp]
cmp word [esi + eax*2], 0x20
jne 0x452dee
mov edx, eax
sub eax, 1
cmp eax, ecx
jge 0x452e20
jmp 0x452da4
Function at 0x453090
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
push 0x208
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ebx, eax
push 0x102
push ebx
push 0
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push pe_nt_image_headers32
push 4
push 0
push 1
push 0x80000000
push ebx
call esi
push 0
push 6
push 2
push 0
push 1
mov edi, eax
mov eax, dword [esp + 0x58]
push 0x40000000
push eax
mov dword [esp + 0x38], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4531db
push ebp
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebp, eax
push 4
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1c
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esp + 0x34]
mov eax, 1
add ecx, 0xffffffff
cmp ecx, eax
jb 0x453165
mov dl, 0x49
cmp byte [eax + esi], 0x4d
jne 0x45315e
cmp byte [eax + esi + 1], dl
jne 0x45315e
cmp byte [eax + esi + 2], 0x4c
jne 0x45315e
cmp byte [eax + esi + 3], dl
je 0x453169
add eax, 1
cmp eax, ecx
jbe 0x453145
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x18f79]
cmp eax, ecx
lea edi, [eax + esi - 6]
ja 0x4531b2
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub ecx, eax
add ecx, 1
mov ebx, ecx
mov dl, byte [edi]
push 0
lea eax, [esp + 0x28]
push eax
sub dl, 3
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
add edi, 1
sub ebx, 1
jne 0x453184
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret

Function at 0x453260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x45326a
repz ret
jmp fcn.0045358b
Function at 0x401128
Capabilities:
Query environment variable

Disassembly:
enter 0x60, 0
mov ebx, 0x40316c
add byte [ebx + 0x40316c], bh
cmp ebx, 0xab4
jbe 0x40112b
mov edx, 0
push edx
call sub.USER32.dll_SetActiveWindow
push ebx
push dword [ebx + 0x1fc]
push ecx
push edx
call fcn.00401160
pop ebx
call sub.KERNEL32.dll_GetEnvironmentStringsA
add esp, 0x60
pop ebp
ret 0xc

Function at 0x401364
Capabilities:
Query environment variable

Disassembly:
enter 0x20, 0
mov edi, 0x403058
adc ebx, esi
push edi
push dword [edi + 0x84]
push dword [edi + 0x198]
call fcn.00401564
pop edi
call sub.KERNEL32.dll_GetEnvironmentStringsA
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 0x20
pop ebp
ret 8

Function at 0x401400
Capabilities:
Query environment variable

Disassembly:
enter 0x5c, 0
lea ecx, [0x403018]
add dword [ecx + 0x94], 0xffffff8d
push ecx
mov eax, 0
push eax
call sub.KERNEL32.dll_DeleteAtom
pop ecx
push ecx
push dword [ecx + 0xc]
push esi
push dword [ecx + 0x50]
push dword [ecx + 0x1b8]
call fcn.00401664
pop ecx
push ecx
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop ecx
add esp, 0x5c
pop ebp
ret 0xc

Function at 0x4017e4
Capabilities:
Query environment variable

Disassembly:
enter 0x5c, 0
mov edi, 0x403090
add byte [edi + 0x403090], bh
cmp edi, 0x56a5
je 0x4017e7
call sub.KERNEL32.dll_GetEnvironmentStringsA
push edi
push dword [edi + 0x10c]
push edx
push dword [edi + 0x124]
push edx
call fcn.00401908
pop edi
call sub.KERNEL32.dll_GetCurrentProcess
add esp, 0x5c
pop ebp
ret 0xc