joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a0e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x0061d240]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x46a17b
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x46a3a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x0061d240]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x46a437
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x46a800
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46a834
mov rcx, 0x28
jmp 0x46a83f
shl rcx, 3
add rcx, 0x1480
mov qword [0x0061d240], rcx
pop rbp
ret
Function at 0x486060
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48612a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061d240]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48610f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004be100]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x4860fe
mov edi, 1
lea rsi, [0x004be100]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00502988]
lea rsi, [0x00502178]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString

Function at 0x4a75c0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a7cff
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a75ed
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a7871
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a789d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00503fe0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004be000]
lea rbx, [0x00502820]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4a78c2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a78f7
lea rdi, [0x004be080]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a75e3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a78db
jmp 0x4a78b0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash

Function at 0x4a7ea0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a7eb7
inc rax
cmp rax, 4
jge 0x4a7ecf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a7eb4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a7ee0
inc rax
cmp rax, 4
jge 0x4a7eee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a7f17
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a7efb
jmp 0x4a7edd
Function at 0x140010c2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010a58

Function at 0x18072c913
Capabilities:
Encode data using xor

Disassembly:
add r8, 0xc
xor ecx, ecx
test r10, r10
mov qword [rsp], 0xffffffffe2bcbcae
lea rsp, [rsp + 8]
je 0x180738d15
mov edx, 0x8b306011
shr dx, 0xe9
shl edx, 0x96
push r8
ror rdx, 0x8a
lea r8, [rdx*2 + 0x1437e6a4]
and r8d, 0x218c37bc
lea rdx, [0x180740138]
movzx r8d, byte [rax]
push 0xffffffffa1acbda8
not dword [rsp]
sar word [rsp], 0xaf
xor r8d, ecx
and r8d, 0xff
shl qword [rsp], 0x11
push 0x3c82b205
mov r8d, dword [rdx + r8*4]
shr ecx, 8
xor ecx, r8d
inc rax
xor ecx, 0x309cdf97
shr qword [rsp + 1], 0x50
dec r10
lea rsp, [rsp + 0x10]
jne 0x18072c95a
jmp 0x180738d13
pop r8
call fcn.18071ee5a
mov r10, rbx
sub rbx, 2
mov word [rbx], r10w
jmp 0x18070f372
Function at 0xae8480
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xae848d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xae849d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xae8485
lea eax, [rcx + 1]
jmp 0xae84ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xae84be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xae84a4
sub eax, 3
jb 0xae84de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xae852d
sar eax, 1
movsxd rbp, eax
jb 0xae8514
jmp 0xae84ec
add ebx, ebx
jne 0xae84ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xae8514
inc ecx
add ebx, ebx
jne 0xae84fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xae8514
call r11
adc ecx, ecx
add ebx, ebx
jne 0xae850d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xae84fc
add ecx, 2
jmp 0xae8519
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00ae8442
jmp 0xae848d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22da00
mov dl, 0x53
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xae8579
cmp rsi, rcx
jae 0xae8581
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xae8560
cmp al, 0x8f
ja 0xae8560
cmp byte [rsi - 2], 0xf
je 0xae8566
sub al, 0xe8
cmp al, 1
ja 0xae854a
cmp rsi, rcx
jae 0xae8581
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xae8550
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xae8581
lodsb al, byte [rsi]
jmp 0xae8560
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6e2000]
mov eax, dword [rdi]
or eax, eax
je 0xae85de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6e8000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xae858e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xae85d8
mov qword [rbx], rax
add rbx, 8
jmp 0xae85ae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xae8622
cmp al, 0xef
ja 0xae860a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xae85ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xae85f9
mov eax, dword [rdi]
add rdi, 4
jmp 0xae85f9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xae8676
sub rsp, 0xffffffffffffff80
jmp 0x4662a0
Function at 0x1400123c8
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x1400123df
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x1400123e9
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x1400123fc
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
invalid
loop 0x14003b2bf
stosd dword [rdi], eax
imul edx, dword [0x12ddc1300], 0x74
invalid
invalid
jrcxz 0x14003b3f4
invalid
ret
mov eax, 0x4ef4c98e
scasb al, byte [rdi]
invalid
adc dword [rcx + 0x4c], ebp
push qword [rdx + rcx*4 + 0x3ce88fb6]
jg 0x14003b415
test eax, 0x8c00f795
sub bl, al
add ecx, dword [rdi - 0x29754775]
and byte [rax], al
pop rdi
movabs al, byte [0xf18ad30de493a151]
int1
test dword [rax], 0x3c3288c
invalid
int1
xor eax, 0x7b6d2548
invalid
add dl, byte [rdi]
xlatb
jbe 0x14003b499
je 0x14003b4ff
mov ebp, 0x4937ba1
sbb bl, dl
sbb bh, bh
or esp, dword [rax + 0x50]
mov eax, 0xa2f3c475
movsd dword [rdi], dword gs:[rsi]
push 0xffffffffffffffbb
or esi, esi
invalid
mov eax, 0x4d434f19
invalid
sub eax, 0xfdf87bf0
mov dl, 0x2f
pop rbx
sub eax, 0x376515f6
or byte [rbx - 0xa82b373], bh
stosb byte [rdi], al
xchg ebp, eax
stosd dword [rdi], eax
invalid

Function at 0x140012404
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140012439
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push rdx
invalid
Function at 0x140006900
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000c918], rbx
je 0x14000694c
cmp rax, rbx
jne 0x14000693f
mov ebx, 1
mov esi, ebx
jmp 0x140006951
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006924
mov ebx, 1
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x140006967
mov ecx, 0x1f
call fcn.14009c000
jmp 0x1400069cc
mov eax, dword [0x14000c920]
test eax, eax
jne 0x1400069c6
mov dword [0x14000c920], ebx
lea r15, [0x1400085d8]
lea rdi, [0x1400085c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400069b8
test eax, eax
jne 0x1400069bc
cmp qword [rdi], 0
je 0x1400069ad
mov rax, qword [rdi]
mov rcx, qword [0x1400085a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000698e
test eax, eax
je 0x1400069cc
mov eax, 0xff
jmp 0x140006aa8
mov dword [0x14000c354], ebx
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x1400069f3
lea rdx, [0x1400085b8]
lea rcx, [0x1400085a8]
call sub.msvcrt.dll__initterm
mov dword [0x14000c920], 2
test esi, esi
jne 0x140006a00
xor eax, eax
xchg qword [0x14000c918], rax
cmp qword [0x14000c928], 0
je 0x140006a34
lea rcx, [0x14000c928]
call fcn.140006d70
test eax, eax
je 0x140006a34
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000c928]
mov r9, qword [0x1400085a0]
call r9
mov r8, qword [0x14000c368]
mov rdx, qword [0x14000c360]
mov ecx, dword [0x14000c358]
call fcn.1400017f4
mov dword [0x14000c350], eax
cmp dword [0x14000c370], 0
jne 0x140006a64
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c354], 0
jne 0x140006a79
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c350]
jmp 0x140006aa8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140006e04
add rsp, 0x28
jmp 0x140006900

Function at 0x140006c5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006ca8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ca0
cmp dword [rcx + 0x3c], edx
jl 0x140006ca0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006ca0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006ca8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400015e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000162a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000162a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000162a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000162a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000162a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000162c
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140079160]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140079170]
mov dword [rax], 1
mov rax, qword [0x140079180]
mov dword [rax], 1
mov rax, qword [0x1400790d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140079150]
mov dword [0x14008200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140079250]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [str.0__b_]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140079020]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400791b0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [str._b__b_]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140082008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140079110]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400791a0]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov ebx, dword [0x140082028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140082020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140082020], rbp
call sym.__main
mov rax, qword [str.H8_b_]
mov r8, qword [0x140082018]
mov ecx, dword [0x140082028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140082020]
call sym.main
mov ecx, dword [0x14008200c]
mov dword [0x140082010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140082008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [str._b__b_]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140079200]
mov rcx, qword [0x1400791f0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140082010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140079220]
mov rcx, qword [0x140079210]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x1400014d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x1400014fc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Try__minerd___help_for_more_information._n
mov rcx, rax
call sym.fprintf
mov ecx, ebx
call sym.exit
lea rcx, str.Usage:_minerd__OPTIONS__nOptions:_n___a____algoALGO_______specify_the_algorithm_to_use_n__________________________randomx___RandomX__default__n___o____urlURL_________URL_of_mining_server_n___O____userpassU:P____username:password_pair_for_mining_server_n___u____userUSERNAME___username_for_mining_server_n___p____passPASSWORD___password_for_mining_server_n________certFILE_______certificate_for_mining_server_using_SSL_n___x____proxy_PROTOCOL:___HOST_:PORT___connect_through_a_proxy_n___t____threadsN_______number_of_miner_threads__default:_number_of_processors__n___r____retriesN_______number_of_times_to_retry_if_a_network_call_fails_n___________________________default:_retry_indefinitely__n___R____retry_pauseN___time_to_pause_between_retries__in_seconds__default:_30__n___T____timeoutN_______timeout_for_long_polling__in_seconds__default:_none__n___s____scantimeN______upper_bound_on_time_spent_scanning_current_work_when_n__________________________long_polling_is_unavailable__in_seconds__default:_5__n________coinbase_addrADDR__payout_address_for_solo_mining_n________coinbase_sigTEXT__data_to_insert_in_the_coinbase_when_possible_n________no_longpoll_____disable_long_polling_support_n________no_getwork______disable_getwork_support_n________no_gbt__________disable_getblocktemplate_support_n________no_stratum______disable_X_Stratum_support_n________no_redirect_____ignore_requests_to_change_the_URL_of_the_mining_server_n___q____quiet___________disable_per_thread_hashmeter_output_n___D____debug___________enable_debug_output_n___P____protocol_dump___verbose_dump_of_protocol_level_activities_n________benchmark_______run_in_offline_benchmark_mode_n___c____configFILE_____load_a_JSON_format_configuration_file_n___V____version_________display_version_information_and_exit_n___h____help____________display_this_help_text_and_exit_n
call sym.printf
jmp 0x1400014f5

Function at 0x140005d40
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
Function at 0x140005d90
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
xor edi, edi
mov rsi, rcx
mov rcx, rdx
lea r14, [rsp + 0x50]
mov rbp, rdx
call sym.strlen
mov r12, qword [sym.imp.WS2_32.dll_select]
lea r13, [rsp + 0x40]
mov r15, qword [sym.imp.libcurl_4.dll_curl_easy_send]
mov byte [rbp + rax], 0xa
lea rbx, [rax + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
nop
mov rcx, qword [rsi + 0x118]
xor r9d, r9d
xor edx, edx
mov r8, r14
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], rcx
add ecx, 1
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r13
call r12
test eax, eax
jle 0x140005e4d
mov rcx, qword [rsi + 8]
mov r9, qword [rsp + 0x38]
lea rdx, [rbp + rdi]
mov r8, rbx
call r15
test eax, eax
jne 0x140005e48
mov rax, qword [rsp + 0x48]
sub rbx, rax
add rdi, rax
test rbx, rbx
jg 0x140005de0
mov eax, 1
jmp 0x140005e4f
cmp eax, 0x51
je 0x140005de0
xor eax, eax
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140007a20
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x140007a38
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp sym.socket_full