joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d1df
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0x49d034
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.0040562b
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46d2ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x46d243
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x46d248
jmp 0x46d2b0
cmp eax, 3
jne 0x46d2b4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0x49d034
inc dword [eax]
call fcn.0040642a
cmp eax, 0xffffffff
je 0x46d2a1
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.0040ad22
lea ecx, [esp + 0x18]
call fcn.0046d1df
test al, al
je 0x46d29f
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.0040b1ff
jmp 0x46d2b6
test al, 0x10
je 0x46d2b4
mov bl, 1
jmp 0x46d2b6
xor bl, bl
lea ecx, [esp + 8]
call fcn.0040b1ff
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d2c7
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.0040c25d
lea ecx, [esp + 0x30]
call fcn.0040c25d
lea ecx, [esp + 0x20]
call fcn.0040c25d
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0040592d
mov ecx, dword [esp + 0x10]
call fcn.0046e0b7
test al, al
je 0x46d31e
push 0x4c68dc
lea ecx, [esp + 0x14]
call fcn.004052b7
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00406bff
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x46d3be
cmp al, 1
jne 0x46d3be
test byte [esp + 0x40], 0x10
jne 0x46d399
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040c1c3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00407cf8
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004052b7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x46d3b5
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d351
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d351
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x46d3c9
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.0040b1ff
lea ecx, [esp + 0x30]
call fcn.0040b1ff
lea ecx, [esp + 0x10]
call fcn.0040b1ff
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d3fa
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], edx
push 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.0046de15
mov ebx, eax
jmp 0x46d4f0
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
cmp eax, 1
jne 0x46d4f9
lea ecx, [esp + 0x18]
call fcn.0040c25d
lea ecx, [esp + 0x28]
call fcn.0040c25d
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b606
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00406bff
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.0040b1ff
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407cf8
mov eax, dword [esp + 0x10]
push 0
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0041d5dc
test eax, eax
mov eax, dword [esp + 0x50]
je 0x46d4d5
test ebx, ebx
je 0x46d4de
cmp ebx, eax
jne 0x46d4de
mov ecx, dword [esp + 0x14]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.0040b1ff
lea ecx, [esp + 0x18]
call fcn.0040b1ff
cmp byte [esi], 0
je 0x46d447
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d509
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
mov ebx, edx
push eax
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
je 0x46d581
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
push 0x28
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x46d581
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
jmp 0x46d583
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46d588
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0x80
push ebx
push esi
xor esi, esi
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46d5fb
push edi
xor eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
test esi, esi
je 0x46d5fb
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
jmp 0x46d600
mov eax, 0x80004005
pop esi
pop ebx
leave
ret

Function at 0x46dadc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp word [esi + eax*2 - 2], 0x22
je 0x46db24
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46db27
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x46db24
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 8]
jmp 0x46db27
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46dd45
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x46de04
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x46de04
mov eax, dword [eax + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
je 0x46dda1
inc ecx
cmp dword [eax + ecx*4], 0
jne 0x46dd9a
cmp esi, ecx
jle 0x46ddb4
push str.0.0.0.0
push edi
call fcn.00424913
pop ecx
pop ecx
jmp 0x46ddfc
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00420db0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042d580
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0046eaef
mov esi, eax
push esi
push edi
call fcn.00424913
push esi
call fcn.0041fd94
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x46de11
push 0x49d0d0
push edi
call fcn.00424913
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x46e0b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e0ca
test al, 0x10
je 0x46e0ca
mov al, 1
ret
xor al, al
ret

Function at 0x46e0f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4d139d], 0
mov ebx, edx
test edi, edi
je 0x46e146
mov byte [0x4d139e], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46e5ce
push ecx
push ecx
call fcn.0042d1e8
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x46e171
push 0xffffffffffffffff
push esi
mov byte [0x4d139e], 0
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4d139d], 1
jne 0x46e17f
or eax, 0xffffffff
jmp 0x46e181
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e319
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.00441ef0
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046dcfe
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046dcfe
pop ecx
lea ecx, [esp + 0x10458]
call fcn.0046e0b7
test al, al
je 0x46e3d8
lea ecx, [esp + 0x458]
call fcn.0046e0b7
xor esi, esi
test al, al
je 0x46e444
cmp byte [ebp + 8], 0
je 0x46e3d8
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x46e3e0
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x46e57c
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x46e57c
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0042d513
add esp, 0x14
lea eax, [esp + 0x458]
push 0x49d034
push eax
call fcn.00428fc8
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00428fc8
add esp, 0x10
cmp word [esp + 0x48], si
je 0x46e444
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00428fc8
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.0040b606
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b606
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.0046e04a
lea ecx, [esp + 0x38]
mov bl, al
call fcn.0040b1ff
lea ecx, [esp + 8]
call fcn.0040b1ff
test bl, bl
je 0x46e4e2
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.0046ce1e
pop ecx
test al, al
je 0x46e3d8
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.0040b606
mov dl, 1
lea ecx, [esp + 8]
call fcn.0046e77b
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.0040b1ff
add bl, 1
je 0x46e57c
jmp 0x46e3d8
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x46e3d8
lea eax, [esp + 0x10458]
push eax
call fcn.004248f3
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.004248f3
pop ecx
xor ecx, ecx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x32], esi
mov word [esp + eax*2 + 0x45a], cx
lea eax, [esp + 0x10458]
mov ecx, 0x614
mov dword [esp + 0x20], eax
mov word [esp + 0x28], cx
lea eax, [esp + 0x458]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46e3d8
mov al, 1
jmp 0x46e3da
Function at 0x46e77b
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00441ef0
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.0046dcfe
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.0046e0b7
test al, al
je 0x46e7c3
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x46e7c8
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x46e810
xor al, al
pop ebx
leave
ret
call fcn.004248f3
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46e7c3
mov al, 1
jmp 0x46e7c5

Function at 0x46e899
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x46e917
jne 0x46e8ac
push 0
jmp 0x46e911
cmp esi, 0xf
jae 0x46e910
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x46e910
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4b1108]
call fcn.00442050
cmp eax, esi
jb 0x46e8c9
jmp 0x46e917
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

Function at 0x46ea3e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x46ea99
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x4703f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x470435
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4704bb
push 1
mov edx, esi
mov ecx, eax
call fcn.0047028f
pop ecx
jmp 0x4704bd
test dword [ebp + 8], eax
je 0x47045b
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4704bf
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x47049b
or eax, 0xffffffff
jmp 0x4704bf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470472
cmp eax, 0xffffffff
jne 0x470424
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4c6a14
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4704bb
test eax, eax
je 0x4704bb
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0047028f
pop ecx
cmp dword [esi], edi
je 0x4704b4
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4704bd
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10

Function at 0x4704c5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x470509
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47058d
push 1
mov edx, esi
mov ecx, eax
call fcn.0047028f
pop ecx
jmp 0x47058f
test al, 1
je 0x47052e
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x470591
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x47056d
or eax, 0xffffffff
jmp 0x470591
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470544
cmp eax, 0xffffffff
jne 0x4704f8
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x4c6a14
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47058d
test eax, eax
je 0x47058d
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0047028f
pop ecx
cmp dword [esi], edi
je 0x470586
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x47058f
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
Function at 0x47070d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 0x1f5
lea esi, [ebx + 0x38]
mov dword [ebp - 8], edi
push esi
call edi
mov eax, dword [ebx + 8]
mov ecx, 0xffff
test eax, eax
jne 0x470744
push ecx
call fcn.0041fd8b
pop ecx
mov ecx, 0xffff
mov dword [ebx + 8], eax
push ecx
mov dword [ebx + 0x14], ecx
call fcn.0041fd8b
pop ecx
push 0
mov dword [ebx + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x470825
cmp dword [ebp - 4], 0
jbe 0x47081f
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x14], eax
jae 0x4707e0
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x4707ab
fadd qword [0x4c81d0]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4c3418]
call fcn.00442050
push eax
mov dword [ebx + 0x14], eax
call fcn.0041fd8b
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push edi
push dword [ebx + 0xc]
call fcn.00420db0
push edi
call fcn.0041fd94
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0xc]
push ecx
push dword [ebx + 8]
push eax
call fcn.00420db0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x470773
mov edi, dword [ebp - 8]
lea esi, [ebx + 0x38]
cmp dword [ebx + 8], 0
je 0x470838
push dword [ebx + 8]
call fcn.0041fd94
and dword [ebx + 8], 0
pop ecx
mov ebx, 0x1f6
push ebx
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x470889
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
je 0x4708f5
push ebx
lea ebx, [edi + 0x38]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp eax, 0x1f6
je 0x4708f4
push esi
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x1f6
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x3e8
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [edi + 0x34], 0
je 0x4708e0
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [edi + 0x34], 0
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
pop edi
ret
Function at 0x473c3c
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00441ef0
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x473cf2
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4c6e40
push eax
call fcn.0041faa3
lea eax, [ebp - 0x10004]
push eax
call fcn.004248f3
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x473cb5
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x473cb5
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x473cca
cmp byte [ebp + 0x10], al
je 0x473cf2
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473cfa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.004222d0
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d27b
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x473d89
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x473ce9
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
jmp 0x473cf4