joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e8db0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x1400e8f68
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x1400e8e28
cmp eax, 0x40
jae 0x1400e8e12
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x1400e8e00
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e9090
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x1400e8e30
lea rsi, [rbx + 0x2c]
jae 0x1400e8e42
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x1400e8e30
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.1400e9090
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e8f80
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x1400fb4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400ea130
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400fb4f6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1400fb54d
mov ebp, 0x4b0000
jmp 0x1400fb55b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400ec710
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1400fb571
mov eax, r12d
jmp 0x1400fb57a
mov edx, edi
mov ecx, ebp
call fcn.1400ec710
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1400fb596
shl esi, 0x10
mov ecx, esi
jmp 0x1400fb685
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400fb5f4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1400ea130
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400fb5e4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400ec5e0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400ea130
add ebx, eax
jmp 0x1400fb68e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400fb601
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1400fb640
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1400ea130
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1400fb645
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400ec5e0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400ea130
add ebx, eax
jmp 0x1400fb68e
cmp eax, r12d
jge 0x1400fb67e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1400ea130
sub ebp, eax
sub r15d, esi
je 0x1400fb67e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400ec5e0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1400ea130
add ebx, eax
jmp 0x1400fb68e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1400ea130
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1400ea130
Function at 0x1401476d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1401b26a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14014786c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x14014786c
cmp r10d, r14d
jne 0x140147770
sub rbx, 0x10
jmp 0x1401478b4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1401477e2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1401477a4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1401477ac
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1401477cb
movzx edx, r11b
mov rcx, rsi
call fcn.140148880
test al, al
jne 0x1401478c5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.140148ef0
test al, al
jne 0x1401478c5
mov edx, dword [rsi + 0x64]
lea r9, [0x140149250]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x14014780e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140147550
jmp 0x140147862
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.140147550
test dil, dil
je 0x14014785a
cmp byte [rsi + 0x6a], 0
jne 0x14014785a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1401478c5
sub rbx, 0x10
jmp 0x1401478b4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1401478c9
mov ebp, dword [rbx]
jmp 0x140147730
mov al, 1
jmp 0x1401478d2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140154060
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x14014dc20
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14014dc3c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14014dc90
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14014ddb5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x14014ddb5
test rax, rax
je 0x14014ddb5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x14014ddb5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14014dd2a
lea rax, [0x14014de10]
jmp 0x14014dd83
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14014ddb5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14014dda3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x14014dd50
lea rax, [0x14014dde0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14014ddca
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x14014f3a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14014f3ab
xor eax, eax
ret
lea r11, [0x140185c60]
not ecx
cmp r8d, 8
jb 0x14014f481
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14014f3d0
test r8d, r8d
je 0x14014f4ad
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14014f490
not ecx
mov eax, ecx
ret
Function at 0x140153084
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140153108
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140153108
dec r8
sub rdx, 1
jne 0x1401530ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401536b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140153120
mov ebx, eax
test eax, eax
jne 0x1401536e0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140153743
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015373a
test al, 0x10
je 0x14015373a
bt eax, 0xa
jae 0x140153733
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140153754
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14015372f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14015372f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x14015373a
and dword [rsp + 0x3c], 0
jmp 0x14015373f
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401547dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140154826
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140154826
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140154826
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140154826
cmp dword [rcx + 0x84], 0xe
jbe 0x140154826
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140154828
xor al, al
add rsp, 0x28
ret
Function at 0x51d70
Capabilities:
Create thread
Get system information on windows
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x220
lea rax, str.ypool.net
mov rdi, rdx
mov esi, ecx
mov qword [0x00091300], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.0005b210
call fcn.0005b228
lea rcx, [rsp + 0x48]
cdq
mov ebx, 1
and edx, 7
mov dword [0x00091310], ebx
add eax, edx
and eax, 7
sub eax, edx
add eax, 0x1f90
mov dword [0x00091308], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x68]
cmp eax, ebx
mov rdx, rdi
mov ecx, esi
cmovg ebx, eax
mov eax, 4
cmp ebx, eax
cmovl eax, ebx
mov dword [0x0009130c], eax
call fcn.00051980
mov r11d, dword [0x00091310]
lea rcx, [0x0006bc98]
mov dword [0x00091360], r11d
call fcn.0005b13c
lea rcx, [0x0006bcd0]
call fcn.0005b13c
lea rcx, [0x0006bd08]
call fcn.0005b13c
lea rcx, [0x0006bd40]
call fcn.0005b13c
lea rcx, [0x0006bd78]
call fcn.0005b13c
lea rcx, str.Launching_miner..._n
call fcn.0005b13c
mov eax, dword [0x00091310]
mov dword [rsp + 0x30], 0x200
mov dword [rsp + 0x34], 0x100
mov dword [rsp + 0x38], 0x80
mov dword [rsp + 0x3c], 0x20
mov dword [rsp + 0x40], 8
cmp eax, 5
jb 0x51e84
mov eax, 5
mov edx, dword [rsp + rax*4 + 0x30]
lea rcx, str.Using__d_megabytes_of_memory_per_thread_n
call fcn.0005b13c
mov edx, dword [0x0009130c]
lea rcx, str.Using__d_threads_n
call fcn.0005b13c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x4000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea rdx, [rsp + 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rbx, qword [0x00091300]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x51efa
lea rcx, str.Cannot_resolve__s._Is_it_a_valid_URL__n
mov rdx, rbx
call fcn.0005b13c
or ecx, 0xffffffff
call fcn.0005b820
int3
mov rax, qword [rax + 0x18]
or edi, 0xffffffff
mov rdx, qword [rax]
test rdx, rdx
je 0x51f0b
mov edi, dword [rdx]
mov ecx, 0x20
call fcn.0005b01c
mov ecx, edi
mov r10d, edi
shr ecx, 0x10
shr r10d, 0x18
movzx r8d, dil
movzx edx, cl
mov ecx, edi
mov dword [rsp + 0x28], r10d
shr ecx, 8
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d
movzx r9d, cl
mov rcx, rax
mov rbx, rax
call fcn.0005af80
lea rcx, [0x00070a20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x00091318]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movzx eax, word [0x00091308]
xor edi, edi
mov word [0x00091348], ax
mov rax, qword [0x000912f0]
mov qword [0x00091340], rbx
mov qword [0x00091350], rax
mov rax, qword [0x000912f8]
mov ebx, edi
mov qword [0x00091358], rax
cmp dword [0x0009130c], ebx
jbe 0x51fd7
nop word [rax + rax]
lea r8, [0x00051170]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
inc ebx
cmp ebx, dword [0x0009130c]
jb 0x51fb0
call fcn.00051640
int3
Function at 0x51fe0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov edx, 1
mov rdi, rcx
mov ebp, 2
lea r8d, [rdx + 5]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
movzx ecx, bx
mov rsi, rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov word [rsp + 0x20], bp
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rdi
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_connect]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
xor ecx, ecx
test eax, eax
cmovne rsi, rcx
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 8]
mov rbx, rcx
mov rax, qword [rdx]
mov dword [rax], 1
mov dword [rdx + 8], 4
mov rdx, qword [rcx + 8]
mov ecx, dword [rdx + 8]
lea eax, [rcx + 4]
cmp eax, dword [rdx + 0xc]
jbe 0x522d3
mov byte [rsp + 0x30], 1
jmp 0x522e6
mov rax, qword [rdx]
mov byte [rsp + 0x30], 0
mov dword [rcx + rax], 5
add dword [rdx + 8], 4
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x18]
lea r9, [rsp + 0x30]
mov r8d, 0x80
call fcn.000530f0
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x98]
lea r9, [rsp + 0x30]
mov r8d, 0x80
call fcn.000530f0
mov r11, qword [rbx + 8]
mov ecx, dword [r11 + 8]
lea eax, [rcx + 4]
cmp eax, dword [r11 + 0xc]
ja 0x5233e
mov eax, dword [rbx + 0x118]
mov rdx, rcx
mov rcx, qword [r11]
mov dword [rdx + rcx], eax
add dword [r11 + 8], 4
mov rdx, qword [rbx + 8]
mov ecx, dword [rdx + 8]
lea eax, [rcx + 0x13]
cmp eax, dword [rdx + 0xc]
jbe 0x5235b
lea rcx, str.xptPacketbuffer_writeData__:_Packetbuffer_too_small_n
call fcn.0005b13c
jmp 0x5238f
mov rax, qword [rdx]
mov byte [rcx + rax], 0x12
inc dword [rdx + 8]
mov ecx, dword [rdx + 8]
mov rax, qword [str.jhProtominer_v0.1f]
add rcx, qword [rdx]
mov qword [rcx], rax
mov rax, qword [0x0006b5d8]
mov qword [rcx + 8], rax
movzx eax, word [0x0006b5e0]
mov word [rcx + 0x10], ax
add dword [rdx + 8], 0x12
mov rax, qword [rbx + 8]
xor r9d, r9d
mov ecx, dword [rax + 8]
mov rdx, qword [rax]
movzx eax, byte [rdx]
sub ecx, 4
shl ecx, 8
or ecx, eax
mov dword [rdx], ecx
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r8d, dword [rdx + 8]
mov rdx, qword [rdx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.WS2_32.dll_send]
Function at 0x52800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, qword [0x00091368]
test rdi, rdi
jne 0x5281a
xor al, al
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
lea rcx, [rdi + 0x20a18]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x20a40]
mov ecx, dword [rax + 8]
xor r13d, r13d
test ecx, ecx
je 0x528a8
mov qword [rsp + 0x48], rbp
mov ebp, r13d
test ecx, ecx
je 0x52898
mov qword [rsp + 0x50], rsi
mov rsi, r13
nop dword [rax + rax]
mov rax, qword [rdi + 0x20a40]
mov rcx, qword [rax]
mov rbx, qword [rsi + rcx]
mov rcx, rdi
mov rdx, rbx
call fcn.000523d0
mov rcx, rbx
call fcn.0005b8c0
mov rax, qword [rdi + 0x20a40]
inc ebp
add rsi, 8
cmp ebp, dword [rax + 8]
jb 0x52860
mov rsi, qword [rsp + 0x50]
mov rax, qword [rdi + 0x20a40]
mov rbp, qword [rsp + 0x48]
mov dword [rax + 8], r13d
lea rcx, [rdi + 0x20a18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rdi + 0x124]
mov r12, qword [rsp + 0x28]
mov ebx, 4
test eax, eax
je 0x528cc
lea ebx, [rax + 4]
mov edx, dword [rdi + 0x128]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi]
mov r8d, ebx
xor r9d, r9d
sub r8d, edx
add rdx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x52919
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x52a34
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x20]
mov byte [rdi + 0x130], 1
xor al, al
add rsp, 0x30
pop rdi
ret
add dword [rdi + 0x128], eax
cmp dword [rdi + 0x128], ebx
jne 0x52980
cmp ebx, 4
jne 0x52980
mov r8, qword [rdi + 0x10]
mov rax, qword [r8]
mov edx, dword [rax]
mov ecx, edx
shr ecx, 8
cmp ecx, 0x1ffffc
jb 0x52960
lea rcx, str.xptServer_receiveData__:_Packet_exceeds_2mb_size_limit_n
call fcn.0005b13c
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x20]
xor al, al
add rsp, 0x30
pop rdi
ret
movzx eax, dl
lea edx, [rcx + 4]
mov dword [rdi + 0x124], ecx
mov dword [rdi + 0x12c], eax
cmp edx, dword [r8 + 0xc]
jbe 0x52980
mov rcx, r8
call fcn.000530b0
mov eax, dword [rdi + 0x124]
lea ecx, [rax + 4]
cmp dword [rdi + 0x128], ecx
jb 0x52a34
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x10], ecx
mov eax, dword [rdi + 0x12c]
cmp eax, 2
jne 0x529b1
mov rcx, rdi
call fcn.00052a50
jmp 0x529dc
cmp eax, 3
jne 0x529c0
mov rcx, rdi
call fcn.00052b80
jmp 0x529dc
cmp eax, 5
jne 0x529cf
mov rcx, rdi
call fcn.00052f30
jmp 0x529dc
cmp eax, 7
jne 0x52a1f
mov rcx, rdi
call fcn.00053030
test al, al
jne 0x52a1f
mov rcx, qword [rdi]
mov dword [rdi + 0x128], r13d
mov dword [rdi + 0x124], r13d
mov dword [rdi + 0x12c], r13d
test rcx, rcx
je 0x52a06
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi], r13
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x20]
mov byte [rdi + 0x130], 1
xor al, al
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x128], r13d
mov dword [rdi + 0x124], r13d
mov dword [rdi + 0x12c], r13d
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x20]
mov al, 1
add rsp, 0x30
pop rdi
ret