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

Disassembly:
jmp 0x1400fb1fc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140148208]
mov ecx, 5
lea r8, [0x140148200]
lea rdx, [0x140143358]
call fcn.1400faa2c
mov rdi, rax
test rax, rax
je 0x1400fb23e
mov rcx, rax
call qword [section..00cfg]
mov ecx, ebx
call rdi
jmp 0x1400fb246
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000438b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400fb268
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140148218]
mov edi, ecx
lea rdx, [0x140143378]
mov ecx, 6
lea r8, [0x140148210]
call fcn.1400faa2c
mov rsi, rax
test rax, rax
je 0x1400fb2b5
mov rcx, rax
call qword [section..00cfg]
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400fb2c0
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400043ef
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400f3590
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov r13, rdx
movsxd rsi, ecx
cmp esi, 0xfffffffe
jne 0x1400f35cc
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], 9
jmp 0x1400f3691
test ecx, ecx
js 0x1400f3679
cmp esi, dword [0x14018557c]
jae 0x1400f3679
mov r14, rsi
mov r12, rsi
sar r12, 6
lea rax, [0x1401850b0]
and r14d, 0x3f
shl r14, 6
mov rax, qword [rax + r12*8]
movzx ecx, byte [rax + r14 + 0x38]
and ecx, 1
je 0x1400f3679
xor eax, eax
cmp r8d, 0x7fffffff
setbe al
test eax, eax
jne 0x1400f362d
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], socket
jmp 0x1400f368c
mov ecx, esi
call fcn.140003e22
or ebx, 0xffffffff
lea rax, [0x1401850b0]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 1
jne 0x1400f365f
call fcn.1400033cd
mov dword [rax], 9
call fcn.140004e0d
and dword [rax], 0
jmp 0x1400f366e
mov r8d, r15d
mov rdx, r13
mov ecx, esi
call fcn.1400024a5
mov ebx, eax
mov ecx, esi
call fcn.1400017a8
mov eax, ebx
jmp 0x1400f3694
call fcn.140004e0d
and dword [rax], 0
call fcn.1400033cd
mov dword [rax], 9
call fcn.140004845
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000456b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400fb124
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1401481e8]
mov ecx, 3
lea r8, [0x1401481e0]
lea rdx, [0x140143318]
call fcn.1400faa2c
mov rbx, rax
test rax, rax
je 0x1400fb168
mov rcx, rax
call qword [section..00cfg]
mov rcx, rdi
call rbx
jmp 0x1400fb16e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400046f1
Capabilities:
Get common file path

Disassembly:
jmp 0x14007d680
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400033e1
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14007d789
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14007d726
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x14007d754
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.140004142
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x14007d767
Function at 0x14000484a
Capabilities:
Get common file path
Query environment variable

Disassembly:
jmp 0x14007de90
sub rsp, 0x588
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x570], rax
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x350]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x104
call fcn.1400033e1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
jne 0x14007df57
or r9, 0xffffffffffffffff
lea r8, [0x14013cae0]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.140003c4c
mov edx, 0x104
lea rcx, [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x14007df8b
or r9, 0xffffffffffffffff
lea r8, [0x14013caf0]
mov edx, 0x104
lea rcx, [rsp + 0x350]
call fcn.140003c4c
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, eax
cmp rax, 1
jbe 0x14007dfbf
dec rax
cmp rax, 0x104
jae 0x14007e106
mov byte [rsp + rax + 0x130], 0
jmp 0x14007dfdc
or r9, 0xffffffffffffffff
lea r8, [0x14013cb08]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.140003c4c
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14013cb20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14007e02e
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14013cb30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14007e02e
or r9, 0xffffffffffffffff
lea r8, [0x14013cb40]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003c4c
lea r9, [rsp + 0x20]
mov ecx, 0x104
lea r8, [0x14013cb58]
lea rdx, [rsp + 0x460]
call fcn.14007d340
mov r9d, 0x400
lea r8, [rsp + 0x240]
lea rdx, [0x14013cba0]
lea rcx, [0x14016be60]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x350]
lea rdx, [0x14013cbb0]
lea rcx, [0x14016be60]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x130]
lea rdx, [0x14013cbbc]
lea rcx, [0x14016be60]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x20]
lea rdx, [0x14013cbc8]
lea rcx, [0x14016be60]
call fcn.140004c5f
mov r9d, 0x400
lea r8, [rsp + 0x460]
lea rdx, [0x14013cbdc]
lea rcx, [0x14016be60]
call fcn.140004c5f
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x588
ret
call fcn.140002275
int3
Function at 0x1400049cb
Capabilities:
Get common file path

