joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400076f0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [rcx]
test edx, edx
jne 0x140007718
mov dword [rcx + 4], 2
lea rax, [rcx + 4]
cmp edx, 3
jne 0x140007741
mov dword [rax], 4
cmp edx, 0x22
jne 0x14000774c
mov dword [rax], 0x4a
ret
cmp edx, 1
jne 0x140007722
mov dword [rcx + 4], edx
jmp 0x1400076fd
cmp edx, 2
jne 0x1400076fd
lea rax, [rcx + 4]
mov dword [rax], 3
cmp edx, 0x17
jne 0x1400078e4
mov dword [rax], 0x38
ret
cmp edx, 4
jne 0x140007758
mov dword [rax], 5
cmp edx, 0x23
jne 0x140007763
mov dword [rax], 0x4b
ret
cmp edx, 5
jne 0x14000776f
mov dword [rax], 6
cmp edx, 0x24
jne 0x14000777a
mov dword [rax], 0x4c
ret
cmp edx, 6
jne 0x140007786
mov dword [rax], 8
cmp edx, 0x25
jne 0x140007791
mov dword [rax], 0x4d
ret
cmp edx, 7
jne 0x14000779d
mov dword [rax], 9
cmp edx, 0x26
jne 0x1400077a8
mov dword [rax], 0x4e
ret
cmp edx, 8
jne 0x1400077b4
mov dword [rax], 0xc
cmp edx, 0x27
jne 0x1400077bf
mov dword [rax], 0x4f
ret
cmp edx, 9
jne 0x1400077cb
mov dword [rax], 0xd
cmp edx, 0x28
jne 0x1400077d6
mov dword [rax], 0x50
ret
cmp edx, 0xa
jne 0x1400077e2
mov dword [rax], 0x10
cmp edx, 0x29
jne 0x1400077ed
mov dword [rax], 0x51
ret
cmp edx, 0xb
jne 0x1400077f9
mov dword [rax], 0x11
cmp edx, 0x2a
jne 0x140007804
mov dword [rax], 0x52
ret
cmp edx, 0xc
jne 0x140007810
mov dword [rax], 0x12
cmp edx, 0x2b
jne 0x14000781b
mov dword [rax], 0x53
ret
cmp edx, 0xd
jne 0x140007827
mov dword [rax], 0x13
cmp edx, 0x2c
jne 0x140007832
mov dword [rax], 0x54
ret
cmp edx, 0xe
jne 0x14000783e
mov dword [rax], 0x14
cmp edx, 0x2d
jne 0x140007849
mov dword [rax], 0x55
ret
cmp edx, 0xf
jne 0x140007855
mov dword [rax], 0x30
cmp edx, 0x2e
jne 0x140007860
mov dword [rax], 0x56
ret
cmp edx, 0x10
jne 0x14000786c
mov dword [rax], 0x31
cmp edx, 0x2f
jne 0x140007877
mov dword [rax], 0x57
ret
cmp edx, 0x11
jne 0x140007883
mov dword [rax], 0x32
cmp edx, 0x30
jne 0x14000788e
mov dword [rax], 0x58
ret
cmp edx, 0x12
jne 0x14000789a
mov dword [rax], 0x33
cmp edx, 0x31
jne 0x1400078a5
mov dword [rax], 0x59
ret
cmp edx, 0x13
jne 0x1400078b1
mov dword [rax], 0x34
cmp edx, 0x32
jne 0x1400078bc
mov dword [rax], 0x5a
ret
cmp edx, 0x14
jne 0x1400078c8
mov dword [rax], 0x35
cmp edx, 0x33
jne 0x1400078c7
mov dword [rax], 0x18
ret
cmp edx, 0x15
jne 0x1400078d4
mov dword [rax], 0x36
ret
cmp edx, 0x16
jne 0x140007731
mov dword [rax], 0x37
ret
cmp edx, 0x18
jne 0x1400078f0
mov dword [rax], 0x39
ret
cmp edx, 0x19
jne 0x1400078fc
mov dword [rax], 0x41
ret
cmp edx, 0x1a
jne 0x140007908
mov dword [rax], 0x42
ret
cmp edx, 0x1b
jne 0x140007914
mov dword [rax], 0x43
ret
cmp edx, 0x1c
jne 0x140007920
mov dword [rax], 0x44
ret
cmp edx, 0x1d
jne 0x14000792c
mov dword [rax], 0x45
ret
cmp edx, 0x1e
jne 0x140007938
mov dword [rax], 0x46
ret
cmp edx, 0x1f
jne 0x140007944
mov dword [rax], 0x47
ret
cmp edx, 0x20
jne 0x140007950
mov dword [rax], 0x48
ret
cmp edx, 0x21
jne 0x14000770c
mov dword [rax], 0x49
ret
Function at 0x14000b6c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000b71d
lea rbx, [0x140056f50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000b704
cmp r10, 2
jb 0x14000b704
cmp byte [r9], r8b
jne 0x14000b704
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000b6e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000b75f
lea rbx, [0x140056f50]
cmp r8b, 0x23
jne 0x14000b743
cmp byte [r9], r8b
jne 0x14000b743
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000b730
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000b8a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000b8ba
mov qword [r8], 0
lea rdx, [0x14005c3cc]
call fcn.14000b770
mov rbx, rax
test rax, rax
jne 0x14000b8da
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000b9b1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b9b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000b9b1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b9b1
cmp rdi, 0xffffffffffffffff
je 0x14000b9b1
mov rax, qword [0x14014edb0]
test rax, rax
je 0x14000b94e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000b9b1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000b99e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14014edb0]
test rax, rax
je 0x14000b993
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000b9ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000b9ac
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000b9bc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000efd0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140056f50]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x14014edb0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x14000f066
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400228f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f070
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf0]
lea r9, [0x140056f50]
movss xmm2, dword [rcx + 0x108]
movss xmm3, dword [rcx + 0x10c]
movsxd rcx, dword [rcx + 0xe8]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14001bb50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14014edb0]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x14001bbb1
cmp byte [rbx + 0x4a2e], 0
jne 0x14001bbb1
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000b580
test dil, 1
je 0x14001bcd8
jmp 0x14001bc3a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005d250]
mulss xmm1, dword [0x14005d230]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14005d134]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.14000b580
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001bc90
lea r11, [0x140056f50]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001bc73
cmp byte [r8], r9b
jne 0x14001bc73
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001bc60
not ecx
call fcn.140012e00
test rax, rax
je 0x14001bcd8
cmp byte [rax + 0xae], 0
je 0x14001bcd8
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.14000b580
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140015550
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400538d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400211a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140021247
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400211fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140023640
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000c030
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14014eda8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002124f
mov rcx, rbx
call fcn.14000c030
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400217c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14014edb0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140021823
mov qword [rsp], rbx
lea rbx, [0x140056f50]
nop dword [rax]
cmp r9b, 0x23
jne 0x140021803
cmp byte [r8], r9b
jne 0x140021803
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400217f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140021857
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14002185e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140021844
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140053350
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor esi, esi
lea r8, [0x14004ce20]
mov rbx, rcx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rax, [0x14004c9c0]
mov qword [rsp + 0x70], 0x50
mov edx, 0x7f00
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
xorps xmm0, xmm0
lea rdi, [0x14005c5bc]
mov edx, 0x7f00
mov qword [rsp + 0x98], rax
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rsp + 0x88]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rsi
mov r8, rdi
mov qword [rsp + 0x50], rax
mov rdx, rdi
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea edx, [rsi - 0x14]
mov r8d, 0x80020
mov rcx, rax
mov qword [rbx + 0x50], rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbx + 0x50]
lea r9d, [rsi + 2]
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14005d3d0]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rbx + 0x50]
movdqu xmmword [rsp + 0xc0], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [rbx + 0x50]
lea edx, [rsi + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
call fcn.14004ca30
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.140052f60
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400538d0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140054554
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005459e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005459e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005459e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005459e
cmp dword [rcx + 0x84], 0xe
jbe 0x14005459e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400545a0
xor al, al
add rsp, 0x28
ret
Function at 0x1800014e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x230
movsxd rax, dword [rcx + 0x3c]
mov r13, r8
mov r15d, edx
mov rbp, rcx
mov r9d, dword [rax + rcx + 0x88]
mov esi, dword [r9 + rcx + 0x20]
mov r14d, dword [r9 + rcx + 0x1c]
add rsi, rcx
mov edi, dword [r9 + rcx + 0x24]
add r14, rcx
add rdi, rcx
nop
mov ebx, dword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 0x208
add rbx, rbp
call fcn.180002119
mov rcx, rbx
call fcn.180002099
test eax, eax
je 0x18000157d
mov ecx, eax
lea r8, [rsp + 0x20]
lea rdx, [rcx + rbx]
lea r8, [r8 + rcx*2]
nop
movsx ecx, byte [rdx]
lea rdx, [rdx - 1]
mov word [r8], cx
lea r8, [r8 - 2]
add eax, 0xffffffff
jne 0x180001569
mov ecx, eax
movsx eax, byte [rcx + rbx]
mov word [rsp + rcx*2 + 0x20], ax
lea rcx, [rsp + 0x20]
call fcn.1800020d9
xor edx, edx
test eax, eax
je 0x1800015c0
mov r10d, dword [r13 + 0x68]
lea r8, [rsp + 0x20]
mov r9d, eax
nop dword [rax + rax]
mov ecx, r10d
lea r8, [r8 + 2]
imul ecx, edx
movzx edx, word [r8 - 2]
add edx, ecx
sub r9, 1
jne 0x1800015a9
movzx eax, word [rdi]
mov eax, dword [r14 + rax*4]
add rax, rbp
cmp r15d, edx
je 0x1800015dc
add rsi, 4
add rdi, 2
jmp 0x180001539
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x180001c49
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push r13
push r14
push r15
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], rbx
xor r15d, r15d
mov rbx, qword [rsp + 0xa0]
mov qword [rax - 0x28], rbp
mov rbp, rcx
mov qword [rax - 0x38], rdi
lea rcx, [rax - 0x50]
lea r8d, [r15 + 4]
mov qword [rax - 0x40], r12
lea rdx, [rbx + 0x13c]
call fcn.180001479
lea rdx, [rbx + 0xcc]
lea r8d, [r15 + 4]
lea rcx, [rsp + 0x2c]
call fcn.180001479
xor r14d, r14d
mov qword [rsp + 0x48], rsi
xor r12d, r12d
mov rdi, rbp
xor r13d, r13d
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x88]
lea rbx, [rdi + 1]
mov eax, ebp
xor r9d, r9d
sub eax, edi
lea r11d, [rcx - 0x10]
add r11d, eax
je 0x180001dee
lea r8, [rsp + 0x28]
mov r10, rbx
sub r8, rbx
nop word [rax + rax]
xor edx, edx
mov rax, r10
movzx ecx, byte [r8 + rax]
cmp byte [rax], cl
je 0x180001d10
cmp cl, 0x3f
jne 0x180001d9b
inc edx
inc rax
cmp edx, 8
jb 0x180001cfe
mov edi, r9d
add rdi, rbx
je 0x180001dee
mov ecx, dword [rdi]
mov dword [rsp + 0x20], ecx
movzx eax, byte [rsp + 0x21]
movzx ebx, byte [rsp + 0x22]
shl eax, 0x10
shl ebx, 8
add ebx, eax
movzx eax, cl
shl eax, 0x18
add ebx, eax
shr ecx, 0x18
mov rax, qword [rsp + 0xa0]
add ebx, ecx
mov eax, dword [rax + 0x48]
cmp dword [rdi + 8], eax
jne 0x180001daf
test r14, r14
jne 0x180001db8
mov r12d, dword [rdi + 0x10]
lea ecx, [r14 + 0x40]
mov rax, qword [rsp + 0x98]
lea r13, [rdi + 8]
add r12d, 0x10
mov edx, r12d
call qword [rax + reloc.WLDAP32.dll_Ordinal_200]
mov r8d, ebx
lea rdx, [rdi + 8]
mov rcx, rax
mov r14, rax
call fcn.180001479
add r15d, ebx
jmp 0x180001cc9
inc r9d
inc r10
dec r8
cmp r9d, r11d
jb 0x180001cf9
jmp 0x180001dee
test r14, r14
je 0x180001cc9
mov ecx, r15d
lea ebp, [rbx + r15]
add rcx, r14
lea rdx, [rdi + 8]
cmp ebp, r12d
ja 0x180001de3
mov r8d, ebx
call fcn.180001479
mov r15d, ebp
mov rbp, qword [rsp + 0x80]
jmp 0x180001cc9
sub r12d, r15d
mov r8d, r12d
call fcn.180001479
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test r14, r14
jne 0x180001e19
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
mov eax, dword [r13 + 8]
lea rcx, [r14 + 0x10]
mov r8d, dword [r13 + 4]
test al, 3
je 0x180001e2f
dec eax
test al, 3
jne 0x180001e29
test eax, eax
je 0x180001e48
lea edx, [rax - 1]
shr edx, 2
inc edx
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180001e3b
mov rax, qword [rsp + 0x90]
test r15d, r15d
mov qword [rax], r14
setne al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
Function at 0x180001c70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push r13
push r14
push r15
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], rbx
xor r15d, r15d
mov rbx, qword [rsp + 0xa0]
mov qword [rax - 0x28], rbp
mov rbp, rcx
mov qword [rax - 0x38], rdi
lea rcx, [rax - 0x50]
lea r8d, [r15 + 4]
mov qword [rax - 0x40], r12
lea rdx, [rbx + 0x13c]
call fcn.180001479
lea rdx, [rbx + 0xcc]
lea r8d, [r15 + 4]
lea rcx, [rsp + 0x2c]
call fcn.180001479
xor r14d, r14d
mov qword [rsp + 0x48], rsi
xor r12d, r12d
mov rdi, rbp
xor r13d, r13d
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x88]
lea rbx, [rdi + 1]
mov eax, ebp
xor r9d, r9d
sub eax, edi
lea r11d, [rcx - 0x10]
add r11d, eax
je 0x180001dee
lea r8, [rsp + 0x28]
mov r10, rbx
sub r8, rbx
nop word [rax + rax]
xor edx, edx
mov rax, r10
movzx ecx, byte [r8 + rax]
cmp byte [rax], cl
je 0x180001d10
cmp cl, 0x3f
jne 0x180001d9b
inc edx
inc rax
cmp edx, 8
jb 0x180001cfe
mov edi, r9d
add rdi, rbx
je 0x180001dee
mov ecx, dword [rdi]
mov dword [rsp + 0x20], ecx
movzx eax, byte [rsp + 0x21]
movzx ebx, byte [rsp + 0x22]
shl eax, 0x10
shl ebx, 8
add ebx, eax
movzx eax, cl
shl eax, 0x18
add ebx, eax
shr ecx, 0x18
mov rax, qword [rsp + 0xa0]
add ebx, ecx
mov eax, dword [rax + 0x48]
cmp dword [rdi + 8], eax
jne 0x180001daf
test r14, r14
jne 0x180001db8
mov r12d, dword [rdi + 0x10]
lea ecx, [r14 + 0x40]
mov rax, qword [rsp + 0x98]
lea r13, [rdi + 8]
add r12d, 0x10
mov edx, r12d
call qword [rax + reloc.WLDAP32.dll_Ordinal_200]
mov r8d, ebx
lea rdx, [rdi + 8]
mov rcx, rax
mov r14, rax
call fcn.180001479
add r15d, ebx
jmp 0x180001cc9
inc r9d
inc r10
dec r8
cmp r9d, r11d
jb 0x180001cf9
jmp 0x180001dee
test r14, r14
je 0x180001cc9
mov ecx, r15d
lea ebp, [rbx + r15]
add rcx, r14
lea rdx, [rdi + 8]
cmp ebp, r12d
ja 0x180001de3
mov r8d, ebx
call fcn.180001479
mov r15d, ebp
mov rbp, qword [rsp + 0x80]
jmp 0x180001cc9
sub r12d, r15d
mov r8d, r12d
call fcn.180001479
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test r14, r14
jne 0x180001e19
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
mov eax, dword [r13 + 8]
lea rcx, [r14 + 0x10]
mov r8d, dword [r13 + 4]
test al, 3
je 0x180001e2f
dec eax
test al, 3
jne 0x180001e29
test eax, eax
je 0x180001e48
lea edx, [rax - 1]
shr edx, 2
inc edx
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180001e3b
mov rax, qword [rsp + 0x90]
test r15d, r15d
mov qword [rax], r14
setne al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
Function at 0x180001e69
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov esi, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x10
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rdi]
mov rbx, qword [rdi + 0x60]
mov rcx, rbx
call fcn.1800020d9
xor r8d, r8d
test eax, eax
je 0x180001ee0
mov r9d, eax
nop dword [rax]
movzx ecx, word [rbx]
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x180001ec9
add cx, 0x20
imul r8d, r8d, 0x1003f
add rbx, 2
movzx edx, cx
add r8d, edx
sub r9, 1
jne 0x180001eb9
cmp esi, r8d
jne 0x180001e99
mov rax, qword [rdi + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180001ef9
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword gs:[0x60]
mov ebx, ecx
mov r11, qword [rax + 0x18]
add r11, 0x10
nop dword [rax + rax]
mov r11, qword [r11]
mov r10, qword [r11 + 0x60]
test r10, r10
je 0x180001f19
test ebx, ebx
je 0x180001f5e
xor r9d, r9d
xor r8d, r8d
cmp word [r10], r8w
je 0x180001f59
movzx ecx, word [r10]
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x180001f46
add cx, 0x20
inc r8
movzx edx, cx
add r9d, edx
movzx ecx, word [r10 + r8*2]
test cx, cx
jne 0x180001f39
cmp ebx, r9d
jne 0x180001f19
mov rax, qword [r11 + 0x30]
mov rbx, qword [rsp + 8]
ret

Function at 0x180003f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x180003f3d
call fcn.180057450
test eax, eax
jne 0x180003f63
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x180003f36
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180003f36
mov al, 1
add rsp, 0x28
ret