joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f76f8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x188]
test rcx, rcx
jne 0x1400f7724
mov rcx, rbx
call sub.mfc140u.dll_CDHtmlDialog::DDX_DHtml_ElementText
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x25
jne 0x1400f77cb
movsxd r8, dword [rbx + reloc.mfc140u.dll_AFX_DDPDATA::AFX_DDPDATA]
lea edi, [r8 - 1]
movsxd rdx, edi
test edi, edi
js 0x1400f7719
cmp rdx, rcx
jge 0x1400f78a0
mov r9, qword [rbx + 0x180]
mov rax, qword [r9 + rdx*8]
test byte [rax + 0x1c], 1
jne 0x1400f7763
dec edi
sub rdx, 1
jns 0x1400f773f
jmp 0x1400f7719
mov rax, r8
test r8d, r8d
js 0x1400f78a0
cmp rax, rcx
jge 0x1400f78a0
mov rcx, qword [r9 + r8*8]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x38]
mov dword [rbx + reloc.mfc140u.dll_AFX_DDPDATA::AFX_DDPDATA], edi
movsxd rcx, edi
test edi, edi
js 0x1400f78a0
cmp rcx, qword [rbx + 0x188]
jge 0x1400f78a0
mov rax, qword [rbx + 0x180]
mov edx, 1
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edx, dword [rbx + reloc.mfc140u.dll_AFX_DDPDATA::AFX_DDPDATA]
mov rcx, rbx
call fcn.1400f39dc
jmp 0x1400f7719
cmp edx, 0x27
jne 0x1400f7820
movsxd r8, dword [rbx + reloc.mfc140u.dll_AFX_DDPDATA::AFX_DDPDATA]
lea edi, [r8 + 1]
movsxd rdx, edi
cmp rdx, rcx
jge 0x1400f7719
test rdx, rdx
js 0x1400f78a0
cmp rdx, rcx
jge 0x1400f78a0
mov r9, qword [rbx + 0x180]
mov rax, qword [r9 + rdx*8]
test byte [rax + 0x1c], 1
jne 0x1400f7763
inc edi
inc rdx
movsxd rax, edi
cmp rax, rcx
jl 0x1400f77e7
jmp 0x1400f7719
cmp edx, 0x73
jne 0x1400f784e
mov rcx, rbx
call sub.mfc140u.dll_Ordinal_6724
test al, 1
je 0x1400f7719
mov rax, qword [rbx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + 0x310]
jmp 0x1400f7719
cmp edx, 9
jne 0x1400f7879
lea ecx, [rdx + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, rbx
bt eax, 0xf
jae 0x1400f786f
call fcn.1400f93dc
jmp 0x1400f7719
call fcn.1400f3924
jmp 0x1400f7719
movsxd r8, dword [rbx + reloc.mfc140u.dll_AFX_DDPDATA::AFX_DDPDATA]
test r8, r8
js 0x1400f78a0
cmp r8, rcx
jge 0x1400f78a0
mov rax, qword [rbx + 0x180]
mov rcx, qword [rax + r8*8]
mov rax, qword [rcx]
call qword [rax + 0x40]
jmp 0x1400f7719
call sub.mfc140u.dll_AfxRegDeleteKey
int3

Function at 0x1400fd214
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140198310]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1400fd27c
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400fd27c
mov ecx, dword [0x140198310]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400fd27c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
jmp 0x1400fd27e
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fd4ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, r8
mov edx, ecx
mov ebp, ecx
mov ecx, 0x400
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
mov rcx, rbx
test eax, eax
jle 0x1400fd517
mov edx, eax
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r9d, esi
mov edx, ebp
mov r8, rax
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x1400fd520
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400fec94
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0x2e
ja 0x1400fed7d
je 0x1400fed51
sub edx, 8
je 0x1400fed43
sub edx, 0x1b
je 0x1400fed37
sub edx, 1
je 0x1400fed33
sub edx, 1
je 0x1400fed1b
sub edx, 2
je 0x1400fed11
cmp edx, 6
jne 0x1400fee31
lea ecx, [rdx + 0xb]
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jb 0x1400fee1c
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fed00
mov edx, 0x302
jmp 0x1400fee21
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x358]
jmp 0x1400fee31
mov edx, dword [rcx + 0x168]
inc edx
jmp 0x1400fed23
mov edx, dword [rcx + 0x168]
dec edx
mov r8d, 1
call fcn.1400fe4a4
jmp 0x1400fee31
xor edx, edx
jmp 0x1400fed23
call sub.mfc140u.dll_CMFCMousePropertyPage::GetMessageMap
mov edx, eax
mov rcx, rbx
jmp 0x1400fed23
mov rax, qword [rcx]
call qword [rax + 0x310]
jmp 0x1400fee31
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fed6c
mov edx, 0x300
jmp 0x1400fee21
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x318]
jmp 0x1400fee31
cmp edx, 0x43
je 0x1400fee0b
cmp edx, 0x56
je 0x1400fedf5
cmp edx, 0x58
je 0x1400feddf
cmp edx, 0x5a
je 0x1400fedc7
cmp edx, 0x71
jne 0x1400fedb3
cmp qword [rcx + 0x100], 0
je 0x1400fee31
mov rax, qword [rcx]
call qword [rax + 0x2f0]
jmp 0x1400fee31
cmp edx, 0x73
jne 0x1400fee31
mov rax, qword [rcx]
add rsp, 0x20
pop rbx
jmp qword [rax + 0x2e0]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fee31
mov edx, 0x304
jmp 0x1400fee21
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fee31
jmp 0x1400fed62
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fee31
jmp 0x1400fecf6
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400fee31
mov edx, 0x301
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sub.mfc140u.dll_CDHtmlDialog::DDX_DHtml_ElementText
Function at 0x1400ffac4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
cmp edx, 0x79
jne 0x1400ffb60
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
bt eax, 0xf
jae 0x1400ffb45
mov rcx, qword [rbx + 0x40]
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
cdq
sub eax, edx
sar eax, 1
movzx r8d, ax
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
cdq
shl r8d, 0x10
sub eax, edx
mov edx, 0x205
sar eax, 1
movzx ecx, ax
or r8d, ecx
mov rcx, qword [rbx + 0x40]
movsxd r9, r8d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rbx
call sub.mfc140u.dll_CDHtmlDialog::DDX_DHtml_ElementText
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003c6a0
add rsp, 0x40
pop rbx
ret
cmp edx, 8
jne 0x1400ffb73
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
mov edx, 0x304
jmp 0x1400ffb3c
cmp edx, 0x28
jne 0x1400ffb45
mov rax, qword [rcx]
call qword [rax + 0x2e0]
jmp 0x1400ffb4d

Function at 0x140100910
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
test rcx, rcx
je 0x1401009bd
cmp word [rcx], si
je 0x1401009bd
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x2042
lea eax, [rax*2 + 2]
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401009bd
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401009bd
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1401009a9
mov ecx, dword [0x140198314]
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
jmp 0x1401009bf
call qword [sym.imp.USER32.dll_CloseClipboard]
test rbx, rbx
je 0x1401009a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14010b4d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor r12d, r12d
movsxd rsi, r9d
mov r10, rcx
mov edi, r12d
mov r15d, r12d
cmp esi, 0x64
jle 0x14010b53a
mov eax, dword [rcx + 0x12dc]
mov dword [rcx + 0x14bc], eax
mov dword [rcx + 0x14ac], 1
mov dword [rcx + 0x14b0], 0xe5
jmp 0x14010b71a
cmp dx, 0xffff
je 0x14010b560
lea r9, [rsp]
movsx rax, dx
mov word [r9], dx
lea r9, [r9 + 2]
lea rcx, [rax + rax*2]
movzx edx, word [r10 + rcx*8 + 6]
cmp dx, 0xffff
jne 0x14010b544
movsx rdx, word [r8 + 0x1a]
mov r9, rdx
test rdx, rdx
jle 0x14010b58a
lea r11, [r8 + 0x20]
mov eax, dword [r11]
lea ecx, [rdi + 1]
and al, 6
lea r11, [r11 + 8]
cmp al, 2
cmovne ecx, edi
mov edi, ecx
sub r9, 1
jne 0x14010b571
mov r9d, r12d
cmp r12w, dx
jge 0x14010b6d5
mov r11, r12
movzx ecx, dx
mov r13d, 0x400
movzx edx, cx
cmp r9d, esi
jge 0x14010b6d5
movsxd rbx, r9d
mov edx, dword [r8 + rbx*8 + 0x20]
mov eax, edx
shr eax, 1
and eax, 3
je 0x14010b69b
sub eax, 1
je 0x14010b69b
cmp eax, 1
jne 0x14010b6c1
inc r15d
movsx eax, cx
dec eax
cmp r9d, eax
je 0x14010b65d
movsxd rdx, eax
lea r9, [rsi - 1]
cmp rdx, rbx
je 0x14010b68f
lea r14, [r8 + 0x1c]
lea r14, [r14 + rdx*8]
sub rdx, rbx
movsx rax, word [rsp + r9*2]
dec r9
lea rcx, [rax + rax*2]
mov eax, dword [r14 + 4]
shl eax, 0xa
xor eax, dword [r10 + rcx*8]
and eax, r13d
xor dword [r10 + rcx*8], eax
movzx eax, word [r14]
lea r14, [r14 - 8]
mov word [r10 + rcx*8 + 0xa], ax
sub rdx, 1
jne 0x14010b5fe
jmp 0x14010b68f
movsx rax, word [rsp + r11*2]
lea rcx, [rax + rax*2]
mov eax, dword [r8 + rbx*8 + 0x20]
shl eax, 0xa
xor eax, dword [r10 + rcx*8]
and eax, r13d
xor dword [r10 + rcx*8], eax
movzx eax, word [r8 + rbx*8 + 0x1c]
inc r11
mov word [r10 + rcx*8 + 0xa], ax
cmp r11, rsi
jl 0x14010b632
jmp 0x14010b6c1
movsx rax, word [rsp + r9*2]
lea rcx, [rax + rax*2]
mov eax, dword [r8 + rbx*8 + 0x20]
shl eax, 0xa
xor eax, dword [r10 + rcx*8]
and eax, r13d
xor dword [r10 + rcx*8], eax
movzx eax, word [r8 + rbx*8 + 0x1c]
dec r9
mov word [r10 + rcx*8 + 0xa], ax
cmp r9, r11
jge 0x14010b664
movsx r9d, word [r8 + 0x1a]
jmp 0x14010b6c1
movsx rax, word [rsp + r11*2]
shl edx, 0xa
lea rcx, [rax + rax*2]
xor edx, dword [r10 + rcx*8]
and edx, r13d
xor dword [r10 + rcx*8], edx
movzx eax, word [r8 + rbx*8 + 0x1c]
inc r11
mov word [r10 + rcx*8 + 0xa], ax
movsx edx, word [r8 + 0x1a]
inc r9d
movzx ecx, dx
cmp r9d, edx
jl 0x14010b5a3
movsx ecx, dx
mov eax, ecx
sub eax, edi
cmp esi, eax
jge 0x14010b6ed
mov dword [r10 + 0x14b0], 0xe6
jmp 0x14010b701
cmp esi, ecx
jle 0x14010b71a
test r15d, r15d
jne 0x14010b71a
mov dword [r10 + 0x14b0], 0xe5
mov eax, dword [r10 + 0x12dc]
mov dword [r10 + 0x14bc], eax
mov dword [r10 + 0x14ac], 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14003c6a0
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010f4bc
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rsp + reloc.mfc140u.dll_CInternetFile::CInternetFile], rax
mov rbx, rcx
movsxd rax, edx
neg r8d
mov r9d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea r8, [rsp + 0x20]
sbb rcx, rcx
and ecx, 4
add rcx, 0xfffffffffffffff8
lea rdx, [rcx + rax*8]
mov ecx, dword [0x1401a25b8]
lea rax, [0x14015cbb8]
mov edx, dword [rdx + rax]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14010f526
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov eax, 1
mov rcx, qword [rsp + reloc.mfc140u.dll_CInternetFile::CInternetFile]
xor rcx, rsp
call fcn.14003c6a0
add rsp, 0x230
pop rbx
ret

Function at 0x14010f628
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rsp + reloc.mfc140u.dll_CInternetFile::CInternetFile], rax
mov rbx, rcx
movsxd rax, edx
neg r8d
mov r9d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea r8, [rsp + 0x20]
sbb rcx, rcx
and ecx, 4
add rcx, 0xfffffffffffffff8
lea rdx, [rcx + rax*8]
mov ecx, dword [0x1401a25b8]
lea rax, [0x14015cbf0]
mov edx, dword [rdx + rax]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14010f692
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov eax, 1
mov rcx, qword [rsp + reloc.mfc140u.dll_CInternetFile::CInternetFile]
xor rcx, rsp
call fcn.14003c6a0
add rsp, 0x230
pop rbx
ret

Function at 0x1401183c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov rbx, rdx
and dword [rsp + 0x20], 0
lea rdx, [0x140143988]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
mov dword [rsp + 0x20], 1
mov edx, 3
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r8, rax
mov edx, InitCommonControls
mov ecx, 0x400
lea r9d, [rdx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14011a7f4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14011cee0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov ebx, ecx
mov dword [0x1401a2800], esi
mov dword [0x1401a2804], esi
mov dword [0x1401a2808], esi
lea edi, [rsi + 1]
mov dword [0x1401a280c], esi
mov dword [0x1401a2810], esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
sub ebx, edi
je 0x14011cf86
sub ebx, edi
je 0x14011cf7e
sub ebx, edi
je 0x14011cf76
sub ebx, edi
je 0x14011cf58
cmp ebx, edi
jne 0x14011cf4a
cmp al, 6
jb 0x14011cf4a
call fcn.14011cbd0
test eax, eax
je 0x14011cf4a
call fcn.14011cb60
test eax, eax
je 0x14011cf4a
mov dword [0x1401a2810], esi
mov edi, esi
mov dword [0x1401a2800], 1
jmp 0x14011cf8c
cmp al, 6
jb 0x14011cf4a
call fcn.14011cbd0
test eax, eax
je 0x14011cf4a
call fcn.14011cb60
test eax, eax
je 0x14011cf4a
mov dword [0x1401a280c], edi
jmp 0x14011cf8c
mov dword [0x1401a2808], edi
jmp 0x14011cf8c
mov dword [0x1401a2804], edi
jmp 0x14011cf8c
mov dword [0x1401a2800], edi
lea rcx, [0x1401a27a0]
call fcn.14011b4f0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1413a1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413a11df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1413a1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a106f
add dl, dl
jne 0x1413a1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a10f6
xor eax, eax
add dl, dl
jne 0x1413a10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a11ad
add dl, dl
jne 0x1413a10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413a10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413a107e
mov eax, 1
add dl, dl
jne 0x1413a1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a10fb
sub eax, ebx
mov ebx, 1
jne 0x1413a114c
mov ecx, 1
add dl, dl
jne 0x1413a112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413a1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a115d
cmp eax, 0x7d00
jae 0x1413a119b
cmp eax, 0x500
jb 0x1413a1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a107e
cmp eax, 0x7f
ja 0x1413a119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413a11d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1413a107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140311900]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140311910]
mov dword [rax], 1
mov rax, qword [0x140311920]
mov dword [rax], 1
mov rax, qword [0x140311890]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1403118f0]
mov dword [0x140326020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1403119e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1403119c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140311760]
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 [str.0_a_]
call dbg.__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 0x14000a220
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 0x14000a270
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov rsi, rcx
mov rcx, rdx
mov rdi, rdx
call sym.strlen
lea ebx, [rax + 1]
cdqe
mov byte [rdi + rax], 0xa
test ebx, ebx
jle 0x14000a31d
lea rax, [rsp + 0x44]
mov rbp, qword [sym.imp.WS2_32.dll_select]
xor r14d, r14d
lea r13, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r15, qword [sym.imp.libcurl_4.dll_curl_easy_send]
lea r12, [rsp + 0x48]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x118]
xor r9d, r9d
xor edx, edx
mov r8, r13
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], rcx
add ecx, 1
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r12
call rbp
test eax, eax
jle 0x14000a345
mov rcx, qword [rsi + 8]
mov r9, qword [rsp + 0x38]
lea rdx, [rdi + r14]
movsxd r8, ebx
call r15
test eax, eax
jne 0x14000a340
movsxd rax, dword [rsp + 0x44]
sub ebx, eax
test ebx, ebx
jg 0x14000a349
mov eax, 1
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 0x51
je 0x14000a2c8
xor eax, eax
jmp 0x14000a322
add r14, rax
jmp 0x14000a2c8
Function at 0x14000abf0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea r12, [0x1402b7e2c]
mov rbx, rcx
mov rcx, r8
lea r13, [rsp + 0x30]
mov rsi, rdx
call sym.strdup
mov rcx, rax
mov rdi, rax
call dbg.dirname
mov edx, 0x5c
mov rcx, rax
mov rbp, rax
call sym.strchr
vpxor xmm0, xmm0, xmm0
lea rcx, str.APPDATA
test rax, rax
lea rax, [0x1402b7e2a]
vmovdqu xmmword [rsp + 0x30], xmm0
cmovne r12, rax
vmovdqu xmmword [rsp + 0x40], xmm0
vmovdqu xmmword [rsp + 0x50], xmm0
call sym.getenv
mov rdx, rsi
mov rcx, rbx
lea r8, str._scpuminercpuminer_conf.json
mov r9, rax
call sym.snprintf_1
mov rdx, r13
mov rcx, rbx
call dbg.stat
test eax, eax
jne 0x14000acc8
mov rdx, r13
mov rcx, rbx
call dbg.stat
test eax, eax
je 0x14000aca8
mov byte [rbx], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, rdi
mov byte [rbx + rsi - 1], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.free
mov qword [rsp + 0x20], r12
mov r9, rbp
mov rdx, rsi
mov rcx, rbx
lea r8, str._s_scpuminer_conf.json
call sym.snprintf_1
jmp 0x14000ac85