Disassembly:
jmp 0x14007d7e0
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400033e1
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14007d8e9
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14007d886
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x14007d8b4
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.140004142
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x14007d8c7

Function at 0x140004a6b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e4d88
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400e49f0
Function at 0x140004be7
Capabilities:
Write file on windows

Disassembly:
jmp 0x140083470
jmp 0x1400828c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140082915
mov rcx, qword [rcx]
test rcx, rcx
je 0x140082915
call fcn.14000363e
test eax, eax
je 0x140082915
cmp qword [rbx + 0x248], 0
je 0x140082915
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400038be
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008349d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x1400834b8
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x1400834e2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x258], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x250]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140083548
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140083546
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140004e58
Capabilities:
Print debug messages

Disassembly:
jmp 0x140100f24
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14000361b
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140100f77
test rbx, rbx
je 0x140100f68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140100f77
mov edi, 4
jmp 0x140101020
call fcn.1400016b8
test al, al
jne 0x140100f94
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140101020
test bpl, bpl
je 0x140100ff7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140100d7c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140101020
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x140100ff1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140101020
mov edi, dword [rsp + 0x44]
jmp 0x140100fe9
call fcn.140004cb4
test al, al
jne 0x140101008
bts esi, 0x15
xor ecx, ecx
jmp 0x140101010
call fcn.140002496
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140003ecc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140005466
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x14006ccb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x40]
mov rbx, rcx
test rax, rax
je 0x14006ccd3
mov rdx, qword [rcx + 0x28]
xor ecx, ecx
call rax
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14006ccde
call rax
mov rcx, qword [rbx + 8]
xor esi, esi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
test rcx, rcx
je 0x14006cd03
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 8], rsi
lea rcx, [rbx + 0x50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140003ffd
Function at 0x14000d7d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x5f0
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x3c0]
mov r8d, 0x104
call fcn.1400033e1
xor ebp, ebp
cmp qword [0x14016d910], rbp
je 0x14000d8bc
mov qword [rsp + 0x618], r15
xor r14d, r14d
lea r15, [0x14016d910]
mov rbx, r15
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.140002225
mov rsi, rax
test rax, rax
je 0x14000d894
mov r8, qword [r14 + r15 + 0x10]
mov rdx, qword [r14 + r15 + 8]
mov rcx, qword [rax + 0x7c]
call fcn.140004c37
or dword [rsi + 0x54], 0x8000000c
mov rcx, rsi
call fcn.140003af8
test eax, eax
je 0x14000d894
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1400013c5
inc ebp
lea rcx, [rbp*2]
add rcx, rbp
lea r14, [rcx*8]
cmp qword [r14 + r15], 0
lea rbx, [r14 + r15]
jne 0x14000d850
mov r15, qword [rsp + 0x618]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
lea r8d, [r9 + 2]
call fcn.140002ced
lea rcx, [rsp + 0x2b0]
call fcn.14000dee0
lea r14, [0x14011d680]
mov ecx, 0x104
mov r9, r14
lea r8, [0x14011d684]
lea rdx, [rsp + 0x3c0]
call fcn.14000e120
mov ecx, 0x104
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14000da7b
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400033e1
lea rax, [rsp + 0x3c0]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x2b0]
lea rax, [0x14011d674]
lea r8, [0x14011d678]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x4d0]
call fcn.14000e120
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000da6f
lea r8, [rsp + 0x19c]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.140003c4c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400033e1
mov edx, 0x104
mov rcx, rbx
call fcn.140004e71
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xff
ja 0x14000da4a
mov byte [rbx + rcx - 3], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140001d89
test rax, rax
jne 0x14000da4a
mov rdx, rbx
mov rcx, rdi
call fcn.140002225
mov rsi, rax
test rax, rax
je 0x14000da4a
lea r9, [rax + 0x14]
mov qword [rsp + 0x20], r14
mov edx, 0x104
lea rcx, [rsp + 0x30]
mov r8d, 2
call fcn.140002ced
mov rcx, qword [rsi + 0x7c]
lea r8, [0x14011d688]
lea rdx, [rsp + 0x30]
call fcn.14000293c
mov rcx, rsi
call fcn.140003af8
test eax, eax
je 0x14000da4a
mov rdx, rbx
mov rcx, rdi
call fcn.1400013c5
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000da66
lea r8, [rsp + 0x5c]
jmp 0x14000d999
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.140002d65
xor eax, eax
jmp 0x14000da80
mov eax, 0x708
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140014d40
Capabilities:
Encode data using base64

Disassembly:
jmp 0x140014d40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
xor eax, eax
movzx r11d, r8w
mov word [rsp + 0x19], ax
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov byte [rsp + 0x1b], al
mov rdi, rdx
mov eax, 0x55555556
mov byte [rsp + 0x18], 0
imul r11d
xor r10d, r10d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [rbx + rbx*2]
sub r11d, eax
test ebx, ebx
jle 0x140014e16
nop dword [rax]
movzx edx, r10w
lea r8, [rdi + rdx*2]
add r8, rdx
movzx edx, byte [r8]
movzx r9d, byte [r8 + 1]
movzx eax, dl
shr al, 2
mov byte [rsp + 0x18], al
movzx eax, r9b
shr al, 4
shl dl, 4
or al, dl
shl r9b, 2
movzx edx, byte [r8 + 2]
and al, 0x3f
mov byte [rsp + 0x19], al
mov r8d, 4
movzx eax, dl
shr al, 6
or al, r9b
and al, 0x3f
and dl, 0x3f
mov byte [rsp + 0x1a], al
mov byte [rsp + 0x1b], dl
lea rdx, [rsp + 0x18]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rsi]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140014df0
inc r10w
movzx eax, r10w
cmp eax, ebx
jl 0x140014d90
sub r11d, 1
je 0x140014ea2
cmp r11d, 1
jne 0x140014e8f
movzx edx, r10w
lea rax, [rdi + rdx*2]
movzx r8d, byte [rdx + rax]
movzx r10d, byte [rdx + rax + 1]
movzx r9d, r8b
movzx edx, r10b
shr r9b, 2
shr dl, 4
and r10b, 0xf
movzx eax, r9b
shl r8b, 4
or dl, r8b
and dl, 0x3f
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, dl
shl r10b, 2
movzx eax, byte [rax + rsi]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + rsi]
mov byte [rcx + 2], al
mov word [rcx + 3], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov byte [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov rbx, qword [rsp + 8]
movzx edx, r10w
lea rax, [rdi + rdx*2]
mov rdi, qword [rsp + 0x20]
movzx r8d, byte [rdx + rax]
movzx eax, r8b
and r8b, 3
shr al, 2
movzx eax, al
shl r8b, 4
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, r8b
movzx eax, byte [rax + rsi]
mov rsi, qword [rsp + 0x10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
mov byte [rcx + 4], 0
ret
Function at 0x140014f90
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x140014f90
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov qword [rsp + 0x24], rax
mov ebx, r8d
mov qword [rsp + 0x2c], rax
mov rdi, rdx
mov qword [rsp + 0x34], rax
mov rsi, rcx
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov qword [rsp + 0x38], rax
test r8d, 0xfffffe00
je 0x14001501f
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140002671
add rdi, 0x40
add ebx, 0xfffffe00
test ebx, 0xfffffe00
jne 0x140015000
movzx r8d, bx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140003977
lea r9, [rsp + 0x20]
mov r8d, 5
sub r9, rsi
nop
mov ecx, dword [r9 + rsi]
lea rsi, [rsi + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi - 4], edx
sub r8, 1
jne 0x140015040
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015d80
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp byte [0x14016d950], 0
mov ebx, edx
mov rdi, rcx
jne 0x140015e35
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400033e1
mov ecx, ebx
sub ecx, 0x194
je 0x140015de4
cmp ecx, 0x61
je 0x140015ddb
lea rax, str.Server_Error
jmp 0x140015deb
lea rax, str.Not_Implemented
jmp 0x140015deb
lea rax, str.Not_Found
mov qword [rsp + 0x30], rax
lea r8, str.HTTP_1.1__d__s_r_n_r_n_h1__d__s__h1_
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov ecx, 0x104
call fcn.1400151d0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140004e71
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
mov rcx, rdi
call fcn.1400014f6
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x1400161d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x198
call fcn.1400033e1
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x140016259
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140016259
test dword [0x14016ba1d], 0x40000
je 0x140016259
mov dword [rsp + 0x30], eax
lea r9, str.C:_tcag1workc922dda333cde00dESIFProductsESIF_UFSourcesesif_uf_ccb_sock.h
lea rax, str.WSAStartup_failed:__d_n
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.esif_ccb_socket_init
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x26
call fcn.140003693
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x1f8
ret
Function at 0x140016f10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
mov rsi, r8
call qword [sym.imp.WSOCK32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
je 0x140016f51
cmp rdi, rsi
jne 0x140016f51
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016fc2
test dword [0x14016ba50], 0x40000
je 0x140016fc2
lea rdx, str.Error_in_sending_packets_n
cmp rdi, 0xffffffffffffffff
lea rax, str.Incomplete_data_n
mov ecx, 0x40000
cmove rax, rdx
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x30], rax
lea r8, str.esif_ws_client_write_to_socket
lea rax, str.Error_writing_to_socket:__s
mov edx, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x242
call fcn.140003693
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140017c40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
lea rbx, [0x14011e5cc]
test r8, r8
lea rbp, [0x14011e5d0]
mov rsi, rbx
mov r14, rdx
cmovne rsi, r8
mov rdi, rcx
movsxd r8, dword [rdx]
test r9, r9
cmovne rbx, r9
test rax, rax
cmovne rbp, rax
xor edx, edx
call fcn.1400033e1
mov qword [rdi], 2
movzx eax, byte [rsi]
cmp al, byte [0x14011e5cc]
jne 0x140017cb3
movzx edx, byte [0x14011e5cd]
cmp byte [rsi + 1], dl
je 0x140017cd0
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rdi + 4], eax
cmp eax, 0xffffffff
jne 0x140017cc9
or eax, 0xffffffff
jmp 0x140017d46
movzx edx, byte [0x14011e5cd]
movzx eax, byte [rbx]
cmp al, byte [0x14011e5cc]
jne 0x140017ce0
cmp byte [rbx + 1], dl
je 0x140017d3d
movsx ecx, byte [rbx]
call fcn.140004787
mov rcx, rbx
test eax, eax
je 0x140017d27
mov r8d, 0xa
lea rdx, [rsp + 0x50]
call fcn.14000385a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017d15
cmp byte [rcx], 0
je 0x140017d15
mov eax, 0xfffffffe
jmp 0x140017d46
cmp eax, 0x7fff
ja 0x140017d0e
movzx ecx, ax
call qword [sym.imp.WSOCK32.dll_htons]
jmp 0x140017d39
mov rdx, rbp
call qword [sym.imp.WSOCK32.dll_getservbyname]
test rax, rax
je 0x140017d0e
movzx eax, word [rax + 0x18]
mov word [rdi + 2], ax
mov dword [r14], reloc.WSOCK32.dll_recv
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret