joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800417d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x1c8
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x160], 0
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x150], 0
mov dword [rsp + 0x154], 0
cmp dword [rsp + 0x1e0], 0x10
jne 0x18004185d
mov r9, qword [rsp + 0x1d8]
mov r8d, dword [rsp + 0x1d0]
mov rdx, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x1e8]
call fcn.18004da40
jmp 0x180041a9d
cmp dword [rsp + 0x1e0], 0xb
jne 0x18004189b
movsxd rax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x1d0]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x1f0]
mov r8, qword [rsp + 0x1e8]
mov edx, dword [rsp + 0x1e0]
mov rcx, rax
call fcn.180041ac0
jmp 0x180041a9d
cmp qword [rsp + 0x1d8], 0
jne 0x1800418c3
mov edx, 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0
je 0x180041a6e
cmp dword [rsp + 0x1e0], 2
jne 0x180041a15
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x168]
call fcn.18000abd0
mov dword [rsp + 0x16c], 0
mov dword [rsp + 0x170], 1
mov dword [rsp + 0x168], 0
mov dword [rsp + 0x174], 0
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x168]
xor edx, edx
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
jne 0x180041a0a
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0
je 0x180041a08
mov rax, qword [rsp + 0x158]
cmp dword [rax + 4], 2
jne 0x1800419b3
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x198], rax
movzx ecx, word [rsp + 0x1d0]
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, qword [rsp + 0x198]
mov word [rcx + 2], ax
jmp 0x1800419ef
mov rax, qword [rsp + 0x158]
cmp dword [rax + 4], 0x17
jne 0x1800419ef
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x1a0], rax
movzx ecx, word [rsp + 0x1d0]
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, qword [rsp + 0x1a0]
mov word [rcx + 2], ax
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x158], rax
jmp 0x180041966
jmp 0x180041a15
mov dword [rsp + 0x154], 1
cmp dword [rsp + 0x154], 0
je 0x180041a6e
xor ecx, ecx
call fcn.180041750
mov qword [rsp + 0x1a8], rax
cmp qword [rsp + 0x1a8], 0
jne 0x180041a43
mov rax, qword [rsp + 0x1a8]
jmp 0x180041a9d
mov rax, qword [rsp + 0x1a8]
mov dword [rax + 0x60], 0xffffff28
mov rax, qword [rsp + 0x1a8]
mov ecx, dword [rsp + 0x150]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x1a8]
jmp 0x180041a9d
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x1f0]
mov r8, qword [rsp + 0x1e8]
mov edx, dword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x160]
call fcn.180041ac0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180005860
add rsp, 0x1c8
ret
Function at 0x18004b2e0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x2b8]
lea rdx, str._s
lea rcx, [rsp + 0x40]
call fcn.1800f9dc0
xor eax, eax
cmp eax, 1
je 0x18004b3c0
cmp dword [rsp + 0x20], 0
je 0x18004b36f
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18004b365
jmp 0x18004b3c0
mov dword [rsp + 0x20], 0
jmp 0x18004b388
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18004b388
jmp 0x18004b3c0
mov r9, qword [rsp + 0x2c0]
lea r8, [rsp + 0x17c]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
call fcn.18004b400
test eax, eax
je 0x18004b3bb
mov dword [rsp + 0x30], 1
jmp 0x18004b3c0
jmp 0x18004b331
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x18004b3d3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180005860
add rsp, 0x2a8
ret
Function at 0x18004cdf0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x498
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov dword [rsp + 0x468], 0
mov edx, 0x401
xor ecx, ecx
call fcn.180024600
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov byte [rax], 0
cmp qword [rsp + 0x4a0], 0
je 0x18004ce4c
mov rax, qword [rsp + 0x4a0]
movsx eax, byte [rax]
test eax, eax
jne 0x18004ce56
mov rax, qword [rsp + 0x20]
jmp 0x18004d06b
mov edx, 0x5c
mov rcx, qword [rsp + 0x4a0]
call fcn.1800fae98
test rax, rax
je 0x18004ceb8
mov rdx, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x20]
call fcn.1800f9f10
mov edx, 0x5c
mov rcx, qword [rsp + 0x20]
call fcn.1800fae98
mov qword [rsp + 0x430], rax
cmp qword [rsp + 0x430], 0
je 0x18004ceac
mov rax, qword [rsp + 0x430]
mov byte [rax], 0
mov rax, qword [rsp + 0x20]
jmp 0x18004d06b
mov r8d, 0x400
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18004cf06
mov edx, 0x5c
mov rcx, qword [rsp + 0x20]
call fcn.1800fae98
mov qword [rsp + 0x430], rax
cmp qword [rsp + 0x430], 0
je 0x18004cefc
mov rax, qword [rsp + 0x430]
mov byte [rax], 0
mov rax, qword [rsp + 0x20]
jmp 0x18004d06b
lea rcx, str.PATH
call fcn.180010c90
mov qword [rsp + 0x470], rax
cmp qword [rsp + 0x470], 0
jne 0x18004cf2f
mov rax, qword [rsp + 0x20]
jmp 0x18004d06b
cmp qword [rsp + 0x470], 0
je 0x18004d069
mov rax, qword [rsp + 0x470]
movsx eax, byte [rax]
test eax, eax
je 0x18004d069
mov edx, 0x3b
mov rcx, qword [rsp + 0x470]
call fcn.1800156cc
mov qword [rsp + 0x430], rax
cmp qword [rsp + 0x430], 0
je 0x18004cf81
mov rax, qword [rsp + 0x430]
mov byte [rax], 0
mov rdx, qword [rsp + 0x470]
lea rcx, [rsp + 0x30]
call fcn.1800f9f10
lea rdx, [0x18013d6e8]
lea rcx, [rsp + 0x30]
call fcn.1800f9e70
mov rdx, qword [rsp + 0x4a0]
lea rcx, [rsp + 0x30]
call fcn.1800f9e70
lea rdx, [0x18013d6ec]
lea rcx, [rsp + 0x30]
call fcn.180023360
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0
je 0x18004cff2
mov rcx, qword [rsp + 0x478]
call fcn.180015158
mov dword [rsp + 0x468], 1
cmp dword [rsp + 0x468], 0
je 0x18004d02d
mov rdx, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x20]
call fcn.1800f9f10
cmp qword [rsp + 0x430], 0
je 0x18004d024
mov rax, qword [rsp + 0x430]
mov byte [rax], 0x3b
mov rax, qword [rsp + 0x20]
jmp 0x18004d06b
cmp qword [rsp + 0x430], 0
je 0x18004d058
mov rax, qword [rsp + 0x430]
mov byte [rax], 0x3b
mov rax, qword [rsp + 0x430]
inc rax
mov qword [rsp + 0x470], rax
jmp 0x18004d064
mov qword [rsp + 0x470], 0
jmp 0x18004cf2f
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180005860
add rsp, 0x498
ret
Function at 0x18004ee90
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov eax, 0x278
call fcn.180012ac0
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x180135070]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x18004ef10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x18004ef10
lea rbx, [rbp + 0x268]
call fcn.180010dc4
mov rdx, qword [rbp + 0x260]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.1800fc2d0
jmp 0x18004f0d8
mov r8, qword [rbp + 0x260]
mov rcx, r8
call fcn.18004eb60
inc eax
mov edi, eax
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18004ef39
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180012ac0
sub rsp, rcx
xor esi, esi
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x18004ef60
lea rbx, str.no_stack_
jmp 0x18004f033
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18004efa9
mov rdx, rsi
test rdi, rdi
je 0x18004efa9
nop word [rax + rax]
mov rax, qword [rbp + 0x260]
inc rdx
movsx ecx, byte [rdx + rax - 1]
mov word [rbx + rdx*2 - 2], cx
cmp rdx, rdi
jb 0x18004ef90
mov rdx, rsi
test rdi, rdi
je 0x18004f033
mov r10d, 0x53
lea r9, [0x180000000]
lea r11d, [r10 + 0x20]
lea r12d, [r10 - 0x10]
lea r13d, [r10 + 0x10]
nop
cmp word [rbx + rdx*2], 0x25
jne case.0x18004f002.47
lea r8, [rbx + rdx*2 + 2]
nop dword [rax]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x18004f002.47
cdqe
movzx eax, byte [r9 + rax + 0x4f110]
mov ecx, dword [r9 + rax*4 + 0x4f0f8]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x18004efe0
mov word [rbx + rdx*2 + 2], r10w
jmp case.0x18004f002.47
mov word [rbx + rdx*2 + 2], r11w
jmp case.0x18004f002.47
mov word [rbx + rdx*2 + 2], r12w
jmp case.0x18004f002.47
mov word [rbx + rdx*2 + 2], r13w
inc rdx
cmp rdx, rdi
jb 0x18004efd0
lea r9, [rbp + 0x268]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call fcn.1800fc1bc
mov word [rbp + 0x20e], si
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x18004f0bf
call fcn.18004ed60
test eax, eax
je 0x18004f0bf
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], rsi
mov ecx, 1
mov rbx, rax
lea rax, [rbp + 0x10]
mov edx, ecx
mov qword [rbp], rax
lea rax, [rbp]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], cx
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x18004f0d8
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
mov r9d, setsockopt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.180005860
lea rsp, [rbp + 0x228]
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
inc qword [rdi]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004f160
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.180012ac0
sub rsp, rax
mov r9, r8
mov r8d, edx
mov rdx, rcx
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
call fcn.18004ee90
add rsp, 0x28
jmp fcn.18000dd18
Function at 0x18005dc00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x50]
add rax, 4
mov rcx, rax
call fcn.18000acf0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc8
jle 0x18005dc59
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x184], 0xffffff85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x1a0], 0xffffffe8
mov eax, 0xffffff85
jmp 0x18005dcac
mov rax, qword [rsp + 0x50]
add rax, 4
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18005dcc0
mov r8d, dword [rsp + 0x20]
lea rdx, [0x18013de98]
mov rcx, qword [rsp + 0x50]
call fcn.1800f9dc0
mov eax, dword [rsp + 0x20]
add eax, 4
cdqe
mov r9, qword [rsp + 0x48]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800fadc0
xor eax, eax
add rsp, 0x38
ret

Function at 0x18005e430
Capabilities:
Set current directory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x260], 0
je 0x18005e489
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x260]
movsx eax, byte [rax]
test eax, eax
je 0x18005e489
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x260]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x50], 0
je 0x18005e487
mov rcx, qword [rsp + 0x20]
call fcn.18005d9b0
jmp 0x18005e493
call fcn.180023050
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800fdb74
test eax, eax
je 0x18005e4a8
mov eax, 0xffffff6c
jmp 0x18005e518
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 0x268]
test eax, eax
je 0x18005e4f0
cmp dword [rsp + 0x50], 0
je 0x18005e4d2
mov rax, qword [rsp + 0x40]
add rax, 0x268
mov rcx, rax
call fcn.18005d9b0
mov rax, qword [rsp + 0x40]
add rax, 0x268
mov rcx, rax
call fcn.1800fdb74
test eax, eax
je 0x18005e4f0
mov eax, 0xffffff6c
jmp 0x18005e518
cmp dword [rsp + 0x50], 0
je 0x18005e501
mov rcx, qword [rsp + 0x48]
call fcn.18005d9b0
mov rcx, qword [rsp + 0x48]
call fcn.1800fdb74
test eax, eax
je 0x18005e516
mov eax, 0xffffff6c
jmp 0x18005e518
xor eax, eax
add rsp, 0x38
ret
Function at 0x18005ed60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r9, qword [rsp + 0x48]
mov r8d, 4
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800fb1fc
lea r8, [rsp + 0x20]
lea rdx, [0x18013de9c]
mov rcx, qword [rsp + 0x50]
call fcn.180005e40
cmp dword [rsp + 0x20], 0xc8
jle 0x18005edd5
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x184], 0xffffff85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x1a0], 0xffffffe8
mov eax, 0xffffff85
jmp 0x18005ee59
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x48]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800fb1fc
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x18005ee26
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x184], 0xffffff85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x1a0], 0xffffffe7
mov eax, 0xffffff85
jmp 0x18005ee59
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x184], 0
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.18005dcc0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0
xor eax, eax
add rsp, 0x38
ret

Function at 0x18005fa00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x28
call fcn.180012ac0
sub rsp, rax
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x18005fa49
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x18005fa2d
mov dword [reloc.WSOCK32.dll_accept], eax
jmp 0x18005fa49
xorpd xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 8
call fcn.180044010
cmp dword [reloc.WSOCK32.dll_accept], 0
jne 0x18005fa66
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorpd xmm2, xmm2
lea rcx, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], eax
call fcn.180044010
add rsp, 0x28
ret
Function at 0x180074130
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
mov qword [rdx], 0
mov edi, ecx
mov rcx, qword [0x1801a2c60]
mov rbx, rdx
test rcx, rcx
jne 0x18007418b
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r11, rax
xor eax, eax
lock cmpxchg qword [0x1801a2c60], r11
mov rcx, qword [0x1801a2c60]
cmp rcx, r11
je 0x18007418b
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1801a2c60]
mov qword [rsp + 0x38], rbp
mov edx, 0xffffffff
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbp, [rdi + rdi*2]
lea r12, str.apiuid_req
mov rax, qword [r12 + rbp*8 + 0x10]
lea rsi, [r12 + rbp*8 + 0x10]
test rax, rax
jne 0x18007422a
cmp edi, 0x1e
jne 0x180074202
lea rdx, [0x18006ca80]
lea rcx, str.rmd160single
call fcn.180079580
test rax, rax
mov qword [0x1801a2c50], rax
je 0x180074213
lea rdx, [0x18006cb30]
lea rcx, [0x180116f20]
call fcn.180079580
test rax, rax
mov qword [0x1801a2c58], rax
je 0x180074213
mov rcx, qword [r12 + rbp*8 + 8]
mov rdx, rsi
call fcn.180079af0
test eax, eax
je 0x180074227
mov rcx, qword [0x1801a2c60]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x2bb
jmp 0x18007423c
mov rax, qword [rsi]
mov qword [rbx], rax
mov rcx, qword [0x1801a2c60]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x180074260
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1801a2c60]
test rcx, rcx
jne 0x1800742a5
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r11, rax
xor eax, eax
lock cmpxchg qword [0x1801a2c60], r11
mov rcx, qword [0x1801a2c60]
cmp rcx, r11
je 0x1800742a5
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1801a2c60]
mov qword [rsp + 0x38], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
mov rbx, rsi
lea rdi, [0x18014b060]
nop
nop
mov rcx, qword [rbx + rdi]
test rcx, rcx
je 0x1800742e2
call fcn.180079350
mov qword [rbx + rdi], rsi
add rbx, 0x18
cmp rbx, 0x360
jb 0x1800742d0
mov rcx, qword [0x1801a2c58]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x18007430a
call fcn.180079700
mov rcx, qword [0x1801a2c50]
test rcx, rcx
je 0x18007431b
call fcn.180079700
mov rcx, qword [0x1801a2c60]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x1801a2c60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1801a2c60], rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x1800743b0
Capabilities:
Get disk information
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
lea rcx, [0x18027d300]
xor edx, edx
mov r8d, 0x100
call fcn.18009ff60
xor ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, str.SystemDrive
mov r8d, 0xfe
mov qword [0x1801a2c48], rbx
mov byte [rsp + 0x40], bl
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1800743fd
cmp eax, 0xfe
jbe 0x18007440e
lea rdx, [0x180116f40]
lea rcx, [rsp + 0x40]
call fcn.1800a0050
lea rcx, [rsp + 0x40]
call fcn.1800a0010
test eax, eax
je 0x18007442e
cdqe
cmp byte [rsp + rax + 0x3f], 0x5c
je 0x18007442e
mov byte [rsp + rax + 0x40], 0x5c
mov byte [rsp + rax + 0x41], bl
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
lea r9, [0x18027d300]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov rcx, qword [0x1801a2c48]
mov edx, 4
test eax, eax
cmovne rcx, rdx
mov qword [0x1801a2c48], rcx
add rsp, 0x140
pop rbx
ret
Function at 0x180075260
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x180075297
mov qword [0x1801a2d20], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18014b3b4], eax
je 0x1800752e4
mov dword [reloc.WSOCK32.dll_accept], 0
jmp 0x18007529d
mov eax, dword [0x18014b3b4]
cmp eax, 0xffffffff
je 0x1800752e4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1800752ec
lea ecx, [rax + 8]
call fcn.180077c00
test rax, rax
mov rbx, rax
je 0x1800752e4
mov ecx, dword [0x18014b3b4]
mov rdx, rax
mov qword [rax], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1800752ec
mov rcx, rbx
call fcn.180077c20
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x180075920
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
movsxd rbx, edx
mov byte [r8], 0
mov qword [rsp + 0x48], rdi
mov rdi, r8
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov byte [rbx + rdi - 1], 0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x180075a20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18014b3b0], 0xffffffff
je 0x180075aea
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x180075a5b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18014b3b0], eax
je 0x180075ad4
mov dword [reloc.WSOCK32.dll_accept], 0
mov ecx, dword [0x18014b3b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x180075ab6
lea ecx, [rax + 0x10]
call fcn.180077c00
test rax, rax
mov rbx, rax
je 0x180075ad4
mov ecx, 0x5000
call fcn.180077c00
test rax, rax
mov qword [rbx + 8], rax
je 0x180075acc
mov ecx, dword [0x18014b3b0]
mov rdx, rbx
mov dword [rbx], 0x5000
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180075ab6
mov rcx, qword [rbx + 8]
call fcn.180077c20
jmp 0x180075acc
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180075acc
call fcn.180077c20
mov qword [rbx + 8], 0
mov rcx, rbx
call fcn.180077c20
mov ecx, dword [0x18014b3b0]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x18014b3b0], 0xffffffff
mov eax, dword [0x18014b3b4]
cmp eax, 0xffffffff
je 0x180075b90
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x180075b28
mov qword [0x1801a2d20], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18014b3b4], eax
je 0x180075b7e
mov dword [reloc.WSOCK32.dll_accept], 0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x180075b62
lea ecx, [rax + 8]
call fcn.180077c00
test rax, rax
mov rbx, rax
je 0x180075b78
mov ecx, dword [0x18014b3b4]
mov rdx, rax
mov qword [rax], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180075b70
mov ecx, dword [rbx]
call fcn.1800749e0
mov qword [rbx], 0xffffffffffffffff
mov rcx, rbx
call fcn.180077c20
mov eax, dword [0x18014b3b4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x18014b3b4], 0xffffffff
add rsp, 0x20
pop rbx
ret
sub rsp, 0x28
cmp dword [0x1801a2ce0], 0
je 0x180075bc4
lea rcx, [0x1801a2cb8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1801a2ce0], 0
cmp dword [0x1801a2d80], 0
je 0x180075be4
lea rcx, [0x1801a2c78]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1801a2d80], 0
add rsp, 0x28
jmp 0x180075a20
Function at 0x180075ba0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18014b3b0], 0xffffffff
je 0x180075aea
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x180075a5b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18014b3b0], eax
je 0x180075ad4
mov dword [reloc.WSOCK32.dll_accept], 0
mov ecx, dword [0x18014b3b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x180075ab6
lea ecx, [rax + 0x10]
call fcn.180077c00
test rax, rax
mov rbx, rax
je 0x180075ad4
mov ecx, 0x5000
call fcn.180077c00
test rax, rax
mov qword [rbx + 8], rax
je 0x180075acc
mov ecx, dword [0x18014b3b0]
mov rdx, rbx
mov dword [rbx], 0x5000
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180075ab6
mov rcx, qword [rbx + 8]
call fcn.180077c20
jmp 0x180075acc
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180075acc
call fcn.180077c20
mov qword [rbx + 8], 0
mov rcx, rbx
call fcn.180077c20
mov ecx, dword [0x18014b3b0]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x18014b3b0], 0xffffffff
mov eax, dword [0x18014b3b4]
cmp eax, 0xffffffff
je 0x180075b90
cmp dword [reloc.WSOCK32.dll_accept], 0
je 0x180075b28
mov qword [0x1801a2d20], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18014b3b4], eax
je 0x180075b7e
mov dword [reloc.WSOCK32.dll_accept], 0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x180075b62
lea ecx, [rax + 8]
call fcn.180077c00
test rax, rax
mov rbx, rax
je 0x180075b78
mov ecx, dword [0x18014b3b4]
mov rdx, rax
mov qword [rax], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180075b70
mov ecx, dword [rbx]
call fcn.1800749e0
mov qword [rbx], 0xffffffffffffffff
mov rcx, rbx
call fcn.180077c20
mov eax, dword [0x18014b3b4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x18014b3b4], 0xffffffff
add rsp, 0x20
pop rbx
ret
sub rsp, 0x28
cmp dword [0x1801a2ce0], 0
je 0x180075bc4
lea rcx, [0x1801a2cb8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1801a2ce0], 0
cmp dword [0x1801a2d80], 0
je 0x180075be4
lea rcx, [0x1801a2c78]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1801a2d80], 0
add rsp, 0x28
jmp 0x180075a20