joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5006d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61ecb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0xc]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x500835
mov edx, eax
shr edx, 1
test dl, 1
je 0x500729
and eax, 0xfffffffc
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
jmp 0x500835
mov ecx, dword [esi]
mov edi, dword [esi + 8]
shr ecx, 1
mov dword [esp + 0x14], edi
cmp ecx, 0x7fffffff
jne 0x50073f
or ecx, 0xffffffff
mov eax, dword [esi + 4]
push 0
push ecx
shr eax, 7
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.0050e870
mov edx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x44]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
call eax
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.00505970
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 0x13
shl eax, 4
xor eax, dword [esi + 0xc]
and ecx, 0x7ffff
and eax, 0x1fff0
xor dword [esi + 0xc], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ebx, ecx
add esp, 0xc
mov ecx, edi
call eax
mov ecx, edi
cmp ebx, eax
jne 0x500807
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
push eax
call fcn.00504ab0
test byte [edi + 8], 1
mov ebx, eax
je 0x5007d5
mov ebp, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00500490
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
and dword [esi + 0xc], 0xfffffffe
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edi
call edx
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0050e990
mov eax, esi
jmp 0x500837
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
call edx
and dword [esi + 0xc], 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esi + 8], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.0050e990
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x502020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61ee61
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0
call fcn.005018a0
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x34], 1
call fcn.00501f60
add esp, 4
push 0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.00501bf0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.005019a0
push 0x6328c0
lea ecx, [esp + 0x14]
call fcn.005019d0
mov ecx, ebx
call fcn.005018c0
push eax
lea ecx, [esp + 0x14]
call fcn.005019d0
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005019d0
push 0
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00501bf0
mov eax, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov byte [esp + 0x30], al
call fcn.005019a0
mov ecx, ebx
mov byte [esp + 0x30], 0
call fcn.005019a0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x505220
Capabilities:
Get hostname

