joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa52650
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0xb04008]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xa52708
mov eax, dword [esp]
cmp al, 2
jne 0xa52702
shr eax, 8
cmp al, 2
jne 0xa52702
call fcn.00a64f90
test eax, eax
jne 0xa5270d
mov ecx, str.iphlpapi.dll
call fcn.00a52770
mov dword [0xb0913c], eax
test eax, eax
je 0xa526c8
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0xb06ec8]
test eax, eax
cmovne ecx, eax
mov dword [0xb06ec8], ecx
xor edx, edx
push 3
push ecx
push 0
lea ecx, [edx + 6]
call fcn.00a651b0
add esp, 0xc
test al, al
setne byte [0xb09250]
push 0xb09248
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
Function at 0xa52770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xa52794
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xad4988
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0xad4998
push esi
mov dword [ebp - 8], ebx
call fcn.00aacde4
add esp, 8
test eax, eax
je 0xa527dc
test ebx, ebx
je 0xa527cc
push 8
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa52805
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xa52805
push 0x800
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0xa528c8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa52821
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xb0497c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xa528be
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xa528be
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa52860
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa52880
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0xa52895
mov eax, dword [ebp - 8]
test eax, eax
je 0xa528b5
push 8
push 0
push ebx
call eax
jmp 0xa528bc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xb04984]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa52f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
call fcn.00a54550
mov edx, edi
mov dword [ebp - 0x14], eax
call fcn.00a54530
mov edx, dword [ebp + 8]
mov cl, 1
mov byte [ebp - 1], cl
mov dword [edx], 0
test eax, eax
je 0xa5303a
cmp byte [eax + 0x3c], 0
je 0xa5303a
mov esi, dword [edi + 0x8d8]
test esi, esi
je 0xa5303a
mov eax, dword [edi + 0x78]
test eax, eax
je 0xa52f6c
test byte [eax + 4], 0x10
je 0xa52f6c
add eax, 0x78
jmp 0xa52f72
lea eax, [edi + 0x8dc]
mov edi, dword [edi + 0x4a4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
je 0xa53039
nop dword [eax]
cmp dword [esi + 0xc], 0
je 0xa5302a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
call fcn.00a634b0
test eax, eax
je 0xa5302a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov edi, dword [ecx + 0xc]
cmp byte [edi + 0x1c9], 0
jne 0xa52fc6
test edx, edx
je 0xa52fd9
jmp 0xa53027
test edx, edx
je 0xa53027
mov ecx, dword [edi + 0x64]
call fcn.00a634b0
test eax, eax
je 0xa53027
mov ecx, dword [ebp - 0xc]
cmp byte [edi + 0x1ca], 0
mov eax, dword [esi + 0x1c]
jne 0xa52fec
cmp eax, 0xffffffff
je 0xa52ff9
jmp 0xa53027
cmp eax, 0xffffffff
je 0xa53027
cmp dword [edi + 0x444], eax
jne 0xa53027
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x10]
cmp eax, dword [esi + 0x18]
jne 0xa53027
mov ecx, dword [edi + 0x1e0]
mov edx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00a634b0
test eax, eax
je 0xa53027
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.00a529a0
test al, al
jne 0xa53042
mov edi, dword [ebp - 8]
inc ebx
add esi, 0x60
cmp ebx, edi
jb 0xa52f90
mov cl, byte [ebp - 1]
pop ebx
pop edi
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
pop ebx
pop edi
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
xor cl, cl
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa57cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.0044f590
push eax
push edx
push esi
call fcn.00abbbb0
add esp, 0xc
pop esi
pop ebp
ret

Function at 0xa596d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + edx]
mov edx, 0x1505
cmp esi, edi
jae 0xa596f8
mov cl, byte [esi]
call fcn.00a63440
movsx ecx, al
inc esi
mov eax, edx
shl eax, 5
add edx, eax
xor edx, ecx
cmp esi, edi
jb 0xa596e0
pop edi
movzx eax, dl
pop esi
ret

Function at 0xa61990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x6d0], 0
je 0xa61a20
cmp dword [esi + 0x1a4], 0
je 0xa619e0
push ebx
call fcn.00a578a0
mov dl, 1
mov bl, al
call fcn.00a57880
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call eax
add esp, 0x14
mov dl, bl
mov ecx, esi
pop ebx
pop edi
pop esi
pop ebp
jmp fcn.00a57880
mov eax, edi
sub eax, 0
je 0xa619f1
sub eax, 1
je 0xa619f1
sub eax, 1
jne 0xa61a20
push dword [esi + 0x150]
lea eax, [edi*2 + 0xad1dc4]
push 1
add eax, edi
push 2
push eax
call fcn.00aac71a
push dword [esi + 0x150]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00aac71a
add esp, 0x20
pop edi
pop esi
pop ebp
ret

Function at 0xa63680
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push 0
push edi
call fcn.00a9dbd0
add esp, 0xc
push 2
push esi
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
pop edi
sbb eax, eax
and eax, 2
pop esi
ret
Function at 0xa68440
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0
push dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 4
mov dword [ebp + 0xc], esi
call fcn.00a9dbd0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa68511
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xa684f3
push 0
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0xa684f3
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0xa684f3
cmp esi, dword [ebp - 0xc]
jb 0xa684f3
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0xa68501
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0xa68511
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa687b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [eax], 0
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test esi, esi
jne 0xa687de
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xa687d5
sub esi, ecx
cmp esi, 0x3fffffff
ja 0xa68902
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
call dword [0xb0497c]
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
je 0xa68902
push ebx
cmp esi, 3
jb 0xa6888c
mov eax, 0xaaaaaaab
mul esi
mov ebx, edx
shr ebx, 1
movzx eax, byte [edi]
sub esi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0xa68825
test esi, esi
je 0xa688e9
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
and edx, 3
shl edx, 4
cmp esi, 1
jne 0xa688bd
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
jmp 0xa688e6
movzx eax, byte [edi + 1]
shr eax, 4
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov byte [ecx], 0
sub ecx, eax
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
pop edi
mov eax, 0x1b
pop esi
pop ebp
ret
Function at 0xa6c560
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 4], ecx
test edi, edi
je 0xa6c57d
cmp dword [edi], 0
jne 0xa6c58f
test esi, esi
je 0xa6c586
cmp dword [esi], 0
jne 0xa6c58f
test ebx, ebx
je 0xa6c5d7
cmp dword [ebx], 0
je 0xa6c5d7
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.00a95320
add esp, 8
test ebx, ebx
je 0xa6c5a9
cmp dword [ebx], 0
jne 0xa6c5ab
xor ebx, ebx
test esi, esi
je 0xa6c5b4
cmp dword [esi], 0
jne 0xa6c5b6
xor esi, esi
test edi, edi
je 0xa6c5bf
cmp dword [edi], 0
jne 0xa6c5c1
xor edi, edi
push eax
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00a6c510
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa75510
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
push eax
push 1
push 6
push edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa7556e
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00a79730
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00a61af0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a9b573
mov esp, ebp
pop ebp
ret

Function at 0xa75580
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x6dc], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa755db
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00a61af0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x678]
mov dword [ebp - 0x10], 1
call fcn.00a57ca0
mov ecx, dword [esi + 0x67c]
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call fcn.00a57ca0
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0xa75645
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00a61af0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00a9b573
mov esp, ebp
pop ebp
ret

Function at 0xa75820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xb0921c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
push esi
mov esi, ecx
test eax, eax
jne 0xa75877
push 3
push ecx
push eax
xor edx, edx
lea ecx, [eax + 6]
call fcn.00a651b0
add esp, 0xc
test al, al
je 0xa7586b
mov dword [0xb0921c], 2
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0xb0921c], 1
jmp 0xa7587c
cmp eax, 2
je 0xa758b8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0xa758a1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0xa758b8
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa75fd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0xb04008]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
mov esi, dword [ecx + 8]
lea eax, [esp + 0xc]
push edi
push 0x80
push 0
push eax
mov ebx, edx
mov dword [esp + 0x18], 0x80
call fcn.00a9dbd0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xa7606c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00a79730
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00a61a30
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
lea ecx, [esp + 0x18]
call fcn.00a58080
add esp, 8
test al, al
jne 0xa760d9
call fcn.00aa7697
mov esi, dword [eax]
call fcn.00aa7697
push ecx
lea edx, [esp + 0x94]
mov ecx, esi
mov edi, eax
call fcn.00a79730
add esp, 4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00a61a30
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret

Function at 0xa76380
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
mov ecx, dword [ecx + 8]
jne 0xa763a1
push dword [ecx + 0x14]
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0xa76c50
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov esi, dword [ebx + 8]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0xa76c8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esi + 0x9c]
mov ecx, edi
call fcn.00a75e20
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, edi
mov ecx, ebx
call fcn.00a75fd0
mov ecx, dword [esi + 0x98]
mov edx, 1
call fcn.00a986b0
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0xa77770
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, edx
mov edx, str.WWW_Authenticate:
push 0x11
call fcn.00a63540
add esp, 4
test eax, eax
je 0xa7779f
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x191
je 0xa777c2
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, esi
call fcn.00a63540
add esp, 4
test eax, eax
je 0xa77808
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x197
jne 0xa77808
mov ecx, esi
call fcn.00a6dde0
mov esi, eax
test esi, esi
jne 0xa777d8
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp ebx, 0x197
mov ecx, edi
push esi
sete dl
call fcn.00a6e810
add esp, 4
mov edi, eax
push esi
call dword [0xb04984]
add esp, 4
test edi, edi
je 0xa779ae
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0xf
mov edx, str.Content_Length:
mov ecx, esi
call fcn.00a63540
add esp, 4
test eax, eax
je 0xa77865
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa77845
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00a61af0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xf]
add eax, 0x200
xor edx, edx
push eax
push 0xa
call fcn.00a7a0d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, esi
call fcn.00a6eed0
add esp, 0xc
test al, al
jne 0xa779a4
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00a63540
add esp, 4
test eax, eax
je 0xa77909
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa778c2
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00a61af0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 7
push str.chunked
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00a6eed0
add esp, 0xc
test al, al
je 0xa779ae
push str.CONNECT_responded_chunked
push edi
call fcn.00a61af0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, edi
mov byte [eax + 0x20c], 1
call fcn.00a91310
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.00a6eed0
add esp, 0xc
test al, al
jne 0xa779a4
push 7
push str.HTTP_1.
push esi
call fcn.00aad390
add esp, 0xc
test eax, eax
jne 0xa779ae
mov al, byte [esi + 7]
cmp al, 0x30
je 0xa77944
cmp al, 0x31
jne 0xa779ae
cmp byte [esi + 8], 0x20
jne 0xa779ae
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xa779ae
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xa779ae
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0xa779ae
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0xa77976
cmp al, 0x39
jle 0xa779ae
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax + 0x20d], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret
Function at 0xa7a190
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, edx
push eax
mov esi, ecx
call fcn.00a624d0
add esp, 4
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
call fcn.00a63880
mov ecx, edi
mov ebx, eax
call fcn.00a63880
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0xa7a227
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.00a624d0
movups xmm0, xmmword [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00a62580
add esp, 0x20
test edx, edx
ja 0xa7a254
jb 0xa7a215
cmp eax, 0x3e8
ja 0xa7a254
push 1
call edi
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xa7a1e0
test ebx, ebx
je 0xa7a234
push ebx
call fcn.00aa11cf
add esp, 4
test esi, esi
je 0xa7a241
push esi
call fcn.00aa11cf
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa7a261
push ebx
call fcn.00aa11cf
add esp, 4
test esi, esi
je 0xa7a26e
push esi
call fcn.00aa11cf
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9b573
mov esp, ebp
pop ebp
ret