joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5de7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5de7f5
push 0
push 0x87
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5de812
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5de81b
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5de83d
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 4]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x5de960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5de995
push 0
push 0x9f
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5de9b2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5de9bb
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5de9dd
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x5de9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5dea25
push 0
push 0xaa
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5dea42
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5dea4b
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5dea6d
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x5dea89
mov edx, dword [ebp - 4]
and edx, 0x400
je 0x5dea89
mov dword [ebp - 0x14], 1
jmp 0x5dea90
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x5dec60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5dec95
push 0
push 0xc5
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5decb2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5decbb
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5decdd
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 4]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x5df140
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df175
push 0
push 0x112
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x5df192
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x5df19b
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5df1bd
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x5df1d0
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
jmp 0x5df1d9
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x18], 8
jb 0x5df1f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
jmp 0x5df1ff
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x5df220
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call fcn.005dfa10
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x5df240
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766efc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df28a
push 0
push 0x128
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
lea eax, [ebp - 0x31]
mov dword [ebp - 0x30], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005e0120
add esp, 8
cmp dword [ebp - 0x10], 8
jb 0x5df2c1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
jmp 0x5df2c7
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
add edx, 0x20
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 8
jb 0x5df2e4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x6c], edx
jmp 0x5df2ed
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5df310
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5df340
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766f0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df38a
push 0
push 0x133
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
lea eax, [ebp - 0x31]
mov dword [ebp - 0x30], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005e0120
add esp, 8
cmp dword [ebp - 0x10], 8
jb 0x5df3c1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
jmp 0x5df3c7
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
add edx, 0x20
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 8
jb 0x5df3e4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x6c], edx
jmp 0x5df3ed
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x6c], eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x5df410
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.005dfa10
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00449c25
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5df620
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df655
push 0
push 0x15b
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
call fcn.005de960
movzx eax, al
test eax, eax
je 0x5df6a9
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 8
jb 0x5df681
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x5df68a
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x5df6a7
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.005dfa10
add esp, 4
jmp 0x5df6ec
mov edx, dword [ebp - 0xc]
add edx, 0x20
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 8
jb 0x5df6c6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
jmp 0x5df6cf
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5df6ec
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.005dfa10
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x5df7b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df7e5
push 0
push 0x17e
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov ecx, dword [ebp - 8]
call fcn.005de650
movzx eax, al
test eax, eax
je 0x5df807
mov ecx, dword [ebp - 8]
call fcn.005de960
movzx ecx, al
test ecx, ecx
je 0x5df807
xor al, al
jmp 0x5df84e
mov edx, dword [ebp - 8]
add edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 8
jb 0x5df824
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
jmp 0x5df82d
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5df84c
mov edx, dword [ebp - 8]
add edx, 4
push edx
call fcn.005dfa10
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x5df860
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df895
push 0
push 0x18a
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 8
jb 0x5df8b2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x5df8bb
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x5df8e0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x5df8f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df925
push 0
push 0x195
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 8
jb 0x5df942
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x5df94b
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0x14], ecx
push 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x5df970
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x5df980
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x5df9b5
push 0
push 0x1a0
push str.e:giteepoco_1.9.0_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005da6a0
add esp, 0x10
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 8
jb 0x5df9d2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x5df9db
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x5dfa00
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.005dfa10
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5f98a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, 0x202
mov word [ebp - 0x10], ax
lea ecx, [ebp - 0x1a4]
push ecx
movzx edx, word [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5f999e
lea eax, [ebp - 0x1f9]
mov dword [ebp - 0x1f8], eax
push 0
push 0
lea ecx, [ebp - 0x1f0]
call fcn.0041c8f0
mov dword [ebp - 0x250], str.Failed_to_initialize_network_subsystem
mov ecx, dword [ebp - 0x250]
add ecx, 1
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x250]
mov al, byte [edx]
mov byte [ebp - 0x255], al
add dword [ebp - 0x250], 1
cmp byte [ebp - 0x255], 0
jne 0x5f9915
mov ecx, dword [ebp - 0x250]
sub ecx, dword [ebp - 0x254]
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x25c]
push edx
push str.Failed_to_initialize_network_subsystem
lea ecx, [ebp - 0x1f0]
call fcn.0041c1a0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.00605770
push 0x82a73c
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0048d568
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x1f0]
call fcn.0041c8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6129c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76910a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov dword [ebp - 0xb8], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x18], 0x10
jb 0x612a1f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xbc], ecx
jmp 0x612a2b
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp - 0xbc], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x612a9f
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x84]
call fcn.00610e00
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp + 8]
call fcn.00611010
mov eax, dword [ebp - 0xb8]
or eax, 1
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.00611160
mov eax, dword [ebp + 8]
jmp 0x612adf
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00614340
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00613ef0
push eax
call fcn.00613f00
add esp, 8
push 0
lea ecx, [ebp - 0xb4]
call fcn.00605740
push 0x82a73c
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0048d568
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x612af0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x769167
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov dword [ebp - 0x114], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.005fb000
mov dword [ebp - 4], 1
push 4
push 0
push 0
push 0x400
push 0x866d30
lea ecx, [ebp - 0x14]
call fcn.005fb8f0
push eax
lea ecx, [ebp - 0x14]
call fcn.005fb9a0
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x612c4d
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x866d30
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x612c00
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00610e00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00611010
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00611160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005fb590
mov eax, dword [ebp + 8]
jmp 0x612d15
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0060d5e0
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00614340
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.0041c8f0
jmp 0x612c98
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0060d5e0
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00614340
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.0041c8f0
call fcn.00613ef0
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0xe0]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0060d5e0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00613f00
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xe0]
call fcn.0041c8f0
push 0
lea ecx, [ebp - 0x110]
call fcn.00605740
push 0x82a73c
lea eax, [ebp - 0x110]
push eax
call fcn.0048d568
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005fb590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x613020
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76920b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
mov dword [ebp - 0x164], 0
push 0x100
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x61308e
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041c2b0
mov edx, dword [ebp - 0x164]
or edx, 1
mov dword [ebp - 0x164], edx
mov eax, dword [ebp + 8]
jmp 0x61314b
lea eax, [ebp - 0x195]
mov dword [ebp - 0x194], eax
push 0
push 0
lea ecx, [ebp - 0x160]
call fcn.0041c8f0
mov dword [ebp - 0x1e8], str.Cannot_get_host_name
mov ecx, dword [ebp - 0x1e8]
add ecx, 1
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x1e8]
mov al, byte [edx]
mov byte [ebp - 0x1ed], al
add dword [ebp - 0x1e8], 1
cmp byte [ebp - 0x1ed], 0
jne 0x6130c2
mov ecx, dword [ebp - 0x1e8]
sub ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f4]
push edx
push str.Cannot_get_host_name
lea ecx, [ebp - 0x160]
call fcn.0041c1a0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x144]
call fcn.00605770
push 0x82a73c
lea ecx, [ebp - 0x144]
push ecx
call fcn.0048d568
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x160]
call fcn.0041c8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x620b00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x620b28
mov al, 1
jmp 0x620b63
cmp dword [ebp - 0x94], 6
jb 0x620b4f
cmp dword [ebp - 0x94], 6
jne 0x620b43
cmp dword [ebp - 0x90], 2
jb 0x620b4f
mov dword [ebp - 0x9c], 0
jmp 0x620b59
mov dword [ebp - 0x9c], 1
mov al, byte [ebp - 0x9c]
jmp 0x620b63
mov esp, ebp
pop ebp
ret
Function at 0x620e10
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76a23d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0xffffffff
jne 0x620e50
mov ecx, dword [ebp + 8]
call fcn.005fba50
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x90]
call eax
mov ecx, dword [ebp + 8]
call fcn.005fb8f0
push eax
mov ecx, dword [ebp + 8]
call fcn.005fb9a0
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x620e85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x620e50
cmp dword [ebp - 0x10], 0
je 0x620ed3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.005fbbb0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00622d90
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0041c8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4