joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e58f9
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 [0x638e34]
test ecx, ecx
je 0x4e5954
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4e5954
mov eax, ebx
test ebx, ebx
jne 0x4e591d
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.004e4a60
add esp, 0x14
jmp 0x4e5958
mov ebp, dword [esp + 0x24]
cmp byte [esi + 8], 0
je 0x4e5967
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 0x4e59f8
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e59f8
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4e59f8
test ebx, ebx
jne 0x4e59c4
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.004e4a60
add esp, 0x10
mov al, byte [0x638e38]
test al, al
jne 0x4e5a25
push str.ZPOS_DREAD
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x4e5a1c
mov byte [0x638e38], 1
jmp 0x4e5a29
mov byte [0x638e38], 0xff
jmp 0x4e5a8e
cmp al, 1
jne 0x4e5a8e
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x4e5a8e
test edi, edi
jne 0x4e5a8e
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 0x4e5a73
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 0x4e5a73
add ebx, eax
cmp ebx, ebp
jb 0x4e5a56
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 0x4e5aa2
mov dword [esi + 4], ebp
mov byte [esi + 8], 1
mov bl, 1
jmp 0x4e5aae
add esi, 0xc
push esi
call fcn.004e0fe0
add esp, 4
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e5af2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e5af2
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.004e4a60
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4e5e1d
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 [0x638e34]
push edi
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x4e5e68
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4e5e68
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.004e4a60
add esp, 0x14
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, esi
call eax
test al, al
je 0x4e5f35
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 0x4e5edc
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e5f24
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4e5edc
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.004e4a60
add esp, 0xc
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e5f24
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4e5f24
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.004e4a60
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 [0x638e34]
test ecx, ecx
je 0x4e5f77
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e5f77
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.004e4a60
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4e91f0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x638e41], 0
jne 0x4e9289
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 0x4e9224
push eax
call edi
add esp, 4
mov dword [0x6347ac], eax
push str.OZ_ACCESS_FREQ
call esi
add esp, 4
test eax, eax
je 0x4e923d
push eax
call edi
add esp, 4
mov dword [0x6347b0], eax
push str.OZ_AUTH_TYPE
call esi
add esp, 4
pop edi
pop esi
test eax, eax
je 0x4e927b
mov ecx, str.NTLM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e9272
test dl, dl
je 0x4e926e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e9272
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e9252
xor eax, eax
jmp 0x4e9277
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4e9282
mov byte [0x638e40], 1
mov byte [0x638e41], 1
ret

Function at 0x4ea880
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [0x638e34]
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 0x4ea8da
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4ea8da
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.004e4a60
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 [0x638e34]
test eax, eax
je 0x4ea95e
cmp eax, 0xffffffff
je 0x4ea99a
test ecx, ecx
je 0x4ea950
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4ea950
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.004e4a60
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x11c
ret 8
test ecx, ecx
je 0x4eaa12
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x4ea9d6
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.004e4a60
add esp, 8
jmp 0x4ea9d6
test ecx, ecx
je 0x4eaa12
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4ea9d6
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.004e4a60
add esp, 0xc
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4eaa12
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4eaa12
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.004e4a60
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x11c
ret 8
Function at 0x4eaa20
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [0x638e34]
push esi
push edi
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x4eaa6d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4eaa6d
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.004e4a60
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 0x4eaac5
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 0x4eaaa0
add esi, eax
cmp esi, edi
jl 0x4eaa80
jmp 0x4eaac5
jge 0x4eaaae
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x638e48], eax
jmp 0x4eaab8
mov dword [0x638e48], 0
mov dword [0x638e44], 8
or esi, 0xffffffff
add ebx, 4
push ebx
call dword [sym.imp.MSVCR90.dll__time32]
mov ecx, dword [0x638e34]
add esp, 4
test ecx, ecx
je 0x4eab13
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4eab13
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.004e4a60
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4eb1c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov ecx, dword [0x638e34]
sub esp, 0x14
push ebp
push esi
mov esi, eax
mov ebp, str..._xsocket.cpp
test ecx, ecx
je 0x4eb228
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4eb228
test ebx, ebx
je 0x4eb1f0
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x4eb1f5
mov eax, str._NULL_
mov ecx, esi
test esi, esi
jne 0x4eb200
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.004e4a60
add esp, 0x10
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x4eb2a1
push esi
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x4eb259
test ebx, ebx
je 0x4eb31c
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x4eb31c
mov dword [0x638e44], 1
call fcn.004ea7e0
mov ecx, dword [0x638e34]
mov dword [0x638e48], eax
test ecx, ecx
je 0x4eb380
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4eb31c
mov ecx, dword [0x638e48]
push ecx
mov dword [esp + 0x14], 0x1ee
push str.FAILED:_gethostbyname:__d
jmp 0x4eb303
push 2
push 4
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov esi, eax
test esi, esi
je 0x4eb2c1
test ebx, ebx
je 0x4eb31c
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
jmp 0x4eb31c
mov dword [0x638e44], 2
call fcn.004ea7e0
mov ecx, dword [0x638e34]
mov dword [0x638e48], eax
test ecx, ecx
je 0x4eb380
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4eb31c
mov ecx, dword [0x638e48]
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.004e4a60
add esp, 0xc
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4eb380
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4eb380
push edi
test esi, esi
je 0x4eb33f
mov eax, dword [esi]
mov edi, eax
test eax, eax
jne 0x4eb344
mov edi, str._NULL_
test ebx, ebx
je 0x4eb352
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x4eb357
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.004e4a60
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x4eb8d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3823
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x638190]
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.004dbc50
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.004db8d0
mov ecx, dword [0x638e34]
mov byte [esp + 0x28], 1
test ecx, ecx
je 0x4eb992
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x14
jl 0x4eb992
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x4eb95b
mov ecx, 0x5f3b6e
mov eax, edi
test edi, edi
jne 0x4eb966
mov eax, 0x5f3b6e
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.004e4a60
add esp, 0x10
call fcn.004ef980
mov ecx, eax
mov dword [esi + 0x28], eax
call fcn.004eedc0
push str.OZ_AUTH_TYPE
call fcn.004ed050
mov edi, eax
add esp, 4
test edi, edi
je 0x4eb9c2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4eb9b7
sub eax, edx
jne 0x4eb9c7
mov edi, str.NTLM
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4eba13
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x4eba13
mov eax, edi
test edi, edi
jne 0x4eb9e8
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.004e4a60
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 [0x638e34]
test ecx, ecx
je 0x4eba62
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4eba62
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.004e4a60
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 0x4ecfa0
Capabilities:
Get hostname

Disassembly:
mov ecx, dword [0x638e34]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x4ecfef
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4ecfef
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.004e4a60
add esp, 0x10
push esi
push edi
call sub.WSOCK32.dll_gethostname
mov ecx, dword [0x638e34]
mov esi, eax
test ecx, ecx
je 0x4ed043
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4ed043
test edi, edi
jne 0x4ed017
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.004e4a60
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4f14a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5e3bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
call fcn.004fb670
lea ecx, [esi + 0x14]
mov dword [esp + 0x80], 0
mov dword [esi], vtable.ZgeoArc.0
call fcn.00501a20
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
mov dword [esi + 8], ecx
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
push ecx
push edi
mov dword [esi + 0x10], eax
call fcn.004fa9f0
fst qword [esp + 0x30]
add esp, 4
fstp qword [esp]
call fcn.004fa780
add esp, 8
test eax, eax
je 0x4f15d0
mov eax, dword [edi]
cmp dword [ebx], eax
jne 0x4f1590
mov edx, dword [edi + 4]
cmp dword [ebx + 4], edx
jne 0x4f1590
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x4f154d
cmp dword [ebx + 4], edx
je 0x4f1590
mov eax, dword [ebx + 4]
sub ecx, dword [edi]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.004f0e00
push eax
lea ecx, [esi + 0x14]
call fcn.00508610
push ebx
mov ecx, edi
call fcn.005befc0
fld qword [0x5f3df0]
fmul st(1), st(0)
faddp st(1)
call fcn.005c3ce0
mov edx, 2
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], dx
jmp 0x4f168b
fldz
sub esp, 0x10
fst qword [esp + 8]
lea ecx, [esp + 0x4c]
fstp qword [esp]
mov dword [esi + 0x1c], 0
call fcn.004f0ec0
push eax
lea ecx, [esi + 0x14]
call fcn.00508610
push 0x305
call fcn.005c2c00
mov eax, 1
add esp, 4
mov word [esi + 0x20], ax
jmp 0x4f168b
fldz
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x4f15e5
xor ecx, ecx
mov word [esi + 0x20], cx
jmp 0x4f15ee
mov edx, 1
mov word [esi + 0x20], dx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push edx
push edi
call fcn.00501140
fild dword [esi + 4]
add esp, 4
fsubr qword [esp + 0x3c]
fst qword [esp + 0x34]
fild dword [esi + 8]
fsubr qword [esp + 0x44]
fst qword [esp + 0x4c]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.00500f10
fld qword [0x5f3df0]
add esp, 0x10
fadd st(1), st(0)
fxch st(1)
call fcn.005c3ce0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov dword [esi + 0x1c], eax
fdivr qword [0x601ef8]
fld qword [esp + 0x24]
fmul st(1)
fxch st(1)
fmul qword [esp + 0x3c]
fldz
fcom st(2)
fnstsw ax
fxch st(2)
test ah, 0x41
jp 0x4f1668
fadd st(3)
jmp 0x4f166a
fsub st(3)
call fcn.005c3ce0
fcom st(1)
mov dword [esi + 0x14], eax
fnstsw ax
fstp st(1)
test ah, 1
jne 0x4f1681
faddp st(1)
jmp 0x4f1683
fsubrp st(1)
call fcn.005c3ce0
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f1a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ee238
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004fb670
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.ZgeoArc.0
call fcn.00501a20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ecx]
mov dword [esi + 0xc], edx
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], cx
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 4]
jne 0x4f1ada
mov edx, dword [esi + 0x10]
cmp edx, dword [esi + 8]
jne 0x4f1ada
or ecx, 2
mov word [esi + 0x20], cx
mov ecx, dword [esp + 0x24]
fild dword [esp + 0x2c]
mov edx, dword [ecx]
sub edx, dword [eax]
fdivr qword [0x601ef8]
mov ecx, dword [ecx + 4]
sub ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
fmul st(1)
fild dword [esp + 0x2c]
fmulp st(2)
fldz
fcom st(1)
fnstsw ax
fld qword [0x5f3df0]
test ah, 0x41
jp 0x4f1b1b
fadd st(2), st(0)
jmp 0x4f1b1d
fsub st(2), st(0)
fxch st(2)
call fcn.005c3ce0
fcomp st(2)
mov dword [edi], eax
fnstsw ax
test ah, 0x41
jp 0x4f1b33
faddp st(1)
jmp 0x4f1b35
fsubp st(1)
call fcn.005c3ce0
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14

Function at 0x4f49d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3d38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004fb0a0
add esp, 0xc
mov edi, eax
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
lea ecx, [edi + 0x14]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x1c]
push ecx
lea ecx, [esi + 0x14]
mov dword [esp + 0x3c], 0
mov dword [esi + 0x1c], eax
call fcn.00508610
mov dx, word [edi + 0x20]
lea ecx, [esp + 0xc]
mov word [esi + 0x20], dx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0xc], vtable.ZgeoArc.0
call fcn.004fb680
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4
Function at 0x4f8af0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e3fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.004fb670
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov edi, vtable.ZgeoLine.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.004fb670
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x44]
cdq
sub eax, edx
mov esi, eax
push 0
sar esi, 1
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.004f86c0
push 1
push esi
lea ecx, [esp + 0x14]
call fcn.004f86c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x1c], ecx
lea ecx, [esp + 0xc]
mov dword [eax + 0x18], edx
mov byte [esp + 0x3c], 0
mov dword [esp + 0xc], edi
call fcn.004fb680
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x20], edi
call fcn.004fb680
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 8