joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476c90
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x62da04], 0
je 0x476d01
push dword [0x62da08]
call fcn.00476a50
add esp, 4
test eax, eax
je 0x476cd5
cmp dword [eax + 0x84], 1
jne 0x476cd5
push dword [eax + 0x10]
push dword [eax + 0xc]
call fcn.00475b00
mov eax, dword [0x62da08]
add esp, 8
test eax, eax
je 0x476cd5
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.00477200
mov eax, dword [0x62da40]
test eax, eax
je 0x476d01
push str.QueueUserAPCEx_Fini
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x476cf5
call eax
push dword [0x62da40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
ret

Function at 0x476d10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x62da04], 0
je 0x476dd9
push esi
push dword [0x62da08]
call fcn.00476a50
mov esi, eax
add esp, 4
test esi, esi
je 0x476dcf
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.004772a0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00476020
lea eax, [ebp - 0x14]
mov dword [esi + 0x18], 7
push eax
call fcn.004760b0
mov eax, dword [esi + 0x7c]
add esp, 0x14
test eax, eax
je 0x476da5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.004762e0
mov eax, dword [ebp - 4]
add esp, 8
or ecx, 0xffffffff
mov eax, dword [eax + 0x18]
add eax, 4
xchg dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
call edi
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x476d75
pop edi
cmp dword [esi + 0x84], 1
jne 0x476dcf
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.00475b00
mov eax, dword [0x62da08]
add esp, 8
test eax, eax
je 0x476dcf
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x476e70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0x62da08]
call fcn.00476a50
mov edi, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [esi + 0x18], 6
cmp edi, 2
je 0x476ea2
cmp edi, 1
je 0x476ea2
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
test byte [esi + 0x94], 1
je 0x476ed0
mov eax, edi
xor ebx, ebx
sub eax, 1
je 0x476ebe
sub eax, 1
jne 0x476ec1
or ebx, 0xffffffff
jmp 0x476ec1
mov ebx, dword [esi + 0x28]
call fcn.00476d10
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
push 1
call fcn.00476e50
add esp, 4
lea eax, [esi + 0x38]
push edi
push eax
call sub.VCRUNTIME140.dll_longjmp
int3
Function at 0x4772a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4773cf
push esi
push edi
xor eax, eax
lea esi, [ebx + 0x1c]
nop dword [eax]
inc eax
xor edi, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp + 0xc], edi
call fcn.00476020
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004760b0
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00476020
mov esi, dword [ebx + 0x34]
add esp, 0x14
test esi, esi
je 0x4773b3
nop word [eax + eax]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
add eax, 8
push eax
call fcn.00476170
add esp, 8
cmp eax, 0x10
jne 0x47732e
lea eax, [ebp - 0x1c]
push eax
call fcn.004760b0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x477395
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push dword [edi]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp - 8]
test edi, edi
je 0x47737a
cmp dword [ebp - 4], 4
jg 0x47737a
lea eax, [ebp - 0x1c]
push eax
call fcn.004760b0
lea eax, [ebp - 0x2c]
push eax
call fcn.004760b0
inc dword [ebp + 0xc]
push edi
call dword [ebp - 0xc]
jmp 0x477392
push esi
call fcn.004775b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004760b0
lea eax, [ebp - 0x2c]
push eax
call fcn.004760b0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.00476020
mov esi, dword [ebx + 0x34]
add esp, 8
test esi, esi
jne 0x477300
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.004760b0
mov eax, dword [ebp - 4]
lea esi, [ebx + 0x1c]
add esp, 4
test edi, edi
jne 0x4772c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477490
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4774b2
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea eax, [esi + 0xc]
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4774da
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], 0
mov eax, 0xb
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4774f5
mov dword [esi + 4], ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], 0
mov dword [ecx], esi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x477e80
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x62aabc]
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], 0x10
lea edx, [ebp + 8]
mov esi, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp esi, 1
jb 0x477ef7
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
jne 0x477eec
movzx eax, byte [ecx]
cmp al, 0x5c
jne 0x477ee3
xor eax, eax
jmp 0x477ee8
sbb eax, eax
or eax, 1
test eax, eax
je 0x477ef3
cmp ecx, edx
je 0x477ef7
dec ecx
jmp 0x477ed3
sub ecx, edx
jmp 0x477efa
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 0x478042
sub esi, ecx
lea eax, [ebp + 8]
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [ebp + 0x1c], 0x10
push edi
cmovae eax, dword [ebp + 8]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004076f0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea edi, [ebp - 0x28]
mov ecx, 0x1505
cmovae edx, dword [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
add edx, dword [ebp - 0x18]
cmp edi, edx
je 0x477f66
mov eax, ecx
shl ecx, 5
add ecx, eax
movsx eax, byte [edi]
inc edi
add ecx, eax
cmp edi, edx
jne 0x477f55
mov eax, 0x88888889
mul ecx
shr edx, 3
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
push dword [ecx*4 + 0x5640c8]
push str.e_0__dm
call fcn.004284d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x55972c
call fcn.004284d0
push str.e_0m
call fcn.004284d0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 0x10
jb 0x477fdd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x477fd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478015
push ecx
push edx
call fcn.0054f9fc
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, 0x10
jb 0x478025
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47801b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47801b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0054f9fc
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.0054f742
mov esp, ebp
pop ebp
ret 0x18
call fcn.00410920
int3
Function at 0x47f130
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 0x47f17b
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 0x47f1d7
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 0x47f1be
mov edx, dword [edx + 0x18]
mov ecx, edi
movzx eax, word [edx]
cmp eax, dword [ebp + 8]
jne 0x47f1be
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 0x47f1c1
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 0x47f190
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 0x47f1f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp + 8], 0x10
cmp dword [0x62dac4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
jg 0x47f210
push 0x62daac
call esi
push 0x62daac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x62dac4]
test eax, eax
jg 0x47f36b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x62dac8], eax
cmp eax, 0xffffffff
je 0x47f34d
push 0x62da94
call esi
mov ecx, dword [0x5649b8]
xor esi, esi
mov edx, 1
test ecx, ecx
je 0x47f27a
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f257
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 + 0x5649b8]
test ecx, ecx
jne 0x47f254
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [0x62dae0], esi
test esi, esi
je 0x47f34d
push ebx
xor ebx, ebx
mov byte [esi], 0
cmp dword [0x5649b8], ebx
je 0x47f33c
mov edx, 0x5649b8
nop dword [eax + eax]
test ebx, ebx
jle 0x47f311
lea eax, [esi - 1]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x47f2b7
mov cx, word [0x55baac]
mov word [eax], cx
mov cl, byte [0x55baae]
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 0x47f2e0
sub edx, ecx
lea edi, [esi - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47f2f0
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 [0x62dae0]
jmp 0x47f323
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 0x47f315
inc ebx
lea eax, [ebx + ebx*2]
cmp dword [eax*8 + 0x5649b8], 0
lea edx, [eax*8 + 0x5649b8]
jne 0x47f2b0
mov eax, dword [0x62dac4]
pop ebx
test eax, eax
jg 0x47f36b
mov eax, 1
jmp 0x47f36c
push 0x62daac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x62daac
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
inc eax
push 0x62daac
mov dword [0x62dac4], 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 0x482840
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 [0x62dac8]
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 0x482879
nop dword [eax]
lea edx, [ecx + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jne 0x482870
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 0x482914
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
je 0x4828fb
nop
cmp eax, edi
je 0x4828d6
lea esi, [eax + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4828c0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x482909
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 0x482be0
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 0x482c41
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 0x482c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0xc]
mov edi, eax
add ebx, 0x4a8
jmp 0x482cc3
xor edi, edi
test esi, esi
jne 0x482c33
test ebx, ebx
jg 0x482cad
mov ebx, dword [ebp + 0xc]
add ebx, 0x4a8
jmp 0x482cc3
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [ebp + 0x18]
lea ebx, [esi + 0x4a8]
mulsd xmm0, qword [0x55a7e8]
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.0047f650
mov ecx, dword [ebx]
add esp, 0x10
cmp dword [ecx + 0x14], edi
jne 0x482cad
test eax, eax
jle 0x482cbf
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 0x482cb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x482cad
xor edi, edi
jmp 0x482cc3
js 0x482cad
xor esi, esi
mov eax, dword [ebx]
cmp dword [eax + 0x14], 0
jne 0x482cad
test esi, esi
jg 0x482cfc
jne 0x482ce1
cmp dword [ebp + 0x14], 0
je 0x482cfc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x482cd7
cmp edi, 0x2733
je 0x482cad
cmp edi, 0x274c
jne 0x482cad
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 0x483f50
Capabilities:
Encode data using base64
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push dword [0x627e2c]
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.00480840
add esp, 0x1c
cmp dword [ebp - 0x104], 0
je 0x483fb9
mov dword [ebx + 0x51c], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
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 0x484008
push esi
push edi
sub ecx, edx
lea eax, [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0047b440
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00479ca0
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 0x484072
xor edx, edx
jmp 0x484075
movzx edx, byte [ecx]
add esi, ecx
mov dword [ebp - 0x10c], esi
cmp esi, 0x14
jb 0x484086
xor esi, esi
jmp 0x48408a
movzx esi, byte [ecx + 1]
mov edi, dword [0x627e1c]
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 [0x627e1c]
mov byte [ebp + eax - 0x2b], cl
add eax, 2
cmp edi, 0x14
jae 0x4840dd
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 0x4840f1
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 0x484060
test al, 3
je 0x48412a
nop dword [eax]
mov byte [ebp + eax - 0x2c], 0x3d
inc eax
test al, 3
jne 0x484120
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.0047f990
mov ecx, dword [esi + 0x284]
mov eax, 0x559e24
test ecx, ecx
mov edx, str.Sec_WebSocket_Protocol:__s_r_n_r_n
cmovne eax, ecx
push eax
mov eax, 0x55972c
cmovne eax, edx
push eax
push esi
call fcn.0047f990
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x485ed0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557f23
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x62aabc]
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.0054f9cc
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.00443df0
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x4860a5
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
mov edx, ebx
jb 0x485f84
mov edx, dword [ebx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [ebx + 0x10], ecx
jbe 0x485fa2
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x485f90
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push edi
push ebx
push eax
call fcn.00441f60
cmp dword [ebp - 0x20], 0
jne 0x486097
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
je 0x4860bb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push 0x38
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.0054f9cc
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.00409bc0
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x18]
add ecx, 0x18
mov byte [ebp - 4], 3
push eax
call fcn.00409bc0
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 + 0x619ef0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x619ef0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
seta al
test al, al
je 0x48607b
mov ecx, ebx
call fcn.004447f0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00441f60
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x48607e
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
push ecx
push edi
mov ecx, ebx
call fcn.00444700
mov byte [ebp - 4], 1
jmp 0x48609a
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x1c]
jne 0x485f77
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 0x4862c0
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], 0x10
mov edi, dword [edx + 0x10]
jb 0x4862d3
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x4862f1
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x4862e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 4