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

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov r12, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141319e
lea rdi, [rax + 0x20]
jmp 0x1222317
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x1222330
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x40], rax
test rdi, rdi
je 0x14131a6
cmp qword [rdi + 0x48], 0
je 0x14131b0
mov qword [rsp + 0x68], rbx
mov r8d, 0x138a
mov rdx, qword [rdi + 0x48]
lea rcx, [rsp + 0x68]
call fcn.0124d7c0
mov esi, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x14131be
mov rcx, qword [r12]
test rcx, rcx
jne 0x14131d4
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x1b8]
mov esi, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x14131e3
mov rcx, qword [r12]
test rcx, rcx
je 0x12223aa
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x12223b6
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
mov rdi, rbx
jmp 0x1222317
mov eax, 0xc1030001
jmp 0x12223c7
mov esi, 1
mov dword [rsp + 0x24], esi
jmp 0x12223b6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14131cf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x12223b6
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [r12], rbx
jmp 0x1222378
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x12223b6
Function at 0x1240120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rdi, rdx
mov rbx, rcx
test eax, eax
js 0x124016d
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1421aa0
xor eax, eax
test eax, eax
js 0x1240223
mov eax, dword [rbx + 4]
test eax, eax
js 0x12401a7
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1421ac0
xor eax, eax
test eax, eax
js 0x1240223
mov rcx, qword [rdi]
xor eax, eax
mov edx, 6
cmp byte [rbx + 8], al
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
sete al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1421ae0
xor eax, eax
test eax, eax
js 0x1240223
movzx eax, byte [rbx + 9]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov word [rsp + 0x40], ax
movzx eax, word [rbx + 0xc]
mov edx, 0xffff
mov r8d, 0x80
mov dword [rsp + 0x20], 4
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1421b00
xor eax, eax
test eax, eax
js 0x1240223
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
mov qword [rsp + 0x20], 0x1000000f
call fcn.0124e580
jmp 0x1240165
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
mov qword [rsp + 0x20], 0x1000000f
call fcn.0124e580
jmp 0x12401a3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
mov qword [rsp + 0x20], 0x1000000f
call fcn.0124e580
jmp 0x12401dc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
mov qword [rsp + 0x20], 0x1000000f
call fcn.0124e580
jmp 0x124021d
Function at 0x124e920
Capabilities:
Get thread local storage value

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141327d
lea rdi, [rax + 0x20]
jmp 0x124e96f
mov qword [rsp + 0x28], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r12, rax
mov qword [rsp + 0x30], rax
test rsi, rsi
jne 0x1413285
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14132bb
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
mov edx, eax
mov r9b, 1
lea r8, [rbp + 0x78]
mov rcx, qword [0x039f11b0]
call fcn.0124ea00
mov ebx, eax
test eax, eax
js 0x14132a6
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
mov rdi, rbx
jmp 0x124e96f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x141329d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbp + 0x78], rsi
jmp 0x124e9c1
mov rcx, qword [rdi + 0x30]
mov r8, qword [rcx]
mov rdx, r12
call qword [r8 + 0x78]
mov eax, ebx
jmp 0x124e9d0
lea rdx, [rbp + 0x78]
mov rcx, qword [0x039f11b0]
call fcn.017cc110
mov ebx, eax
test eax, eax
jns 0x124e9c1
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, ebx
jmp 0x124e9d0

Function at 0x124ea00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x2d0]
movzx edi, r9b
test rcx, rcx
mov rsi, r8
mov ebp, edx
je 0x14128d8
movzx r9d, dil
mov r8, rsi
mov edx, ebp
call fcn.0124ea60
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x039f1188]
test rcx, rcx
je 0x1412923
xor r9d, r9d
mov r8b, 1
xor edx, edx
mov byte [rsp + 0x20], 1
call fcn.0116c230
mov r11, qword [0x039f1188]
test r11, r11
je 0x1412923
mov ecx, dword [r11 + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1412923
cmp dword [rax + 0xf8], 2
jne 0x1412923
mov rcx, qword [rbx + 0x2c8]
jmp 0x141292a
mov rcx, qword [rbx + 0x2c0]
test rcx, rcx
jne 0x124ea30
mov eax, 0xc1000002
jmp 0x124ea3e
Function at 0x1285b20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x039f1188]
mov rbx, rcx
test rax, rax
je 0x1285b57
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1285b57
add rax, 0xe8
je 0x1285b57
mov rax, qword [rax]
test rax, rax
jne 0x1419770
add rsp, 0x20
pop rbx
ret
add qword [rax + 0x30], 1
add qword [rax + 0x20], rbx
jmp 0x1285b57

Function at 0x1285bf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
mov edi, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1410e31
test rbx, rbx
je 0x1285c21
mov edi, dword [rbx]
mov ecx, edi
call fcn.01285b20
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc1020000
mov edx, eax
mov qword [rsp + 0x20], 0x1000000f
call fcn.0124e580
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1329460
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx r13d, r8b
mov r14, rdx
mov rbx, rcx
xor esi, esi
mov qword [rax - 0x30], rsi
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141bf18
lea rdi, [rax + 0x20]
jmp 0x13294b5
mov qword [rsp + 0x38], rdi
lea rbp, [rdi + 0x30]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x40], rax
cmp qword [rbx + 0x210], 0
je 0x13294f0
mov rax, qword [0x039f5130]
cmp rax, qword [0x039f5128]
ja 0x141bf1f
mov rdi, qword [rsp + 0x38]
xor r12b, r12b
mov ecx, dword [rbx + 0xcc]
cmp ecx, 0x400
je 0x141bf79
cmp ecx, 0x2000
jne 0x13c6bf8
mov rcx, qword [rdi + 0x58]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + SafeArrayCopy]
mov rdi, rax
jmp 0x1329525
test rdi, rdi
je 0x141bf90
movzx eax, byte [rbx + 0x20]
shr al, 6
test al, 1
jne 0x1329a6b
lock add dword [rbx + 0x1fc], 1
mov eax, dword [rbx + 0xcc]
lock xadd qword [rbx + 0x88], rax
test r12b, r12b
jne 0x141bfdb
mov eax, dword [rbx + 0xcc]
lock xadd qword [rbx + 0x90], rax
mov eax, dword [rbx + 0xcc]
lock xadd qword [0x039f5130], rax
mov rcx, qword [0x039f1198]
test rcx, rcx
je 0x1329598
mov eax, dword [rbx + 0xcc]
shr eax, 0xa
lock xadd dword [rcx + 0xd4], eax
mov qword [r14], rdi
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
test r13b, r13b
je 0x132953d
jmp 0x141bfc4
cmp ecx, 0x10000
jne 0x141bf50
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + SafeArrayCopy]
mov rdi, rax
jmp 0x1329525
xor edi, edi
jmp 0x13294b5
mov ecx, 0x7530
call fcn.011784d0
mov esi, eax
test eax, eax
jns 0x141bf46
mov rcx, qword [rbp]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [r8 + 0x78]
mov eax, esi
jmp 0x13295ac
mov rdi, qword [rsp + 0x38]
jmp 0x13294f0
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x141bf5f
mov r8, qword [rax + 0x20]
jmp 0x141bf62
xor r8d, r8d
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax + SafeArrayCopy]
mov rdi, rax
mov r12b, 1
jmp 0x1329525
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + SafeArrayCopy]
mov rdi, rax
jmp 0x1329525
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, eax
mov rcx, qword [rbp]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [r8 + 0x78]
mov eax, ebx
jmp 0x13295ac
mov r8d, dword [rbx + 0xcc]
xor edx, edx
mov rcx, rdi
call sub.MSVCR80.dll_memset
nop
jmp 0x132953d
mov eax, dword [rbx + 0xcc]
lock xadd qword [rbx + 0x98], rax
jmp 0x132956c
Function at 0x1337a10
Capabilities:
Get thread local storage value

