joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x620f88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.0050a530
push 0x3a
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call fcn.00502680
push eax
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
cmp eax, ebp
jne 0x4f39f1
lea ecx, [esp + 0x1c]
call fcn.00502680
jmp 0x4f39f2
inc eax
cmp dword [esp + 0x48], ebp
je 0x4f3a27
push eax
call fcn.005ee150
add esp, 4
test eax, eax
jne 0x4f3a27
push 0x4e6d
call fcn.005f4440
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004f2570
xor eax, eax
jmp 0x4f3aa6
cmp word [esi + 0x78], bp
jne 0x4f3a86
xor eax, eax
cmp dword [esp + 0x3c], ebp
mov ecx, esi
sete al
mov edi, eax
push edi
push ebx
call dword [esp + 0x48]
test eax, eax
je 0x4f3a7f
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.004f2b10
test eax, eax
je 0x4f3a69
mov eax, 1
mov dword [esi + 0x74], edi
mov word [esi + 0x78], ax
mov ebp, eax
jmp 0x4f3a93
push 1
mov ecx, esi
call fcn.00502be0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00502b90
jmp 0x4f3a93
call fcn.004f23a0
jmp 0x4f3a93
push 0x4e31
call fcn.005f4440
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004f2570
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
Function at 0x501490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x620b68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
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 0x5015f5
mov edx, eax
shr edx, 1
test dl, 1
je 0x5014e9
and eax, 0xfffffffc
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
jmp 0x5015f5
mov ecx, dword [esi]
mov edi, dword [esi + 8]
shr ecx, 1
mov dword [esp + 0x14], edi
cmp ecx, 0x7fffffff
jne 0x5014ff
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.0050fa10
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.005066d0
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 0x5015c7
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
push eax
call fcn.00505810
test byte [edi + 8], 1
mov ebx, eax
je 0x501595
mov ebp, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00501250
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.0050fb30
mov eax, esi
jmp 0x5015f7
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.0050fb30
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 0x502de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x620d51
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x685e38]
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.00502660
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x34], 1
call fcn.00502d20
add esp, 4
push 0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.005029b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.00502760
push 0x6348c8
lea ecx, [esp + 0x14]
call fcn.00502790
mov ecx, ebx
call fcn.00502680
push eax
lea ecx, [esp + 0x14]
call fcn.00502790
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00502790
push 0
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.005029b0
mov eax, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov byte [esp + 0x30], al
call fcn.00502760
mov ecx, ebx
mov byte [esp + 0x30], 0
call fcn.00502760
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 0x505f80
Capabilities:
Get hostname

