joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f120
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac9b9
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x70], 0x64
cmp eax, 1
jne 0x45f222
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x9c], eax
mov eax, dword [esp + 0x28]
add eax, 0x30
mov ecx, ebx
push eax
call fcn.0045ed80
mov eax, dword [ebx + 0x60]
cmp eax, 0x36
jl 0x45f177
cmp eax, 0x64
jne 0x45f17c
cmp eax, 1
jne 0x45f185
mov ecx, dword [ebx]
push 1
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebx + 0x58]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00459ab0
add esp, 8
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x20], 0
je 0x45f1ad
mov esi, eax
mov edx, dword [ebx + 0x60]
mov ax, word [ebx + 0x5c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
and eax, 0xffff
push eax
push esi
push ecx
push edx
push str.__d._3d__Handshake_with__s:_d__d
push 0x4d1048
call fcn.00453980
add esp, 0x1c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x68], 2
mov ebx, dword [ebx + 0x20]
push eax
push 0xcf
push ebx
mov ecx, 0x4d0f18
call fcn.004519e0
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
test eax, eax
jne 0x45f2b2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov dword [ebx + 0x90], eax
call esi
mov dword [ebx + 0xa8], eax
call esi
mov dword [ebx + 0x98], eax
call esi
mov dword [ebx + 0xa0], eax
call esi
mov dword [ebx + 0x94], eax
call esi
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x9c], eax
mov ecx, ebx
lea eax, [esi + 0x30]
push eax
call fcn.0045ed80
lea eax, [esi + 0x1c]
lea edi, [ebx + 0x3c]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.0045e700
mov eax, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x20]
push eax
push 0xcf
push ebx
mov ecx, 0x4d0f18
call fcn.004519e0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x461e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x461e4c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x461e4c
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 4
push edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461e4c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x461ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x208
test eax, eax
push esi
je 0x461f27
mov ecx, dword [esp + 0x210]
test ecx, ecx
je 0x461f27
mov esi, dword [esp + 0x214]
test esi, esi
je 0x461f27
lea edx, [esp + 4]
mov dword [esp + 4], 0x100
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461f27
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, 1
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x462040
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x46208c
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x46208c
mov esi, dword [esp + 0x14]
test esi, esi
je 0x46208c
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
shl ax, 1
add esp, 4
inc ax
and eax, 0xffff
push eax
mov eax, dword [edi + 4]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x462120
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov edi, dword [esp + 0xc]
push 0x800
mov dword [0x4d3030], edi
call esi
add esp, 4
mov dword [0x4d3028], eax
test eax, eax
je 0x4621c4
call fcn.004627f0
cmp edi, 1
je 0x4621c4
push 0x800
call esi
add esp, 4
mov dword [0x4d3024], eax
test eax, eax
jne 0x462177
mov eax, dword [0x4d3028]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4c7218
push eax
call fcn.00462760
push 0x800
call esi
add esp, 0xc
mov dword [0x4d302c], eax
test eax, eax
jne 0x4621b6
mov ecx, dword [0x4d3028]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [0x4d3024]
push edx
call esi
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4c7258
push eax
call fcn.00462760
add esp, 8
pop edi
xor eax, eax
pop esi
ret
Function at 0x462230
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x462244
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
mov edx, dword [esp + 0x7c]
push ebx
push esi
push edi
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
movsx eax, byte [ecx + str.91__]
dec eax
mov esi, eax
sar eax, 3
and esi, 7
movsx eax, byte [eax + edx]
test dword [esi*4 + 0x4c7530], eax
setne al
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x38
jl 0x462258
xor edi, edi
movsx ecx, byte [edi + 0x4c72d0]
xor eax, eax
xor edx, edx
cmp eax, 0x1c
setge dl
dec edx
mov esi, ecx
and edx, 0xffffffe4
add edx, 0x38
cmp ecx, edx
jl 0x4622a3
lea esi, [ecx - 0x1c]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x48], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46228b
xor ecx, ecx
movsx eax, byte [ecx + 0x4c72e0]
mov dl, byte [esp + eax + 0x47]
test dl, dl
je 0x4622f2
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
add eax, edx
lea esi, [eax + edi*8]
mov eax, ecx
cdq
idiv ebx
mov al, byte [esi]
mov edx, dword [edx*4 + 0x4c7530]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x4622b4
inc edi
cmp edi, 0x10
jl 0x462282
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x70
ret

Function at 0x4627f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4c7510]
dec edx
cmp edx, ecx
je 0x46280b
inc eax
cmp eax, 0x20
jl 0x4627f7
jmp 0x46280f
mov byte [esp + ecx + 8], al
inc ecx
cmp ecx, 0x20
jl 0x4627f5
push ebx
lea eax, [esp + 0xc]
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x10], 0
xor eax, eax
xor esi, esi
mov ebx, eax
mov eax, esi
mov ecx, esi
sar eax, 1
and ecx, 1
and eax, 0xf
shl ecx, 4
mov edx, esi
or eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0x20
or eax, edx
xor edi, edi
xor edx, edx
movsx ebp, byte [ecx + eax + 0x4c7310]
mov eax, 8
mov ecx, edx
sar eax, cl
test ebp, eax
je 0x46287b
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + edx]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edi, eax
inc edx
cmp edx, 4
jl 0x462857
mov ecx, dword [0x4d3028]
inc esi
mov dword [ebx + ecx], edi
add ebx, 4
cmp esi, 0x40
jl 0x46282f
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esi, 0x40
add edx, 4
cmp ebx, 0x800
mov dword [esp + 0x10], esi
mov eax, ebx
mov dword [esp + 0x14], edx
jl 0x46282b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x46a1e0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x46a2a0
test byte [esi + 0x30], 1
je 0x46a219
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x68]
push ecx
push edx
mov ecx, 0x4cfc38
call fcn.004421f0
mov ecx, dword [esi + 0x14]
call fcn.00486960
mov ecx, dword [esi + 0x18]
call fcn.0048d9d0
test byte [esi + 0x30], 2
je 0x46a227
mov ecx, dword [esi + 0x10]
call fcn.0048fe60
mov eax, dword [esi + 0x28]
push 1
push 0
cmp eax, 1
push 0
push 0
jne 0x46a24b
mov eax, dword [esi + 0xc]
push 0
push 7
push eax
mov ecx, 0x4cfba8
call fcn.0043df70
jmp 0x46a273
mov ecx, dword [esi + 0xc]
push 1
push 7
push ecx
mov ecx, 0x4cfba8
call fcn.0043df70
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x46a26c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x14]
call fcn.00486470
mov ecx, dword [esi + 0x1c]
call fcn.004874e0
mov edx, dword [esi + 0xc]
push edx
push str.__d.__RemoveTask
push 0x4d1048
call fcn.00453980
add esp, 0xc
mov dword [esi + 0x3c], 3
xor eax, eax
pop esi
ret
Function at 0x46cc20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x46cd88
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x46cd88
mov eax, dword [esi + 0xc4]
mov ebx, 1
cmp eax, ebx
je 0x46cd88
cmp dword [esi + 0x78], ebx
je 0x46cd88
call fcn.0046def0
test eax, eax
je 0x46cd88
mov edi, dword [esi + 0x124]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
test edi, edi
je 0x46cc95
call ebp
mov ecx, eax
mov eax, dword [esi + 0x38]
sub ecx, eax
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jb 0x46cd88
call fcn.00458ad0
cmp eax, 0xc800
ja 0x46cce8
xor edi, edi
cmp eax, edi
jbe 0x46ccea
test byte [esi + 0x30], bl
je 0x46ccea
call ebp
sub eax, dword [esi + 0x38]
cmp eax, 0x2710
jb 0x46cd88
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x2c]
push edi
push ecx
mov ecx, dword [esi + 0x18]
push edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
call fcn.0048e940
cmp dword [esp + 0x10], edi
ja 0x46cd88
jmp 0x46ccea
xor edi, edi
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
call fcn.00490350
test eax, eax
je 0x46cd88
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, edi
jle 0x46cd88
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edi
call fcn.00490520
test eax, eax
je 0x46cd71
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + 0x5d50]
mov dword [esi + 0x74], ecx
mov eax, dword [eax + 0x5d4c]
mov ecx, dword [esi + 0xc]
push eax
push str.ERR__u__Cid__u_
push str.CIDCONNERR
push ecx
push 0x4d0fc8
call fcn.00455ad0
mov eax, dword [esi + 0x10]
add esp, 0x18
mov ecx, esi
mov edx, dword [eax + 0x5d50]
mov dword [esi + 0x74], edx
mov eax, dword [eax + 0x5d4c]
push eax
call fcn.0046d480
jmp 0x46cd7f
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, esi
call fcn.0046e590
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x46cd0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x46cd90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x46cf8e
cmp dword [esi + 0x28], ebx
jne 0x46cf8e
mov ecx, dword [esi + 0xc4]
mov eax, 1
cmp ecx, eax
je 0x46cf8e
cmp dword [esi + 0x78], eax
je 0x46cf8e
mov ecx, esi
call fcn.0046def0
test eax, eax
je 0x46cf8e
mov edi, dword [esi + 0x124]
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x46ce22
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x38]
sub ecx, eax
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jae 0x46ce22
mov eax, dword [esi + 0xc]
push edi
push eax
push str.__d.__Delay___d
push 0x4d1048
call fcn.00453980
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004904a0
test eax, eax
je 0x46cf8e
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebx
jle 0x46cf8e
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0048ff20
mov edi, eax
cmp edi, ebx
je 0x46cf8e
mov eax, dword [esi + 0x1c]
add eax, 0x38
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
jne 0x46cee7
push ebx
push ebx
push ebx
push ebx
mov ecx, dword [esi + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00490190
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
ja 0x46cea6
cmp ecx, ebx
jbe 0x46cee7
push eax
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push str.__d.__SetFileLen__I64d
push 0x4d1048
call fcn.00453910
mov ecx, dword [esi + 0x1c]
add esp, 0x14
cmp dword [ecx + 0xc], ebx
jne 0x46ced5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00487f60
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x18]
push edx
call fcn.0048e8a0
mov edx, dword [edi]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push edx
call fcn.00487600
test eax, eax
je 0x46cf36
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push edi
call fcn.00490c50
test eax, eax
jne 0x46cf57
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x46ce45
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
push ecx
push edx
push str.__d._3d__AllocRange_fail
push 0x4d1048
call fcn.00453980
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x5d50]
mov dword [esi + 0x74], ecx
mov edx, dword [eax + 0x5d4c]
push edx
mov ecx, esi
call fcn.0046d480
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
push str.__d._3d__AsyncStartHttp_fail_ErrorCode___d
push 0x4d1048
call fcn.00453a60
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x471220
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2820
call fcn.004a0d60
mov eax, dword [esp + 0x2830]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push ebp
mov dword [esp + 8], 0
mov cl, byte [eax]
mov dword [esp + 0xc], 0
mov byte [esp + 4], cl
mov dword [esp + 0x10], 0
mov ecx, dword [edx]
push esi
push edi
push ecx
push 0
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
jne 0x47127a
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x2838]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x2834]
lea ecx, [esp + 0x1c]
push 0x10
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2838]
push 0
lea edx, [esp + 0x38]
push ebp
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x47131f
mov al, byte [ecx - 1]
test al, al
je 0x471315
cmp al, 0xff
je 0x471315
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
add esp, 0x2820
ret
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2820
ret
Function at 0x471790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad587
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
push ebx
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x24], ebx
mov byte [esi + 0x20], al
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push ebx
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], ebx
mov byte [esi + 0x40], al
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push ebx
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esi + 0x60], al
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], 1
push ebx
mov byte [esi + 0x74], cl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
push ebx
mov byte [esi + 0x84], dl
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
push ebx
mov byte [esi + 0x94], al
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
push ebx
mov dword [esi + 0xa8], ebx
mov word [esi + 0xa4], bx
mov byte [esi + 0xa6], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x477e90
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x477ea8
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.004781b0
test eax, eax
jne 0x477ec5
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.004781b0
cmp eax, 1
je 0x477f2a
mov ecx, esi
call fcn.004781b0
cmp eax, 2
je 0x477f2a
mov ecx, esi
call fcn.004781b0
cmp eax, 3
je 0x477f2a
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x477f12
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0045d820
push eax
call dword [sym.imp.WS2_32.dll_send]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x38]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc

Function at 0x477f40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x477f58
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.004781b0
test eax, eax
jne 0x477f75
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.004781b0
cmp eax, 1
je 0x477fda
mov ecx, esi
call fcn.004781b0
cmp eax, 2
je 0x477fda
mov ecx, esi
call fcn.004781b0
cmp eax, 3
je 0x477fda
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x477fc2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0045d820
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x34]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x477ff0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x478014
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x24]
mov esi, eax
jmp 0x478094
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x478064
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x478059
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
jmp 0x478064
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 4]
lea edx, [esp + 8]
push 0x10
push edx
mov word [esp + 0x12], ax
call fcn.0045d820
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
jne 0x4780a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4780ae
push 2
mov ecx, edi
call fcn.00478410
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x4780c0
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4780de
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x20]
mov esi, eax
jmp 0x478101
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [edi + 4]
call fcn.0045d820
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x478112
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47811b
push 2
mov ecx, edi
call fcn.00478410
mov eax, esi
pop edi
pop esi
ret 8