joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002424
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000246e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000246e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000246e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000246e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000246e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002470
xor al, al
add rsp, 0x28
ret
Function at 0x14007c988
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
mov ecx, 0x101
lea rdx, [rsp + 0x120]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14007ca66
mov edx, 0x100
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14007ca66
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x14007c9f4
mov rax, r9
inc ecx
lea rax, [rax + 8]
cmp qword [rax], 0
jne 0x14007c9e8
cmp ebx, ecx
jle 0x14007ca09
lea rdx, [0x1400dd4e8]
mov rcx, rdi
call fcn.140028cec
jmp 0x14007ca5e
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140025c70
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400323d0
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.14007d994
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140028cec
mov rcx, rbx
call fcn.140024b94
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14007ca75
lea rdx, [0x1400b64d8]
mov rcx, rdi
call fcn.140028cec
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x14007ca88
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rdx
lea rax, [rsp + 0x30]
mov edx, ecx
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140006784
add rsp, 0x240
pop rbx
ret

Function at 0x14007cdc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007cddb
test al, 0x10
je 0x14007cddb
mov al, 1
jmp 0x14007cddd
xor al, al
add rsp, 0x28
ret

Function at 0x14007ce58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov byte [0x1400f0419], dil
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
test ebx, ebx
je 0x14007cece
mov byte [0x1400f041a], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], eax
lea r8, [0x14007d39c]
lea rax, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], edi
call fcn.140031eb4
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14007cf03
or edx, 0xffffffff
mov byte [0x1400f041a], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
or eax, 0xffffffff
cmp byte [0x1400f0419], 1
mov rsi, qword [rsp + 0x70]
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140017724
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400211b8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400211c8]
jne 0x140017771
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400211f0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400211b8], 1
mov ecx, dword [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140017846
mov rcx, qword [0x1400204cc]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017871
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400211c0]
test rax, rax
je 0x1400177c1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400211c0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001788c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400211f0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400204cc]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140017871
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x140011041
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140011f30
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240c8]
call fcn.1400113c5
nop
mov rax, qword [rbp + 0x200]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xe8], 0
jmp 0x140012016
mov rax, qword [rbp + 0xe8]
inc rax
mov qword [rbp + 0xe8], rax
mov eax, dword [rbp + 0x64]
cmp qword [rbp + 0xe8], rax
jae 0x14001208b
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xe8]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
mov rcx, qword [rbp + 0x108]
call fcn.1400111fe
cmp dword [rbp + 0x208], eax
jne 0x140012086
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xe8]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
jmp 0x14001208d
jmp 0x140012005
xor eax, eax
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret

Function at 0x1400111fe
Capabilities:
Hash data using djb2

Disassembly:
jmp 0x140011e90
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240c8]
call fcn.1400113c5
nop
mov dword [rbp + 4], 0x1505
mov rax, qword [rbp + 0x120]
movzx eax, byte [rax]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x120]
inc rax
mov qword [rbp + 0x120], rax
cmp dword [rbp + 0xf4], 0
je 0x140011ef8
mov eax, dword [rbp + 4]
shl eax, 5
add eax, dword [rbp + 4]
add eax, dword [rbp + 0x24]
mov dword [rbp + 4], eax
jmp 0x140011eb7
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014eb0
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ec3
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014eed
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f01
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f13
xor al, al
jmp 0x140014f31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f2f
xor al, al
jmp 0x140014f31
mov al, 1
add rsp, 0x38
ret
Function at 0x140012d80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113f2
movzx eax, al
test eax, eax
jne 0x140012da0
mov ecx, 7
call fcn.14001135c
nop
mov byte [rsp + 0x20], 0
call fcn.140011370
mov byte [rsp + 0x21], al
cmp dword [0x14001e878], 1
jne 0x140012dc4
mov ecx, 7
call fcn.14001135c
nop
jmp 0x140012e1c
cmp dword [0x14001e878], 0
jne 0x140012e17
mov dword [0x14001e878], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111c2
test eax, eax
je 0x140012df8
mov eax, 0xff
jmp 0x140012f21
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011366
mov dword [0x14001e878], 2
jmp 0x140012e1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011348
call fcn.1400112da
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012e79
mov rcx, qword [rsp + 0x30]
call fcn.140011172
movzx eax, al
test eax, eax
je 0x140012e79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011311
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012ead
mov rcx, qword [rsp + 0x38]
call fcn.140011172
movzx eax, al
test eax, eax
je 0x140012ead
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113a7
nop
call fcn.140012fd0
mov dword [rsp + 0x28], eax
call fcn.1400112b2
movzx eax, al
test eax, eax
jne 0x140012ecc
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012edb
call fcn.1400113b1
nop
xor edx, edx
mov cl, 1
call fcn.140011163
mov eax, dword [rsp + 0x28]
jmp 0x140012f21
add rsp, 0x68
ret
Function at 0x685c236a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*8 + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
add ecx, eax

Function at 0x685c248a
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x20], rax
je 0x685c2517
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
call fcn.685c1c2a
cmp dword [rsp + 0x60], eax
jne 0x685c2508
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
jmp 0x685c2519
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x685c24d3
xor eax, eax
add rsp, 0x58
ret

Function at 0x685c58a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
mov r8d, eax
mov r9d, eax
xor r8d, edx
lock cmpxchg dword [rcx], r8d
jne 0x685c58a2
mov eax, r9d
ret

Function at 0x685c5940
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov r8, rax
mov r9, rax
xor r8, rdx
lock cmpxchg qword [rcx], r8
jne 0x685c5943
mov rax, r9
ret

Function at 0x685cb340
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x685cb380
mov rdx, qword [rcx]
mov eax, 0x1505
mov r9, rdx
add r9, qword [rcx + 8]
cmp rdx, r9
je 0x685cb378
nop dword [rax]
movsx ecx, byte [rdx]
mov r8d, eax
add rdx, 1
shl r8d, 5
add ecx, r8d
add eax, ecx
cmp rdx, r9
jne 0x685cb360
add rsp, 0x28
ret
lea r8, [0x686672a0]
lea rdx, str.g_bytes_hash
lea rcx, [0x686672ae]
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
xor eax, eax
add rsp, 0x28
ret
Function at 0x685d06a0
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov rbx, rcx
je 0x685d07c0
mov rcx, qword [rcx + 8]
call sym.libglib_2.0_0.dll_g_free
mov eax, dword [rbx]
mov qword [rbx + 8], 0
cmp eax, 1
je 0x685d0780
jae 0x685d0700
mov dword [rbx + 0x10], 0x67452301
mov dword [rbx + 0x14], 0xefcdab89
mov dword [rbx + 0x18], 0x98badcfe
mov dword [rbx + 0x1c], 0x10325476
mov dword [rbx + 0x24], 0
mov dword [rbx + 0x20], 0
add rsp, 0x30
pop rbx
ret
cmp eax, 2
je 0x685d0730
lea r9, str.g_checksum_reset
lea rdx, str.gchecksum.c
lea rcx, [0x6866749c]
mov qword [rsp + 0x20], 0
mov r8d, 0x49b
call sym.libglib_2.0_0.dll_g_assertion_message
nop
mov dword [rbx + 0x10], 0x6a09e667
mov dword [rbx + 0x14], 0xbb67ae85
mov dword [rbx + 0x18], 0x3c6ef372
mov dword [rbx + 0x1c], 0xa54ff53a
mov dword [rbx + 0x20], 0x510e527f
mov dword [rbx + 0x24], 0x9b05688c
mov dword [rbx + 0x28], 0x1f83d9ab
mov dword [rbx + 0x2c], 0x5be0cd19
mov dword [rbx + 0x34], 0
mov dword [rbx + 0x30], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x10], 0x67452301
mov dword [rbx + 0x14], 0xefcdab89
mov dword [rbx + 0x18], 0x98badcfe
mov dword [rbx + 0x1c], 0x10325476
mov dword [rbx + 0x20], 0xc3d2e1f0
mov dword [rbx + 0x28], 0
mov dword [rbx + 0x24], 0
add rsp, 0x30
pop rbx
ret
lea r8, [0x686674a1]
lea rdx, str.g_checksum_reset
lea rcx, [0x6866749c]
add rsp, 0x30
pop rbx
jmp sym.libglib_2.0_0.dll_g_return_if_fail_warning
Function at 0x685d21e0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rsi
push rbx
sub rsp, 0x198
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub eax, 1
cmp eax, 0x102
jbe 0x685d2210
xor eax, eax
add rsp, 0x198
pop rbx
pop rsi
ret
cdqe
movzx eax, byte [rsp + rax + 0x20]
cmp al, 0x2f
jne 0x685d2304
lea rdx, [rsp + 0x20]
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x685d2224
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
add al, al
movabs rcx, 0x6c642e676e616c6d
sbb rdx, 3
mov qword [rdx], rcx
mov word [rdx + 8], 0x6c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x685d2203
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ConvertINetString
mov rcx, rax
call rbx
mov rcx, rsi
lea rdx, str.ConvertINetMultiByteToUnicode
mov qword [0x686cd0a0], rax
call rbx
mov rcx, rsi
lea rdx, str.ConvertINetUnicodeToMultiByte
mov qword [0x686cd098], rax
call rbx
mov rcx, rsi
lea rdx, str.IsConvertINetStringAvailable
mov qword [0x686cd090], rax
call rbx
mov rcx, rsi
lea rdx, str.LcidToRfc1766A
mov qword [0x686cd0a8], rax
call rbx
lea rdx, str.Rfc1766ToLcidA
mov rcx, rsi
mov qword [0x686cd0b0], rax
call rbx
mov qword [0x686cd0b8], rax
mov eax, 1
add rsp, 0x198
pop rbx
pop rsi
ret
cmp al, 0x5c
je 0x685d221f
lea rcx, [rsp + 0x20]
mov edx, dword [rcx]
add rcx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x685d2311
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rcx + 2]
cmove rcx, rdx
add al, al
sbb rcx, 3
mov word [rcx], 0x5c
jmp 0x685d221f
Function at 0x685dce70
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
test rcx, rcx
mov rbx, rcx
je 0x685dd010
xor r8d, r8d
mov rdx, 0xffffffffffffffff
call sym.libglib_2.0_0.dll_g_utf8_validate
test eax, eax
je 0x685dcfc0
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov edx, 0xffffffff
mov qword [rsp + 0x20], 0
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
mov r8d, 2
mov rdi, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbp, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call rbp
test eax, eax
mov ebx, eax
je 0x685dd050
cmp ebx, 1
je 0x685dd05a
movsxd rcx, ebx
mov edx, 2
call sym.libglib_2.0_0.dll_g_malloc_n
mov rsi, rax
mov r8d, ebx
sub ebx, 1
mov rdx, rsi
mov rcx, rdi
call rbp
cmp eax, ebx
jne 0x685dcff0
mov edx, 0x25
mov rcx, rsi
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x685dcf66
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov rbp, qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call rbp
test eax, eax
mov ebx, eax
jle 0x685dcf66
movsxd rcx, eax
mov edx, 2
call sym.libglib_2.0_0.dll_g_malloc_n
mov r8d, ebx
mov r12, rax
mov rdx, rax
mov rcx, rsi
call rbp
cmp ebx, eax
je 0x685dd040
mov rcx, r12
call sym.libglib_2.0_0.dll_g_free
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rsi
mov qword [rsp + 0x20], 0
call sym.libglib_2.0_0.dll_g_utf16_to_utf8
mov rcx, rdi
mov rbx, rax
call sym.libglib_2.0_0.dll_g_free
mov rcx, rsi
call sym.libglib_2.0_0.dll_g_free
mov rcx, rbx
call sym.libglib_2.0_0.dll_g_quark_from_string
mov rcx, rbx
mov esi, eax
call sym.libglib_2.0_0.dll_g_free
mov ecx, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.libglib_2.0_0.dll_g_quark_to_string
lea r8, str.g_utf8_validate__variable___1__NULL_
lea rdx, str.g_getenv_utf8
lea rcx, [0x6866a17d]
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rdi
call sym.libglib_2.0_0.dll_g_free
mov rcx, rsi
call sym.libglib_2.0_0.dll_g_free
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, str.variable___NULL
lea rdx, str.g_getenv_utf8
lea rcx, [0x6866a17d]
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
mov rsi, r12
call sym.libglib_2.0_0.dll_g_free
jmp 0x685dcf66
mov rcx, rdi
call sym.libglib_2.0_0.dll_g_free
jmp 0x685dcfda
mov ecx, 4
mov ebx, 2
call sym.libglib_2.0_0.dll_g_malloc
mov rsi, rax
jmp 0x685dcef6
Function at 0x685dd080
Capabilities:
Set environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
test rcx, rcx
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
je 0x685dd0d0
mov edx, 0x3d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x685dd100
lea r8, str.strchr__variable_____NULL
lea rdx, str.g_setenv_utf8
lea rcx, [0x6866a17d]
xor ebx, ebx
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, str.variable___NULL
lea rdx, str.g_setenv_utf8
lea rcx, [0x6866a17d]
xor ebx, ebx
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call sym.libglib_2.0_0.dll_g_utf8_validate
test eax, eax
je 0x685dd200
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, rdi
call sym.libglib_2.0_0.dll_g_utf8_validate
test eax, eax
je 0x685dd230
test ebx, ebx
je 0x685dd260
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov edx, 0xffffffff
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], 0
mov edx, 0xffffffff
mov r12, rax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
lea rdx, [0x6866a1e5]
xor r9d, r9d
mov r8, rdi
mov rcx, rsi
mov rbp, rax
call sym.libglib_2.0_0.dll_g_strconcat
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rsi, rax
mov qword [rsp + 0x20], 0
mov rcx, rax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
mov rcx, rsi
mov rbx, rax
call sym.libglib_2.0_0.dll_g_free
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wputenv]
mov rcx, rbx
xor ebx, ebx
call sym.libglib_2.0_0.dll_g_free
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
test eax, eax
setne bl
call sym.libglib_2.0_0.dll_g_free
mov rcx, rbp
call sym.libglib_2.0_0.dll_g_free
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, str.g_utf8_validate__variable___1__NULL_
lea rdx, str.g_setenv_utf8
lea rcx, [0x6866a17d]
xor ebx, ebx
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, str.g_utf8_validate__value___1__NULL_
lea rdx, str.g_setenv_utf8
lea rcx, [0x6866a17d]
xor ebx, ebx
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
mov ebx, 1
call sym.libglib_2.0_0.dll_g_getenv_utf8
test rax, rax
je 0x685dd13c
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret