joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509f10
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 [0x67e8e0]
test ecx, ecx
je 0x509f74
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x509f74
mov eax, ebx
test ebx, ebx
jne 0x509f3d
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.005090f0
add esp, 0x14
jmp 0x509f78
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x509f87
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 0x50a018
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a018
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50a018
test ebx, ebx
jne 0x509fe4
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.005090f0
add esp, 0x10
mov al, byte [0x67e8e4]
test al, al
jne 0x50a045
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50a03c
mov byte [0x67e8e4], 1
jmp 0x50a049
mov byte [0x67e8e4], 0xff
jmp 0x50a0ae
cmp al, 1
jne 0x50a0ae
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50a0ae
test edi, edi
jne 0x50a0ae
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 0x50a093
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 0x50a093
add ebx, eax
cmp ebx, ebp
jb 0x50a076
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 0x50a0c2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50a0ce
add esi, 0xc
push esi
call fcn.00504ce0
add esp, 4
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a112
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50a112
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.005090f0
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x509f19
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 [0x67e8e0]
test ecx, ecx
je 0x509f74
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x509f74
mov eax, ebx
test ebx, ebx
jne 0x509f3d
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.005090f0
add esp, 0x14
jmp 0x509f78
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x509f87
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 0x50a018
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a018
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50a018
test ebx, ebx
jne 0x509fe4
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.005090f0
add esp, 0x10
mov al, byte [0x67e8e4]
test al, al
jne 0x50a045
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50a03c
mov byte [0x67e8e4], 1
jmp 0x50a049
mov byte [0x67e8e4], 0xff
jmp 0x50a0ae
cmp al, 1
jne 0x50a0ae
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50a0ae
test edi, edi
jne 0x50a0ae
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 0x50a093
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 0x50a093
add ebx, eax
cmp ebx, ebp
jb 0x50a076
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 0x50a0c2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50a0ce
add esi, 0xc
push esi
call fcn.00504ce0
add esp, 4
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a112
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50a112
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.005090f0
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50a43d
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 [0x67e8e0]
push edi
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x50a488
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50a488
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.005090f0
add esp, 0x14
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, esi
call eax
test al, al
je 0x50a555
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 0x50a4fc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a544
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50a4fc
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.005090f0
add esp, 0xc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50a544
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50a544
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.005090f0
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 [0x67e8e0]
test ecx, ecx
je 0x50a597
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50a597
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.005090f0
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50d900
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x67e8ed], 0
jne 0x50d999
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 0x50d934
push eax
call edi
add esp, 4
mov dword [0x679f84], eax
push str.OZ_ACCESS_FREQ
call esi
add esp, 4
test eax, eax
je 0x50d94d
push eax
call edi
add esp, 4
mov dword [0x679f88], eax
push str.OZ_AUTH_TYPE
call esi
add esp, 4
pop edi
pop esi
test eax, eax
je 0x50d98b
mov ecx, str.NTLM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50d982
test dl, dl
je 0x50d97e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50d982
add eax, 2
add ecx, 2
test dl, dl
jne 0x50d962
xor eax, eax
jmp 0x50d987
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x50d992
mov byte [0x67e8ec], 1
mov byte [0x67e8ed], 1
ret

Function at 0x50e790
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x67e8e0]
sub esp, 0x14
test ecx, ecx
je 0x50e7d3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50e7d3
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.005090f0
add esp, 8
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x50e7f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x50e7f2
xor eax, eax
push esi
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x50e6e0
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 0x50e864
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50e8ac
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50e864
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.005090f0
add esp, 0xc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50e8ac
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50e8ac
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.005090f0
add esp, 0xc
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
add esp, 0x14
ret
Function at 0x50efa0
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [0x67e8e0]
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 0x50effa
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50effa
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.005090f0
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 [0x67e8e0]
test eax, eax
je 0x50f07e
cmp eax, 0xffffffff
je 0x50f0ba
test ecx, ecx
je 0x50f070
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50f070
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.005090f0
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x11c
ret 8
test ecx, ecx
je 0x50f132
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x50f0f6
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.005090f0
add esp, 8
jmp 0x50f0f6
test ecx, ecx
je 0x50f132
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50f0f6
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.005090f0
add esp, 0xc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50f132
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50f132
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.005090f0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x11c
ret 8
Function at 0x50f140
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [0x67e8e0]
push esi
push edi
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x50f18d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50f18d
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.005090f0
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 0x50f1e5
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 0x50f1c0
add esi, eax
cmp esi, edi
jl 0x50f1a0
jmp 0x50f1e5
jge 0x50f1ce
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x67e8f4], eax
jmp 0x50f1d8
mov dword [0x67e8f4], 0
mov dword [0x67e8f0], 8
or esi, 0xffffffff
add ebx, 4
push ebx
call dword [sym.imp.MSVCR90.dll__time32]
mov ecx, dword [0x67e8e0]
add esp, 4
test ecx, ecx
je 0x50f233
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50f233
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.005090f0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x50f8e0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov ecx, dword [0x67e8e0]
sub esp, 0x14
push ebp
push esi
mov esi, eax
mov ebp, str..._xsocket.cpp
test ecx, ecx
je 0x50f948
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50f948
test ebx, ebx
je 0x50f910
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x50f915
mov eax, str._NULL_
mov ecx, esi
test esi, esi
jne 0x50f920
mov ecx, str._null_
push eax
push ecx
lea ecx, [esp + 0x14]
push str._ENTERING__GetHostEntry_name_s__inaddr_s_
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x1dc
mov dword [esp + 0x24], 0x14
call fcn.005090f0
add esp, 0x10
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x50f9c1
push esi
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x50f979
test ebx, ebx
je 0x50fa3c
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x50fa3c
mov dword [0x67e8f0], 1
call fcn.0050ef00
mov ecx, dword [0x67e8e0]
mov dword [0x67e8f4], eax
test ecx, ecx
je 0x50faa0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50fa3c
mov ecx, dword [0x67e8f4]
push ecx
mov dword [esp + 0x14], 0x1ee
push str.FAILED:_gethostbyname:__d
jmp 0x50fa23
push 2
push 4
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov esi, eax
test esi, esi
je 0x50f9e1
test ebx, ebx
je 0x50fa3c
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
jmp 0x50fa3c
mov dword [0x67e8f0], 2
call fcn.0050ef00
mov ecx, dword [0x67e8e0]
mov dword [0x67e8f4], eax
test ecx, ecx
je 0x50faa0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50fa3c
mov ecx, dword [0x67e8f4]
push ecx
mov dword [esp + 0x14], 0x1fb
push str.FAILED:_gethostbyaddr:__d
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0xa
call fcn.005090f0
add esp, 0xc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50faa0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50faa0
push edi
test esi, esi
je 0x50fa5f
mov eax, dword [esi]
mov edi, eax
test eax, eax
jne 0x50fa64
mov edi, str._NULL_
test ebx, ebx
je 0x50fa72
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x50fa77
mov eax, str._NULL_
push edi
push eax
lea ecx, [esp + 0x18]
push str._EXITING__GetHostEntry_inaddr_s_:__s
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x1ff
mov dword [esp + 0x28], 0x28
call fcn.005090f0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x50fff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61bd63
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x34]
push 0
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.PzExtAuthClient.0
call fcn.004ff1d0
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 0
push 0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.PzExtAuthClient_ww.0
call fcn.004fee50
mov ecx, dword [0x67e8e0]
mov byte [esp + 0x28], 1
test ecx, ecx
je 0x5100b2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x14
jl 0x5100b2
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x51007b
mov ecx, 0x62dc24
mov eax, edi
test edi, edi
jne 0x510086
mov eax, 0x62dc24
push ecx
push eax
lea ecx, [esp + 0x18]
push str._ENTER__PzExtAuthClient_ww::PzExtAuthClient_ww__hostname_s__package_s_
push ecx
mov dword [esp + 0x20], str..._xauthc.cpp
mov dword [esp + 0x24], 0xaf
mov dword [esp + 0x28], 0x14
call fcn.005090f0
add esp, 0x10
call fcn.005139d0
mov ecx, eax
mov dword [esi + 0x28], eax
call fcn.00512e10
push str.OZ_AUTH_TYPE
call fcn.00502820
mov edi, eax
add esp, 4
test edi, edi
je 0x5100e2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5100d7
sub eax, edx
jne 0x5100e7
mov edi, str.NTLM
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x510133
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x510133
mov eax, edi
test edi, edi
jne 0x510108
mov eax, str._null_
push eax
lea ecx, [esp + 0x14]
push str.__auth_type:__s
push ecx
mov dword [esp + 0x1c], str..._xauthc.cpp
mov dword [esp + 0x20], 0xbd
mov dword [esp + 0x24], 0x32
call fcn.005090f0
add esp, 0xc
mov edx, dword [esi + 0x28]
mov eax, dword [edx]
mov edx, dword [eax + 0x44]
lea ecx, [esi + 0x24]
push ecx
push edi
call edx
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x510182
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x510182
lea eax, [esp + 0x10]
push str._EXIT__PzExtAuthClient_ww::PzExtAuthClient_ww
push eax
mov dword [esp + 0x18], str..._xauthc.cpp
mov dword [esp + 0x1c], 0xc1
mov dword [esp + 0x20], 0x28
call fcn.005090f0
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 0xc
Function at 0x515340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61c16b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
fst qword [esp + 0x28]
fild dword [esp + 0x54]
fsub st(2)
fdivrp st(1)
fldz
fcom st(1)
fnstsw ax
fld qword [0x62ebc8]
test ah, 0x41
jp 0x5153af
fadd st(2), st(0)
jmp 0x5153b1
fsub st(2), st(0)
fxch st(2)
call fcn.005f6310
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fld qword [0x63d6a8]
fmul st(1)
fxch st(1)
fmul st(3)
fild dword [esp + 0x44]
fsub st(1)
fcom st(3)
fnstsw ax
test ah, 1
jne 0x5153df
fadd st(4)
jmp 0x5153e1
fsub st(4)
call fcn.005f6310
fild dword [esp + 0x48]
mov esi, eax
mov dword [esp + 0x10], esi
fsub st(2)
fcom st(3)
fnstsw ax
test ah, 1
jne 0x5153ff
fadd st(4)
jmp 0x515401
fsub st(4)
call fcn.005f6310
fiadd dword [esp + 0x4c]
mov dword [esp + 0x14], eax
fsubrp st(4)
fxch st(3)
fcom st(1)
fnstsw ax
test ah, 1
jne 0x51541f
fadd st(2)
jmp 0x515421
fsub st(2)
call fcn.005f6310
fild dword [esp + 0x50]
mov edi, eax
mov dword [esp + 0x20], edi
fsub st(3)
fcom st(1)
fnstsw ax
test ah, 1
jne 0x51543f
fadd st(2)
jmp 0x515441
fsub st(2)
call fcn.005f6310
mov dword [esp + 0x24], eax
mov eax, edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
jl 0x515467
fadd st(2)
jmp 0x515469
fsub st(2)
call fcn.005f6310
fld st(3)
fmul st(2)
mov dword [esp + 0x18], eax
fmul qword [esp + 0x28]
fild dword [esp + 0x14]
faddp st(5)
faddp st(4)
fxch st(3)
faddp st(2)
fxch st(2)
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x515495
faddp st(1)
jmp 0x515497
fsubrp st(1)
call fcn.005f6310
push 0x10
mov dword [esp + 0x20], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], esi
cmp eax, esi
je 0x5154bf
mov ecx, eax
call fcn.00526e70
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call fcn.00526940
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00526940
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00526940
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00526940
push esi
mov ecx, ebx
call fcn.00515120
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005ee1f0
mov dword [eax], esi
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x18
Function at 0x516300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61c2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x67dc50]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.00525bc0
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.005146d0
test eax, eax
jne 0x51637c
mov ecx, edi
call fcn.004762e0
push eax
mov ecx, edi
call fcn.004762e0
push eax
mov ecx, esi
call fcn.00517d10
jmp 0x516386
push esi
lea ecx, [esp + 0x18]
call fcn.005267d0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.00526510
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005f617e
add esp, 0x28
ret 4