joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001550c
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14006e6c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, ecx
xor esi, esi
mov rcx, qword [0x140074458]
mov r12, r9
mov r15, r8
mov r14, rdx
test rcx, rcx
jne 0x14001557c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400155a3
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140074458], rax
jmp 0x140015585
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x1400155a3
mov r9, r12
mov r8, r15
mov rdx, r14
mov ecx, edi
mov rax, rbx
call qword [case.0x14000dcca.0]
jmp 0x1400156e5
mov dword [r14], esi
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov r8d, 7
mov ecx, esi
lea rdx, [rbp - 0x20]
call fcn.140015a78
lea rcx, [rbp - 0x20]
call fcn.140039d34
mov edx, dword [r12]
lea r8, [rbp - 0x20]
mov rcx, r15
lea rdi, [rax + 1]
call fcn.14003ce6c
inc dword [r14]
lea rdx, [rbp - 0x20]
and esi, 0x3ff
mov r8d, 7
mov ecx, esi
call fcn.140015a78
lea rcx, [rbp - 0x20]
call fcn.140039d34
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14003ce6c
inc dword [r14]
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov r8d, 7
mov ecx, esi
lea rdx, [rbp - 0x20]
call fcn.140015a78
lea rcx, [rbp - 0x20]
call fcn.140039d34
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14003ce6c
inc dword [r14]
lea rdx, [rbp - 0x20]
and esi, 0x3ff
mov r8d, 7
mov ecx, esi
add rdi, rbx
call fcn.140015a78
lea rcx, [rbp - 0x20]
call fcn.140039d34
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14003ce6c
inc dword [r14]
lea rdx, [rbp - 0x20]
mov r8d, 7
mov ecx, 0x800
add rdi, rbx
call fcn.140015a78
lea rcx, [rbp - 0x20]
call fcn.140039d34
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
mov rbx, rax
call fcn.14003ce6c
inc dword [r14]
lea rcx, [rdi + rbx]
xor eax, eax
mov word [r15 + rcx*2 + 2], ax
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140032970
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140015cfc
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140007bd0
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140007bba
cmp qword [rcx + 0x18], 0
jne 0x140007bb5
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140007bd6
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140007bd0
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp 0x140015cfc
call fcn.14000a5c4
int3
call fcn.14000a5c4
int3
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14006e6c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140015db7
test rdx, rdx
je 0x140015db7
mov rcx, rdx
call fcn.140039d34
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0x1fe
lea rcx, [rsp + 0x22]
mov rsi, rax
call fcn.14004bce0
mov r8d, 0x100
cmp rsi, r8
ja 0x140015d88
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x140015d88
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140015d94
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140032970
mov rbx, qword [rsp + 0x260]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a5c4
int3

Function at 0x140016ebc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140016eee
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016eee
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14002ca4c
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140016f00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140016f26
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140008c4c
jmp 0x140016f92
cmp byte [0x1400744a8], 0
jne 0x140016f6a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016f5a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400744a0], rax
jmp 0x140016f61
mov rax, qword [0x1400744a0]
mov byte [0x1400744a8], 1
jmp 0x140016f71
mov rax, qword [0x1400744a0]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x140016f8b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x14000dcca.0]
jmp 0x140016f92
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140019784
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x77], rdx
cmp qword [rcx + 0x20], 0
je 0x140019877
xor esi, esi
and qword [rbp + 0x17], rsi
and dword [rbp + 0x1f], esi
and qword [rbp + 0x27], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov rax, qword [rax + 0x40]
call qword [case.0x14000dcca.0]
nop
mov rbx, qword [rax]
call fcn.140009a78
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.140005714
nop
and qword [rbp + 0x7f], rsi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
test eax, eax
jne 0x140019833
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x17], rax
and dword [rbp + 0x1f], ecx
mov eax, ecx
neg eax
sbb ebx, ebx
and ebx, ecx
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019860
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000dcca.0]
test ebx, ebx
je 0x140019966
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140019877
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000a2cc
mov rcx, rax
test rax, rax
je 0x140019995
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000dcca.0]
add rax, 0x18
mov qword [rbp + 0x6f], rax
call fcn.14000a2cc
mov rcx, rax
test rax, rax
je 0x14001998a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000dcca.0]
add rax, 0x18
mov qword [rbp + 7], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 7]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x77]
call fcn.1400175b8
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x14001991f
mov rcx, rbx
call fcn.140039d34
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019941
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000dcca.0]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019966
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000dcca.0]
cmp qword [rbp + 0x77], 0
jne 0x140019885
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140019980
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140019879
mov ecx, 0x80004005
call fcn.140001b4c
nop
mov ecx, 0x80004005
call fcn.140001b4c
int3
Function at 0x140028c24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x140028c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140028c5a
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140001808
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14002bd7c
int3

Function at 0x140028f80
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x140028f92
xor eax, eax
jmp 0x140028faf
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028fb5
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140001808
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14002bd7c
int3

Function at 0x1400290cc
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14002910a
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002910b
cmp dword [rsp + 0x50], ebx
jne 0x140029128
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140001808
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14002bd7c
int3
lea rcx, [rdi + 0x18]
call fcn.140001808
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14002b8d0
int3

Function at 0x140033450
Capabilities:
Parse pe header

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

Function at 0x14003f8b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003f6ac
Function at 0x140044888
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004490f
mov rsi, rbx
cmp word [rax], bp
je 0x1400448ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400448b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400448b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400409cc
mov rdi, rax
test rax, rax
je 0x1400448fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004b640
mov rbp, rdi
xor ecx, ecx
call fcn.1400408b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004b3b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004b3b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400649a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400649ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400649bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400649a5
lea eax, [rcx + 1]
jmp 0x1400649cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400649de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400649c4
sub eax, 3
jb 0x1400649fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140064a4d
sar eax, 1
movsxd rbp, eax
jb 0x140064a34
jmp 0x140064a0c
add ebx, ebx
jne 0x140064a0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064a34
inc ecx
add ebx, ebx
jne 0x140064a1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064a34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140064a2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140064a1c
add ecx, 2
jmp 0x140064a39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140064962
jmp 0x1400649ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140064a99
cmp rsi, rcx
jae 0x140064aa1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140064a80
cmp al, 0x8f
ja 0x140064a80
cmp byte [rsi - 2], 0xf
je 0x140064a86
sub al, 0xe8
cmp al, 1
ja 0x140064a6a
cmp rsi, rcx
jae 0x140064aa1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140064a70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140064aa1
lodsb al, byte [rsi]
jmp 0x140064a80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x62000]
mov eax, dword [rdi]
or eax, eax
je 0x140064b0a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x734b8]
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 0x140064aae
jns 0x140064ae3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140064aed
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 0x140064b04
mov qword [rbx], rax
add rbx, 8
jmp 0x140064ace
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 0x140064b44
cmp al, 0xef
ja 0x140064b36
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140064b16
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140064b25
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 + 0x237]
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 0x140064b98
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x18000124c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov r15, r9
mov esi, r8d
mov r14, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x1800012e5
cmp dword [rbp + 0x40], 4
jne 0x1800013c7
lea rdx, [rbp - 0x20]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x1800013c7
mov rax, qword [rbp - 0x20]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x1800013c7
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov r8, r14
mov edx, esi
call qword [rax + Ordinal_26]
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov rdx, r15
call qword [rax + 0x20]
lea rcx, [rbp - 0x10]
test eax, eax
mov rax, qword [rbp - 0x20]
setns bl
call qword [rax + Ordinal_41]
jmp 0x1800013c7
lea rcx, [rbp - 8]
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800013c7
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800013bb
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800013b1
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
lea r9, [rbp + 0x20]
lea esi, [r8 + 2]
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800013b1
mov edx, dword [rbp + 0x20]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800013b1
mov rcx, qword [rbp - 0x18]
lea r9, [rbp + 0x20]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp + 0x40]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, r15
call fcn.18001ef90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180001550
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov r14, r9
mov edi, r8d
mov rsi, rdx
lea rcx, [rbp - 0x38]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov dword [rbp - 0x28], 0x8004
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], ebx
mov dword [rax - 0x78], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800016b6
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov r9d, edi
mov r8, rsi
mov qword [rsp + 0x28], rax
call fcn.1800013e4
test eax, eax
je 0x1800016aa
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800016a0
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x28]
lea edx, [rbx + 5]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x180001696
mov r8d, dword [rbp + 0x40]
mov rcx, qword [rbp - 0x40]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180001696
mov rcx, qword [rbp - 0x40]
lea esi, [rbx + 2]
lea r9, [rbp + 0x20]
mov edx, esi
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180001696
mov edx, dword [rbp + 0x20]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001696
mov rcx, qword [rbp - 0x40]
lea r9, [rbp + 0x20]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [rsi + 0x12]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, qword [rbp + 0x48]
call fcn.18001ef90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800021c0
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov ebp, r8d
cmp dword [0x18004b8d0], ebx
mov r14, rdx
mov r15, rcx
mov esi, ebx
mov dword [rax + 0x20], ebx
je 0x18000229b
lea rax, [rax + 0x20]
lea r8d, [rbx + 1]
mov edx, ebp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x1800022fe
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800022fe
lea rax, [rsp + 0x78]
lea r8d, [rbx + 1]
mov r9, rdi
mov edx, ebp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x180002290
lea rcx, str._n_nBase64_of_file_:__s_n_n
mov rdx, r15
call fcn.180002da0
cmp dword [rsp + 0x78], ebx
jbe 0x180002284
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x180035450]
call fcn.180002da0
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x18000226a
lea rcx, str._n
call fcn.180002da0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800022fe
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
mov rdi, rax
cmp rcx, 0xfffffffffffffffd
ja 0x1800022fe
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800022f5
cmp ebp, dword [rsp + 0x78]
jne 0x1800022f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1800025dc
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov rsi, r8
mov rdx, rcx
mov qword [r11 - 0x10], rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x40020010
mov qword [r11 + 0x20], rbx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x180002677
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x180002626
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov qword [rsi], rax
test rax, rax
je 0x18000266a
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.18001ef90
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x180002685
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
mov edx, eax
call fcn.180002da0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret