joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f90
Capabilities:
Access peb ldr_data
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445550
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x2c]
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [esp + 0x1c]
push str._s_del__x
push eax
call fcn.00407a50
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
push edi
call ebp
push edi
push esi
call fcn.004206f4
mov ecx, dword [esp + 0x30]
add esp, 8
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebx
jne 0x4120bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov ebx, eax
call fcn.004206f4
add esp, 8
test ebx, ebx
jne 0x412083
push esi
lea ecx, [esp + 0x30]
call fcn.0040d790
push 1
push 0x448838
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.0040b780
mov edx, dword [esp + 0x2c]
push edx
call ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4120a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x412038
Function at 0x4121a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x445590
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x28]
lea eax, [edi + 4]
push eax
lea ecx, [esi + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00411870
add esp, 0xc
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
mov dword [esp + 0x20], 0
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x2c], 1
call fcn.00411870
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.0040c160
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41224a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x10]
push 0
push ebp
call fcn.004207a9
add esp, 8
test eax, eax
je 0x412265
mov edi, 2
push edi
jmp 0x4122b9
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004138e0
mov eax, dword [eax]
push eax
mov byte [esp + 0x2c], 3
call fcn.00414030
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push ecx
push ebp
mov ecx, esi
call fcn.00411f90
mov edi, eax
push edi
mov ecx, esi
call fcn.00410ec0
lea eax, [ebp - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4122e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412309
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
Function at 0x414030
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4459d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x18]
call fcn.0040d790
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x414091
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x414117
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x414104
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x414104
lea ecx, [esp + 0x14]
push ecx
call fcn.00413300
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x4140e5
lea ecx, [esp + 0x14]
call fcn.00407060
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00414030
add esp, 4
test eax, eax
je 0x4140c6
push 0
push esi
call edi
test eax, eax
jne 0x414104
call ebx
cmp eax, 0xb7
jne 0x4140c6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x414125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x414620
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4146b7
push edi
lea ecx, [esp + 0xc]
push ecx
push ebp
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0xc], ebx
mov edi, eax
jne 0x4146af
cmp edi, 0x200000
ja 0x4146af
lea edx, [edi + 2]
push esi
push edx
call fcn.0041ce2a
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4146ae
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4146ae
mov edx, dword [esp + 0x1c]
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov byte [ecx + esi + 1], bl
mov dword [edx], esi
mov dword [eax], edi
mov ebx, 1
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x417b40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x445e59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0x28], 2
call fcn.00417a90
mov eax, 1
mov dword [esp + 0xc], eax
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x34]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0
call fcn.004173a0
mov edx, dword [esp + 0x34]
push edx
call fcn.0041d698
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x419a40
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x419a55
xor eax, eax
pop edi
add esp, 8
ret 8
push esi
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x419ae1
push eax
call fcn.0041ce2a
mov esi, eax
add esp, 4
test esi, esi
je 0x419ae1
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x419ad8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
push 0x447b48
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x419ad8
mov eax, dword [esp + 8]
test eax, eax
je 0x419ad8
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov eax, dword [eax + 0xc]
push esi
mov dword [ecx], eax
call fcn.0041f718
add esp, 4
pop esi
mov eax, 1
pop edi
add esp, 8
ret 8
push esi
call fcn.0041f718
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 8
ret 8

Function at 0x419af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419b29
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x419b30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4461f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x20], 0
jge 0x419b9b
push 0x104
lea ecx, [esp + 0x10]
call fcn.004072a0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test esi, esi
jne 0x419baf
xor eax, eax
jmp 0x419bc9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419bb4
sub eax, edx
sar eax, 1
js 0x419d71
cmp eax, dword [esi - 8]
jg 0x419d71
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x419c01
push 0x104
lea ecx, [esp + 0x10]
call fcn.004072a0
mov esi, dword [esp + 0xc]
push str.ntoskrnl.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
jne 0x419c15
xor eax, eax
jmp 0x419c35
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419c20
sub eax, edx
sar eax, 1
js 0x419d71
cmp eax, dword [esi - 8]
jg 0x419d71
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419d37
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, edi
call fcn.00419a40
test eax, eax
je 0x419d37
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov eax, ecx
movzx edx, cx
mov ecx, dword [edi + 4]
shr eax, 0x10
cmp ecx, eax
jb 0x419c91
jne 0x419d37
cmp dword [edi + 8], edx
jae 0x419d37
push 0x2001f
push str.SYSTEMCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
mov dword [edi + 0x10], 2
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
call fcn.004063b0
test eax, eax
jne 0x419cdd
lea ecx, [esp + 0xc]
push ecx
push str.CSDVersion
lea ecx, [esp + 0x30]
call fcn.00419af0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
shr edx, 8
test eax, eax
mov word [edi + 0x114], dx
je 0x419cfa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
push 0x80070057
call fcn.00401ac0
int3
Function at 0x419e20
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], 0x22c
call fcn.0041d8e0
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x419e80
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x419ea0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
lea edx, [esp + 0x2c]
push str.kdesk.exe
push edx
call fcn.0041d83f
add esp, 8
test eax, eax
je 0x419ec7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x419ea0
jmp 0x419ecb
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret

Function at 0x419ef0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], 0x22c
call fcn.0041d8e0
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x419f50
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x419f70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
lea edx, [esp + 0x2c]
push str.explorer.exe
push edx
call fcn.0041d83f
add esp, 8
test eax, eax
je 0x419f97
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x419f70
jmp 0x419f9b
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
Function at 0x419fc0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x41a093
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41a093
push edi
push eax
push 0
push 0x1f0fff
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41a08c
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a000
push ebp
push esi
push 4
sub eax, edx
push 0x3000
add eax, 1
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x41a087
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a032
push 0
sub eax, edx
add eax, 1
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41a087
push 0x4499ac
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x41a087
push eax
mov dword [esp + 0x18], 1
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x41a590
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41a5a1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41a5d5
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a5c4
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, 1
pop esi
ret

Function at 0x41a5e0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a617
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x41b650
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x446278
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x54]
cmp dword [eax - 0xc], 0
lea esi, [edi + 0x54]
mov dword [esp + 0x1c], 0
jne 0x41b6d9
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push eax
mov ecx, edi
call fcn.0041a5e0
cmp eax, 0x500000
jb 0x41b75e
push esi
lea ecx, [esp + 0x14]
call fcn.0040c160
push 4
push str..old
lea ecx, [esp + 0x18]
call fcn.0040b780
mov edi, dword [esp + 0x10]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b782
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x41bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446369
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
call edx
mov ebp, dword [esp + 0x38]
add eax, 0x10
mov dword [ebp], eax
lea edi, [esi + 0x14]
mov ebx, 1
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x24], bl
cmp dword [esi + 0x34], 0
mov dword [esp + 0x30], ebx
je 0x41bcb0
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
add esi, 0x2c
cmp edi, eax
jne 0x41bc52
call fcn.0041db92
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.0041ab80
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], edi
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x34], 2
call fcn.0041b1e0
lea eax, [edi - 0x10]
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
mov eax, dword [eax]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041b7e0
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x41bcd0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446398
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x38]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], 1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.0041bbd0
mov esi, dword [esi + 0x50]
test esi, esi
je 0x41bd45
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41bd45
call fcn.00406310
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x41c140
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x41c162
push 0
push 0
push esi
push 0x41bf90
push 0
push 0
call fcn.00421238
add esp, 0x18
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [esi + 0x10], eax
pop esi
setne al
ret