Disassembly:
mov rax, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x2e8]
mov edi, eax
jmp 0x1337abf
mov rax, rsp
push r12
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, r9
mov r12, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rax - 0x48], 0
mov rax, qword [0x039f1180]
test rax, rax
je 0x1337a80
mov ecx, dword [rax + 8]
cmp ecx, 0xffffffff
je 0x1337a80
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x1337a80
lea rax, [rsp + 0x68]
sub rax, qword [r11 + 0x90]
cmp rax, 0x3c000
jb 0x147e44e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x308]
test al, al
jne 0x11f0020
mov rbx, qword [rsi + 0x240]
mov qword [rsi + 0x240], rdi
mov rax, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x2e8]
mov edi, eax
mov qword [rsi + 0x240], rbx
test edi, edi
js 0x147e498
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
mov r9, rbp
mov r8, r12
mov rdx, rsi
call qword [rax + 0x1a8]
mov ebx, eax
test eax, eax
js 0x147e4b6
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x147e4d1
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x1337b00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
mov rax, qword gs:[0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
lea rax, [0x013b3aa8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.019dd5f0
mov edi, eax
jmp 0x1337abf
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x147e4af
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
jmp 0x1337b00
mov eax, edi
jmp 0x1337b00
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1337b00
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
jmp 0x1337b00
xor eax, eax
jmp 0x1337b00
Function at 0x1348e60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x70], r12
mov r8d, 0x138a
mov rdx, qword [rsi + 0x48]
lea rcx, [rsp + 0x70]
call fcn.0124d7c0
mov edi, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x1413471
mov qword [rsp + 0x78], r12
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [rax + 0x1b8]
mov edi, eax
mov dword [rsp + 0x24], eax
test eax, eax
jne 0x1413484
mov rax, qword [rsp + 0x78]
mov edi, dword [rax + 0x38]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsi + 0x30]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [r8 + 0x78]
mov eax, edi
jmp 0x1348eea
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141345f
lea rsi, [rax + 0x20]
jmp 0x1348ea1
mov qword [rsp + 0x38], rsi
test rsi, rsi
je 0x1348eba
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x1413467
cmp qword [rsi + 0x48], 0
jne 0x124ed3b
mov edi, 1
mov dword [rsp + 0x24], edi
jmp 0x1348ed9
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
mov rsi, r12
jmp 0x1348ea1
mov eax, 0xc1030001
jmp 0x1348eea
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1413482
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x1413492
test eax, eax
jns 0x14134a1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
cmp edi, 0x80004005
cmove edi, r12d
jmp 0x1348ed9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x1348ed9

Function at 0x13492d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [0x039f1188]
test rax, rax
je 0x140e4e5
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140e4e5
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xc0]
test rax, rax
je 0x140e4e5
add rsp, 0x28
ret
mov rax, qword [0x039f11b0]
cmp qword [rax + 0x168], 0
je 0x140e4fd
mov rax, qword [rax + 0x168]
mov rax, qword [rax + 0x2058]
jmp 0x134930b
Function at 0x134a9a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r10d, r10d
jle 0x134aa45
lea rcx, [0x011cb1f0]
movsxd rax, r10d
imul rdx, qword [rcx + rax*8]
jmp 0x134aa4e
push rbx
sub rsp, 0x70
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r9
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x34], 0x1fff
mov qword [rsp + 0x20], rax
call qword [sym.imp.OLEAUT32.dll_VarNumFromParseNum]
test eax, eax
js 0x1408c31
movsxd rcx, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
xor edx, edx
test ecx, ecx
lea r9, [rsp + 0x48]
jne 0x1408ce3
mov eax, dword [rsp + 0x44]
lea r10d, [rax + r8]
cmp r10d, 0x13
jg 0x1408ca9
test r10d, r10d
mov r11d, dword [rsp + 0x38]
jle 0x134aa45
test r8d, r8d
jle 0x11cb1cd
movzx eax, byte [r9]
sub r8d, 1
lea rcx, [rdx + rdx*4]
sub r10d, 1
add r9, 1
mov dword [rsp + 0x30], r8d
test r10d, r10d
lea rdx, [rax + rcx*2]
jg 0x134aa1a
test r8d, r8d
jg 0x1408c45
bt r11d, 0x10
jb 0x1408c9d
test rdx, rdx
js 0x1408cc6
mov qword [rbx], rdx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.01003340
add rsp, 0x70
pop rbx
ret
mov ecx, eax
call fcn.017ed7b0
test eax, eax
jns 0x134a9e5
jmp 0x134aa67
test r10d, r10d
jne 0x134aa4e
movzx eax, byte [r9]
cmp al, 5
ja 0x1408c94
add r9, 1
cmp al, 5
jne 0x134aa4e
bt r11d, 0x11
jb 0x1408c94
cmp r8d, 1
jle 0x1408c8b
nop
movzx eax, byte [r9]
add r9, 1
test al, al
jne 0x1408c94
sub r8d, 1
cmp r8d, 1
mov dword [rsp + 0x30], r8d
jg 0x1408c70
test dl, 1
je 0x134aa4e
add rdx, 1
jmp 0x134aa4e
neg rdx
test rdx, rdx
jle 0x134aa62
mov ecx, 0x8002000a
call fcn.017ed7b0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.01003340
add rsp, 0x70
pop rbx
ret
mov ecx, 0x8002000a
call fcn.017ed7b0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.01003340
add rsp, 0x70
pop rbx
ret
mov eax, ecx
imul eax, r8d
cmp eax, 0x41
jg 0x1408ca9
test r8d, r8d
jle 0x134aa62
mov r10, rcx
nop
nop
mov rcx, r10
sub r8d, 1
add r9, 1
shl rdx, cl
movzx ecx, byte [r9 - 1]
add rdx, rcx
test r8d, r8d
jle 0x134aa62
jmp 0x1408d00
Function at 0x13b39d0
Capabilities:
Get thread local storage value

Disassembly:
mov rbx, qword [rsi + 0x240]
mov qword [rsi + 0x240], rdi
mov rax, qword [rdi]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x2e8]
mov rbp, qword [rsp + 0x68]
mov qword [rsi + 0x240], rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x039f1180]
mov rbp, r8
mov rsi, rdx
test rax, rax
mov rdi, rcx
je 0x13b3a6a
mov ecx, dword [rax + 8]
cmp ecx, 0xffffffff
je 0x13b3a6a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x13b3a6a
lea rcx, [rsp + 0x58]
sub rcx, qword [rax + 0x90]
cmp rcx, 0x3c000
jae 0x13b3a6a
mov rax, qword gs:[0x20]
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea rax, [0x013b3aa8]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
call fcn.019dd5f0
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x308]
test al, al
je 0x13b3a9c
mov rax, qword [rdi]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp qword [rax + 0x2e8]
mov qword [rsp + 0x60], rbx
jmp 0x13b3985
Function at 0x13db960
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x039f1188]
mov rbx, rcx
test rax, rax
je 0x13f614f
mov ecx, dword [rax + 8]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rdi, rax
je 0x13f613d
mov rcx, rax
mov qword [rsp + 0x30], rsi
call fcn.01173310
mov rcx, rdi
mov rsi, rax
call fcn.011732b0
mov rcx, rsi
lock xadd qword [rbx + 0x2f0], rcx
mov rcx, qword [rbx + 0xe8]
test rcx, rcx
je 0x13db9d0
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x3d0]
mov rax, qword [rbx + 0x2f0]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x2f0]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx + 0x2f0]
add rsp, 0x20
pop rbx
ret
Function at 0x15c35b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rdi + 0x10]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rdi + 0x10], 1
mov qword [rdi + 0x18], rax
jg 0x15c3631
lea rcx, [0x015c36d8]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.MSVCR80.dll__wgetenv]
test rax, rax
mov rbx, rax
je 0x15c361f
lea rcx, [0x015c3640]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rdx, [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rdi + 0x18], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x15c49c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r13, r8
mov rdi, rdx
mov r12, rcx
xor r14d, r14d
mov qword [rax - 0x60], r14
mov qword [rax - 0x58], r14
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x15c4a55
mov rdx, rdi
lea rcx, [0x015c4dc0]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0xb8], r14d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1010000
call fcn.0124e580
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x15c4bfb
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.015c2eb0
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x15c4a84
mov rdi, qword [rsp + 0x38]
jmp 0x15c4bed
cmp eax, 1
jne 0x15c4aa4
mov rdx, rdi
lea rcx, [0x015c4d78]
call qword [sym.imp.MSVCR80.dll_wprintf]
nop
mov rdi, qword [rsp + 0x38]
jmp 0x15c4bed
mov r8b, 1
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, r12
call fcn.015c3160
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x15c4ac6
jmp 0x15c4bed
cmp eax, 1
jne 0x15c4ade
lea rcx, [0x015c4d10]
call qword [sym.imp.MSVCR80.dll_wprintf]
nop
jmp 0x15c4bed
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x15c4b45
mov rdx, r13
lea rcx, [0x015c4ce8]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x15c4b45
mov eax, dword [rsp + 0x5c]
cmp eax, 3
jne 0x15c4b49
lea rcx, [0x01329f8c]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x15c4b10
mov eax, dword [rsp + 0x5c]
cmp eax, 1
jne 0x15c4b60
mov rdx, r13
lea rcx, [0x015c4cc8]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x15c4b70
mov rdx, r13
lea rcx, [0x015c4c98]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x15c4b96
mov rdx, r13
lea rcx, [0x015c4c60]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov ebx, r14d
mov dword [rsp + 0x34], ebx
jmp 0x15c4bed
lea rcx, [0x015c4c30]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0xb8], r14d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1010000
call fcn.0124e580
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x15c4bed
test rdi, rdi
je 0x15c4bfb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x15c4c09
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret