joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8c40
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004df280
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x4e8ca6
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e6ae0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4e8ca2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e8cad
mov byte [esi], 4
test ebx, ebx
jne 0x4e8cbd
jmp 0x4e8cc9
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4e8cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4e8cc9
mov ecx, edi
mov edx, 2
call fcn.004040f0
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x4eb860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb918
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4eb88c
cmp dword [eax + 4], 0
mov edi, eax
je 0x4eb88c
add edi, 8
jmp 0x4eb913
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb927
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4eb911
mov esi, eax
test eax, eax
jne 0x4eb8e7
movzx eax, byte [0x64fd9c]
mov ecx, 0xc
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4eb942
mov dword [eax], 0x64f0b0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb936
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4eb913
test ecx, ecx
je 0x4eb913
lock dec dword [ecx]
jne 0x4eb913
call fcn.004eb960
jmp 0x4eb913
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x64f0b0
call fcn.00583b00
jmp 0x4eb870
mov ecx, 0x64f0b0
call fcn.00583b00
jmp 0x4eb89a
mov ecx, 0x64f0b0
call fcn.00583b00
jmp 0x4eb8df
mov ecx, 4
mov edx, 0xc
call fcn.00580af0
ud2
Function at 0x4ebf90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
push esi
test dx, dx
mov eax, 2
mov edi, 0x17
mov esi, ecx
cmove edi, eax
push 0x81
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4ebfc6
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x4ebfda
cmp eax, 0x2739
jne 0x4ec006
push 1
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4ec00e
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4ec01f
mov dword [esi + 4], edi
jmp 0x4ebfc0
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4ebfc3
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4ebfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4ebfc3

Function at 0x4ec050
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4ec0ae
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4ec0aa
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4ec0f0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1006
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4ec0e6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4ec0ae
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4ec0ae
mov byte [esi], 2
mov dword [esi + 4], 0x60af94
jmp 0x4ec0e8
Function at 0x4ec130
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4ec18e
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4ec18a
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4ec1d0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4ec1c6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4ec18e
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4ec18e
mov byte [esi], 2
mov dword [esi + 4], 0x60af94
jmp 0x4ec1c8

Function at 0x4ec210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, edx
sub ecx, edi
jb 0x4ec27e
cmp ecx, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmovb edx, ecx
mov ecx, dword [ebx]
add ecx, edi
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4ec260
add eax, edi
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [ebx + 0xc], eax
jmp 0x4ec26d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4ec276
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4ec270
mov ecx, edi
push 0x63c930
call fcn.00580dd0
add esp, 4
ud2

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], 0
mov edi, esp
mov ecx, dword [ecx]
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x4ec33e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4ec34d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret
Function at 0x4ec6a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4ec73e
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4ec757
cmp ecx, 0x17
jne 0x4ec777
cmp eax, 0x1b
jbe 0x4ec78d
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x4ec787
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x4ec782
cmp eax, 0xf
jbe 0x4ec79e
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x4ec787
mov byte [esi + 4], 2
mov dword [esi + 8], 0x60bb90
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x60bb2c
mov edx, 0x43
push 0x60bb70
jmp 0x4ec7ad
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x60bb1c
call fcn.00580f20
add esp, 4
ud2

Function at 0x4ec880
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
movzx eax, byte [esp + 0xc]
mov esi, ecx
mov dword [esp], eax
mov eax, esp
push eax
push 0x8004667e
push edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4ec8a5
mov byte [esi], 4
jmp 0x4ec8b4
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 4
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4ec8f6
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4ec90c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x4f51d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d4c0
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x64fd9c]
call fcn.00404090
test eax, eax
je 0x4f52ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4f5320
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4f524d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4f529b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4f5282
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004040f0
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.004040f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00580af0
ud2
Function at 0x4f5710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.0056fbe0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d4f0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00571330
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4ed170
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4f5864
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f579a
cmp dword [ebp - 0x2c], 0
jne 0x4f5875
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4f5875
cmp esi, 0x1000
ja 0x4f58b1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4f5897
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4ed170
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4f586c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f5810
cmp dword [ebp - 0x2c], 0
jne 0x4f5872
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4f57d0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4ed170
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4f579a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f5875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x60b1f0
call fcn.00581100
add esp, 4
jmp 0x4f58cc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x60b1f0
call fcn.00580eb0
add esp, 4
ud2
Function at 0x4f59a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x56d510
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4f5a1e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x60b2fc
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x60b328
mov dword [esi + 0x2c], fcn.004e54a0
mov dword [esi + 0x3c], 1
call fcn.00580da0
ud2

Function at 0x4f7350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x64f090]
test eax, eax
je 0x4f73d4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4f736f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4f73c9
mov eax, dword [0x64f090]
test eax, eax
je 0x4f73e3
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4f73ce
mov esi, eax
test eax, eax
jne 0x4f73c3
movzx eax, byte [0x64fd9c]
mov ecx, 8
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4f73fb
mov dword [eax], 0x64f090
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f090]
test eax, eax
je 0x4f73ef
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4f73d0
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x64f090
call fcn.00583b00
jmp 0x4f735b
mov ecx, 0x64f090
call fcn.00583b00
jmp 0x4f7379
mov ecx, 0x64f090
call fcn.00583b00
jmp 0x4f73bb
mov ecx, 4
mov edx, 8
call fcn.00580af0
ud2
Function at 0x4fa460
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004df280
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x4fa4c4
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e6ae0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4fa4c0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4fa4cb
mov byte [esi], 4
test ebx, ebx
jne 0x4fa4db
jmp 0x4fa4e7
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4fa4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4fa4e7
mov ecx, edi
mov edx, 2
call fcn.004040f0
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x4fa4f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d630
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004df280
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x4fa5d7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
push 1
call fcn.004e6ae0
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
test eax, eax
je 0x4fa5d4
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.004df280
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x4fa5e1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x28]
push 1
call fcn.004e6ae0
add esp, 4
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
test esi, esi
je 0x4fa5de
push 1
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x2c]
test eax, eax
je 0x4fa5ee
mov eax, dword [ebp - 0x34]
mov byte [eax], 4
test edi, edi
jne 0x4fa601
jmp 0x4fa60d
mov eax, dword [ebp - 0x38]
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x4fa61e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x4fa60d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], 0
mov dword [ecx + 4], eax
test edi, edi
je 0x4fa60d
mov ecx, esi
mov edx, 2
call fcn.004040f0
test ebx, ebx
je 0x4fa61e
mov ecx, dword [ebp - 0x30]
mov edx, 2
call fcn.004040f0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fa650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x56d640
movaps xmm0, xmmword [0x5887d0]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004e6420
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4fa70f
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4fa72b
test byte [esi + 0x40], 0x10
jne 0x4fa73d
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4fa737
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4fa7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4fa7b2
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4fa820
call fcn.004fa860
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4fa771
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4fa7ae
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4fa788
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4fa7ae
cmp edx, 1
je 0x4fa797
cmp edx, 0x57
je 0x4fa797
cmp edx, 0x32
jne 0x4fa781
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x4fb0e0
call fcn.004fa860
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret