joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505a10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x30
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
test ecx, ecx
je 0x505afc
xor eax, eax
cmp ecx, 0x30
ja 0x505b2d
mov eax, dword [esp + 0x44]
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp], xmm0
xor esi, esi
cmp ecx, 8
jb 0x505ae0
xor esi, esi
cmp ecx, 0x10
jb 0x505ab8
mov esi, ecx
and esi, 0xfffffff0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [esp]
xorps xmm1, xmm0
movups xmmword [esp], xmm1
cmp esi, 0x10
je 0x505aaf
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [esp + 0x10]
xorps xmm1, xmm0
movups xmmword [esp + 0x10], xmm1
cmp esi, 0x20
je 0x505aaf
movups xmm0, xmmword [eax + 0x20]
movups xmm1, xmmword [esp + 0x20]
xorps xmm1, xmm0
movups xmmword [esp + 0x20], xmm1
cmp esi, ecx
je 0x505adc
test cl, 8
je 0x505ae0
mov edx, esi
mov esi, ecx
and esi, 0xfffffff8
nop
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx]
xorps xmm1, xmm0
movlps qword [esp + edx], xmm1
add edx, 8
cmp esi, edx
jne 0x505ac0
cmp esi, ecx
jne 0x505ae0
mov edx, esp
jmp 0x505afc
mov edx, esp
nop word cs:[eax + eax]
movzx ebx, byte [eax + esi]
xor byte [esp + esi], bl
inc esi
cmp ecx, esi
jne 0x505af0
mov esi, dword [esp + 0x3c]
mov ecx, esi
push 0x30
call fcn.00505b40
add esp, 4
test eax, eax
je 0x505b2b
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov eax, 1
jmp 0x505b2d
xor eax, eax
add esp, 0x30
pop esi
pop ebx
ret
Function at 0x506020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
cmp dword [esp + 8], 0x101
jae 0x50602f
jmp fcn.005414a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop word cs:[eax + eax]
push edi
push esi
push 0xc
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
xor esi, esi
test eax, eax
je 0x5060c4
mov edi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
push 0x14
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
mov ecx, edi
test eax, eax
je 0x5060b5
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 1
mov dword [edi], eax
push 0x14
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5060b0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 1
mov dword [edi + 4], eax
mov dword [edi + 8], 0x1f
mov esi, edi
jmp 0x5060c4
mov ecx, edi
add ecx, 4
mov dword [ecx], 0
push edi
call fcn.005060d0
add esp, 4
mov eax, esi
pop esi
pop edi
ret
Function at 0x50d150
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ebx, 1
test eax, eax
je 0x50d243
mov esi, edx
mov edi, ecx
push eax
push ecx
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x50d243
mov ebx, dword [esp + 0x18]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebx
push str._s_failed._nExpected:
push eax
call fcn.00520290
add esp, 0xc
xor ebp, ebp
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word cs:[eax + eax]
push 2
call ebx
add esp, 4
movzx ecx, byte [edi + ebp]
push ecx
push str._02x
push eax
call fcn.00520290
add esp, 0xc
inc ebp
cmp dword [esp + 0x14], ebp
jne 0x50d1b0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0xd
push str._nCalculated:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
xor edi, edi
mov ebp, dword [esp + 0x14]
nop word cs:[eax + eax]
push 2
call ebx
add esp, 4
movzx ecx, byte [esi + edi]
push ecx
push str._02x
push eax
call fcn.00520290
add esp, 0xc
inc edi
cmp ebp, edi
jne 0x50d200
push 2
call ebx
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call ebx
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x517330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 8], esi
jne 0x5174b3
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
cmp ebx, 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
jb 0x51739a
lea esi, [edx + 0x10]
nop dword [eax]
movups xmm0, xmmword [edi]
movaps xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esi]
xorps xmm0, xmmword [esp + 0x10]
movups xmmword [esi], xmm0
push dword [ebp + 8]
push esi
push esi
call dword [esp + 0xc]
add esp, 0xc
add edi, 0x10
add ebx, 0xfffffff0
cmp ebx, 0xf
ja 0x517370
test ebx, ebx
mov esi, dword [esp + 4]
je 0x517456
lea eax, [esi + 0x10]
xor ecx, ecx
cmp ebx, 8
jb 0x5173ec
lea edx, [edi + ebx]
cmp eax, edx
jae 0x5173c2
mov edx, ebx
or edx, 0x10
add edx, esi
cmp edi, edx
jb 0x5173ec
mov ecx, ebx
and ecx, 8
xor edx, edx
nop dword [eax]
movsd xmm0, qword [edi + edx]
movsd xmm1, qword [eax + edx]
xorps xmm1, xmm0
movlps qword [eax + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x5173d0
cmp ebx, ecx
je 0x51744a
mov edx, ecx
not edx
add edx, ebx
mov dword [esp + 8], edx
mov esi, ebx
and esi, 3
je 0x51740b
nop dword [eax]
movzx edx, byte [edi + ecx]
xor byte [eax + ecx], dl
inc ecx
dec esi
jne 0x517400
cmp dword [esp + 8], 3
mov esi, dword [esp + 4]
jb 0x51744a
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx]
xor byte [esi + ecx + 0x10], dl
movzx edx, byte [edi + ecx + 1]
xor byte [esi + ecx + 0x11], dl
movzx edx, byte [edi + ecx + 2]
xor byte [esi + ecx + 0x12], dl
movzx edx, byte [edi + ecx + 3]
xor byte [esi + ecx + 0x13], dl
add ecx, 4
cmp ebx, ecx
jne 0x517420
push dword [ebp + 8]
push eax
push eax
call dword [esp + 0xc]
add esp, 0xc
mov edx, dword [esp + 0xc]
cmp dword [edx + 0xc], 0
je 0x51747a
lea eax, [esi + 0xf]
xor ecx, ecx
nop word cs:[eax + eax]
mov byte [eax], 0
inc ecx
dec eax
cmp ecx, dword [edx + 0xc]
jb 0x517470
lea eax, [esp + 0x10]
push dword [ebp + 8]
push eax
push esi
call dword [esp + 0xc]
add esp, 0xc
movups xmm0, xmmword [esi + 0x10]
xorps xmm0, xmmword [esp + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5174ae
add esi, 0x10
push eax
push esi
push dword [ebp + 0xc]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x522363
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x522376
jmp 0x5224aa
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00554bd8
cmp eax, 1
jne 0x5224a2
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x5223ee
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x522400
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x52241a
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x522428
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x522458
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x52246f
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x522454
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x52248d
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x523436
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x5232ab
mov dword [esp], 0x5b3274
call fcn.005229fd
mov eax, dword [0x5b1238]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x52347d
mov eax, dword [ebp - 0x20]
jmp 0x5235c8
call fcn.0052226c
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x523494
cmp dword [ebp - 0x20], 0
jne 0x52349e
mov eax, 0
jmp 0x5235c8
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00522363
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x523570
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x5b1238]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x5235c5
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x52368c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00523436
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.005232ce
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x5236e5
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_longjmp
mov eax, dword [0x5b1238]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52380f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x523777
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x523734
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00522180
mov dword [ebp - 0x10], 0
mov eax, dword [0x5b1238]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x52380f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x5237a7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x52380f
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00522180
mov dword [ebp - 0x10], 0
mov eax, dword [0x5b1238]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax
Function at 0x52bc90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x52be3e
cmp byte [ebx], 0
je 0x52be08
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x52be20
test al, 0x10
je 0x52be08
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x52bcf4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test eax, eax
mov esi, eax
je 0x52be2f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x52bd83
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x52bd83
cmp al, 0x5c
je 0x52bd83
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x52bd85
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x52be00
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x52be00
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x52be00
Function at 0x5311b0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
movzx ebx, byte [ebp]
test bl, 1
mov dword [esp], ecx
je 0x5311cf
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x5311d2
inc ebp
shr ebx, 1
mov eax, ebx
mov ecx, ebp
mov edx, ebx
cmp ebx, 4
jb 0x531262
lea edx, [ebx - 4]
test dl, 4
jne 0x531211
imul eax, dword [ebp], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor eax, ecx
lea ecx, [ebp + 4]
mov esi, edx
cmp edx, 4
jae 0x53121c
jmp 0x531262
mov esi, ebx
mov ecx, ebp
mov eax, ebx
cmp edx, 4
jb 0x531262
mov edx, esi
nop
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
imul esi, dword [ecx + 4], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x531220
cmp edx, 1
je 0x531288
cmp edx, 2
mov edi, dword [esp]
je 0x53127d
cmp edx, 3
jne 0x531296
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x53128b
mov edi, dword [esp]
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x5313eb
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, ecx
shr eax, 1
and eax, 0x55555555
mov edx, ecx
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0xc], eax
cmp eax, 1
mov dword [esp + 4], ecx
ja 0x5312fd
lea edx, [ecx - 1]
and edx, esi
jmp 0x53130b
mov edx, esi
cmp esi, ecx
jb 0x53130b
mov eax, esi
xor edx, edx
div dword [esp + 4]
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x5313eb
mov edi, dword [eax]
test edi, edi
mov eax, 0
je 0x5313ed
mov dword [esp], edx
mov eax, dword [esp + 4]
dec eax
mov dword [esp + 8], eax
jmp 0x531356
and eax, dword [esp + 8]
cmp eax, edx
jne 0x5313eb
mov edi, dword [edi]
test edi, edi
je 0x5313eb
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x5313b0
movzx edx, byte [edi + 8]
mov eax, edx
shr eax, 1
mov ecx, eax
test dl, 1
je 0x53136f
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x53134c
lea ecx, [edi + 9]
test dl, 1
je 0x53137e
mov ecx, dword [edi + 0x10]
jne 0x5313d0
test ebx, ebx
je 0x5313e7
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x53134c
inc ecx
cmp eax, ecx
jne 0x531390
jmp 0x5313e7
cmp dword [esp + 0xc], 1
mov edx, dword [esp]
jbe 0x531340
mov ecx, dword [esp + 4]
cmp eax, ecx
jb 0x531344
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [esp]
jmp 0x531344
test ebx, ebx
je 0x5313e7
push ebx
push ebp
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x53134c
mov eax, edi
jmp 0x5313ed
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x53e9a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x53ead7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor esi, esi
mov ebx, 0
cmp eax, 8
jb 0x53eac0
xor ebx, ebx
mov esi, 0
cmp eax, 0x20
jb 0x53ea59
mov esi, eax
and esi, 0xffffffe0
pxor xmm0, xmm0
xor edi, edi
pxor xmm1, xmm1
nop word cs:[eax + eax]
movdqu xmm2, xmmword [edx + edi]
movdqu xmm3, xmmword [edx + edi + 0x10]
movdqu xmm4, xmmword [ecx + edi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [ecx + edi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add edi, 0x20
cmp esi, edi
jne 0x53e9f0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd ebx, xmm1
cmp esi, eax
je 0x53ead2
test al, 0x18
je 0x53eac0
mov edi, esi
mov esi, eax
and esi, 0xfffffff8
movzx ebx, bl
movd xmm0, ebx
nop word [eax + eax]
movq xmm1, qword [edx + edi]
movq xmm2, qword [ecx + edi]
pxor xmm2, xmm1
por xmm0, xmm2
add edi, 8
cmp esi, edi
jne 0x53ea70
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd ebx, xmm1
cmp esi, eax
je 0x53ead2
nop word cs:[eax + eax]
mov edi, eax
movzx eax, byte [ecx + esi]
xor al, byte [edx + esi]
or bl, al
mov eax, edi
inc esi
cmp edi, esi
jne 0x53eac0
movzx eax, bl
jmp 0x53ead9
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x53eae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x53eb02
mov ecx, dword [esp + 0x10]
mov edx, edi
and edx, 3
cmp edi, 4
jae 0x53eb09
mov eax, 0x811c9dc5
xor esi, esi
jmp 0x53eb5a
mov eax, 0x811c9dc5
jmp 0x53eb81
and edi, 0xfffffffc
mov eax, 0x811c9dc5
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, byte [ecx + esi]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 1]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 2]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + esi + 3]
xor ebx, eax
imul eax, ebx, 0x1000193
add esi, 4
cmp edi, esi
jne 0x53eb20
test edx, edx
je 0x53eb81
add ecx, esi
xor esi, esi
nop word cs:[eax + eax]
movzx edi, byte [ecx + esi]
xor edi, eax
imul eax, edi, 0x1000193
inc esi
cmp edx, esi
jne 0x53eb70
pop esi
pop edi
pop ebx
ret
Function at 0x53eb90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x53ebb9
mov ecx, eax
mov edx, eax
and edx, 3
cmp eax, 4
jae 0x53ebc0
mov eax, 0x811c9dc5
xor edi, edi
jmp 0x53ec0a
mov eax, 0x811c9dc5
jmp 0x53ec31
and ecx, 0xfffffffc
mov eax, 0x811c9dc5
xor edi, edi
nop word [eax + eax]
movzx ebx, byte [esi + edi]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [esi + edi + 1]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [esi + edi + 2]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [esi + edi + 3]
xor ebx, eax
imul eax, ebx, 0x1000193
add edi, 4
cmp ecx, edi
jne 0x53ebd0
test edx, edx
je 0x53ec31
add esi, edi
xor ecx, ecx
nop word cs:[eax + eax]
movzx edi, byte [esi + ecx]
xor edi, eax
imul eax, edi, 0x1000193
inc ecx
cmp edx, ecx
jne 0x53ec20
pop esi
pop edi
pop ebx
ret

Function at 0x542eb0
Capabilities:
Initialize winsock library

Disassembly:
push esi
sub esp, 0x190
mov al, 1
cmp byte [0x5b3340], 0
jne 0x542eec
mov esi, esp
push 0x190
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
sete byte [0x5b3340]
add esp, 0x190
pop esi
ret

Function at 0x543010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x543080
movzx eax, word [esp + 0x12]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov esp, ebp
pop ebp
ret