joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400037ac
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
call fcn.1400033b8
test eax, eax
je 0x140003827
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003827
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003808
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x14000381c
xor r8d, r8d
lea rdx, [0x140002560]
lea rcx, [rsp + 0x20]
call fcn.140002778
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001bec0
add rsp, 0x248
ret

Function at 0x140008728
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x1400088b7
cmp ecx, 0x7c
je 0x1400088b7
cmp ecx, 0x29
jne 0x140008770
cmp dword [rbx + 0x1c], 0
jne 0x1400088b7
test dword [rbx + 0x80], 0x10000000
je 0x1400088d0
jmp 0x140008865
cmp ecx, 0x2e
jne 0x140008790
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14000aff4
mov rcx, rbx
call fcn.14000b04c
jmp 0x1400088a5
cmp ecx, 0x5c
jne 0x1400087f1
mov rcx, rbx
call fcn.14000b04c
test byte [rbx + 0x80], 0x80
je 0x1400087e4
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x1400087c8
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14000aff4
mov rcx, rbx
call fcn.14000b04c
jmp 0x1400088ad
cmp al, 0x42
jne 0x1400087e4
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14000aff4
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400087bb
mov rcx, rbx
call fcn.1400088fc
jmp 0x1400088a5
cmp ecx, 0x5b
jne 0x140008815
mov rcx, rbx
call fcn.14000b04c
mov rcx, rbx
call fcn.1400090d8
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400088de
jmp 0x140008783
cmp ecx, 0x28
jne 0x140008839
mov rcx, rbx
call fcn.14000b04c
mov rcx, rbx
call fcn.14000b7a0
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400088d0
jmp 0x140008898
cmp ecx, 0x5e
jne 0x140008846
lea edx, [rcx - 0x5c]
jmp 0x1400087b2
cmp ecx, 0x24
jne 0x140008853
lea edx, [rcx - 0x21]
jmp 0x1400087b2
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400088c2
cmp ecx, 0x3f
je 0x1400088c2
cmp ecx, 0x7b
je 0x1400088c2
cmp ecx, 0x7d
jne 0x140008878
test dword [rbx + 0x80], 0x10000000
je 0x1400088ec
jmp 0x140008889
cmp ecx, 0x5d
jne 0x140008889
test dword [rbx + 0x80], 0x10000000
je 0x1400088de
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140007d74
mov dil, 1
mov rcx, rbx
call fcn.14000b04c
test dil, dil
je 0x1400088ad
mov rcx, rbx
call fcn.14000b09c
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14000873a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.14000a340
int3
mov edx, 5
mov rcx, rbx
call fcn.14000a340
int3
mov edx, 4
mov rcx, rbx
call fcn.14000a340
int3
mov edx, 6
mov rcx, rbx
call fcn.14000a340
int3
Function at 0x14000cea8
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000cf66
cmp di, word [rcx]
je 0x14000cf66
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call fcn.14001ea10
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000cf66
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x14000cf62
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x14000cf66
mov al, 1
jmp 0x14000cf68
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14001bec0
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret

Function at 0x14000d0a4
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x390
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov r14, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d0ea
xor al, al
jmp 0x14000d1d0
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
xor ebx, ebx
test eax, eax
je 0x14000d1c5
mov rdx, r14
lea rcx, [rsp + 0x5c]
call fcn.14002512c
test eax, eax
jne 0x14000d1ae
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000d1c3
test ebp, ebp
js 0x14000d15e
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000d15e
cmp dword [rsp + 0x20], ebp
jne 0x14000d1ae
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.14001ea10
mov r8d, 0x104
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edx, 0x3e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000d109
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14001bec0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d2c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x14000d3ab
cmp si, word [rcx]
je 0x14000d3ab
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14000d3a6
call fcn.14000cdac
cmp eax, 0x3d
jg 0x14000d3a6
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x14000d3a6
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x14000d344
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x14000d3a6
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d388
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d388
lea r8, [0x14004043c]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.1400262d0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.1400262d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x14000d3ad
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001bec0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000fae4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rdx + 0x10]
xor esi, esi
mov rbx, rcx
test r8, r8
jne 0x14000fb75
lea r9, [rax + 8]
mov qword [rax + 8], rsi
xor edx, edx
lea rcx, [0x1400422a0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000fb90
mov rdx, qword [rsp + 0x30]
lea rdi, [rbx + 0xd0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x14000fb2c
mov rcx, rdi
call fcn.140002228
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 1
lea rdx, [0x14004043c]
mov rcx, rdi
call fcn.14000b8e4
mov r8d, 4
lea rdx, str.Zoom
mov rcx, rdi
call fcn.14000b8e4
jmp 0x14000fb90
add rcx, 0xd0
cmp rcx, rdx
je 0x14000fb90
cmp qword [rdx + 0x18], 8
jb 0x14000fb8b
mov rdx, qword [rdx]
call fcn.140002228
lea r8, [rbx + 0xd0]
add rbx, 0xf0
cmp rbx, r8
je 0x14000fbbc
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x14000fbb0
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.140002228
mov r8d, 6
lea rdx, [0x140041540]
mov rcx, rbx
call fcn.14000b8e4
mov r8d, 0xb
lea rdx, str.Zoom.us.ini
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000b8e4
Function at 0x140011224
Capabilities:
Query service status

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14001126b
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14001126b
mov eax, dword [rsp + 0x54]
jmp 0x14001126d
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001bec0
add rsp, 0x78
ret

Function at 0x1400113b4
Capabilities:
Query service status

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400113e4
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400113e4
mov eax, dword [rsp + 0x24]
jmp 0x1400113e6
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bec0
add rsp, 0x58
ret

Function at 0x1400113f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x30], 0
lea rcx, str.Wtsapi32.dll
mov rsi, r9
mov dword [rsp + 0x38], edx
mov rbx, r8
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor dil, dil
lea r8, [rsp + 0x30]
lea rdx, str.WTSQueryUserToken
call fcn.140010f4c
cmp dword [rsp + 0x30], 0
je 0x14001150b
test rbx, rbx
je 0x14001150b
lea rdx, str.Zoom
mov rcx, rbx
call fcn.14002725c
test eax, eax
je 0x140011499
lea rdx, str.ZoomRooms
mov rcx, rbx
call fcn.14002725c
test eax, eax
jne 0x14001150b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14001ea10
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001150b
test rsi, rsi
je 0x14001150b
mov edi, 0x104
lea r8, [0x14004043c]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400262d0
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, edi
call fcn.1400262d0
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140026350
mov dil, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001151b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001bec0
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011730
Capabilities:
Create service
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov r15d, 0x208
mov r8d, r15d
lea rcx, [rbp + 0x1d0]
xor edx, edx
mov rdi, r9
call fcn.14001ea10
mov r8d, r15d
lea rcx, [rbp - 0x40]
xor edx, edx
call fcn.14001ea10
or rax, 0xffffffffffffffff
lea r15, [rbx + 0x70]
xor r12d, r12d
inc rax
cmp word [r15 + rax*2], r12w
jne 0x140011797
test rax, rax
je 0x1400118bd
test rsi, rsi
je 0x1400118bd
test r14, r14
je 0x1400118bd
lea rcx, [rbp - 0x40]
call fcn.140002ac8
test eax, eax
je 0x1400118bd
mov ebx, 0x40
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call fcn.14001ea10
mov r8d, ebx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.14000c3d4
test al, al
je 0x1400118bd
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
lea rdx, str.5.17.11.34827
lea rcx, [rbp - 0x80]
call fcn.14000d848
test al, al
je 0x1400118bd
cmp dword [rsp + 0x70], r12d
jl 0x1400118bd
test rdi, rdi
je 0x140011844
mov r9, rdi
lea r8, [rbp - 0x40]
lea rdx, str.__s___s
lea rcx, [rbp + 0x1d0]
call fcn.1400060e0
mov edi, 2
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400118bd
mov qword [rsp + 0x60], r12
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x58], r12
mov r9d, 0xf01ff
mov qword [rsp + 0x50], r12
mov r8, r14
mov qword [rsp + 0x48], r12
mov rdx, r15
mov qword [rsp + 0x40], r12
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x1400118e0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14001bec0
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400118bf

Function at 0x1400119bc
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test eax, eax
je 0x140011a02
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.1400113b4
inc ebx
cmp eax, 4
je 0x1400119ff
cmp ebx, 0x64
jl 0x1400119dd
cmp eax, 4
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140011aec
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
or rax, 0xffffffffffffffff
lea rbx, [rcx + 0x70]
xor edi, edi
inc rax
cmp word [rbx + rax*2], di
jne 0x140011b00
test rax, rax
je 0x140011b50
call fcn.140011660
test al, al
jne 0x140011b1b
mov al, 1
jmp 0x140011b50
mov r9d, 0xf01ff
lea rcx, [rsp + 0x20]
mov r8d, 2
mov rdx, rbx
call fcn.140011028
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
lea rcx, [rsp + 0x20]
setne bl
call fcn.140011084
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140014dfc
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140014f6e
cmp si, word [rdx]
je 0x140014f6e
cmp qword [rcx + 8], rsi
je 0x140014e30
call fcn.140014d10
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140014f6e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x140014f6e
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140014f6e
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x140014f6e
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x140014f6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x140014f6e
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140014f6e
cmp dword [rcx], 0x4550
jne 0x140014f6e
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x140014f47
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x140014f3e
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x140014f6e
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x140014f55
mov dword [rbx + 0x30], 2
jmp 0x140014f35
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x140014f6e
mov al, 1
jmp 0x140014f78
mov rcx, rbx
call fcn.140014d10
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400150a8
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov r14d, edx
mov rbx, rcx
add rcx, 0x38
cmp dword [rcx + 0x28], 0
je 0x1400150d7
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dil, dil
mov byte [rsp + 0x30], dil
cmp qword [rbx + 8], 0
jne 0x140015135
mov rcx, qword [rbx]
xor edx, edx
mov rsi, r14
test rcx, rcx
je 0x14001510f
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rbx + 8], rax
test rdx, rdx
je 0x140015135
shr rsi, 1
mov al, byte [rsi + rdx]
mov byte [rsi + rdx], al
lea eax, [r14 - 1]
mov ecx, eax
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
mov dword [rbx + 0x14], r14d
mov dil, 1
mov byte [rsp + 0x30], dil
jmp 0x140015145
lea rcx, [rbx + 0x38]
cmp dword [rcx + 0x28], 0
je 0x140015155
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, dil
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140015c18
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x140015c2f
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140015c39
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x140015c4c
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [rsi], 0xffffffbd
mov ecx, 0xdc3dd890
ret 0xb848
movsd dword [rdi], dword [rsi]
invalid
cmp ch, bl
cmp byte [r13 + 0x34], dil
invalid
pop r10
pop rdx
loope 0x140095a43
cmc
int1
sbb esp, dword [rbp + 0x10]
adc byte [rax - 0x10], ch
enter 0x2602, 0x7f
lodsb al, byte [rsi]
outsd dx, dword [rsi]
xchg ebx, eax
adc al, 0x2e
adc eax, 0xc7e7272e
invalid
invalid
out 0xc7, eax
mov bl, byte [rbx - 0x56]
jno 0x140095a62
fcompi st(4)
movabs al, byte [0xbb408246e5563576]
in eax, 0x46
invalid
mov ebx, 0xf1248852
and dword [rbp + 0x2b16779e], edx
sub eax, dword [rbx + rbx]
sub eax, dword [rbx + rbx]
adc cl, ah
and al, 0xdf
inc byte [rdx + 0x5427123c]
invalid
cmp al, 0x12
invalid
push rsp
push rsp
wait
lock xor eax, dword [rcx]
push 0xffffffffcb55fa52
retf
stc
loopne 0x140095b14
insb byte [rdi], dx
cmp dword [rax], ebx
cmp al, 0x33
invalid
adc al, 0xfc
lea ebp, [rbx + rbx]
mov es, ebx
sar byte [r9], 1
jae 0x140095b98
cmp al, 0x9a
cld
in al, 0x7c
adc edi, edi
fcomp dword [rdi + 0x52c16ac4]
scasd eax, dword [rdi]
invalid
invalid
Function at 0x140015c54
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140015c89
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jge 0x1400958ee
jl 0x14009590b
sar byte [rcx + rsi*8 - 0x1e401137], cl
or ecx, edi
adc byte [rcx + 0x26effeeb], 0xbd
mov dh, 0x15
div byte [rax]
invalid
jg 0x1400958f6
invalid
fisttp word [rbx + riz - 0x1261863a]
lodsd eax, dword [rsi]
invalid
invalid
and eax, 0xb61e2d2d
invalid

Function at 0x1400160fc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
lea rcx, str.crypt32.dll
call fcn.14000d2c4
mov rdi, rax
test rax, rax
je 0x1400161fb
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertGetNameStringW
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400581d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x18], 0
mov r14, rdx
mov rsi, rcx
je 0x14001a05c
cmp byte [rcx + 0x8c], 0
mov ebp, dword [rdx + 0x10]
je 0x14001a03b
mov edx, dword [rcx + 0x98]
mov ecx, dword [rcx + 0x84]
lea eax, [rdx + rbp]
cmp eax, ecx
jle 0x14001a03b
mov ebx, dword [rsi + 0x88]
cmp ebx, 1
jne 0x140019f9a
sub ecx, edx
movsxd rbx, ecx
mov rcx, rbx
call fcn.14001c174
mov r8, rbx
mov edx, 0x20
mov rcx, rax
mov rdi, rax
call fcn.14001ea10
mov r9, qword [rsi + 0x18]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.140026d38
mov rcx, rdi
call fcn.14001bee0
mov rcx, qword [rsi + 0x18]
xor r8d, r8d
xor edx, edx
call fcn.140027b10
and dword [rsi + 0x98], 0
jmp 0x14001a03b
jle 0x14001a03b
mov rcx, rsi
call fcn.1400195fc
mov rcx, rsi
call fcn.140019994
test al, al
je 0x14001a03b
cmp dword [rsi + 0x9c], ebx
jle 0x14001a03b
lea rdi, [rsi + 0xa8]
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14001a03b
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x28]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x38], 0
call fcn.14000e8f8
mov rdx, rbx
mov rcx, rdi
call fcn.140019548
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001a03b
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a036
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a07e
call fcn.14001bee0
cmp qword [r14 + 0x18], 0x10
jb 0x14001a045
mov r14, qword [r14]
mov r9b, 1
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call fcn.14001a368
add dword [rsi + 0x98], ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bec0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140026258
int3

Function at 0x14001a368
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
movsxd r8, r8d
mov bl, r9b
mov rdi, rcx
mov r9, qword [rcx + 0x18]
mov edx, 1
mov rcx, rax
call fcn.140026d38
test bl, bl
je 0x14001a39c
mov rcx, qword [rdi + 0x18]
call fcn.1400278a0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret