joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14039df3c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14037b4cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14039dfc6
cmp byte [rbp - 0x21], r15b
je 0x14039dfc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14039dffc
call fcn.14039049c
test eax, eax
jne 0x14039dfe8
cmp byte [rbp - 0x21], r15b
je 0x14039dfe0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14039dffc
cmp byte [rbp - 0x21], r15b
je 0x14039dff9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14037f14c
test eax, eax
jne 0x14039e09c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14037b4cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14039e03b
cmp byte [rbp - 0x21], r15b
je 0x14039e070
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14039e070
call fcn.14039049c
test eax, eax
jne 0x14039e05c
cmp byte [rbp - 0x21], r15b
je 0x14039e055
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14039e070
cmp byte [rbp - 0x21], r15b
je 0x14039e06d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14037f14c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14039e09c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14039e09f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14039e0ad
mov rcx, rdi
call fcn.140390140
cmp byte [rbp + 0x3f], r15b
je 0x14039e0bc
mov rcx, qword [rbp + 0x27]
call fcn.140390140
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14039ee80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14039eea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14039eea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1419b4850
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1419b485d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1419b486d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1419b4855
lea eax, [rcx + 1]
jmp 0x1419b487b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1419b488e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1419b4874
sub eax, 3
jb 0x1419b48ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1419b48fd
sar eax, 1
movsxd rbp, eax
jb 0x1419b48e4
jmp 0x1419b48bc
add ebx, ebx
jne 0x1419b48ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1419b48e4
inc ecx
add ebx, ebx
jne 0x1419b48ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1419b48e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1419b48dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1419b48cc
add ecx, 2
jmp 0x1419b48e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1419b4812
jmp 0x1419b485d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xd6e00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1419b4949
cmp rsi, rcx
jae 0x1419b4951
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1419b4930
cmp al, 0x8f
ja 0x1419b4930
cmp byte [rsi - 2], 0xf
je 0x1419b4936
sub al, 0xe8
cmp al, 1
ja 0x1419b491a
cmp rsi, rcx
jae 0x1419b4951
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1419b4920
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1419b4951
lodsb al, byte [rsi]
jmp 0x1419b4930
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x19b1000]
mov eax, dword [rdi]
or eax, eax
je 0x1419b49ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x19b4000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1419b495e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1419b49a8
mov qword [rbx], rax
add rbx, 8
jmp 0x1419b497e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1419b49e8
cmp al, 0xef
ja 0x1419b49da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1419b49ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1419b49c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1419b4a67], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1419b4a67
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1419b4a57
sub rsp, 0xffffffffffffff80
jmp 0x14003d5c0
Function at 0x1406d5210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406d5397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406d5241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d5227
add dl, dl
jne 0x1406d524e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d52ae
xor eax, eax
add dl, dl
jne 0x1406d525d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d5365
add dl, dl
jne 0x1406d526e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d527b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d5288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d5295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d52a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d5236
mov eax, 1
add dl, dl
jne 0x1406d52be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d52cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d52b3
sub eax, ebx
mov ebx, 1
jne 0x1406d5304
mov ecx, 1
add dl, dl
jne 0x1406d52e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d52f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d52db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d5236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d5320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d532d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d5315
cmp eax, 0x7d00
jae 0x1406d5353
cmp eax, 0x500
jb 0x1406d534e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d5236
cmp eax, 0x7f
ja 0x1406d5356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d5236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d538a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406d5236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011790
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001179d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400117ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140011795
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400117c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400117b2
sub eax, 3
jb 0x1400117df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140011816
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140011806
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140011804
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400117f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140011752
jmp 0x14001179d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2600
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140011862
cmp rsi, rcx
jae 0x14001186a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140011849
cmp al, 0x8f
ja 0x140011849
cmp byte [rsi - 2], 0xf
je 0x14001184f
sub al, 0xe8
cmp al, 1
ja 0x140011833
cmp rsi, rcx
jae 0x14001186a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140011839
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001186a
lodsb al, byte [rsi]
jmp 0x140011849
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf000]
mov eax, dword [rdi]
or eax, eax
je 0x1400118c7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x139b0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140011877
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400118c1
mov qword [rbx], rax
add rbx, 8
jmp 0x140011897
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140011901
cmp al, 0xef
ja 0x1400118f3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400118d3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400118e2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140011955
sub rsp, 0xffffffffffffff80
jmp 0x1400025fc
Function at 0x140003444
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140182eb0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140004320
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140004397
movsxd rdx, ecx
lea rcx, [0x14000427c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140185350]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000438d
cmp byte [rbx + 0x20], 0
je 0x14000438d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140004353
jmp 0x14000440a
mov rbx, qword [0x140185350]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004402
cmp byte [rbx + 0x21], 0
je 0x1400043c6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400043f2
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140185350]
call fcn.140014dbc
mov rbx, rdi
test rdi, rdi
jne 0x1400043a3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140185368], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140185368], 1
mov dword [0x14018536c], eax
mov rcx, qword [0x140185200]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14018536c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140185368], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d80
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004d20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140185368], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140185368], 1
mov dword [0x14018536c], eax
mov rcx, qword [0x140185200]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14018536c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140185368], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d80
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004e20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140185368], 0
mov rbx, rcx
jne 0x140004e37
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e5f
call fcn.140004b40
mov ecx, dword [0x14018536c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x140004ed8
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400062c8
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062d8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400063a6
test rdx, rdx
je 0x1400063a6
mov rcx, qword [0x140185200]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x40], rax
test r14b, 1
je 0x140006393
lea rax, [rsp + 0x50]
lea r8, [0x140006570]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000639e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400063a6
mov rcx, rdi
call fcn.1400063c4
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065f0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400062d8
Capabilities:
Create thread

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062d8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400063a6
test rdx, rdx
je 0x1400063a6
mov rcx, qword [0x140185200]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x40], rax
test r14b, 1
je 0x140006393
lea rax, [rsp + 0x50]
lea r8, [0x140006570]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000639e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400063a6
mov rcx, rdi
call fcn.1400063c4
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065f0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400063c4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, qword [rcx + 0x10]
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor esi, esi
call fcn.14005e620
mov rcx, qword [rbx + 0x40]
mov r15, rax
call fcn.14005e620
mov r12, rax
call fcn.1400339d0
mov rdi, rax
test rax, rax
je 0x14000652a
and qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140006522
test byte [rbx + 0x30], 2
mov qword [rbx + 0x18], rax
jne 0x140006463
lea edx, [rsi + 0x34]
lea r8d, [rsi + 1]
mov rcx, rdi
call fcn.140033da0
mov r8, qword [0x1401853a0]
test r8, r8
je 0x14000647c
mov edx, 0x2714
mov rcx, rdi
call fcn.140033da0
mov r8, qword [0x1401853a8]
test r8, r8
je 0x1400064b2
cmp qword [0x1401853b0], rsi
je 0x1400064b2
mov edx, 0x27bf
mov rcx, rdi
call fcn.140033da0
mov r8, qword [0x1401853b0]
mov edx, 0x27c0
mov rcx, rdi
call fcn.140033da0
mov r8, r15
mov edx, 0x2712
mov rcx, rdi
call fcn.140033da0
mov r8, r12
mov edx, 0x2722
mov rcx, rdi
call fcn.140033da0
lea r8, [0x140006580]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140033da0
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140033da0
mov rcx, rdi
call fcn.140033b60
test eax, eax
jne 0x14000650c
mov dword [rbx + 4], 0xfffffffe
lea esi, [rax + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140006522
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rdi
call fcn.1400337d0
mov ecx, dword [rbx + 4]
add ecx, 4
test ecx, 0xfffffffd
je 0x14000653f
mov dword [rbx + 4], 0xfffffffd
mov rcx, r15
call fcn.14005e610
mov rcx, r12
call fcn.14005e610
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14000671c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x1401853e0], ebx
jne 0x140006757
lea r8, [0x140006630]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x1401853e0], edi
call fcn.140014480
mov qword [0x1401853c0], rax
cmp word [0x1401853b8], bx
jne 0x140006810
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x1401853b8], di
test eax, eax
je 0x140006786
mov word [0x1401853b8], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401853e8], rax
test rax, rax
je 0x140006810
lea rdx, [0x14006f070]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401853e8]
lea rdx, [0x14006f080]
mov qword [0x1401853c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401853e8]
lea rdx, str.getnameinfo
mov qword [0x1401853d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401853c8], rbx
mov qword [0x1401853d8], rax
je 0x140006810
cmp qword [0x1401853d0], rbx
je 0x140006810
mov ecx, dword [0x1401853bc]
test rax, rax
cmovne ecx, edi
mov dword [0x1401853bc], ecx
movsx rax, word [0x1401853b8]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret