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

Disassembly:
sub rsp, 0x28
cmp dword [0x14009efd0], 0
jne 0x14004013d
xor edx, edx
mov ecx, 0x10001
add rsp, 0x28
jmp fcn.140039140
xorps xmm0, xmm0
lea rcx, [0x14009f2a8]
movups xmmword [0x14009f6f8], xmm0
xor eax, eax
mov dword [0x14009f6f8], 0x30001
xor edx, edx
mov dword [0x14009f6fc], 0x36001
mov r8d, 0x450
mov qword [0x14009f700], 1
movups xmmword [0x14009f708], xmm0
mov qword [0x14009f728], rax
movups xmmword [0x14009f718], xmm0
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x140050630]
xor eax, eax
movdqa xmmword [0x14009f2c0], xmm0
xorps xmm0, xmm0
movups xmmword [0x14009f270], xmm0
mov dword [0x14009f2d0], 1
movups xmmword [0x14009f290], xmm0
mov dword [0x14009f2dc], 1
movups xmmword [0x14009f280], xmm0
mov dword [0x14009f2e0], 1
movdqa xmm0, xmmword [str._b_b_b_b]
movdqa xmmword [0x14009f260], xmm0
mov dword [0x14009f2a8], 0x80000000
mov dword [0x14009f2ac], 0x80000000
mov qword [0x14009f2a0], rax
mov dword [0x14009f270], 0x18
mov dword [0x14009f274], 8
mov dword [0x14009f298], 1
mov dword [0x14009f730], 0xffffffff
mov dword [0x14009f2ec], 1
add rsp, 0x28
ret

Function at 0x140040240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov rdi, rcx
jne 0x140040263
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rdi
jmp fcn.140039140
test rdi, rdi
je 0x14004030a
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14009f748]
test rbx, rbx
je 0x1400402ba
mov qword [rsp + 0x38], rsi
xor esi, esi
cmp qword [rbx + 0x58], rdi
jne 0x1400402ad
xor edx, edx
cmp dword [0x14009efd0], esi
jne 0x1400402a0
mov ecx, 0x10001
call fcn.140039140
jmp 0x1400402ad
mov rcx, rbx
mov qword [rbx + 0x58], rsi
call qword [0x14009f050]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140040284
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
call qword [0x14009f048]
mov rcx, qword [0x14009f740]
lea rdx, [0x14009f740]
mov rbx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x1400402ee
nop dword [rax + rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp rax, rdi
jne 0x1400402e0
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rdx], rax
mov rdx, qword [0x14009eff0]
add rsp, 0x20
pop rdi
jmp qword [0x14009efe8]
add rsp, 0x20
pop rdi
ret
Function at 0x140040310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov rbx, rcx
jne 0x140040333
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rbx
jmp fcn.140039140
test rbx, rbx
je 0x14004040a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x2d0], xmm0
movups xmmword [rcx + 0x2e0], xmm0
movups xmmword [rcx + 0x2f0], xmm0
movups xmmword [rcx + 0x300], xmm0
movups xmmword [rcx + 0x310], xmm0
movups xmmword [rcx + 0x320], xmm0
movups xmmword [rcx + 0x330], xmm0
movups xmmword [rcx + 0x340], xmm0
mov qword [rcx + 0x350], rax
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rbx, rax
jne 0x1400403c1
cmp dword [0x14009efd0], 0
jne 0x1400403a8
xor edx, edx
mov ecx, 0x10001
call fcn.140039140
jmp 0x1400403c1
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400403c1
xor ecx, ecx
call qword [rax + 0x250]
mov rcx, rbx
call qword [0x14009f0e8]
mov rcx, qword [0x14009f748]
lea rdx, [0x14009f748]
cmp rcx, rbx
je 0x1400403ee
nop dword [rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp rax, rbx
jne 0x1400403e0
mov rax, qword [rbx]
mov rcx, rbx
mov qword [rdx], rax
mov rdx, qword [0x14009eff0]
add rsp, 0x20
pop rbx
jmp qword [0x14009efe8]
add rsp, 0x20
pop rbx
ret
Function at 0x140040410
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov rsi, rcx
jne 0x140040436
xor edx, edx
mov ecx, 0x10001
call fcn.140039140
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov ecx, dword [0x1400a0978]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14004046d
lea rdx, str.Cannot_query_extension_without_a_current_OpenGL_or_OpenGL_ES_context
mov ecx, 0x10002
call fcn.140039140
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
cmp byte [rsi], 0
jne 0x140040490
lea rdx, str.Extension_name_cannot_be_an_empty_string
mov ecx, 0x10004
call fcn.140039140
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
cmp dword [rax + 0x210], 3
mov qword [rsp + 0x30], rbx
jl 0x14004051b
lea rdx, [rsp + 0x38]
mov ecx, 0x821d
call qword [rax + 0x240]
xor ebx, ebx
cmp dword [rsp + 0x38], ebx
jle 0x1400404ff
nop word [rax + rax]
mov edx, ebx
mov ecx, 0x1f03
call qword [rdi + 0x238]
test rax, rax
je 0x14004052b
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400404f3
inc rax
test ecx, ecx
jne 0x1400404e0
test edx, edx
je 0x14004055d
inc ebx
cmp ebx, dword [rsp + 0x38]
jl 0x1400404c0
mov rcx, rsi
mov rax, qword [rdi + 0x268]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp rax
mov ecx, 0x1f03
call qword [rax + 0x248]
test rax, rax
jne 0x14004054e
lea rdx, str.Extension_string_retrieval_is_broken
mov ecx, 0x10008
call fcn.140039140
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rdx, rax
mov rcx, rsi
call fcn.14003c930
test eax, eax
je 0x1400404ff
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x140040580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140040595
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f178]

Function at 0x1400405a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400405b5
mov qword [rcx], 0
cmp dword [0x14009efd0], 0
je 0x1400405d8
mov ecx, dword [0x1400a0970]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
jne 0x1400405df
add rsp, 0x20
pop rbx
ret
lea rcx, [0x1400a1ab0]
mov eax, dword [rcx + 8]
mov dword [rcx + 8], 0
test rbx, rbx
je 0x1400405f9
test eax, eax
je 0x1400405f9
add rcx, 0xc
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140040600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor eax, eax
test rdx, rdx
je 0x140040609
mov dword [rdx], eax
test r8, r8
je 0x140040611
mov dword [r8], eax
cmp dword [0x14009efd0], eax
jne 0x140040625
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f130]
Function at 0x140040e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor eax, eax
test rdx, rdx
je 0x140040e99
mov dword [rdx], eax
test r8, r8
je 0x140040ea1
mov dword [r8], eax
cmp dword [0x14009efd0], eax
jne 0x140040eb5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f0b0]

Function at 0x140040ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor eax, eax
test rdx, rdx
je 0x140040ec9
mov dword [rdx], eax
test r8, r8
je 0x140040ed1
mov dword [r8], eax
cmp dword [0x14009efd0], eax
jne 0x140040ee5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f0a8]

Function at 0x140040ef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor r10d, r10d
test rdx, rdx
je 0x140040efb
mov dword [rdx], r10d
test r8, r8
je 0x140040f03
mov dword [r8], r10d
test r9, r9
je 0x140040f0b
mov dword [r9], r10d
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140040f18
mov dword [rax], r10d
cmp dword [0x14009efd0], r10d
jne 0x140040f2d
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
mov qword [rsp + 0x28], rax
jmp qword [0x14009f0b8]

Function at 0x1400411a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor eax, eax
test rdx, rdx
je 0x1400411a9
mov dword [rdx], eax
test r8, r8
je 0x1400411b1
mov dword [r8], eax
cmp dword [0x14009efd0], eax
jne 0x1400411c5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f100]

Function at 0x1400411d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x1400411e5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f148]
Function at 0x140041690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov rbx, rcx
jne 0x1400416b3
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rbx
jmp fcn.140039140
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x1400416e6
cmp dword [rbx + 0x208], 0
jne 0x1400416e6
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
add rsp, 0x20
pop rbx
jmp fcn.140039140
test rdx, rdx
je 0x140041706
test rbx, rbx
je 0x1400416fe
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14004170b
xor ecx, ecx
call qword [rdx + 0x250]
test rbx, rbx
je 0x14004171d
mov rcx, rbx
mov rax, qword [rbx + 0x250]
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
ret

Function at 0x140041730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041745
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f1e8]
Function at 0x140041860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov edi, r8d
mov rbx, rcx
jne 0x14004188f
xor edx, edx
mov ecx, 0x10001
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140039140
mov ecx, edx
sub ecx, 0x33001
je 0x140041a2f
sub ecx, 1
je 0x1400419e9
sub ecx, 1
je 0x140041943
sub ecx, 1
je 0x14004192b
cmp ecx, 1
je 0x1400418d7
mov r8d, edx
mov ecx, 0x10003
lea rdx, str.Invalid_input_mode_0x_08X
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140039140
call qword [0x14009f030]
test eax, eax
jne 0x1400418fc
lea rdx, str.Raw_mouse_motion_is_not_supported_on_this_system
mov ecx, 0x10008
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140039140
xor ecx, ecx
test edi, edi
setne cl
cmp dword [rbx + 0x200], ecx
je 0x140041a86
mov dword [rbx + 0x200], ecx
mov edx, ecx
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [0x14009f028]
xor ecx, ecx
test edi, edi
setne cl
mov dword [rbx + 0x80], ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
test edi, edi
setne cl
cmp dword [rbx + 0x7c], ecx
je 0x140041a86
test edi, edi
jne 0x1400419db
cmp byte [rbx + 0x88], 3
jne 0x14004196b
mov byte [rbx + 0x88], dil
cmp byte [rbx + 0x89], 3
jne 0x14004197b
mov byte [rbx + 0x89], 0
cmp byte [rbx + 0x8a], 3
jne 0x14004198b
mov byte [rbx + 0x8a], 0
cmp byte [rbx + 0x8b], 3
jne 0x14004199b
mov byte [rbx + 0x8b], 0
cmp byte [rbx + 0x8c], 3
jne 0x1400419ab
mov byte [rbx + 0x8c], 0
cmp byte [rbx + 0x8d], 3
jne 0x1400419bb
mov byte [rbx + 0x8d], 0
cmp byte [rbx + 0x8e], 3
jne 0x1400419cb
mov byte [rbx + 0x8e], 0
cmp byte [rbx + 0x8f], 3
jne 0x1400419db
mov byte [rbx + 0x8f], 0
mov dword [rbx + 0x7c], ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
test edi, edi
setne cl
cmp dword [rbx + 0x78], ecx
je 0x140041a86
test edi, edi
jne 0x140041a21
lea rax, [rbx + 0x90]
mov edx, 0x15d
nop dword [rax]
cmp byte [rax], 3
jne 0x140041a18
mov byte [rax], 0
inc rax
sub rdx, 1
jne 0x140041a10
mov dword [rbx + 0x78], ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [r8 - 0x34001]
cmp eax, 3
jbe 0x140041a56
lea rdx, str.Invalid_cursor_mode_0x_08X
mov ecx, 0x10003
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140039140
cmp dword [rbx + 0x84], edi
je 0x140041a86
lea r8, [rbx + 0x1f8]
mov dword [rbx + 0x84], edi
lea rdx, [rbx + 0x1f0]
mov rcx, rbx
call qword [0x14009f010]
mov edx, edi
mov rcx, rbx
call qword [0x14009f020]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140041bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
mov eax, r8d
mov r8d, edx
mov r9, rcx
jne 0x140041bee
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
xor edx, edx
test eax, eax
lea eax, [r8 - 0x20003]
setne dl
cmp eax, 0xa
ja case.0x140041c15.131076
lea r10, [0x140000000]
cdqe
mov ecx, dword [r10 + rax*4 + 0x41c80]
add rcx, r10
jmp rcx
mov dword [r9 + 0x10], edx
ret
cmp qword [r9 + 0x50], 0
mov dword [r9 + 8], edx
jne 0x140041c7f
mov rcx, r9
jmp qword [0x14009f1c0]
cmp qword [r9 + 0x50], 0
mov dword [r9 + 0xc], edx
jne 0x140041c7f
mov rcx, r9
jmp qword [0x14009f1c8]
cmp qword [r9 + 0x50], 0
mov dword [r9 + 0x14], edx
jne 0x140041c7f
mov rcx, r9
jmp qword [0x14009f1d0]
mov dword [r9 + 0x18], edx
ret
mov rcx, r9
mov dword [r9 + 0x1c], edx
jmp qword [0x14009f1e0]
lea rdx, str.Invalid_window_attribute_0x_08X
mov ecx, 0x10003
jmp fcn.140039140
ret

Function at 0x140041d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
mov r10d, r9d
mov r11d, r8d
jne 0x140041d8b
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x140041de2
test r9d, r9d
jle 0x140041de2
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x140041dbc
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.140039140
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x34], r8d
mov r8d, r11d
mov dword [rcx + 0x38], r9d
mov r9d, r10d
mov dword [rcx + 0x48], eax
jmp qword [0x14009f180]
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.140039140

Function at 0x140041e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041e15
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
cmp qword [rcx + 0x50], 0
jne 0x140041e23
jmp qword [0x14009f108]
ret

Function at 0x140041e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041e45
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
mov dword [rcx + 0x20], edx
ret

Function at 0x140041e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041e65
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
mov dword [rcx + 0x34], edx
mov dword [rcx + 0x38], r8d
jmp qword [0x14009f118]

Function at 0x140041ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041ed5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
cmp dword [rcx + 0x208], 0
jne 0x140041eef
lea rdx, str.Cannot_swap_buffers_of_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
jmp fcn.140039140
jmp qword [rcx + 0x258]
Function at 0x140041f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14009efd0], 0
mov ebx, ecx
jne 0x140041f22
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop rbx
jmp fcn.140039140
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140041f49
lea rdx, str.Cannot_set_swap_interval_without_a_current_OpenGL_or_OpenGL_ES_context
mov ecx, 0x10002
add rsp, 0x20
pop rbx
jmp fcn.140039140
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp qword [rax + 0x260]

Function at 0x140041f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041f85
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
jmp qword [0x14009f1f0]
Function at 0x140041f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x14009efd0], 0
jne 0x140041fa5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140039140
cmp ecx, 0x21001
jg 0x14004208b
je 0x140042084
lea eax, [rcx - 0x20001]
cmp eax, 0xe
ja case.0x14004217c.139268
cdqe
lea r8, [0x140000000]
mov eax, dword [r8 + rax*4 + 0x42230]
add rax, r8
jmp rax
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f29c], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2c0], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2c8], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2cc], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2d0], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2d4], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2d8], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2c4], eax
ret
mov dword [0x14009f2a8], edx
ret
mov dword [0x14009f2ac], edx
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2dc], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2e0], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2e4], eax
ret
mov dword [0x14009f260], edx
ret
cmp ecx, 0x22001
jg 0x140042147
je 0x140042140
lea eax, [rcx - 0x21002]
cmp eax, 0xe
ja case.0x14004217c.139268
cdqe
lea r8, [0x140000000]
mov eax, dword [r8 + rax*4 + 0x4226c]
add rax, r8
jmp rax
mov dword [0x14009f264], edx
ret
mov dword [0x14009f268], edx
ret
mov dword [0x14009f26c], edx
ret
mov dword [0x14009f270], edx
ret
mov dword [0x14009f274], edx
ret
mov dword [0x14009f278], edx
ret
mov dword [0x14009f27c], edx
ret
mov dword [0x14009f280], edx
ret
mov dword [0x14009f284], edx
ret
mov dword [0x14009f288], edx
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f28c], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f298], eax
ret
mov dword [0x14009f290], edx
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f294], eax
ret
mov dword [0x14009f730], edx
ret
mov dword [0x14009f6f8], edx
ret
cmp ecx, 0x23001
jg 0x1400421ee
je 0x1400421e0
lea eax, [rcx - 0x22002]
cmp eax, 0xa
ja case.0x14004217c.139268
cdqe
lea r8, [0x140000000]
mov eax, dword [r8 + rax*4 + 0x422a8]
add rax, r8
jmp rax
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2e8], eax
ret
mov dword [0x14009f6fc], edx
ret
mov dword [0x14009f700], edx
ret
mov dword [0x14009f704], edx
ret
mov dword [0x14009f718], edx
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f708], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f70c], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f710], eax
ret
mov dword [0x14009f714], edx
ret
mov dword [0x14009f71c], edx
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f2ec], eax
ret
cmp ecx, 0x23003
je 0x140042220
cmp ecx, 0x25001
je 0x140042212
mov r8d, ecx
lea rdx, str.Invalid_window_hint_0x_08X
mov ecx, 0x10003
jmp fcn.140039140
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f5f0], eax
ret
xor eax, eax
test edx, edx
setne al
mov dword [0x14009f728], eax
ret
Function at 0x140045ce0
Capabilities:
Parse pe header

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

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14028b3a0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], dx
lea rbp, [rsp + 0x30]
test dil, dil
mov r12, rcx
mov word [rsp + 0x80], ax
lea r13, [rsp + 0x2e]
je 0x140220539
nop dword [rax]
lea rbx, [rbp + rsi*2]
mov rax, r14
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1402204fe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402204f0
test rax, rax
je 0x14029932e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1402204d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140220568
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140220580
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx r15d, byte [rcx]
test r15b, r15b
mov rbp, rcx
mov r14, rdx
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x30]
lea r12, [rsp + 0x2e]
je 0x140220622
nop dword [rax + rax]
lea rbx, [rdi + rsi*2]
mov rax, r13
sub rax, rsi
cmp word [rdi + rsi*2], 0
je 0x1402205e6
nop dword [rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402205d8
test rax, rax
je 0x140299334
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rbp + rsi]
test r15b, r15b
jne 0x1402205c0
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret