joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401390d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x1401390fd
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
cmp qword [rsp + 8], rax
jae 0x140139133
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x1401390f0
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x140156df0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x140156e1d
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jae 0x140156e52
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x140156e10
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x140161920
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x14016194d
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x80]
cmp qword [rsp + 8], rax
jae 0x140161982
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x140161940
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x14019c730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x28
ret

Function at 0x1401a9270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x60], 0
je 0x1401a93b6
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
cmp qword [rax + 8], rcx
jb 0x1401a93b6
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 5
jge 0x1401a92f2
lea r9, [0x140424848]
mov r8d, 0x8c
lea rdx, [0x140424860]
lea rcx, [0x1404248a8]
call fcn.140059d40
test eax, eax
je 0x1401a92f2
int3
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
jne 0x1401a9320
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov rcx, qword [rsp + 0x20]
cmp qword [rcx + 8], rax
jne 0x1401a9347
lea r9, [0x1404248c8]
mov r8d, 0x8d
lea rdx, [0x1404248e0]
lea rcx, str._isblack_o___upisopen_uv_
call fcn.140059d40
test eax, eax
je 0x1401a9347
int3
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 0xb
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx + 0x20]
xor ecx, 3
and ecx, 3
cmp eax, ecx
jne 0x1401a938d
lea r9, str.luaF_close
mov r8d, 0x8e
lea rdx, [0x140424960]
lea rcx, str._isdead_g__o_
call fcn.140059d40
test eax, eax
je 0x1401a938d
int3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x60], rcx
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.1401a93c0
jmp 0x1401a928c
add rsp, 0x48
ret
Function at 0x1401bbb00
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca6b
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae35
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 6]
mov ecx, 1
mov dword [rsp + 0x24], ecx
movzx ecx, al
mov eax, dword [rsp + 0x24]
shl eax, cl
mov rcx, qword [rsp + 0x50]
movzx ecx, byte [rcx + 6]
mov edx, 1
shl edx, cl
mov ecx, edx
dec ecx
and eax, ecx
test eax, eax
je 0x1401bbbd1
lea r9, str.hashpointer
mov r8d, 0x49
lea rdx, [0x140433470]
lea rcx, [0x1404334d0]
call fcn.140059d40
test eax, eax
je 0x1401bbbd1
int3
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 6]
mov ecx, 1
mov dword [rsp + 0x28], ecx
movzx ecx, al
mov eax, dword [rsp + 0x28]
shl eax, cl
dec eax
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x1402d1fb0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4b8
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1402d20b2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1402d20b2
mov qword [rsp + 0x20], 0
jmp 0x1402d2035
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.140081580
cmp qword [rsp + 0x20], rax
jae 0x1402d20ad
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x4d8]
call fcn.140080830
mov rcx, rax
call fcn.14001eb50
mov rdx, rax
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1402d20a8
cmp dword [rsp + 0x4c], 0x19
jbe 0x1402d20a8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x4d0]
mov rsi, rax
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4d0]
jmp 0x1402d20f3
jmp 0x1402d2028
jmp 0x1402d2005
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x270]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
lea rax, [rsp + 0x270]
mov rdi, qword [rsp + 0x4d0]
mov rsi, rax
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4d0]
add rsp, 0x4b8
pop rdi
pop rsi
ret
Function at 0x1402d2100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, [rsp + 0xb0]
call fcn.1402d23d0
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140008560
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000abe0
mov qword [rsp + 0x68], rax
jmp 0x1402d215a
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x28], rax
je 0x1402d23b1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [0x14046e450]
lea rcx, [rsp + 0xe8]
call fcn.140009980
nop
lea rdx, [0x14046e454]
lea rcx, [rsp + 0xc8]
call fcn.140009980
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14001eb50
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
call fcn.14001ec10
mov qword [rsp + 0x70], rax
jmp 0x1402d21d6
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
je 0x1402d220e
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, ax
lea rcx, [rsp + 0xe8]
call fcn.140019970
jmp 0x1402d21c8
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14001eb50
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x58]
call fcn.14001ec10
mov qword [rsp + 0x78], rax
jmp 0x1402d2249
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
je 0x1402d2281
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, ax
lea rcx, [rsp + 0xc8]
call fcn.140019970
jmp 0x1402d223b
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xe8]
call fcn.1400217a0
cmp rax, 0xffffffffffffffff
je 0x1402d2391
cmp qword [rsp + 0x128], 0
je 0x1402d234d
mov r8d, 0x1000
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x98]
call fcn.1400142e0
nop
lea rcx, [rsp + 0x98]
call fcn.14001ffc0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x98]
call fcn.14001ffc0
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x38]
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
lea rcx, [rsp + 0x98]
call fcn.140017f70
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xc8]
call fcn.140009ce0
nop
lea rcx, [rsp + 0xe8]
call fcn.140009ce0
nop
lea rcx, [rsp + 0xb0]
call fcn.1402d1d70
mov rax, qword [rsp + 0x90]
jmp 0x1402d23c0
lea rcx, [rsp + 0xc8]
call fcn.140009ce0
nop
lea rcx, [rsp + 0xe8]
call fcn.140009ce0
jmp 0x1402d214c
lea rcx, [rsp + 0xb0]
call fcn.1402d1d70
xor eax, eax
add rsp, 0x118
ret
Function at 0x1402d23d0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x22a8
call fcn.140322b40
sub rsp, rax
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x22b0]
call fcn.1400161c0
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea r9, [rsp + 0x28]
mov r8d, 0x2000
lea rdx, [rsp + 0x2a0]
mov rcx, qword [0x1404d1800]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1402d24f2
mov dword [rsp + 0x20], 0
jmp 0x1402d2442
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x28]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
jae 0x1402d24f2
mov eax, dword [rsp + 0x20]
mov r9d, 0x104
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + rax*8 + 0x2a0]
mov rcx, qword [0x1404d1800]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1402d24ed
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140009980
nop
mov eax, dword [rsp + 0x20]
lea rax, [rsp + rax*8 + 0x2a0]
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1402d1790
nop
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x22b0]
call fcn.1402d2a10
nop
lea rcx, [rsp + 0x60]
call fcn.1400184f0
nop
lea rcx, [rsp + 0x40]
call fcn.140009ce0
jmp 0x1402d2438
mov rax, qword [rsp + 0x22b0]
add rsp, 0x22a8
ret

Function at 0x1402d2560
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1402d25d8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1402d25d8
mov eax, dword [0x1404d1818]
cmp dword [rsp + 0x38], eax
jne 0x1402d25d6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1402d25e5
jmp 0x1402d25a7
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x270
pop rdi
ret
Function at 0x1402d59e0
Capabilities:
Hash data using murmur3

Disassembly:
mov dword [rsp + 8], ecx
mov eax, dword [rsp + 8]
shr eax, 0xf
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
imul eax, dword [rsp + 8], 0x85ebca77
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0xd
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
imul eax, dword [rsp + 8], 0xc2b2ae3d
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0x10
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
ret
Function at 0x140321e30
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 0x140321eb4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140478700]
cmp byte [rcx + rax], 0
je 0x140321eb4
dec r8
sub rdx, 1
jne 0x140321e9a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1403234c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14032350e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14032350e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14032350e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14032350e
cmp dword [rcx + 0x84], 0xe
jbe 0x14032350e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140323510
xor al, al
add rsp, 0x28
ret
Function at 0x363891380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x36389146a
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x363891466
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp - 0x30]
add rdx, rcx
movzx edx, word [rdx]
movzx edx, dx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 0x28]
add rdx, rcx
mov edx, dword [rdx]
mov edx, edx
add rax, rdx
jmp 0x36389147b
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x363891409
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x3638914f4
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:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
jne 0x363891628
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
jmp 0x36389162a
nop
nop
add rsp, 0x50
pop rbp
ret

Function at 0x363891a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x363891b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3638a5074]
mov rbx, rcx
test esi, esi
jle 0x363891c30
mov rax, qword [0x3638a5078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x363891b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x363891bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x363891b30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x363891c52
mov rax, qword [0x3638a5078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3638a5078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x363891c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x363891bce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x363891be0
add dword [0x3638a5074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3638a5078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x363891bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x363891b58
mov rax, qword [0x3638a5078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x363891fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3638a50a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3638a5080]
test rbx, rbx
je 0x36389202c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x363892023
test eax, eax
jne 0x363892023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x363892008
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x363892240
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x363892258
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x363892260
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x363892270
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x3638922bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x3638922b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x3638922bf
add rax, 0x28
cmp rax, r9
jne 0x3638922a0
xor eax, eax
ret

Function at 0x3638922c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x363892350
mov rdx, qword [0x3638a2250]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x36389233e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x36389233e
cmp word [rax + 0x18], 0x20b
jne 0x36389233e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x363892350
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x363892329
add rbx, 0x28
cmp rbx, rdi
je 0x363892350
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x363892320
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x363892360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3638a2250]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x363892380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x363892388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x363892380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3638923dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3638923d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x363892380
add rax, 0x28
cmp rax, r9
jne 0x3638923c0
xor eax, eax
ret

Function at 0x3638923e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3638a2250]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3638923ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x363892408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3638923ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x363892420
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3638a2250]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x363892440
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x363892448
ret
cmp word [rdx + 0x18], 0x20b
jne 0x363892440
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x363892490
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x363892487
test rcx, rcx
je 0x363892440
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x363892478
xor eax, eax
ret