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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1403a44f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
test rax, rax
je 0x14023c335
mov ecx, 0x230
add rcx, qword [rax + 0x738]
jmp 0x14023c349
mov ecx, dword [0x14039ce1c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x14023c389
movabs rax, 0x7ffffffffffffff8
cmp rsi, rax
jge 0x14023c3a2
add rsi, 7
and rsi, 0xfffffffffffffff8
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
cmp rax, rsi
jge 0x14023c37c
mov rdx, rsi
call fcn.1401b1030
mov rdi, rax
jmp 0x14023c38b
lea rax, [rdi + rsi]
mov qword [rcx], rax
add qword [rcx + 0x10], rsi
jmp 0x14023c38b
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140258ea0
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_vm_zone.h
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x101
lea rdx, str.Zone::Alloc:_size_is_too_large:_size_lld
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.140006bb0
int3

Function at 0x140256fb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140256fdc
cmp byte [rax + 8], 0
jne 0x140256fe6
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x140256fe6
call fcn.140176500
test rax, rax
je 0x140256ff6
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140176340
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140259c9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140259ce6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140259ce6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140259ce6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140259ce6
cmp dword [rcx + 0x84], 0xe
jbe 0x140259ce6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140259ce8
xor al, al
add rsp, 0x28
ret

Function at 0x1402621f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14026220d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140262268
test al, 7
jne 0x140262200
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140262221
mov rdx, qword [rax - 8]
test dl, dl
je 0x140262292
test dh, dh
je 0x14026228c
shr rdx, 0x10
test dl, dl
je 0x140262286
test dh, dh
je 0x140262280
shr rdx, 0x10
test dl, dl
je 0x14026227a
test dh, dh
je 0x140262274
shr edx, 0x10
test dl, dl
je 0x14026226e
test dh, dh
jne 0x140262221
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x14026cfe8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403a56e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14026d03f
cmp word [rdx], r13w
jne 0x14026d03f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14026d044
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14026d169
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14026d18a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14026d07d
mov rdx, r9
mov word [rbx], cx
jmp 0x14026d0a4
cmp r9, r8
jae 0x14026d0b4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14026d05e
jmp 0x14026d169
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14026d15e
cmp dword [rsp + 0x80], esi
je 0x14026d15e
lea r8, [0x1403a56e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14026d136
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14026d106
mov word [rbx], r13w
jmp 0x14026d166
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14026d113
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14026d166
cmp word [rsp + 0x70], r13w
jne 0x14026d143
cmp rbx, r14
je 0x14026d100
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14026f738
cmp word [rsp + 0x70], r13w
je 0x14026d169
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403a56e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14026d163
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14026d169
Function at 0x140271270
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140381d40]
mov rbp, rcx
call fcn.140288bcc
xor edi, edi
test rax, rax
je 0x140271356
mov ebx, edi
call fcn.14026e250
mov r14d, dword [rax]
call fcn.14026e250
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140288b18
mov rsi, rax
test rax, rax
je 0x1402712e7
call fcn.14026e250
mov dword [rax], r14d
jmp 0x140271311
call fcn.14026e250
cmp dword [rax], 0x22
jne 0x14027134e
call fcn.14026e250
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140288b18
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14027134e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140271315
cmp rax, 3
je 0x140271330
mov rcx, rsi
call fcn.1402711cc
test al, al
je 0x140271341
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140271341
mov dil, 1
mov rcx, rbx
call fcn.140261f34
mov al, dil
jmp 0x140271358
mov rcx, rbx
call fcn.140261f34
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140258ea0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140279c48
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140279c7f
call fcn.14026e250
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14026e068
xor eax, eax
jmp 0x140279d0d
mov rdx, r9
mov rcx, r8
call fcn.140279be4
mov rbx, rax
test rax, rax
je 0x140279d0a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140279b10]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140279cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14026e1c4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140279cde
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140279ced
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140283bac
jmp 0x140279d0a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140279d07
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14027eba0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14027ebc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14026e1c4
or eax, 0xffffffff
jmp 0x14027ebc2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14027f2e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14027f0e0
Function at 0x140285adc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140285af2
mov al, 1
jmp 0x140285b52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140285b03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140285b50
mov ecx, dword [rcx + 0x18]
nop
call fcn.14027e544
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140285b50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140285b50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140285b50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140285b52
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1402891f8
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14026f738
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14026f738
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140289348
cmp rax, 0xffffffffffffffff
je 0x140289348
xor edi, edi
test rbp, rbp
jle 0x1402892f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140284a78
mov rbx, rax
test rax, rax
jne 0x140289280
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402892e9
mov edx, 0x8000
mov ecx, r14d
call fcn.14027e7bc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14026f1c0
cmp eax, 0xffffffff
je 0x1402892c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140289290
mov edx, r15d
mov ecx, r14d
call fcn.14027e7bc
jmp 0x1402892e9
cmp byte [rsi + 0x38], dil
je 0x1402892e0
cmp dword [rsi + 0x34], 5
jne 0x1402892e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402892e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140283bac
jmp 0x14028935c
jns 0x14028935c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14026f738
cmp rax, 0xffffffffffffffff
jne 0x140289314
cmp byte [rsi + 0x30], dil
je 0x14028935c
mov edi, dword [rsi + 0x2c]
jmp 0x14028935c
mov ecx, r14d
call fcn.14027e544
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14028935c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14028935c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140289355
mov eax, dword [rsi + 0x2c]
jmp 0x14028935a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14026f738
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14028b920
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14028b950
xor eax, eax
jmp 0x14028ba13
mov rbp, rbx
cmp word [rax], si
je 0x14028b975
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14028b95c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14028b958
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1402879b4
movsxd r14, eax
test eax, eax
jne 0x14028b9b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14028b949
mov rcx, r14
call fcn.140285d78
mov rdi, rax
test rax, rax
jne 0x14028b9cc
xor ecx, ecx
call fcn.140283bac
jmp 0x14028b9a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1402879b4
test eax, eax
jne 0x14028b9fd
mov rcx, rdi
call fcn.140283bac
jmp 0x14028ba07
xor ecx, ecx
call fcn.140283bac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14028ba30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14028bab7
mov rsi, rbx
cmp word [rax], bp
je 0x14028ba76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14028ba60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14028ba5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140285d78
mov rdi, rax
test rax, rax
je 0x14028baa4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14025bfc0
mov rbp, rdi
xor ecx, ecx
call fcn.140283bac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14028eba0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140284404
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14028ec41
cmp ebx, dword [rsp + 0x30]
je 0x14028ec3a
test esi, esi
je 0x14028ec3a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14028ec15
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14028ec22
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14028ebff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14028ec26
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14028ec43
mov eax, 1
jmp 0x14028ec43
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140291de8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140291e32
call fcn.14026e230
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14026e250
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14026e068
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140258ea0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140291e3d
lea eax, [rbx + 1]
jmp 0x140291e1f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140291e1d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140291e1f
Function at 0x1402927dc
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.14026db5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140292866
cmp byte [rbp - 0x21], r15b
je 0x140292861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14029289c
call fcn.140284e10
test eax, eax
jne 0x140292888
cmp byte [rbp - 0x21], r15b
je 0x140292880
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14029289c
cmp byte [rbp - 0x21], r15b
je 0x140292899
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.14026d9e0
test eax, eax
jne 0x14029293c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14026db5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402928db
cmp byte [rbp - 0x21], r15b
je 0x140292910
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140292910
call fcn.140284e10
test eax, eax
jne 0x1402928fc
cmp byte [rbp - 0x21], r15b
je 0x1402928f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140292910
cmp byte [rbp - 0x21], r15b
je 0x14029290d
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.14026d9e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029293c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029293f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029294d
mov rcx, rdi
call fcn.140283bac
cmp byte [rbp + 0x3f], r15b
je 0x14029295c
mov rcx, qword [rbp + 0x27]
call fcn.140283bac
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 0x14002bee8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140163000
add rsp, 0x28
jmp 0x14002bee8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400c7c18], rbx
je 0x14002bf32
cmp rax, rbx
jne 0x14002bf47
mov edi, 1
mov eax, dword [0x1400c7c20]
cmp eax, 1
jne 0x14002bf54
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002bfc1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002bf1b
mov eax, dword [0x1400c7c20]
test eax, eax
jne 0x14002bfb7
mov dword [0x1400c7c20], 1
lea r14, [0x140093a10]
lea rbx, [0x1400939f8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002bfa9
test eax, eax
jne 0x14002bfad
cmp qword [rbx], 0
je 0x14002bf9e
mov rax, qword [rbx]
mov rcx, qword [case.0x1400022d4.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002bf7f
test eax, eax
je 0x14002bfc1
mov eax, 0xff
jmp 0x14002c116
mov dword [0x1400c7320], 1
mov eax, dword [0x1400c7c20]
cmp eax, 1
jne 0x14002bfe9
lea rdx, [0x1400939f0]
lea rcx, [0x1400937f8]
call sub.msvcrt.dll__initterm
mov dword [0x1400c7c20], 2
test edi, edi
jne 0x14002bff6
xor eax, eax
xchg qword [0x1400c7c18], rax
cmp qword [0x1400c7c38], 0
je 0x14002c02a
lea rcx, [0x1400c7c38]
call fcn.14002ca50
test eax, eax
je 0x14002c02a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400c7c38]
mov r9, qword [case.0x1400022d4.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x14002c0b5
test cl, cl
je 0x14002c04c
test edi, edi
jne 0x14002c0b5
dec cl
cmp cl, 0x1f
ja 0x14002c05f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002c04c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400229fc
mov dword [0x1400c731c], eax
cmp dword [0x1400c7340], 0
jne 0x14002c09e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c7320], 0
jne 0x14002c0b3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c731c]
jmp 0x14002c116
cmp cl, 0x22
jne 0x14002c0c7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002c0dc
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002c03d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14117135c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141171366
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14117138f
pop rbp
sub rbp, 0x33
sub rbp, 0x117135c
sub rsp, 0x20
jmp 0x1411713ae
mov rax, 0x117135c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffdf890487
xor byte [rax], dl
inc rax
dec rcx
jne 0x1411713cd
jmp 0x1411713e4
iretd
Function at 0x140001530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140001644
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001644
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001644
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
test rax, rax
je 0x140001644
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000166c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001644
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov cl, byte [rdi]
test cl, cl
je 0x140001619
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000161b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001609
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001648
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400015d3
xor eax, eax
jmp 0x140001676
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140006120
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006173
mov rsi, rdx
mov rdi, rcx
mov r15d, 0xffffffff
cmp rsi, r15
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140006193
add rdi, rbx
sub rsi, rbx
jne 0x140006151
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400300f0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r9, str.success
lea r14, [rsp + 0x20]
mov rcx, r14
mov r8d, 0x20
call fcn.14003af80
mov rcx, r14
call fcn.14003b070
jmp 0x14000616b