joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409600
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x409633
mov ecx, dword [edi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x409655
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push ebx
push 0
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 0x18], 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x4096a8
cmp eax, 0x3e5
je 0x4096a8
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00405e20
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x4096f3
mov ecx, dword [esi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x409715
mov ecx, dword [esi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov edi, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
push edi
push ecx
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 8], 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x409750
mov eax, 0x2746
jmp 0x40975d
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x40977d
cmp eax, 0x3e5
je 0x40977d
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00405e20
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x40b920
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x40b96d
mov eax, dword [0x53af88]
test al, 1
jne 0x40b956
or eax, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], eax
call fcn.004c95ad
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x2719
mov dword [eax + 4], 0x53af9c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [0x53af88]
mov esi, eax
test cl, 1
jne 0x40b9ad
or ecx, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], ecx
call fcn.004c95ad
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 0x53af9c
test esi, esi
jne 0x40b9cc
mov dword [ecx], esi
mov dword [ecx + 4], 0x52c6cc
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40bbb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x40bc16
mov eax, dword [0x53af88]
test al, 1
jne 0x40bbf6
or eax, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], eax
call fcn.004c95ad
add esp, 4
mov dword [esi], 0x2719
or eax, 0xffffffff
mov dword [esi + 4], 0x53af9c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x53af88]
mov edi, eax
test cl, 1
jne 0x40bc87
or ecx, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], ecx
call fcn.004c95ad
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x53af9c
test edi, edi
js 0x40bca7
mov dword [esi], 0
mov dword [esi + 4], 0x52c6cc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004c8a23
mov esp, ebp
pop ebp
ret
Function at 0x40c360
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40c398
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x20]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x20]
lea ecx, [ebp + 8]
push ebx
push dword [ebp + 0x18]
mov dword [ebp + 8], 0
push dword [ebp + 0x14]
push 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40c3f0
cmp eax, 0x3e5
je 0x40c3f0
push dword [ebp + 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.00405e20
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40c43d
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x20]
call fcn.00405e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x20]
lea ecx, [ebp - 4]
push ebx
push dword [ebp + 0x1c]
mov dword [ebp + 8], 0
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40c4a0
cmp eax, 0x3e5
je 0x40c4a0
push dword [ebp + 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00405e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.00405e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40d540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc688
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x52a51c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x10]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
lea eax, [edx + 4]
push eax
call fcn.0040d8c0
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [esi + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d740
lea ecx, [esp + 0x10]
call fcn.0040cda0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40dfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc148
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x52a51c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 8
lea eax, [esi + 4]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.004082d0
sub esp, 8
mov dword [esp + 0x30], 0
mov ecx, esp
lea eax, [esi + 0xc]
push eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.004082d0
mov eax, dword [ebp + 0xc]
mov ecx, esi
push dword [eax]
lea eax, [esi + 0x1c]
mov dword [esp + 0x34], 0xffffffff
push dword [ebp + 8]
push eax
call fcn.0040e070
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e3b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x40e3c1
xor edx, edx
jmp 0x40e3cf
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e3c6
sub edx, esi
lea esi, [ecx + 0x18]
push edx
push edi
mov ecx, esi
call fcn.00404ce0
cmp dword [esi + 0x14], 0x10
jb 0x40e3e5
mov ecx, dword [esi]
jmp 0x40e3e7
mov ecx, esi
mov eax, dword [esi + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x40e41e
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x40e3fd
mov edx, dword [esi]
jmp 0x40e3ff
mov edx, esi
add eax, edx
cmp ecx, 0x10
jb 0x40e40a
mov ecx, dword [esi]
jmp 0x40e40c
mov ecx, esi
test eax, eax
je 0x40e412
sub eax, ecx
push 0x5c
push 1
push eax
mov ecx, esi
call fcn.0040ec60
cmp dword [esi + 0x14], 0x10
jb 0x40e426
mov esi, dword [esi]
push esi
call fcn.004ca8de
add esp, 4
pop edi
pop esi
pop ebp
ret 4

Function at 0x40ea50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ecx + 0x30]
mov esi, dword [ebp + 0xc]
lea edx, [ecx + 0x18]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.0040ed70
push esi
mov edx, eax
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.0040ee30
add esp, 8
cmp dword [ebp - 0x14], 0x10
jb 0x40eabb
push dword [ebp - 0x28]
call fcn.0044bc50
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 8
Function at 0x40f760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp edi, 0xffffffff
jne 0x40f7b2
mov eax, dword [0x53af88]
test al, 1
jne 0x40f798
or eax, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], eax
call fcn.004c95ad
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x2719
mov dword [eax + 4], 0x53af9c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 4]
mov edi, eax
mov dword [esi], ecx
mov ecx, dword [0x53af88]
test cl, 1
jne 0x40f800
or ecx, 1
mov dword [0x53af9c], 0x50b1f8
push 0x501e00
mov dword [0x53af88], ecx
call fcn.004c95ad
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 0x53af9c
test edi, edi
jne 0x40f81f
mov dword [ecx], edi
mov dword [ecx + 4], 0x52c6cc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fa90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 4], 0
jne 0x40faac
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x40fabe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x40fabe
mov dword [esi + 4], 0xffffffff
mov eax, dword [edi]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esi], 0xffffffff
jne 0x40fae7
mov ecx, dword [edi]
push 0
push 0x2719
push dword [ebp + 0x18]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 4], 0
jne 0x40fb05
mov ecx, dword [edi]
push 0
push 0
push dword [ebp + 0x18]
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp + 8], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ecx + 4]
push dword [ecx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40fb5a
cmp eax, 0x3e5
je 0x40fb5a
cmp eax, 0xea
je 0x40fb5a
push dword [ebp + 8]
mov ecx, dword [edi]
push eax
push ebx
call fcn.00405e90
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [edi]
push ebx
call fcn.00405e20
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40fd60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x40fd74
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40fdac
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shrd eax, ecx, 9
shr ecx, 9
mov dword [esi + 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov dword [ecx], eax
mov eax, dword [esi + 0x54]
mov dword [ecx + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov dword [ecx], eax
mov eax, dword [esi + 0x54]
mov dword [ecx + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x410520
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 8
lea eax, [ebp - 0x30]
mov esi, ecx
push eax
push 0
push 0
xorps xmm0, xmm0
push 0x7405c
push dword [esi + 8]
movdqu xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
movq qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4105cc
push 0
lea eax, [ebp - 0x24]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x70000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4105cc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
test edx, edx
jne 0x410604
test eax, eax
jne 0x410604
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x10]
push 0
push dword [ebp - 0xc]
push edx
push eax
call fcn.004d21d0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edx
push eax
call fcn.004d21d0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push dword [esi + 8]
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x410600
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c8a23
mov esp, ebp
pop ebp
ret
Function at 0x410c20
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x53afc0], 0
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0xc], xmm0
je 0x410d03
cmp dword [0x53afc4], 0
je 0x410d03
cmp dword [0x53afc8], 0
je 0x410d03
cmp dword [0x53afcc], 0
je 0x410d03
mov eax, dword [0x53afd0]
test eax, eax
je 0x410d03
cmp dword [0x53afd4], 0
je 0x410d03
cmp dword [0x53afd8], 0
je 0x410d03
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
je 0x410d03
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x10]
jb 0x410d03
cmp dword [0x53afc0], 0
movzx ecx, word [esi + 0x10]
je 0x410d03
cmp dword [0x53afc4], 0
je 0x410d03
cmp dword [0x53afc8], 0
je 0x410d03
cmp dword [0x53afcc], 0
je 0x410d03
cmp dword [0x53afd0], 0
je 0x410d03
mov eax, dword [0x53afd4]
test eax, eax
je 0x410d03
cmp dword [0x53afd8], 0
je 0x410d03
lea edx, [ebp - 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x410d03
mov byte [esi + 0x14], 1
jmp 0x410d07
mov byte [esi + 0x14], 0
lea edi, [esi + 0x18]
cmp edi, ebx
je 0x410d46
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x410d2a
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x10], 0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x410d36
mov dword [edi + 0x10], ecx
jmp 0x410d46
mov eax, dword [ecx]
cmp ecx, ebx
jne 0x410d3f
push edi
jmp 0x410d41
push 0
call dword [eax]
mov dword [edi + 0x10], eax
lea edi, [esi + 0xc]
push edi
push 4
push esi
push 0x410e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x410dc4
cmp byte [esi + 0x14], 0
je 0x410db6
cmp dword [0x53afc0], 0
je 0x410db6
cmp dword [0x53afc4], 0
je 0x410db6
cmp dword [0x53afc8], 0
je 0x410db6
cmp dword [0x53afcc], 0
je 0x410db6
cmp dword [0x53afd0], 0
je 0x410db6
cmp dword [0x53afd4], 0
je 0x410db6
mov ecx, dword [0x53afd8]
test ecx, ecx
je 0x410db6
push 0
lea edx, [ebp - 0x10]
push edx
push eax
call ecx
test eax, eax
je 0x410dc4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410e01
mov eax, dword [esi + 8]
xor bl, bl
test eax, eax
je 0x410dec
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov dword [edi], 0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 4
Function at 0x416780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
movdqu xmmword [ebp - 0x10], xmm0
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x10000
push dword [ebp + 0xc]
shld edi, esi, 0x10
push dword [ecx + 0x20]
shl esi, 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4167fb
push edi
push esi
push str.ReadFile_failed____I64u
push str.disk_data_pool_t::read_data
push 0xbc
push str.d:_slaveworkspace_netdiskgamevirtualdiskserverdisk_data_pool.h
push 8
call fcn.0040eb60
add esp, 0x1c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x416810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
movdqu xmmword [ebp - 0x10], xmm0
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x10000
push dword [ebp + 0xc]
shld edi, esi, 0x10
push dword [ecx + 0x20]
shl esi, 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41688b
push edi
push esi
push str.WriteFile_failed____I64u
push str.disk_data_pool_t::write_data
push 0xd3
push str.d:_slaveworkspace_netdiskgamevirtualdiskserverdisk_data_pool.h
push 8
call fcn.0040eb60
add esp, 0x1c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4168a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd288
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
movzx eax, byte [ecx + 4]
lea ecx, [ebp - 0x2c]
push eax
push 1
call fcn.00439800
push 1
push 0x510c50
lea ecx, [ebp - 0x2c]
call fcn.00404960
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x34]
push 0
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x416934
xor bl, bl
jmp 0x416945
mov ecx, dword [ebp - 0x34]
mov bl, 1
mov eax, dword [ebp - 0x30]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi], ecx
cmp dword [ebp - 0x18], 0x10
jb 0x416956
push dword [ebp - 0x2c]
call fcn.0044bc50
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 4
Function at 0x417490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
cmp edi, 0xffffffff
jne 0x4174b8
push 4
push 0x402000
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x417514
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [0x53afc0]
test ecx, ecx
je 0x417512
cmp dword [0x53afc4], 0
je 0x417512
cmp dword [0x53afc8], 0
je 0x417512
cmp dword [0x53afcc], 0
je 0x417512
cmp dword [0x53afd0], 0
je 0x417512
cmp dword [0x53afd4], 0
je 0x417512
cmp dword [0x53afd8], 0
je 0x417512
push edi
push 4
push 0x402000
push 0x10000
push 0
push eax
call ecx
jmp 0x417514
xor eax, eax
mov dword [esi + 0x30], eax
test eax, eax
jne 0x417540
push str.internal_virtual_alloc_for_awe_failed_n
push str.node_awe_memory_pool_t::init
push 0x37
push str.d:_slaveworkspace_netdiskgamevirtualdiskserver_node_awe_memory_pool.h
push 0x20
call fcn.0040eb60
add esp, 0x14
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0xc], 0
jne 0x41757e
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x30]
push eax
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, 0x4000000
div dword [ebp - 0x2c]
xor edx, edx
mov dword [esi + 0xc], eax
mov eax, 0x10000
div dword [ebp - 0x2c]
mov dword [esi + 0x10], eax
call fcn.00417b80
test al, al
jne 0x417595
push str.adjust_lock_pages_privilege_failed_n
push str.node_awe_memory_pool_t::init
push 0x46
jmp 0x417527
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
mov ecx, esi
movlpd qword [ebp - 0xc], xmm0
call fcn.00418370
test eax, eax
jne 0x4175bd
push str.internal_get_total_memory_failed_n
push str.node_awe_memory_pool_t::init
push 0x4d
jmp 0x417527
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shrd ecx, eax, 0x1a
shr eax, 0x1a
lea eax, [ecx + ecx*4]
mov ecx, esi
shl eax, 3
push eax
call fcn.004182b0
mov dword [esi + 0x28], eax
test eax, eax
jne 0x4175f0
push str.internal_virtual_alloc_failed_n
push str.node_awe_memory_pool_t::init
push 0x55
jmp 0x417527
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], eax
call fcn.004178c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4