joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f650
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9cbd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 0xf
lea edx, [ebp + 8]
mov esi, dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp esi, 1
jb 0x45f6c7
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
jne 0x45f6bc
movzx eax, byte [ecx]
cmp al, 0x5c
jne 0x45f6b3
xor eax, eax
jmp 0x45f6b8
sbb eax, eax
or eax, 1
test eax, eax
je 0x45f6c3
cmp ecx, edx
je 0x45f6c7
dec ecx
jmp 0x45f6a3
sub ecx, edx
jmp 0x45f6ca
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp esi, ecx
jb 0x45f812
sub esi, ecx
lea eax, [ebp + 8]
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [ebp + 0x1c], 0xf
push edi
cmova eax, dword [ebp + 8]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00409320
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
lea edi, [ebp - 0x28]
mov ecx, 0x1505
cmova edx, dword [ebp - 0x28]
cmova edi, dword [ebp - 0x28]
add edx, dword [ebp - 0x18]
cmp edi, edx
je 0x45f736
mov eax, ecx
shl ecx, 5
add ecx, eax
movsx eax, byte [edi]
inc edi
add ecx, eax
cmp edi, edx
jne 0x45f725
mov eax, 0x88888889
mul ecx
shr edx, 3
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
push dword [ecx*4 + 0x4e5068]
push str.e_0__dm
call fcn.00401410
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 0x4dc7f0
call fcn.00401410
push str.e_0m
call fcn.00401410
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 0xf
jbe 0x45f7ad
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45f7a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f7e5
push ecx
push edx
call fcn.004d42b1
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x45f7f5
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45f7eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45f7eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004d42b1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret 0x18
call fcn.00430b40
int3
Function at 0x463180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004d3ef0
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4631ac
lea eax, [esi + 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x4a8]
mov eax, ecx
mov dword [esi + 0x51c], 1
mov edx, dword [ecx + 0x7c98]
test edx, edx
je 0x4631d9
cmp dword [ecx], 1
jne 0x4631d9
push esi
call edx
mov eax, dword [esi + 0x4a8]
add esp, 4
mov ecx, dword [esi + 0x4b4]
mov dword [esi + 0x78], 0
cmp ecx, 0xffffffff
je 0x4633a5
push edi
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
push eax
push 0x8004667e
push ecx
mov edi, 0xfffffffe
mov dword [ebp - 0x1014], 4
mov dword [ebp - 0x1010], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 1
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_shutdown]
nop dword [eax]
nop dword [eax + eax]
movsd xmm0, qword [0x4df170]
lea eax, [ebp - 0x1004]
sub esp, 8
movsd qword [esp], xmm0
push 0x1000
push eax
push esi
push 0
call fcn.0046a3c0
add esp, 0x18
test eax, eax
jg 0x463240
mov eax, dword [esi + 0x4ac]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4632b4
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edi, eax
add esp, 4
test edi, edi
js 0x4632b4
mov eax, 1
lea ecx, [edi + 0x3e7]
mov word [ebp - 0x1008], ax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebp - 0x1006], ax
jmp 0x4632c5
xor eax, eax
mov dword [ebp - 0x1008], eax
cmp edi, 0xffffffff
jl 0x463388
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x1007
push 0xffff
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x46331c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push str.close_socket_gracefully
push str._s:_getsockopt_SOL_SOCKET_SO_ERROR__failed:__s
push 0x4605
push str.close_socket_gracefully
push 0
push esi
call fcn.0040c9b0
add esp, 0x20
jmp 0x463388
cmp dword [ebp - 0x100c], 0x2746
je 0x463388
push 4
lea eax, [ebp - 0x1008]
push eax
push 0x80
push 0xffff
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x463388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
movzx eax, word [ebp - 0x1006]
push eax
movzx eax, word [ebp - 0x1008]
push eax
push str.close_socket_gracefully
push str._s:_setsockopt_SOL_SOCKET_SO_LINGER__i__i___failed:__s
push 0x461c
push str.close_socket_gracefully
push 0
push esi
call fcn.0040c9b0
add esp, 0x28
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x4a8]
mov dword [esi + 0x4b4], 0xffffffff
pop edi
mov ecx, dword [eax + 0x7c9c]
test ecx, ecx
je 0x4633ba
cmp dword [eax], 1
jne 0x4633ba
push esi
call ecx
add esp, 4
lea eax, [esi + 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x466920
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
xor esi, esi
mov ecx, 4
cmp dword [ebp + 0x18], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
cmove eax, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0xc]
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x46696b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4669c7
push ebx
mov eax, edi
mov edx, edi
mov ecx, edi
mov ebx, edi
nop
mov esi, dword [eax + 0x10]
cmp dword [ebp + 0x14], esi
jb 0x4669ae
mov edx, dword [edx + 0x18]
mov ecx, edi
movzx eax, word [edx]
cmp eax, dword [ebp + 8]
jne 0x4669ae
push esi
push edx
push dword [ebp + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov esi, 1
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, ebx
jmp 0x4669b1
mov esi, dword [ebp - 4]
mov eax, dword [ecx + 0x1c]
mov edx, eax
mov dword [ebp + 0x18], eax
mov ecx, eax
mov edi, eax
mov ebx, eax
test eax, eax
jne 0x466980
mov edi, dword [ebp - 0xc]
pop ebx
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4669e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp + 8], 0x10
cmp dword [0x520a2c], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
jg 0x466a00
push 0x520a14
call esi
push 0x520a14
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x520a2c]
test eax, eax
jg 0x466b5b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x520a30], eax
cmp eax, 0xffffffff
je 0x466b3d
push 0x5209fc
call esi
mov ecx, dword [0x4e5968]
xor esi, esi
mov edx, 1
test ecx, ecx
je 0x466a6a
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466a47
sub ecx, edi
test esi, esi
lea eax, [ecx + edx]
lea edx, [eax + 2]
cmovle edx, eax
inc esi
lea eax, [esi + esi*2]
mov ecx, dword [eax*8 + 0x4e5968]
test ecx, ecx
jne 0x466a44
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [0x520a48], esi
test esi, esi
je 0x466b3d
push ebx
xor ebx, ebx
mov byte [esi], 0
cmp dword [0x4e5968], ebx
je 0x466b2c
mov edx, 0x4e5968
nop dword [eax + eax]
test ebx, ebx
jle 0x466b01
lea eax, [esi - 1]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x466aa7
mov cx, word [0x4ddcd4]
mov word [eax], cx
mov cl, byte [0x4ddcd6]
mov byte [eax + 2], cl
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x466ad0
sub edx, ecx
lea edi, [esi - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x466ae0
mov esi, dword [ebp - 4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x520a48]
jmp 0x466b13
mov ecx, dword [edx]
mov edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x466b05
inc ebx
lea eax, [ebx + ebx*2]
cmp dword [eax*8 + 0x4e5968], 0
lea edx, [eax*8 + 0x4e5968]
jne 0x466aa0
mov eax, dword [0x520a2c]
pop ebx
test eax, eax
jg 0x466b5b
mov eax, 1
jmp 0x466b5c
push 0x520a14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x520a14
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
inc eax
push 0x520a14
mov dword [0x520a2c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x520a30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x18]
mov edx, esi
mov ecx, dword [edx]
test ecx, ecx
je 0x46a059
nop dword [eax]
lea edx, [ecx + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jne 0x46a050
mov dword [edi + 0x10], 0
push ebx
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 8], ecx
test eax, eax
je 0x46a0f4
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
je 0x46a0db
nop
cmp eax, edi
je 0x46a0b6
lea esi, [eax + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x46a0a0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x46a0e9
mov eax, dword [edi + 0x10]
push ebx
mov dword [esi], eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
dec eax
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 8], 1
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
dec eax
pop ebx
pop ebp
ret
Function at 0x46a3c0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
test eax, eax
je 0x46a421
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x46a409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0xc]
mov edi, eax
add ebx, 0x4a8
jmp 0x46a4a3
xor edi, edi
test esi, esi
jne 0x46a413
test ebx, ebx
jg 0x46a48d
mov ebx, dword [ebp + 0xc]
add ebx, 0x4a8
jmp 0x46a4a3
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [ebp + 0x18]
lea ebx, [esi + 0x4a8]
mulsd xmm0, qword [0x4df6c8]
mov eax, dword [esi + 0x4b4]
mov dword [ebp - 8], eax
mov eax, 1
mov word [ebp - 4], ax
mov eax, dword [ebx]
add eax, 0x14
push eax
cvttsd2si eax, xmm0
push eax
lea eax, [ebp - 8]
push 1
push eax
call fcn.00466e40
mov ecx, dword [ebx]
add esp, 0x10
cmp dword [ecx + 0x14], edi
jne 0x46a48d
test eax, eax
jle 0x46a49f
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x46a499
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x46a48d
xor edi, edi
jmp 0x46a4a3
js 0x46a48d
xor esi, esi
mov eax, dword [ebx]
cmp dword [eax + 0x14], 0
jne 0x46a48d
test esi, esi
jg 0x46a4dc
jne 0x46a4c1
cmp dword [ebp + 0x14], 0
je 0x46a4dc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x46a4b7
cmp edi, 0x2733
je 0x46a48d
cmp edi, 0x274c
jne 0x46a48d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b710
Capabilities:
Encode data using base64
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push dword [0x51d968]
mov ebx, dword [ebp + 8]
push eax
push str._s_s
push 0x64
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x114], ebx
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.004680c0
add esp, 0x1c
cmp dword [ebp - 0x104], 0
je 0x46b779
mov dword [ebx + 0x51c], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x100], 0x67452301
mov dword [ebp - 0xfc], 0xefcdab89
lea edx, [ecx + 1]
mov dword [ebp - 0xf8], 0x98badcfe
mov dword [ebp - 0xf4], 0x10325476
mov dword [ebp - 0xf0], 0xc3d2e1f0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xec], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b7c8
push esi
push edi
sub ecx, edx
lea eax, [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00462c60
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004614c0
xor ecx, ecx
lea edx, [ebp - 0x3f]
mov esi, 2
mov dword [ebp - 0x108], ecx
add esp, 0x14
xor eax, eax
mov edi, 1
sub esi, edx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x110], esi
nop
lea ebx, [ebp - 0x3f]
add ecx, ebx
movzx ebx, byte [ecx - 1]
cmp edi, 0x14
jb 0x46b832
xor edx, edx
jmp 0x46b835
movzx edx, byte [ecx]
add esi, ecx
mov dword [ebp - 0x10c], esi
cmp esi, 0x14
jb 0x46b846
xor esi, esi
jmp 0x46b84a
movzx esi, byte [ecx + 1]
mov edi, dword [0x51d958]
mov ecx, ebx
shr ecx, 2
and ebx, 3
shl ebx, 4
movzx ecx, byte [ecx + edi]
mov byte [ebp + eax - 0x2c], cl
mov ecx, edx
shr ecx, 4
or ebx, ecx
mov ecx, edi
mov edi, dword [ebp - 0x104]
movzx ecx, byte [ebx + ecx]
mov ebx, dword [0x51d958]
mov byte [ebp + eax - 0x2b], cl
add eax, 2
cmp edi, 0x14
jae 0x46b89d
and edx, 0xf
mov ecx, esi
shr ecx, 6
shl edx, 2
or edx, ecx
mov cl, byte [edx + ebx]
mov byte [ebp + eax - 0x2c], cl
inc eax
cmp dword [ebp - 0x10c], 0x14
jae 0x46b8b1
and esi, 0x3f
mov cl, byte [esi + ebx]
mov byte [ebp + eax - 0x2c], cl
inc eax
mov ecx, dword [ebp - 0x108]
add edi, 3
mov esi, dword [ebp - 0x110]
add ecx, 3
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], edi
cmp edi, 0x15
jb 0x46b820
test al, 3
je 0x46b8ea
nop dword [eax]
mov byte [ebp + eax - 0x2c], 0x3d
inc eax
test al, 3
jne 0x46b8e0
mov esi, dword [ebp - 0x114]
mov byte [ebp + eax - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push str.HTTP_1.1_101_Switching_Protocols_r_nUpgrade:_websocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:__s_r_n
push esi
call fcn.00467190
mov ecx, dword [esi + 0x284]
mov eax, 0x4dd120
test ecx, ecx
mov edx, str.Sec_WebSocket_Protocol:__s_r_n_r_n
cmovne eax, ecx
push eax
mov eax, 0x4dc7f0
cmovne eax, edx
push eax
push esi
call fcn.00467190
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x46d6e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da003
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x51df40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
lea edi, [ebx + 4]
push 0x38
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004d4281
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push dword [edi]
sar eax, 2
push eax
mov byte [ebp - 4], 1
call fcn.0042ab00
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x46d8b5
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
mov edx, ebx
jbe 0x46d794
mov edx, dword [ebx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [ebx + 0x10], ecx
jbe 0x46d7b2
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x46d7a0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push edi
push ebx
push eax
call fcn.00428b90
cmp dword [ebp - 0x20], 0
jne 0x46d8a7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
je 0x46d8cb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push 0x38
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.004d4281
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
add eax, 8
mov ecx, eax
mov dword [ebp + 8], eax
push ebx
call fcn.0040add0
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x18]
add ecx, 0x18
mov byte [ebp - 4], 3
push eax
call fcn.0040add0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ebx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4df6d0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4df6d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
seta al
test al, al
je 0x46d88b
mov ecx, ebx
call fcn.0042b500
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00428b90
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x46d88e
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
push ecx
push edi
mov ecx, ebx
call fcn.0042b410
mov byte [ebp - 4], 1
jmp 0x46d8aa
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x1c]
jne 0x46d787
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x46dad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, dword [edx + 0x10]
jbe 0x46dae3
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x46db01
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x46daf0
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x474ad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x474b01
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x474af0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x478df0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da9fd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x38], xmm0
push 0x4de784
push eax
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0x502
call fcn.00404950
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 0xf
jbe 0x478e69
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x478eee
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], eax
push dword [edx + 0x10]
push dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x478f09
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 1
push 6
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret 8
push str.Resolve_failed
lea ecx, [ebp - 0x54]
call fcn.004309c0
push 0x516938
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [0x5209ac]
mov eax, dword [eax]
mov edi, dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, ebx
mov esi, dword [eax]
call fcn.0046cb40
push esi
push eax
push str.Could_not_connect_to__s._Error__d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.http
call fcn.0040ae80
push 0x49
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_bellmainioincludeTCPSocket.h
call fcn.0040ae80
push dword [0x5209ac]
mov dword [ebp - 4], 0xffffffff
call edi
add esp, 0x44
lea ecx, [ebp - 0x60]
push str.Resolve_failed
call fcn.004309c0
push 0x516938
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x47e020
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add edx, 0xc0
push esi
push edi
mov ecx, ebx
mov edi, 4
nop dword [eax]
mov esi, 4
mov al, byte [edx]
inc edx
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x47e045
sub edi, 1
jne 0x47e040
mov byte [ebp + 0xb], 0xb
nop dword [eax]
movzx eax, byte [ebx + 9]
mov esi, ebx
mov cl, byte [ebx + 0xd]
mov edi, 4
mov byte [ebx + 0xd], al
movzx eax, byte [ebx + 5]
mov byte [ebx + 9], al
movzx eax, byte [ebx + 1]
mov byte [ebx + 5], al
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 1], cl
mov cl, byte [ebx + 2]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 0xe]
mov byte [ebx + 0xa], cl
mov cl, byte [ebx + 6]
mov byte [ebx + 6], al
movzx eax, byte [ebx + 7]
mov byte [ebx + 0xe], cl
mov cl, byte [ebx + 3]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 7], al
movzx eax, byte [ebx + 0xf]
mov byte [ebx + 0xb], al
mov byte [ebx + 0xf], cl
nop word [eax + eax]
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x4e81e8]
mov byte [ecx - 4], al
sub edx, 1
jne 0x47e0d0
inc esi
sub edi, 1
jne 0x47e0c0
mov ch, byte [ebp + 0xb]
mov eax, ebx
movzx edx, ch
mov edi, 4
shl edx, 4
add edx, dword [ebp + 0xc]
nop dword [eax]
mov esi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x47e105
sub edi, 1
jne 0x47e100
test ch, ch
je 0x47e12a
push ebx
call fcn.0047e130
add esp, 4
dec byte [ebp + 0xb]
jmp 0x47e060
pop edi
pop esi
pop ebx
pop ebp
ret