Disassembly:
mov ecx, dword [0x683998]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x50526f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50526f
push esi
push edi
lea eax, [esp + 0x10]
push str._ENTERING__PzGetHostName_buff_p__size_u_
push eax
mov dword [esp + 0x18], str..._xutil.cpp
mov dword [esp + 0x1c], 0x24d
mov dword [esp + 0x20], 0x14
call fcn.0050bb00
add esp, 0x10
push esi
push edi
call sub.WSOCK32.dll_gethostname
mov ecx, dword [0x683998]
mov esi, eax
test ecx, ecx
je 0x5052c3
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x5052c3
test edi, edi
jne 0x505297
mov edi, str._null_
push esi
push edi
lea ecx, [esp + 0x10]
push str._EXITING__PzGetHostName_buff_s_:__d
push ecx
mov dword [esp + 0x18], str..._xutil.cpp
mov dword [esp + 0x1c], 0x251
mov dword [esp + 0x20], 0x28
call fcn.0050bb00
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x505a40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x683998]
sub esp, 0x10
test ecx, ecx
je 0x505a85
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x505a85
push esi
push edi
lea eax, [esp + 8]
push str._ENTERING__member_copy__src_p__dst_p_
push eax
mov dword [esp + 0x10], str..._util.cpp
mov dword [esp + 0x14], 0x6c
mov dword [esp + 0x18], 0x14
call fcn.0050bb00
add esp, 0x10
mov ecx, dword [edi]
mov dword [esi], ecx
movzx edx, word [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x18], ecx
movzx edx, word [edi + 6]
mov word [esi + 0x1c], dx
mov ax, word [edi + 8]
mov word [esi + 0x1e], ax
mov cx, word [edi + 0xa]
mov word [esi + 0x20], cx
movzx edx, word [edi + 0xc]
mov word [esi + 0x22], dx
mov ecx, dword [0x683998]
test ecx, ecx
je 0x505b0d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x505b0d
lea eax, [esp]
push str._EXITING__member_copy__
push eax
mov dword [esp + 8], str..._util.cpp
mov dword [esp + 0xc], 0x7a
mov dword [esp + 0x10], 0x28
call fcn.0050bb00
add esp, 8
add esp, 0x10
ret
Function at 0x5089b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov ecx, dword [0x683998]
sub esp, 0x10
test ecx, ecx
je 0x5089ff
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5089ff
mov eax, edi
test edi, edi
jne 0x5089d4
mov eax, str._null_
push eax
lea eax, [esp + 4]
push str._ENTERING__GetInAddr_name_s_
push eax
mov dword [esp + 0xc], str..._xpathmake.cpp
mov dword [esp + 0x10], 0x33b
mov dword [esp + 0x14], 0x14
call fcn.0050bb00
add esp, 0xc
push esi
push edi
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x508a1e
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x508a1e
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
mov ecx, dword [0x683998]
test ecx, ecx
je 0x508a5f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x508a5f
push esi
lea eax, [esp + 8]
push str._EXITING__GetInAddr__:__x
push eax
mov dword [esp + 0x10], str..._xpathmake.cpp
mov dword [esp + 0x14], 0x365
mov dword [esp + 0x18], 0x28
call fcn.0050bb00
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x509460
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x61f76b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
push edi
call fcn.005018a0
mov dword [esp + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [0x683998]
mov byte [esp + 0x28], 1
cmp ecx, edi
je 0x5094e5
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5094e5
lea eax, [esp + 0x10]
push str._ENTERING__PzExtServerRepl::PzExtServerRepl__
push eax
mov dword [esp + 0x18], str..._xpathmake.cpp
mov dword [esp + 0x1c], 0x375
mov dword [esp + 0x20], 0x14
call fcn.0050bb00
add esp, 8
push str.ZDEFAULT_SERVER
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
cmp eax, edi
je 0x509526
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00501c20
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.005018c0
push eax
mov ecx, esi
call fcn.005091f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.005019a0
mov ecx, dword [0x683998]
cmp ecx, edi
je 0x509566
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x509566
lea ecx, [esp + 0x10]
push str._EXITING__PzExtServerRepl::PzExtServerRepl__
push ecx
mov dword [esp + 0x18], str..._xpathmake.cpp
mov dword [esp + 0x1c], 0x37c
mov dword [esp + 0x20], 0x28
call fcn.0050bb00
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x50c920
Capabilities:
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50c984
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50c984
mov eax, ebx
test ebx, ebx
jne 0x50c94d
mov eax, str._NULL_
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push ecx
push ebp
push eax
lea edx, [esp + 0x18]
push str._ENTERING__PzLocalFile::Open__filename_s__flags_u__mask_u_
push edx
mov dword [esp + 0x20], str..._osfile.cpp
mov dword [esp + 0x24], 0x124
mov dword [esp + 0x28], 0x14
call fcn.0050bb00
add esp, 0x14
jmp 0x50c988
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x50c997
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, ebp
and eax, 0x10
or eax, 0x801
add eax, eax
mov ecx, ebp
and ecx, 0xc0
or eax, ecx
push edi
add eax, eax
add eax, eax
mov edi, ebp
push 0x180
add eax, eax
and edi, 2
or eax, edi
push 0x40
push eax
push ebx
call dword [sym.imp.MSVCR90.dll__sopen]
add esp, 0x10
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x50ca28
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50ca28
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50ca28
test ebx, ebx
jne 0x50c9f4
mov ebx, str._null_
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x13f
mov dword [esp + 0x18], 0xa
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
push ebx
lea edx, [esp + 0x18]
push str.FAILED:_sopen_filename_s_:__d
push edx
call fcn.0050bb00
add esp, 0x10
mov al, byte [0x68399c]
test al, al
jne 0x50ca55
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50ca4c
mov byte [0x68399c], 1
jmp 0x50ca59
mov byte [0x68399c], 0xff
jmp 0x50cabe
cmp al, 1
jne 0x50cabe
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50cabe
test edi, edi
jne 0x50cabe
push 2
push edi
push eax
call dword [sym.imp.MSVCR90.dll__lseek]
push 0x100000
mov ebp, eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0x10
xor ebx, ebx
mov edi, eax
test ebp, ebp
jbe 0x50caa3
mov eax, dword [esi + 0x10]
push 0x100000
push edi
push eax
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
test eax, eax
jle 0x50caa3
add ebx, eax
cmp ebx, ebp
jb 0x50ca86
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esi + 0x10]
push 0
push 0
push ecx
call dword [sym.imp.MSVCR90.dll__lseek]
mov ebp, dword [esp + 0x38]
add esp, 0x10
xor bl, bl
cmp dword [esi + 0x10], 0xffffffff
pop edi
je 0x50cad2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50cade
add esi, 0xc
push esi
call fcn.00507740
add esp, 4
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50cb22
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50cb22
movzx ecx, bl
push ecx
lea edx, [esp + 0x10]
push str._ENTERING__PzLocalFile::Open__:__d
push edx
mov dword [esp + 0x18], str..._osfile.cpp
mov dword [esp + 0x1c], 0x17f
mov dword [esp + 0x20], 0x28
call fcn.0050bb00
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50c929
Capabilities:
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50c984
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50c984
mov eax, ebx
test ebx, ebx
jne 0x50c94d
mov eax, str._NULL_
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push ecx
push ebp
push eax
lea edx, [esp + 0x18]
push str._ENTERING__PzLocalFile::Open__filename_s__flags_u__mask_u_
push edx
mov dword [esp + 0x20], str..._osfile.cpp
mov dword [esp + 0x24], 0x124
mov dword [esp + 0x28], 0x14
call fcn.0050bb00
add esp, 0x14
jmp 0x50c988
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x50c997
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, ebp
and eax, 0x10
or eax, 0x801
add eax, eax
mov ecx, ebp
and ecx, 0xc0
or eax, ecx
push edi
add eax, eax
add eax, eax
mov edi, ebp
push 0x180
add eax, eax
and edi, 2
or eax, edi
push 0x40
push eax
push ebx
call dword [sym.imp.MSVCR90.dll__sopen]
add esp, 0x10
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x50ca28
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50ca28
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50ca28
test ebx, ebx
jne 0x50c9f4
mov ebx, str._null_
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x13f
mov dword [esp + 0x18], 0xa
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
push ebx
lea edx, [esp + 0x18]
push str.FAILED:_sopen_filename_s_:__d
push edx
call fcn.0050bb00
add esp, 0x10
mov al, byte [0x68399c]
test al, al
jne 0x50ca55
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50ca4c
mov byte [0x68399c], 1
jmp 0x50ca59
mov byte [0x68399c], 0xff
jmp 0x50cabe
cmp al, 1
jne 0x50cabe
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50cabe
test edi, edi
jne 0x50cabe
push 2
push edi
push eax
call dword [sym.imp.MSVCR90.dll__lseek]
push 0x100000
mov ebp, eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0x10
xor ebx, ebx
mov edi, eax
test ebp, ebp
jbe 0x50caa3
mov eax, dword [esi + 0x10]
push 0x100000
push edi
push eax
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
test eax, eax
jle 0x50caa3
add ebx, eax
cmp ebx, ebp
jb 0x50ca86
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esi + 0x10]
push 0
push 0
push ecx
call dword [sym.imp.MSVCR90.dll__lseek]
mov ebp, dword [esp + 0x38]
add esp, 0x10
xor bl, bl
cmp dword [esi + 0x10], 0xffffffff
pop edi
je 0x50cad2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50cade
add esi, 0xc
push esi
call fcn.00507740
add esp, 4
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50cb22
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50cb22
movzx ecx, bl
push ecx
lea edx, [esp + 0x10]
push str._ENTERING__PzLocalFile::Open__:__d
push edx
mov dword [esp + 0x18], str..._osfile.cpp
mov dword [esp + 0x1c], 0x17f
mov dword [esp + 0x20], 0x28
call fcn.0050bb00
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50ce4d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, dword [0x683998]
push edi
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x50ce98
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50ce98
push edi
push ebx
push ebp
lea eax, [esp + 0x1c]
push str._ENTERING__PzLocalFile::Read__pos_u__buf_p__n_u_
push eax
mov dword [esp + 0x24], str..._osfile.cpp
mov dword [esp + 0x28], 0x1b8
mov dword [esp + 0x2c], 0x14
call fcn.0050bb00
add esp, 0x14
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, esi
call eax
test al, al
je 0x50cf65
mov ecx, dword [esi + 0x10]
push edi
push ebx
push ecx
call dword [sym.imp.MSVCR90.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x50cf0c
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50cf54
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50cf0c
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x1be
mov dword [esp + 0x18], 0xa
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x14]
push str.FAILED:_read:__d
push edx
call fcn.0050bb00
add esp, 0xc
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50cf54
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50cf54
xor eax, eax
cmp esi, edi
sete al
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x1c1
mov dword [esp + 0x18], 0x28
push eax
push str._EXITING__PzLocalFile::Read__:__d
push ecx
call fcn.0050bb00
add esp, 0xc
xor eax, eax
cmp esi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret 0xc
mov ecx, dword [0x683998]
test ecx, ecx
je 0x50cfa7
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50cfa7
push 0
lea ecx, [esp + 0x14]
push str._EXITING__PzLocalFile::Read__:__d
push ecx
mov dword [esp + 0x1c], str..._osfile.cpp
mov dword [esp + 0x20], 0x1c5
mov dword [esp + 0x24], 0x28
call fcn.0050bb00
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 0xc
Function at 0x510320
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x6839a5], 0
jne 0x5103b9
push esi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push edi
push str.OZ_ACCESS_DELAY
call esi
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
test eax, eax
je 0x510354
push eax
call edi
add esp, 4
mov dword [0x67efec], eax
push str.OZ_ACCESS_FREQ
call esi
add esp, 4
test eax, eax
je 0x51036d
push eax
call edi
add esp, 4
mov dword [0x67eff0], eax
push str.OZ_AUTH_TYPE
call esi
add esp, 4
pop edi
pop esi
test eax, eax
je 0x5103ab
mov ecx, str.NTLM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5103a2
test dl, dl
je 0x51039e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5103a2
add eax, 2
add ecx, 2
test dl, dl
jne 0x510382
xor eax, eax
jmp 0x5103a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5103b2
mov byte [0x6839a4], 1
mov byte [0x6839a5], 1
ret

Function at 0x5111a0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x683998]
sub esp, 0x14
test ecx, ecx
je 0x5111e3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5111e3
lea eax, [esp + 4]
push str._ENTERING__PzExtThread::Create__
push eax
mov dword [esp + 0xc], str..._xthread.cpp
mov dword [esp + 0x10], 0x27
mov dword [esp + 0x14], 0x14
call fcn.0050bb00
add esp, 8
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x511200
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x511202
xor eax, eax
push esi
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x5110f0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov esi, dword [esp + 0x34]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x511274
mov ecx, dword [0x683998]
test ecx, ecx
je 0x5112bc
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x511274
mov dword [esp + 8], str..._xthread.cpp
mov dword [esp + 0xc], 0x2e
mov dword [esp + 0x10], 0xa
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xc]
push str.FAILED:__beginthreadex:__d
push edx
call fcn.0050bb00
add esp, 0xc
mov ecx, dword [0x683998]
test ecx, ecx
je 0x5112bc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x5112bc
xor eax, eax
cmp dword [esi], eax
lea ecx, [esp + 8]
setne al
mov dword [esp + 8], str..._xthread.cpp
mov dword [esp + 0xc], 0x31
mov dword [esp + 0x10], 0x28
push eax
push str._EXITING__PzExtThread::Create__:__d
push ecx
call fcn.0050bb00
add esp, 0xc
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
add esp, 0x14
ret
Function at 0x5119b0
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [0x683998]
sub esp, 0x11c
push ebx
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x130]
mov ebx, str..._xsocket.cpp
test ecx, ecx
je 0x511a0a
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x511a0a
push edi
push esi
lea eax, [esp + 0x14]
push str._ENTERING__PzExtSocket::Readable_fd_d__sec_d_
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x78
mov dword [esp + 0x24], 0x14
call fcn.0050bb00
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
lea edx, [esp + 0x30]
mov dword [esp + 0x34], esi
push edx
inc esi
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call sub.WSOCK32.dll_select
mov ecx, dword [0x683998]
test eax, eax
je 0x511a8e
cmp eax, 0xffffffff
je 0x511aca
test ecx, ecx
je 0x511a80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x511a80
lea eax, [esp + 0xc]
push str._EXITING__PzExtSocket::Readable:_true
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x8f
mov dword [esp + 0x1c], 0x28
call fcn.0050bb00
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x11c
ret 8
test ecx, ecx
je 0x511b42
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x511b06
lea ecx, [esp + 0xc]
push str.TIMEOUT:_select
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x87
mov dword [esp + 0x1c], 0x32
call fcn.0050bb00
add esp, 8
jmp 0x511b06
test ecx, ecx
je 0x511b42
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x511b06
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea ecx, [esp + 0x10]
push str.FAILED:_select:__d
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x89
mov dword [esp + 0x20], 0xa
call fcn.0050bb00
add esp, 0xc
mov ecx, dword [0x683998]
test ecx, ecx
je 0x511b42
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x511b42
lea ecx, [esp + 0xc]
push str._EXITING__PzExtSocket::Readable:_false
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x8b
mov dword [esp + 0x1c], 0x28
call fcn.0050bb00
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x11c
ret 8
Function at 0x511b50
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [0x683998]
push esi
push edi
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x511b9d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x511b9d
push edi
lea eax, [esp + 0x10]
push str._ENTER__PzExtSocket::_SendMess_length_d_
push eax
mov dword [esp + 0x18], str..._xsocket.cpp
mov dword [esp + 0x1c], 0xae
mov dword [esp + 0x20], 0x14
call fcn.0050bb00
add esp, 0xc
push edi
call sub.WSOCK32.dll_htonl
add edi, 4
xor esi, esi
mov dword [ebx + 8], eax
test edi, edi
jle 0x511bf5
nop
mov eax, dword [ebx]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [ebx + esi + 8]
push edx
push eax
call sub.WSOCK32.dll_send
test eax, eax
jle 0x511bd0
add esi, eax
cmp esi, edi
jl 0x511bb0
jmp 0x511bf5
jge 0x511bde
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x6839ac], eax
jmp 0x511be8
mov dword [0x6839ac], 0
mov dword [0x6839a8], 8
or esi, 0xffffffff
add ebx, 4
push ebx
call dword [sym.imp.MSVCR90.dll__time32]
mov ecx, dword [0x683998]
add esp, 4
test ecx, ecx
je 0x511c43
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x511c43
push esi
lea ecx, [esp + 0x10]
push str._EXIT__PzExtSocket::_SendMess__:_d
push ecx
mov dword [esp + 0x18], str..._xsocket.cpp
mov dword [esp + 0x1c], 0xc3
mov dword [esp + 0x20], 0x28
call fcn.0050bb00
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4