Disassembly:
mov ecx, dword [0x686ac0]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x505fcf
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x505fcf
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], 0x2fc
mov dword [esp + 0x20], 0x14
call fcn.0050c8a0
add esp, 0x10
push esi
push edi
call sub.WSOCK32.dll_gethostname
mov ecx, dword [0x686ac0]
mov esi, eax
test ecx, ecx
je 0x506023
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x506023
test edi, edi
jne 0x505ff7
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], 0x300
mov dword [esp + 0x20], 0x28
call fcn.0050c8a0
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x5067a0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x686ac0]
sub esp, 0x10
test ecx, ecx
je 0x5067e5
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5067e5
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.0050c8a0
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 [0x686ac0]
test ecx, ecx
je 0x50686d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50686d
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.0050c8a0
add esp, 8
add esp, 0x10
ret
Function at 0x509760
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov ecx, dword [0x686ac0]
sub esp, 0x10
test ecx, ecx
je 0x5097af
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5097af
mov eax, edi
test edi, edi
jne 0x509784
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.0050c8a0
add esp, 0xc
push esi
push edi
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x5097ce
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x5097ce
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50980f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50980f
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.0050c8a0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x50a210
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x62164b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x685e38]
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.00502660
mov dword [esp + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [0x686ac0]
mov byte [esp + 0x28], 1
cmp ecx, edi
je 0x50a295
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50a295
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.0050c8a0
add esp, 8
push str.ZDEFAULT_SERVER
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
cmp eax, edi
je 0x50a2d6
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.005029e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00502680
push eax
mov ecx, esi
call fcn.00509fa0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00502760
mov ecx, dword [0x686ac0]
cmp ecx, edi
je 0x50a316
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50a316
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.0050c8a0
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 0x50d730
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 [0x686ac0]
test ecx, ecx
je 0x50d794
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50d794
mov eax, ebx
test ebx, ebx
jne 0x50d75d
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], 0x12a
mov dword [esp + 0x28], 0x14
call fcn.0050c8a0
add esp, 0x14
jmp 0x50d798
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x50d7a7
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 0x50d838
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50d838
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50d838
test ebx, ebx
jne 0x50d804
mov ebx, str._null_
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x145
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.0050c8a0
add esp, 0x10
mov al, byte [0x686ac4]
test al, al
jne 0x50d865
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50d85c
mov byte [0x686ac4], 1
jmp 0x50d869
mov byte [0x686ac4], 0xff
jmp 0x50d8ce
cmp al, 1
jne 0x50d8ce
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50d8ce
test edi, edi
jne 0x50d8ce
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 0x50d8b3
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 0x50d8b3
add ebx, eax
cmp ebx, ebp
jb 0x50d896
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 0x50d8e2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50d8ee
add esi, 0xc
push esi
call fcn.005084f0
add esp, 4
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50d932
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50d932
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], 0x185
mov dword [esp + 0x20], 0x28
call fcn.0050c8a0
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50d739
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 [0x686ac0]
test ecx, ecx
je 0x50d794
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50d794
mov eax, ebx
test ebx, ebx
jne 0x50d75d
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], 0x12a
mov dword [esp + 0x28], 0x14
call fcn.0050c8a0
add esp, 0x14
jmp 0x50d798
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x50d7a7
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 0x50d838
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50d838
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50d838
test ebx, ebx
jne 0x50d804
mov ebx, str._null_
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x145
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.0050c8a0
add esp, 0x10
mov al, byte [0x686ac4]
test al, al
jne 0x50d865
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x50d85c
mov byte [0x686ac4], 1
jmp 0x50d869
mov byte [0x686ac4], 0xff
jmp 0x50d8ce
cmp al, 1
jne 0x50d8ce
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x50d8ce
test edi, edi
jne 0x50d8ce
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 0x50d8b3
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 0x50d8b3
add ebx, eax
cmp ebx, ebp
jb 0x50d896
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 0x50d8e2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x50d8ee
add esi, 0xc
push esi
call fcn.005084f0
add esp, 4
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50d932
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50d932
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], 0x185
mov dword [esp + 0x20], 0x28
call fcn.0050c8a0
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x50dc5d
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 [0x686ac0]
push edi
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x50dca8
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50dca8
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], 0x1be
mov dword [esp + 0x2c], 0x14
call fcn.0050c8a0
add esp, 0x14
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, esi
call eax
test al, al
je 0x50dd75
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 0x50dd1c
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50dd64
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50dd1c
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x1c4
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.0050c8a0
add esp, 0xc
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50dd64
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x50dd64
xor eax, eax
cmp esi, edi
sete al
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x1c7
mov dword [esp + 0x18], 0x28
push eax
push str._EXITING__PzLocalFile::Read__:__d
push ecx
call fcn.0050c8a0
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 [0x686ac0]
test ecx, ecx
je 0x50ddb7
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50ddb7
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], 0x1cb
mov dword [esp + 0x24], 0x28
call fcn.0050c8a0
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 0xc
Function at 0x5114c0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x686acd], 0
jne 0x511559
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 0x5114f4
push eax
call edi
add esp, 4
mov dword [0x681fec], eax
push str.OZ_ACCESS_FREQ
call esi
add esp, 4
test eax, eax
je 0x51150d
push eax
call edi
add esp, 4
mov dword [0x681ff0], eax
push str.OZ_AUTH_TYPE
call esi
add esp, 4
pop edi
pop esi
test eax, eax
je 0x51154b
mov ecx, str.NTLM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x511542
test dl, dl
je 0x51153e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x511542
add eax, 2
add ecx, 2
test dl, dl
jne 0x511522
xor eax, eax
jmp 0x511547
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x511552
mov byte [0x686acc], 1
mov byte [0x686acd], 1
ret

Function at 0x512350
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x686ac0]
sub esp, 0x14
test ecx, ecx
je 0x512393
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x512393
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.0050c8a0
add esp, 8
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x5123b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x5123b2
xor eax, eax
push esi
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x5122a0
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 0x512424
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x51246c
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x512424
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.0050c8a0
add esp, 0xc
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x51246c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x51246c
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.0050c8a0
add esp, 0xc
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
add esp, 0x14
ret
Function at 0x512b60
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [0x686ac0]
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 0x512bba
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x512bba
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.0050c8a0
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 [0x686ac0]
test eax, eax
je 0x512c3e
cmp eax, 0xffffffff
je 0x512c7a
test ecx, ecx
je 0x512c30
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x512c30
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.0050c8a0
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x11c
ret 8
test ecx, ecx
je 0x512cf2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x512cb6
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.0050c8a0
add esp, 8
jmp 0x512cb6
test ecx, ecx
je 0x512cf2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x512cb6
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.0050c8a0
add esp, 0xc
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x512cf2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x512cf2
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.0050c8a0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x11c
ret 8