joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400564c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140061b50
cmp eax, 1
je 0x1400564f2
mov ecx, 3
call fcn.140061b50
test eax, eax
jne 0x1400565a6
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400565a6
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14005651e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140056508
jmp 0x140056592
cmp edi, 0x17
jae 0x140056592
mov ecx, 3
call fcn.140061b50
cmp eax, 1
je 0x140056549
mov ecx, 3
call fcn.140061b50
test eax, eax
jne 0x140056592
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x140056592
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140056592
cmp rax, 0xffffffffffffffff
je 0x140056592
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140056280
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140056707
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400960c0]
jne 0x140050fba
rol rcx, 0x10
test cx, 0xffff
jne 0x140050fb6
repz ret
ror rcx, 0x10
jmp 0x140056660
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14024b5a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14024b698]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400566e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14024b5a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140056707
mov rax, qword [rsp + 0x88]
mov qword [0x14024b698], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14024b638], rax
mov rax, qword [0x14024b698]
mov qword [0x14024b510], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14024b620], rax
mov dword [0x14024b500], 0xc0000409
mov dword [0x14024b504], 1
mov rax, qword [0x1400960c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400960c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14024b598], eax
mov ecx, 1
call fcn.140058f10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006c2b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14024b598], 0
jne 0x14005678e
mov ecx, 1
call fcn.140058f10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14005e740
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14024c02c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14005e79c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14005e77c
mov dword [0x14024c02c], 1
jmp 0x14005e7af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14005e796
mov dword [0x14024c02c], 2
jmp 0x14005e819
mov eax, dword [0x14024c02c]
cmp eax, 1
jne 0x14005e810
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14005e7ea
cmp word [rdi], bp
mov rax, rdi
je 0x14005e7c9
add rax, 2
cmp word [rax], bp
jne 0x14005e7b7
add rax, 2
cmp word [rax], bp
jne 0x14005e7b7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140056050
test rax, rax
mov rbx, rax
jne 0x14005e7f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14005e90b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140053b20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14005e90b
cmp eax, 2
je 0x14005e819
test eax, eax
jne 0x14005e7ea
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14005e7ea
cmp byte [rax], bpl
mov rbx, rax
je 0x14005e868
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14005e7ea
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14005e830
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400560c0
test rax, rax
mov r12, rax
jne 0x14005e88d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14005e90b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14005e8f5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14005e91e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14005e8a0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400512a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14005e906
Function at 0x1400617d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140055470
xor ebx, ebx
cmp qword [0x14024c038], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400618fc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140061a0f
lea rdx, [0x14006c520]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140061a0f
mov rcx, rax
call fcn.1400553a0
lea rdx, [0x14006c510]
mov rcx, rsi
mov qword [0x14024c038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400553a0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14024c040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400553a0
lea rcx, [rsp + 0x98]
mov qword [0x14024c048], rax
call fcn.140052b30
test eax, eax
je 0x1400618af
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140051a40
cmp dword [rsp + 0x98], 2
jne 0x1400618fc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400553a0
test rax, rax
mov qword [0x14024c058], rax
je 0x1400618fc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400553a0
mov qword [0x14024c050], rax
mov rcx, qword [0x14024c050]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400619a8
cmp qword [0x14024c058], rbp
je 0x1400619a8
call fcn.140055560
mov rcx, qword [0x14024c058]
mov rsi, rax
call fcn.140055560
test rsi, rsi
mov r12, rax
je 0x1400619a8
test rax, rax
je 0x1400619a8
call rsi
test rax, rax
je 0x140061973
lea rcx, [rsp + 0x34]
mov r9d, SafeArrayGetDim
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140061973
test byte [rsp + 0x40], 1
jne 0x1400619a8
lea rcx, [rsp + 0x30]
call fcn.140052b80
test eax, eax
je 0x140061995
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140051a40
cmp dword [rsp + 0x30], 4
jb 0x1400619a2
bts edi, 0x15
jmp 0x1400619e6
bts edi, 0x12
jmp 0x1400619e6
mov rcx, qword [0x14024c040]
cmp rcx, rbp
je 0x1400619e6
call fcn.140055560
test rax, rax
je 0x1400619e6
call rax
test rax, rax
mov rbx, rax
je 0x1400619e6
mov rcx, qword [0x14024c048]
cmp rcx, rbp
je 0x1400619e6
call fcn.140055560
test rax, rax
je 0x1400619e6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14024c038]
call fcn.140055560
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140061a0f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140061a11
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400643e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140064427
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140050fa0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140053360
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140050fa0
add rsp, 0x38
ret
Function at 0x140067ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov r14, rdx
mov rbp, rcx
je 0x140067f94
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, dword [rax + rcx + 0x88]
mov esi, ebx
add rdi, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140067f8f
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov r13, rbx
mov r12, rbx
nop
nop
mov eax, dword [rdi + 0x20]
mov rdx, r14
add rax, r13
mov ecx, dword [rax + rbp]
add rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140067f5f
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r12
add rcx, rbp
movzx edx, word [rax + rbp]
mov ebx, dword [rcx + rdx*4]
add rbx, rbp
add esi, 1
add r13, 4
add r12, 2
cmp esi, dword [rdi + 0x18]
jb 0x140067f30
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rax, rbx
jmp 0x140067f7c
mov rax, rbx
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x180016d40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180016d68
xor eax, eax
lea r8, [0x180016530]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180016eb0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x18009d7c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rcx
mov qword [r11 - 0x28], rcx
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
mov rax, rcx
sub rax, r8
xor r15d, r15d
cmp rax, 3
jb 0x180016f7f
lea rax, [r8 + 3]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0xf
jbe 0x180016f13
mov rdi, qword [rbx]
lea rax, [0x1800911b3]
mov r14d, 3
lea rsi, [0x1800911b0]
cmp rax, rdi
jbe 0x180016f47
lea rax, [rdi + r8]
cmp rsi, rax
ja 0x180016f47
cmp rdi, rsi
ja 0x180016f3f
mov rbp, r15
jmp 0x180016f4a
mov rbp, rdi
sub rbp, rsi
jmp 0x180016f4a
mov rbp, r14
inc r8
lea rcx, [rdi + 3]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
sub r14, rbp
lea rdx, [rsi + 3]
add rdx, rbp
lea rcx, [rdi + rbp]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180016fa1
mov r14d, 3
mov qword [rsp + 0x28], r14
lea rsi, [0x1800911b0]
mov qword [rsp + 0x20], rsi
mov edx, r14d
mov rcx, rbx
call fcn.180015b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, str.cmd.exe
mov qword [rsp + 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180017000
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x180017056
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180017051
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180017092
mov rcx, r8
call fcn.18007aa74
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18007aa10
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1800173b0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
sub rsp, 0x58
lea rdx, [rsp + 0x20]
call fcn.180017550
mov r9, rax
cmp byte [rax + 0xd], 0
je 0x1800174ff
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800174bf
movdqa xmm2, xmmword [0x180091460]
mov ecx, 8
movdqa xmm3, xmmword [0x180091470]
movdqa xmm1, xmm2
movdqa xmm5, xmmword [0x180091570]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1800914a0]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
andps xmm2, xmmword [0x180091500]
movd xmm0, dword [rax]
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.666666666666666677777777777777778888888888888888]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rax], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800914a0]
psubd xmm3, xmm0
movd xmm0, dword [rax + 4]
andps xmm3, xmmword [0x180091500]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [str.666666666666666677777777777777778888888888888888]
xorps xmm3, xmm0
movd dword [rax + 4], xmm3
movsxd r8, ecx
add r8, r9
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x1800174d0
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.180002170
mov rcx, rax
call fcn.180017190
cmp byte [0x18009e6c9], 0
je 0x180017541
lea rdx, str.Exit_called_n_____Exiting_in_5_seconds...
lea rcx, [rsp + 0x30]
call fcn.180002170
mov rcx, rax
call fcn.1800170c0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x1d30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180022820
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180022902
call fcn.18003b3a0
test al, al
jne 0x180022902
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x180022852
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.180046120
test rax, rax
je 0x180022897
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.180046120
mov rsi, rax
test rax, rax
je 0x180022897
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1800228cb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.180037120
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1800228b0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180030d20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa4e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x180030deb
cmp qword [rcx + 0x278], 0
je 0x180030d9e
mov qword [rsp + 0x40], rbx
call fcn.18001cb50
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.18001d190
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.18001d190
mov rbx, qword [rsp + 0x40]
jmp 0x180030deb
mov ecx, esi
test edx, edx
je 0x180030dae
sub ecx, 1
je 0x180030dae
cmp ecx, 1
jne 0x180030deb
mov r9, qword [rdi + 0x1e8]
lea rax, [0x180080950]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x180034a30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x180034d20
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x180034d4a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180081410]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x180034dab
mov rcx, rbx
test r14, r14
je 0x180034d98
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x180034de2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180034de2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x180034eaa
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x180034e10
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x180034e9c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x180034e9c
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x180034e40
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x180034e51
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180034e70
mov rcx, rsi
test r14, r14
je 0x180034e93
xor edx, edx
mov r8d, 8
call r14
jmp 0x180034e99
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [case.0x1800240f5.0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800468c0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.180022c10
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x1800240f5.2
mov rcx, rdi
mov rsi, rax
call case.0x1800240f5.2
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x180046970
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.180022c10
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.180022ca0
cmp rax, 0x3e8
ja 0x1800469a1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x180046920
test rsi, rsi
je 0x18004697d
mov rcx, rsi
call case.0x1800240f5.0
test rbx, rbx
je 0x18004698a
mov rcx, rbx
call case.0x1800240f5.0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1800469ae
mov rcx, rsi
call case.0x1800240f5.0
test rbx, rbx
je 0x1800469bb
mov rcx, rbx
call case.0x1800240f5.0
mov eax, 1
jmp 0x18004698c
Function at 0x180046f20
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor ebp, ebp
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1800470bf
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x18004709f
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x180046f8e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180046f80
inc rbx
jmp 0x180046f90
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x180046fa0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x180046faf
cmp eax, 0x17
jne 0x180047048
mov r15d, Ordinal_33
cmp qword [rsi + 0x20], 0
je 0x180047048
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x180047048
cmp rax, r15
jb 0x180047048
lea rcx, [rbx + 0x30]
add rcx, r15
call qword [section..data]
mov r14, rax
test rax, rax
je 0x180047057
mov ecx, dword [rsi]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], r15d
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x180047035
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, r15
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x180047045
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180046f70
jmp 0x18004705d
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x180047077
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x18004709a
test rdi, rdi
je 0x180047096
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [case.0x1800240f5.0]
mov rdi, rbx
test rbx, rbx
jne 0x180047081
xor edi, edi
jmp 0x1800470ae
test rdi, rdi
jne 0x1800470ae
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rbp
ret

Function at 0x180047530
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x180047566
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret