joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a940
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x45a95b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
cmp dword [esp + 0x20], ebx
jne 0x45a96c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0xc], esi
je 0x45a961
mov al, byte [esp + 0x18]
push ebp
lea ebp, [esi + 0xc]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x45a9ab
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x45a9d1
mov al, byte [ecx - 1]
test al, al
je 0x45a9d1
cmp al, 0xff
je 0x45a9d1
test ebx, ebx
jne 0x45a9f7
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x45aa25
test ebx, ebx
jne 0x45a9e1
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x45aa25
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x45a9ed
cmp eax, ebx
jae 0x45aa00
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x10]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
push eax
push esi
push 0x45a7b0
push eax
mov dword [esi + 4], edx
mov dword [esi + 8], eax
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x45bd40
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45bd60
or eax, eax
pop edi
add esp, 0x10
ret 8
xor eax, eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45bdad
cmp eax, 0x100007f
je 0x45bdad
push eax
call esi
mov dword [esp + 0xc], eax
lea edx, [esp + 8]
push 0x10
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
pop esi
je 0x45bdca
or eax, 0xffffffff
pop edi
add esp, 0x10
ret 8
mov eax, edi
pop edi
add esp, 0x10
ret 8
Function at 0x45c1b0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.00435d70
cmp eax, 0xffffffff
je 0x45c1dd
push 0x2735
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x2735
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, esi
call fcn.0045c610
test eax, eax
jne 0x45c204
push 0x276d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x276d
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x45c22c
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
call dword [eax + 0x28]
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x20]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x45c253
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
push eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.0045c440
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0045d1b0
test eax, eax
jne 0x45c288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x10], eax
call dword [edx + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x24]
test eax, eax
je 0x45c2b0
mov eax, dword [esi + 8]
push 0x3f
add eax, 0x402
mov ecx, esi
push eax
call fcn.0045d2c0
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x45c26e
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x45c2f5
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x45c31d
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
mov ecx, esi
call fcn.0045c3e0
test eax, eax
jne 0x45c31d
jmp 0x45c26e
push 0x10
push eax
mov ecx, esi
call fcn.0045c3e0
test eax, eax
jne 0x45c31d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 0x10
Function at 0x45cee0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x45cf08
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x38]
pop esi
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x10
ret 0x14

Function at 0x45d130
Capabilities:
Connect socket

Disassembly:
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x45d14b
mov ecx, dword [esp + 8]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 8]
push ecx
mov ecx, eax
call dword [edx + 0x20]
ret 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret 8

Function at 0x45d360
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 0x10
Function at 0x45e9e0
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a3ab9
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 0x45eae2
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.0045e670
mov eax, dword [ebx + 0x60]
cmp eax, 0x36
jl 0x45ea37
cmp eax, 0x64
jne 0x45ea3c
cmp eax, 1
jne 0x45ea45
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.004598f0
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 0x45ea6d
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 0x4c89f8
call fcn.00453b40
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, 0x4c88c8
call fcn.00451be0
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
test eax, eax
jne 0x45eb72
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.0045e670
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.0045e050
mov eax, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x20]
push eax
push 0xcf
push ebx
mov ecx, 0x4c88c8
call fcn.00451be0
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 0x461360
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x4613ac
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4613ac
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 0x4613ac
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 0x4613c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x208
test eax, eax
push esi
je 0x461427
mov ecx, dword [esp + 0x210]
test ecx, ecx
je 0x461427
mov esi, dword [esp + 0x214]
test esi, esi
je 0x461427
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 0x461427
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 0x461480
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4614cc
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4614cc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4614cc
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 0x4614e0
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 [0x4ca9e0], edi
call esi
add esp, 4
mov dword [0x4ca9d8], eax
test eax, eax
je 0x461584
call fcn.00461bb0
cmp edi, 1
je 0x461584
push 0x800
call esi
add esp, 4
mov dword [0x4ca9d4], eax
test eax, eax
jne 0x461537
mov eax, dword [0x4ca9d8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4bf158
push eax
call fcn.00461b20
push 0x800
call esi
add esp, 0xc
mov dword [0x4ca9dc], eax
test eax, eax
jne 0x461576
mov ecx, dword [0x4ca9d8]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [0x4ca9d4]
push edx
call esi
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4bf198
push eax
call fcn.00461b20
add esp, 8
pop edi
xor eax, eax
pop esi
ret
Function at 0x4615f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x461604
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 + 0x4bf470], eax
setne al
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x38
jl 0x461618
xor edi, edi
movsx ecx, byte [edi + 0x4bf210]
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 0x461663
lea esi, [ecx - 0x1c]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x48], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46164b
xor ecx, ecx
movsx eax, byte [ecx + 0x4bf220]
mov dl, byte [esp + eax + 0x47]
test dl, dl
je 0x4616b2
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 + 0x4bf470]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x461674
inc edi
cmp edi, 0x10
jl 0x461642
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x70
ret

Function at 0x461bb0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4bf450]
dec edx
cmp edx, ecx
je 0x461bcb
inc eax
cmp eax, 0x20
jl 0x461bb7
jmp 0x461bcf
mov byte [esp + ecx + 8], al
inc ecx
cmp ecx, 0x20
jl 0x461bb5
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 + 0x4bf250]
mov eax, 8
mov ecx, edx
sar eax, cl
test ebp, eax
je 0x461c3b
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 0x461c17
mov ecx, dword [0x4ca9d8]
inc esi
mov dword [ebx + ecx], edi
add ebx, 4
cmp esi, 0x40
jl 0x461bef
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 0x461beb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x468e50
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x468f10
test byte [esi + 0x30], 1
je 0x468e89
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x68]
push ecx
push edx
mov ecx, 0x4c75e8
call fcn.004433d0
mov ecx, dword [esi + 0x14]
call fcn.00483780
mov ecx, dword [esi + 0x18]
call fcn.00423c20
test byte [esi + 0x30], 2
je 0x468e97
mov ecx, dword [esi + 0x10]
call fcn.0048c570
mov eax, dword [esi + 0x28]
push 1
push 0
cmp eax, 1
push 0
push 0
jne 0x468ebb
mov eax, dword [esi + 0xc]
push 0
push 7
push eax
mov ecx, 0x4c7558
call fcn.0043f7f0
jmp 0x468ee3
mov ecx, dword [esi + 0xc]
push 1
push 7
push ecx
mov ecx, 0x4c7558
call fcn.0043f7f0
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x468edc
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.00483290
mov ecx, dword [esi + 0x1c]
call fcn.004841b0
mov edx, dword [esi + 0xc]
push edx
push str.__d.__RemoveTask
push 0x4c89f8
call fcn.00453b40
add esp, 0xc
mov dword [esi + 0x3c], 3
xor eax, eax
pop esi
ret
Function at 0x46aff0
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 0x46b158
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x46b158
mov eax, dword [esi + 0xc4]
mov ebx, 1
cmp eax, ebx
je 0x46b158
cmp dword [esi + 0x78], ebx
je 0x46b158
call fcn.0046c2c0
test eax, eax
je 0x46b158
mov edi, dword [esi + 0x124]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
test edi, edi
je 0x46b065
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 0x46b158
call fcn.00458af0
cmp eax, 0xc800
ja 0x46b0b8
xor edi, edi
cmp eax, edi
jbe 0x46b0ba
test byte [esi + 0x30], bl
je 0x46b0ba
call ebp
sub eax, dword [esi + 0x38]
cmp eax, 0x2710
jb 0x46b158
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.0048b130
cmp dword [esp + 0x10], edi
ja 0x46b158
jmp 0x46b0ba
xor edi, edi
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
call fcn.0048ca60
test eax, eax
je 0x46b158
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, edi
jle 0x46b158
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edi
call fcn.0048cc30
test eax, eax
je 0x46b141
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 0x4c8978
call fcn.00455b50
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.0046b850
jmp 0x46b14f
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, esi
call fcn.0046c960
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x46b0dd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x46b160
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 0x46b35e
cmp dword [esi + 0x28], ebx
jne 0x46b35e
mov ecx, dword [esi + 0xc4]
mov eax, 1
cmp ecx, eax
je 0x46b35e
cmp dword [esi + 0x78], eax
je 0x46b35e
mov ecx, esi
call fcn.0046c2c0
test eax, eax
je 0x46b35e
mov edi, dword [esi + 0x124]
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x46b1f2
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 0x46b1f2
mov eax, dword [esi + 0xc]
push edi
push eax
push str.__d.__Delay___d
push 0x4c89f8
call fcn.00453b40
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.0048cbb0
test eax, eax
je 0x46b35e
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebx
jle 0x46b35e
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.0048c630
mov edi, eax
cmp edi, ebx
je 0x46b35e
mov eax, dword [esi + 0x1c]
add eax, 0x38
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
jne 0x46b2b7
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.0048c8a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
ja 0x46b276
cmp ecx, ebx
jbe 0x46b2b7
push eax
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push str.__d.__SetFileLen__I64d
push 0x4c89f8
call fcn.00453ad0
mov ecx, dword [esi + 0x1c]
add esp, 0x14
cmp dword [ecx + 0xc], ebx
jne 0x46b2a5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00484c30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x18]
push edx
call fcn.0048b090
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.004842d0
test eax, eax
je 0x46b306
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.0048d360
test eax, eax
jne 0x46b327
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x46b215
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 0x4c89f8
call fcn.00453b40
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.0046b850
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 0x4c89f8
call fcn.00453c20
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x46f480
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2820
call fcn.004999f0
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 0x46f4da
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 0x46f57f
mov al, byte [ecx - 1]
test al, al
je 0x46f575
cmp al, 0xff
je 0x46f575
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.00437568
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2820
ret