joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a7b4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004ca30]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001a812
cmp word [rdx], r12w
jne 0x14001a812
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001a818
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001a973
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001a94e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001a851
mov rcx, r9
jmp 0x14001a874
cmp r9, rdx
jae 0x14001a88b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001a835
jmp 0x14001a973
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a948
cmp dword [rsp + 0x80], edi
je 0x14001a948
mov rdx, r14
lea r11, [0x14004ca30]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001a921
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001a8f4
mov word [rbx], r12w
jmp 0x14001a96f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001a8fd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001a96f
cmp word [rsp + 0x70], r12w
jne 0x14001a92e
cmp rbx, rsi
je 0x14001a8ee
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001b5ac
cmp word [rsp + 0x70], r12w
je 0x14001a973
mov word [rbx], r13w
jmp 0x14001a96f
lea r11, [0x14004ca30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001a96b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001a973
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b1c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001b1fa
call fcn.1400142a4
mov dword [rax], 0x16
call fcn.140019be4
jmp 0x14001b319
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001b319
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001b319
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001b229
lock or dword [rcx + 0x14], 0x10
jmp 0x14001b319
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001b23d
call fcn.140022898
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140018fc8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001ac60
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001b307
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001b2d2
mov rcx, rsi
call fcn.140018fc8
cmp eax, edi
je 0x14001b2bd
mov rcx, rsi
call fcn.140018fc8
cmp eax, 0xfffffffe
je 0x14001b2bd
mov rcx, rsi
call fcn.140018fc8
movsxd rbx, eax
lea r14, [0x14004ca30]
mov rcx, rsi
sar rbx, 6
call fcn.140018fc8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001b2c4
lea rdx, [0x14003d3e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b2d2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001b2f6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001b2f6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001b2f6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001b31c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002188c
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 0x1400218bc
xor eax, eax
jmp 0x14002197f
mov rbp, rbx
cmp word [rax], si
je 0x1400218e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400218c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400218c4
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.14001ef18
movsxd r14, eax
test eax, eax
jne 0x14002191f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400218b5
mov rcx, r14
call fcn.14001c940
mov rdi, rax
test rax, rax
jne 0x140021938
xor ecx, ecx
call fcn.140019c4c
jmp 0x140021914
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.14001ef18
test eax, eax
jne 0x140021969
mov rcx, rdi
call fcn.140019c4c
jmp 0x140021973
xor ecx, ecx
call fcn.140019c4c
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 0x14002199c
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 0x140021a23
mov rsi, rbx
cmp word [rax], bp
je 0x1400219e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400219cc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400219c8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001c940
mov rdi, rax
test rax, rax
je 0x140021a10
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000bb40
mov rbp, rdi
xor ecx, ecx
call fcn.140019c4c
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 0x1400262f0
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.140014874
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002637a
cmp byte [rbp - 0x21], r15b
je 0x140026375
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400263b0
call fcn.14001de60
test eax, eax
jne 0x14002639c
cmp byte [rbp - 0x21], r15b
je 0x140026394
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400263b0
cmp byte [rbp - 0x21], r15b
je 0x1400263ad
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.140014364
test eax, eax
jne 0x140026450
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014874
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400263ef
cmp byte [rbp - 0x21], r15b
je 0x140026424
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026424
call fcn.14001de60
test eax, eax
jne 0x140026410
cmp byte [rbp - 0x21], r15b
je 0x140026409
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026424
cmp byte [rbp - 0x21], r15b
je 0x140026421
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.140014364
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026450
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026453
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026461
mov rcx, rdi
call fcn.140019c4c
cmp byte [rbp + 0x3f], r15b
je 0x140026470
mov rcx, qword [rbp + 0x27]
call fcn.140019c4c
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 0x140027ac4
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.14001b5ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b5ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027c14
cmp rax, 0xffffffffffffffff
je 0x140027c14
xor edi, edi
test rbp, rbp
jle 0x140027bbf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dbd0
mov rbx, rax
test rax, rax
jne 0x140027b4c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027bb5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015740
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.14001c2ac
cmp eax, 0xffffffff
je 0x140027b95
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027b5c
mov edx, r15d
mov ecx, r14d
call fcn.140015740
jmp 0x140027bb5
cmp byte [rsi + 0x38], dil
je 0x140027bac
cmp dword [rsi + 0x34], 5
jne 0x140027bac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027bb5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c4c
jmp 0x140027c28
jns 0x140027c28
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b5ac
cmp rax, 0xffffffffffffffff
jne 0x140027be0
cmp byte [rsi + 0x30], dil
je 0x140027c28
mov edi, dword [rsi + 0x2c]
jmp 0x140027c28
mov ecx, r14d
call fcn.140016d38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027c28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027c28
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027c21
mov eax, dword [rsi + 0x2c]
jmp 0x140027c26
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b5ac
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 0x14001a5b4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003ce60
push qword [rsp + 0x50]
push 0
push 1
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x14001a618
push 1
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.dll_TerminateProcess
and rax, rax
je 0x14001a60e
mov qword [rsp + 0x30], 1
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0x30]
jmp 0x14001a622
add rsp, 0x40
pop r15
ret

Function at 0x14001e7f1
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, SafeArrayPutElement
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14001e805
sub rsp, 0x28
call fcn.14003ce60
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14003ced0
add rsp, 0x10
lea rax, [rsp + 0x30]
lea rax, [rsp + 0x98]
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x68
mov dword [rbp + 0x3c], 1
mov r15, qword [rsp + 0xe8]
and r15, 2
and r15, r15
je 0x14001e877
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 0
jmp 0x14001e882
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 1
lea rax, [rsp + 0x98]
mov rax, rax
push rax
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push 0
push 0
push 0
push 0
push 0
push 0
push qword [rsp + 0x68]
push 0
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateProcessW
add rsp, 0x50
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x14001e951
mov r15, qword [rsp + 0xe8]
and r15, 1
and r15, r15
je 0x14001e943
lea rbp, [rsp + 0x98]
push qword [rbp + 8]
pop rax
mov qword [rsp + 0xb8], rax
push 1
pop rcx
call fcn.140029a4c
lea rax, [rsp + 0xc0]
mov rax, rax
push rax
push qword [rsp + 0xc0]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
movsxd r15, dword [rsp + 0xc0]
cmp r15, 0x103
je 0x14001e941
jmp 0x14001e943
jmp 0x14001e909
lea rbp, [rsp + 0x98]
mov rax, qword [rbp]
jmp 0x14001e954
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003cf70
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x14001ed4c
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 [0x14030b2c0]
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 0x14001faa8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14001f9f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140312b40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403111a0]
jmp 0x14001fae4
cmp qword [rbx + 0x18], rdi
je 0x14001faeb
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001fadb
jmp 0x14001fb05
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1403111a0]
call fcn.14003c954
lea rcx, [0x140312b40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001fb20
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14001fbe6
lea rcx, [0x140312b40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403111a0]
jmp 0x14001fbaa
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001fba7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1403111a0]
mov rdx, rsi
call fcn.14003c954
jmp 0x14001fbaa
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001fb77
mov rdx, qword [0x14030b238]
lea rcx, [0x1403111a0]
mov rdi, rdx
inc rdx
mov qword [0x14030b238], rdx
lea edx, [rbx + 0x20]
call fcn.14003c99c
lea rcx, [0x140312b40]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14001fd90
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001fe07
movsxd rdx, ecx
lea rcx, [0x14001fcec]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1403111a8]
test rbx, rbx
je 0x14001fe7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001fdfd
cmp byte [rbx + 0x20], 0
je 0x14001fdfd
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 0x14001fdc3
jmp 0x14001fe7a
mov rbx, qword [0x1403111a8]
test rbx, rbx
je 0x14001fe7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001fe72
cmp byte [rbx + 0x21], 0
je 0x14001fe36
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14001fe62
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, [0x1403111a8]
call fcn.14003c954
mov rbx, rdi
test rdi, rdi
jne 0x14001fe13
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001ff48
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140312be0]
call fcn.14003bc30
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140020045
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14001ff9f
add rax, 2
cmp word [rax], 0x20
je 0x14001ff95
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14001ffdd
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14002001d
cmp cx, r9w
je 0x14001ffcf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001ffbd
cmp word [rax], bp
je 0x14002001d
mov rcx, rax
add rax, 2
jmp 0x140020025
test dx, dx
je 0x140020022
mov rbx, rax
cmp dx, 0x20
je 0x14001ffcf
add rax, 2
cmp word [rax], r9w
jne 0x140020013
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14002001d
cmp cx, r9w
je 0x140020013
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140020001
movzx edx, word [rax]
test dx, dx
jne 0x14001ffe5
jmp 0x14001ffcf
mov rcx, rax
jmp 0x140020025
mov r8d, ebp
cmp dword [r14], esi
jne 0x14002002f
test rdi, rdi
jne 0x14002004f
test r8d, r8d
je 0x140020036
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14001ff8f
test rdi, rdi
jne 0x140020064
movsxd rax, esi
jmp 0x140020066
test rbx, rbx
je 0x140020064
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140020066
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14002007c
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140312be0]
call fcn.14003bc30
xor ecx, ecx
add rsp, 0x28
jmp fcn.14001ff48

Function at 0x140020110
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140312be0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14003bc30
test ebx, ebx
js 0x14002013f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14001ff48
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.14003d220
mov ecx, ebp
jmp 0x14002017b
test edi, edi
je 0x140020180
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14002016e
inc ecx
jmp 0x140020175
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14002015d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14003d360
Function at 0x14002092c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x140020b48
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x140020c87
cmp edx, 2
je 0x140020c87
mov rcx, qword [0x140310970]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x140020c70
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x140020c68
cmp r13d, 0xffffffff
je 0x140020bf5
cmp r14d, r13d
jae 0x140020c68
add r14d, 2
test edi, edi
jne 0x140020c20
mov rcx, qword [0x140310970]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x140020c68
cmp ax, 0xd
je 0x140020c40
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x140020be3
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1400b2e60
jmp 0x140020d50
mov r8, rcx
mov rcx, qword [0x140310970]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x140020cba
cmp r14d, r15d
jae 0x140020d24
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020d24
cmp dword [rsp + 0x38], 1
jne 0x140020d24
inc r14d
test edi, edi
jne 0x140020d08
mov rcx, qword [0x140310970]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x140020d24
cmp al, 0xd
je 0x140020caf
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x140020caf
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x140020d4b
call fcn.1400b2ec0
jmp 0x140020d50
call fcn.1400b3210
mov rcx, qword [0x140310970]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400209fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x140020a63
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140020a55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140020a5f
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x140020a63
jmp 0x140020a20
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret