joyce8/EMBER2024-capa huggingface dataset:
Function at 0x580a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x63a5fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.CM3UParser::decodingState.0
call fcn.004024e0
xor eax, eax
mov dword [esp + 0x14], eax
fldz
fstp qword [esi + 0x28]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0xc], al
mov byte [esi + 0xe], al
mov byte [esi + 0x12], al
mov byte [esi + 0xf], al
mov byte [esi + 0x11], al
mov byte [esi + 0x10], al
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x581da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [ecx + 0x31e8]
push edi
mov dword [esp + 0x10], ecx
cmp esi, 0x186a0
jbe 0x581dbc
mov esi, 0x186a0
mov eax, dword [ecx + 0xb0]
mov ecx, dword [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x581dfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x581f1d
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 4
push esi
call fcn.005cfaa6
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x581e22
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x753b
pop esi
add esp, 0xc
ret 4
push ebx
push ebp
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x581f03
cmp dword [esp + 0x14], esi
jne 0x581f03
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0x326c]
mov edx, ebx
cmp esi, 4
jb 0x581e84
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x581e88
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x581e70
test esi, esi
je 0x581ecb
movzx ebp, byte [ecx]
movzx eax, byte [edx]
sub eax, ebp
jne 0x581ec3
cmp esi, 1
jbe 0x581ecb
movzx eax, byte [edx + 1]
movzx ebp, byte [ecx + 1]
sub eax, ebp
jne 0x581ec3
cmp esi, 2
jbe 0x581ecb
movzx eax, byte [edx + 2]
movzx ebp, byte [ecx + 2]
sub eax, ebp
jne 0x581ec3
cmp esi, 3
jbe 0x581ecb
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x581ecd
xor eax, eax
test eax, eax
mov eax, dword [esp + 0x20]
setne dl
push ebx
mov byte [eax], dl
call fcn.005cfa9b
mov ecx, dword [edi + 0x326c]
push ecx
call fcn.005cfa9b
add esp, 8
pop ebp
pop ebx
mov dword [edi + 0x326c], 0
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
push edx
call fcn.005cfa9b
add esp, 4
mov eax, ebp
test ebp, ebp
jne 0x581f1b
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x5826d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x63a8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov al, 0xf0
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov al, 0xff
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov esi, ecx
mov edx, dword [esi + 0x3220]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x34], 0xef
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0xa0
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 2
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x5827a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x582848
lea ecx, [esp + 0x10]
call fcn.004024e0
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, byte [esp + 0x1f]
movzx ecx, ax
movzx eax, byte [esp + 0x1e]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
movzx ecx, ah
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x28]
push str._d._d._d._d_s_ld
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x30]
add esp, 0x20
push ecx
push 0x14
lea edx, [esp + 0x30]
push edx
push 2
mov ecx, esi
call fcn.005823b0
mov edi, eax
cmp edi, ebx
je 0x582817
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402550
mov eax, edi
jmp 0x582848
push 0x18
lea ecx, [esi + 0x3214]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402550
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005f85e7
add esp, 0x3c
ret 4
Function at 0x584b70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
cmp dword [ecx + 0x31e8], 0
mov dword [esp + 4], ecx
jne 0x584b86
xor eax, eax
add esp, 0xc
ret
push edi
mov edi, dword [ecx + 0x31e8]
cmp edi, 0x186a0
jbe 0x584b9a
mov edi, 0x186a0
mov eax, dword [ecx + 0xb0]
mov ecx, dword [eax + 0x30]
push ebx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x584bda
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x584c62
pop ebx
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.005cfaa6
mov esi, eax
add esp, 4
test esi, esi
jne 0x584bfd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 0x753b
pop edi
add esp, 0xc
ret
push ebp
push 0
lea edx, [esp + 0x14]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x584c4b
cmp dword [esp + 0xc], edi
jne 0x584c4b
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.00583960
push esi
mov edi, eax
call fcn.005cfa9b
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0xc
ret
push esi
call fcn.005cfa9b
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x584c61
mov eax, 1
pop esi
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x585570
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x63abf0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov al, 0xf0
xor ebx, ebx
mov esi, ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], 0xb
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 4
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x1c
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 3
mov byte [esp + 0x23], bl
call fcn.004024e0
mov dword [esp + 0x30], ebx
push str.954afa31_d601_4525_ae7f_57d44aeb4d34
lea ecx, [esp + 0x18]
call fcn.004030e0
mov byte [esp + 0x30], 1
lea eax, [esp + 0x14]
push eax
call fcn.005822f0
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.NSPlayer_9.0.0.2980___s__Host:__s
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0x14
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push 1
mov ecx, esi
call fcn.005823b0
mov edi, eax
cmp edi, ebx
je 0x585662
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402550
mov eax, edi
jmp 0x5856a0
push 0x17
lea ecx, [esi + 0x3214]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402550
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005f85e7
add esp, 0x24
ret
Function at 0x586d50
Capabilities:
Create raw socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ad72
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00598de0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.MMSSession.0
lea ecx, [esi + 0x858]
call fcn.004024e0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x85c]
call fcn.004024e0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x860]
call fcn.004024e0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x14c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0xc], ebx
mov ecx, esi
call fcn.00598670
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x244], edx
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov byte [esi + 0x240], 0
mov dword [esi + 0x864], edi
mov byte [esi + 0x868], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp edx, 0x20
jge 0x586f0c
mov eax, edx
imul eax, eax, 0x32b8
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0xb0], ebx
mov ecx, dword [esi + 0x244]
mov edi, dword [esi + 0x20]
mov dword [ecx + eax + 0x9c], edi
mov ecx, dword [esi + 0x244]
mov edi, dword [esi + 8]
mov dword [ecx + eax + 0xc], edi
mov edi, dword [esi + 0x14c]
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0x184], edi
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0x88], edx
lea ecx, [esi + 0x1c0]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0x94], ecx
lea ecx, [esi + 0x188]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xe8], ecx
lea ecx, [esi + 0x1f0]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0x98], ecx
mov ecx, dword [esi + 0x244]
mov dword [ecx + eax + 0x3224], esi
lea ecx, [esi + 0x10]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xa0], ecx
lea ecx, [esi + 0x248]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xec], ecx
lea ecx, [esi + 0x44c]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xf0], ecx
lea ecx, [esi + 0x650]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xf4], ecx
inc edx
xor edi, edi
jmp 0x586e14
push edi
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x854], eax
mov dword [ebp - 4], 3
jmp 0x586f35
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x588e90
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esi + 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 0
cmp eax, 0xffffffff
jne 0x588ece
cmp dword [esi + 0x6c], 0
jne 0x588ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x588ece
xor eax, eax
pop esi
ret 4
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
add dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
adc dword [esi + 0x6c], edx
or eax, dword [esi + 0x6c]
je 0x588ec8
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov eax, 1
pop esi
ret 4
Function at 0x589b90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x589c38
mov ecx, dword [edi + 0x38]
push ebx
push esi
push 3
lea esi, [eax + ecx - 4]
call sub.WS2_32.dll_htonl
mov dword [esi], eax
mov ebx, dword [edi + 0xf4]
movsx esi, byte [ebx + 8]
neg esi
sbb esi, esi
push 0x3e8
and esi, 8
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x1c]
mov dword [ebx + esi + 0x14], eax
test esi, esi
je 0x589bf2
mov eax, dword [edi + 0xf4]
push 0
lea ecx, [esi + eax + 0x18]
push edx
push ecx
mov ecx, edi
call fcn.00588c90
jmp 0x589c03
mov esi, dword [edi + 0xf4]
push edx
add esi, 0x18
call sub.WS2_32.dll_htonl
mov dword [esi], eax
mov esi, dword [edi + 0x38]
mov ecx, dword [edi + 0xf4]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x589c36
mov ecx, dword [esp + 0xc]
cmp esi, ecx
jne 0x589c36
mov eax, dword [esp + 0x18]
add dword [eax], ecx
adc dword [eax + 4], 0
pop esi
pop ebx
pop edi
pop ecx
ret 0xc

Function at 0x589c40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push eax
call sub.WS2_32.dll_htonl
push 0
lea ecx, [esp + 8]
push ecx
push 8
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x766f6f6d
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
je 0x589c9f
cmp dword [esp], 8
jne 0x589c9f
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x10
ret 8
mov ecx, dword [esp + 0xc]
xor ecx, esp
xor eax, eax
call fcn.005f85e7
add esp, 0x10
ret 8
Function at 0x589cc0
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0
push 0
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x589ce6
pop ebx
pop ecx
ret 0x14
push esi
push edi
mov edi, dword [esp + 0x18]
lea ecx, [edi + 4]
push ecx
push 0
push 0
push 6
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x589d81
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
test ebx, ebx
jl 0x589d52
jg 0x589d1f
cmp ebp, 0xffffffff
jbe 0x589d52
add ebp, 8
push 1
adc ebx, 0
call sub.WS2_32.dll_htonl
mov dword [edi + esi - 8], eax
mov edx, ebx
push ebx
mov dword [edi + esi - 4], 0x7461646d
sar edx, 0x1f
call sub.WS2_32.dll_htonl
push ebp
mov dword [edi + esi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + esi + 4], eax
jmp 0x589d5b
push ebp
call sub.WS2_32.dll_htonl
mov dword [edi + esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0x14

Function at 0x589da0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x44]
push 0x30
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005f8cb0
add esp, 0xc
push 0x20
call sub.WS2_32.dll_htonl
mov ecx, dword [str.ftypisom]
mov edx, dword [0x687e10]
mov dword [esp + 0xc], eax
mov eax, dword [str.isomiso2avc1mp41]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x687dfc]
mov dword [esp + 0x14], edx
mov edx, dword [0x687e00]
mov dword [esp + 0x1c], eax
mov eax, dword [0x687e04]
push 8
mov byte [esp + 0x1e], 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call sub.WS2_32.dll_htonl
push 0
push esi
push 0x30
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x65657266
mov dword [esp + 0x4c], 0x7461646d
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x589e73
cmp dword [esi], 0x30
jne 0x589e73
pop edi
pop esi
mov dword [ebx], 0x28
mov dword [ebx + 4], 0
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005f85e7
add esp, 0x34
ret 0xc
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005f85e7
add esp, 0x34
ret 0xc
Function at 0x589e90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, ecx
cmp dword [esi + 0x88], 0x24
jne 0x58a00a
xor eax, eax
push edi
push 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call sub.WS2_32.dll_htonl
push 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x73746465
call sub.WS2_32.dll_htonl
push 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x74736c65
call sub.WS2_32.dll_htonl
mov edi, dword [esi + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x589fa0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x40
je 0x589f2c
cmp ecx, 0x80
jne 0x589fa0
mov ecx, eax
sub ecx, edi
jns 0x589f34
neg ecx
test ecx, ecx
je 0x589fa0
cmp dword [esi + 0x7c], 0
je 0x589f49
mov edx, dword [esi + 0xc]
test edx, edx
je 0x589f49
cmp edx, ecx
jb 0x589fa0
mov edx, dword [esi + 0x10]
test edx, edx
je 0x589f5d
cmp dword [esi + 0x84], 0
je 0x589f5d
cmp edx, ecx
jb 0x589fa0
mov edi, eax
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x589fa0
mov eax, dword [eax + 0xc]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 2
jne 0x589fa0
mov eax, dword [esi + 0xfc]
mov eax, dword [eax + 0x10]
push ebx
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 0xfc]
mov ebx, eax
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 0xffffffff
jne 0x589f9f
sub edi, ebx
pop ebx
push edi
call sub.WS2_32.dll_htonl
push 1
mov dword [esp + 0x2c], eax
call sub.WS2_32.dll_htonl
cmp dword [esi + 0xd0], 0xffffffff
mov dword [esp + 0x2e], eax
pop edi
jne 0x589fc9
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd0]
push eax
call sub.WS2_32.dll_htonl
mov esi, dword [esi + 0x14]
mov dword [esp + 0x28], eax
cmp esi, 0x40
je 0x589fe9
cmp esi, 0x80
jne 0x589ff5
push 1
call sub.WS2_32.dll_htons
mov word [esp + 0x2c], ax
push 0
lea edx, [esp + 0xc]
push edx
push 0x24
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
xor ecx, esp
call fcn.005f85e7
add esp, 0x2c
ret 4
Function at 0x58afe0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x164]
jmp fcn.005547b0
Function at 0x58d920
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x63b3e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CRedirectsHistory.0
call fcn.00411440
xor ebp, ebp
mov dword [esp + 0x20], ebp
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.004024e0
mov byte [esp + 0x20], 1
lea ecx, [esi + 0x1c]
call fcn.004024e0
mov byte [esp + 0x20], 2
lea ecx, [esi + 0x20]
call fcn.004024e0
mov byte [esp + 0x20], 3
lea ecx, [esi + 0x2c]
call fcn.004024e0
mov byte [esp + 0x20], 4
lea ecx, [esi + 0x30]
call fcn.004024e0
mov byte [esp + 0x20], 5
lea ebx, [esi + 0x34]
xor eax, eax
mov dword [ebx], ebp
mov dword [ebx + 8], ebp
mov word [ebx + 4], ax
mov byte [esp + 0x20], 6
lea ebp, [esi + 0x40]
mov ecx, ebp
call fcn.004024e0
mov byte [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
push ecx
push 0x64edec
push ebp
call fcn.00402f60
mov edx, dword [esp + 0x38]
push edx
push 0x64edec
push edi
call fcn.00402f60
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
je 0x58da01
push eax
lea eax, [esi + 0x1c]
push 0x64edec
push eax
call fcn.00402f60
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x58da1b
push eax
lea eax, [esi + 0x20]
push 0x64edec
push eax
call fcn.00402f60
add esp, 0xc
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov dword [esi + 0x24], eax
lea eax, [esi + 0x2c]
push 0x64edec
push eax
mov dword [esi + 0x28], ecx
call fcn.00402f60
mov edx, dword [esp + 0x50]
add esp, 0xc
test edx, edx
je 0x58da6d
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58da50
sub eax, edi
je 0x58da6d
push edx
lea eax, [esi + 0x30]
push 0x64edec
push eax
call fcn.00402f60
add esp, 0xc
mov edx, dword [esp + 0x48]
test edx, edx
je 0x58da99
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x58da80
sub eax, edi
sar eax, 1
je 0x58da99
push edx
mov ecx, ebx
call fcn.004017d0
mov dword [esp + 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24
Function at 0x58dba0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x63b468
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CRedirectsHistory.0
mov dword [esp + 0x14], 7
call fcn.0058dac0
mov byte [esp + 0x14], 6
lea ecx, [esi + 0x40]
call fcn.00402550
mov byte [esp + 0x14], 5
lea ecx, [esi + 0x34]
call fcn.004011f0
mov byte [esp + 0x14], 4
lea ecx, [esi + 0x30]
call fcn.00402550
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x2c]
call fcn.00402550
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x20]
call fcn.00402550
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x1c]
call fcn.00402550
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x18]
call fcn.00402550
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 4]
call fcn.00415be0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret