joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b8a0
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.14000730c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000b92a
cmp byte [rbp - 0x21], r15b
je 0x14000b925
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000b960
call fcn.1400099a8
test eax, eax
jne 0x14000b94c
cmp byte [rbp - 0x21], r15b
je 0x14000b944
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000b960
cmp byte [rbp - 0x21], r15b
je 0x14000b95d
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.1400068ec
test eax, eax
jne 0x14000ba00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000730c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000b99f
cmp byte [rbp - 0x21], r15b
je 0x14000b9d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000b9d4
call fcn.1400099a8
test eax, eax
jne 0x14000b9c0
cmp byte [rbp - 0x21], r15b
je 0x14000b9b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000b9d4
cmp byte [rbp - 0x21], r15b
je 0x14000b9d1
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.1400068ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000ba00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000ba03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000ba11
mov rcx, rdi
call fcn.140005c0c
cmp byte [rbp + 0x3f], r15b
je 0x14000ba20
mov rcx, qword [rbp + 0x27]
call fcn.140005c0c
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 0x14000e850
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e878
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e878
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800705cc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180101c80
mov rax, rcx
neg rcx
test rax, 7
je 0x180101c9d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x180101cf8
test al, 7
jne 0x180101c90
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x180101cb1
mov rdx, qword [rax - 8]
test dl, dl
je 0x180101d22
test dh, dh
je 0x180101d1c
shr rdx, 0x10
test dl, dl
je 0x180101d16
test dh, dh
je 0x180101d10
shr rdx, 0x10
test dl, dl
je 0x180101d0a
test dh, dh
je 0x180101d04
shr edx, 0x10
test dl, dl
je 0x180101cfe
test dh, dh
jne 0x180101cb1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1800708ec
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1800949c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180094340
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800949ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1801a1020]
jmp 0x180094a09
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x180070a31
Capabilities:
Query environment variable

Disassembly:
jmp 0x18011cfe0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18011ce10
lea rcx, [rsp + 0x40]
call fcn.18011cf90
movzx eax, al
test eax, eax
jne 0x18011d028
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.18011ce40
mov rax, qword [rsp + 0x70]
jmp 0x18011d1f9
lea rcx, [rsp + 0x40]
call fcn.18011cf60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18011cf00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.18011cf60
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.180071440
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18011d0ce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.18011ce40
mov rax, qword [rsp + 0x80]
jmp 0x18011d1f9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1800707ed
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800706d5
lea rcx, [rsp + 0x48]
call fcn.1800703b5
movzx eax, al
test eax, eax
jne 0x18011d135
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.18006f780
lea rcx, [rsp + 0x40]
call fcn.18011ce40
mov rax, qword [rsp + 0x88]
jmp 0x18011d1f9
lea rcx, [rsp + 0x48]
call fcn.180070ced
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.18011cf60
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.180071440
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18011d1cb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.18006f780
lea rcx, [rsp + 0x40]
call fcn.18011ce40
mov rax, qword [rsp + 0xa0]
jmp 0x18011d1f9
lea rcx, [rsp + 0x48]
call fcn.1800706b2
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.18006f780
lea rcx, [rsp + 0x40]
call fcn.18011ce40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x180070a40
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1800948f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1800942c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180094931
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1801a1020]
jmp 0x180094937
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x180070abd
Capabilities:
Get geographical location

Disassembly:
jmp 0x180120dc0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.18011fcf0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180120e27
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1801a1030]
jmp 0x180120e49
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180070360
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x180070ad1
Capabilities:
Terminate process

Disassembly:
jmp 0x18007a210
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]
add rsp, 0x28
ret
Function at 0x180070c70
Capabilities:
Print debug messages

Disassembly:
jmp 0x180077cb0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x18018e148]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x1801a023f]
call fcn.180072061
mov dword [rbp + 4], 0
mov qword [rbp + 0x148], 0xffffffffffffffff
lea rcx, [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x244], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rbp + 0x174]
movzx edx, word [rbp + 0x172]
movzx r8d, word [rbp + 0x170]
mov r9d, dword [rbp + 0x244]
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, r8d
lea r8, str.__02u:_02u:_02u____u____u_
mov edx, 0xff
lea rcx, [rbp + 0x30]
call fcn.180070d88
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x148], 0xffffffffffffffff
jne 0x180077ddc
cmp dword [0x18018f494], 0
jne 0x180077dd2
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffff
jmp 0x180077eec
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, eax
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x148]
call fcn.180071e59
test eax, eax
jne 0x180077e49
cmp dword [0x18018f494], 0
jne 0x180077e38
lea rcx, str.WriteLogFile___failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rbp + 4], 0xfffffffe
jmp 0x180077edc
mov r8d, dword [rbp + 0x280]
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0x148]
call fcn.180071e59
test eax, eax
jne 0x180077e95
cmp dword [0x18018f494], 0
jne 0x180077e8a
lea rcx, str.WriteLogFile___failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rbp + 4], 0xfffffffd
jmp 0x180077edc
mov r8d, 2
lea rdx, [0x18015b0fc]
mov rcx, qword [rbp + 0x148]
call fcn.180071e59
test eax, eax
jne 0x180077edc
cmp dword [0x18018f494], 0
jne 0x180077ed5
lea rcx, str.WriteLogFile___failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rbp + 4], 0xfffffffc
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x18015b010]
call fcn.1800717ce
mov rax, rdi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.18007077a
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret
Function at 0x180070ca2
Capabilities:
Print debug messages

Disassembly:
jmp 0x18013a3d0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x18018e148]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x18013a3f6
jmp 0x18013a473
mov rcx, qword [rbp + 0x30]
call fcn.1800705cc
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x18013a40f
jmp 0x18013a473
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x18013a42c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18006f8c0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.18006fc80
test eax, eax
jne 0x18013a473
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.18007077a
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x180070f72
Capabilities:
Create directory

Disassembly:
jmp 0x180078130
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x18018e148]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x1801a023f]
call fcn.180072061
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x264], eax
xor edx, edx
lea rcx, str.c:debug_log_
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp qword [rbp + 0x420], 0
je 0x1800781b7
mov r8d, 0x20
mov rdx, qword [rbp + 0x420]
lea rcx, [0x18018f370]
call fcn.18006fc44
mov r8d, 0x104
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.1800713f0
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, 0x5c
lea rcx, [rbp + 0x10]
call fcn.18006f43d
mov ecx, dword [rbp + 0x264]
mov dword [rsp + 0x20], ecx
mov r9, rax
lea r8, str.dbg__s__u.txt
mov edx, 0x104
lea rcx, [rbp + 0x140]
call fcn.180070d88
mov r8d, 0x104
lea rdx, str.c:debug_log_
lea rcx, [0x18018f390]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [0x18015b110]
lea rcx, [0x18018f390]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp + 0x140]
lea rcx, [0x18018f390]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, str.logger_init__:_ok.
call fcn.18006f6ae
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x18015ad60]
call fcn.1800717ce
mov eax, edi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.18007077a
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x1800715c6
Capabilities:
Terminate process

Disassembly:
jmp 0x180102670
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18010269e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.180071cce
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x180071981
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180077800
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x1801a0197]
call fcn.180072061
mov rax, qword [rbp + 0x1b0]
movzx eax, byte [rax + 0x100]
mov byte [rbp + 0x24], al
mov rax, qword [rbp + 0x1b0]
movzx eax, byte [rax + 0x101]
mov byte [rbp + 0x44], al
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x1b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov dword [rbp + 0xa4], 0
jmp 0x18007787e
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0x1a8]
cmp dword [rbp + 0xa4], eax
jge 0x18007796d
movzx eax, byte [rbp + 0x24]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x68]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rbp + 0x44]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x68]
movzx eax, byte [rcx + rax]
mov byte [rbp + 4], al
movzx eax, byte [rbp + 0x44]
movzx ecx, byte [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x68]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movzx eax, byte [rbp + 0x44]
mov rcx, qword [rbp + 0x68]
movzx edx, byte [rbp + 4]
mov byte [rcx + rax], dl
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x68]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rbp + 0x44]
mov rdx, qword [rbp + 0x68]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rbp + 0x84], al
movsxd rax, dword [rbp + 0xa4]
movzx ecx, byte [rbp + 0x84]
mov rdx, qword [rbp + 0x68]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rbp + 0x1a0]
movzx eax, byte [rdx + rax]
xor eax, ecx
movsxd rcx, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x1a0]
mov byte [rdx + rcx], al
jmp 0x180077870
mov rax, qword [rbp + 0x1b0]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0x100], cl
mov rax, qword [rbp + 0x1b0]
movzx ecx, byte [rbp + 0x44]
mov byte [rax + 0x101], cl
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180071d2d
Capabilities:
Print debug messages

Disassembly:
jmp 0x1801154e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x180071ddc
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180094a30
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180094380
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180094a79
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1801a1020]
jmp 0x180094a88
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x180071e59
Capabilities:
Write file on windows

Disassembly:
jmp 0x180077fc0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x18018e148]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1801a023f]
call fcn.180072061
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
cmp dword [rbp + 0x150], 0
jne 0x180078031
mov eax, 1
jmp 0x1800780ac
cmp dword [rbp + 0x150], 0
jae 0x18007803e
xor eax, eax
jmp 0x1800780ac
mov dword [rbp + 0x44], 0
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x150]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x148]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x18007808f
xor eax, eax
jmp 0x1800780ac
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp + 4], eax
jb 0x18007803e
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x18015b090]
call fcn.1800717ce
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.18007077a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180142250
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.18006f8c0
sub rsp, rax
mov rax, qword [0x18018e148]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x180190380]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180142442
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x180142396
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180142396
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x18014237b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x180142318
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180142402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180142461
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x18014243d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180142461
jmp 0x1801422ee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.18007077a
add rsp, 0x1498
pop rdi
pop rsi
ret