joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f50
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x64560
mov rbp, rsp
push rdi
push rsi
and rsp, 0xfffffffffffffff0
call fcn.00402ae0
lea rsi, str.5dff652a5b0f2c7c949500a6853c852d570c583c108470b8662b470c58024c38845dff000000002e986921ab949f9894000002000c7c94ad98841f98847e9884353539845dff000000005e354a85ab94000001000c7c94012e1c1d9894a504a69535000000558eaabe2047fcff845dff000000000e530f44ab94000031881c7c84f1570c585dffb78160d22c7c9435359c13d49c13d41f9884a5350c13d45dff0000000068e96457ab94951440a60e9894000033088625a5f1a61f9884f5a0a66c98845dffb3e255be2c7c9435350500000000488a23008b84359c13d48514a5351c9884004654d21435843435839417964344a58486845777f58585e4a745054744838537178724651586072323236586f5665676556347437433a484567663e423630593551616178576833543f4e414e6175455e45554c66415e4164643c43525a4e41357f2c4774546b6e47705f2000000c68e5dff000000006cf99875ab943530a635359c13d4000010bb0c7c941c9884a500832323e28373e2035313e2132323000000f08e5dff000000007a9765a3ab9435359c13d40c13d4a5351e988435355dff706277c42c7c941e98846514004756e696e69677eb9435bd1384d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014d09c1c14ca0c13846d10848843b8149c13d49cff84653e050d10948184b80204b8440d108476470c58840000008808b80000002758f020b0818718660d1084c324b80225b884151425de2e1c1014d09c1c1402c220c716c3ca0c13840527b884a4a47bf0849c13d40225b8848125b8840625b8845665152d13842505141514000000cc8e0f4e3884cf
mov ecx, 0xa5
sub rsp, rax
lea rdi, [rsp + 0x30]
rep movsq qword [rdi], qword [rsi]
mov eax, dword [rsi]
lea rsi, [rsp + 0x560]
mov dword [rdi], eax
movzx eax, byte [0x0040552c]
mov byte [rdi + 4], al
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__strrev]
mov r8d, 0x64000
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov rdx, rsi
mov rcx, rdi
call fcn.00402e70
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0x64000
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
mov r8d, 0x64000
mov rcx, rax
call sub.msvcrt.dll_memmove
lea r8, [0x00402f40]
mov r9, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsp, [rbp - 0x10]
pop rsi
pop rdi
pop rbp
ret
Function at 0x14143cef0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14143cefd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14143cf0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14143cef5
lea eax, [rcx + 1]
jmp 0x14143cf1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14143cf2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14143cf14
sub eax, 3
jb 0x14143cf4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14143cf9d
sar eax, 1
movsxd rbp, eax
jb 0x14143cf84
jmp 0x14143cf5c
add ebx, ebx
jne 0x14143cf5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14143cf84
inc ecx
add ebx, ebx
jne 0x14143cf6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14143cf84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14143cf7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14143cf6c
add ecx, 2
jmp 0x14143cf89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14143ceb2
jmp 0x14143cefd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x140a000]
mov eax, dword [rdi]
or eax, eax
je 0x14143cffd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1498114]
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 0x14143cfad
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 0x14143cff7
mov qword [rbx], rax
add rbx, 8
jmp 0x14143cfcd
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 0x14143d041
cmp al, 0xef
ja 0x14143d029
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14143d009
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14143d018
mov eax, dword [rdi]
add rdi, 4
jmp 0x14143d018
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 + 0x1af]
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
mov byte [fcn.14143d0c0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14143d0c0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14143d0b0
sub rsp, 0xffffffffffffff80
jmp 0x1400013c9
Function at 0x1800037b0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.CRYPT32.dll_CertOIDToAlgId]
mov ebx, eax
test eax, eax
je 0x180003918
cmp eax, 0xffffffff
jne 0x18000390e
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x180003912
cmp dword [rsp + 0x24], 6
jb 0x180003912
xor r8d, r8d
mov rdx, rdi
lea ecx, [r8 + 1]
call qword [sym.imp.CRYPT32.dll_CryptFindOIDInfo]
test rax, rax
je 0x180003918
mov ecx, dword [rax + 0x1c]
cmp ecx, ebx
jne 0x18000390c
mov r8, qword [rax + 0x30]
mov r10d, 6
lea rcx, [0x180002488]
mov rdx, r8
mov r9d, r10d
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x18000387a
add rdx, 2
add rcx, 2
dec r9d
jne 0x180003857
mov ebx, 0x800c
xor eax, eax
mov dword [rsi], ebx
jmp 0x18000391d
test r9d, r9d
je 0x18000386c
movzx eax, word [rcx]
movzx ecx, word [rdx]
cmp ecx, eax
je 0x18000386c
mov r9d, r10d
lea rdx, [0x180002498]
mov rcx, r8
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x1800038b6
add rcx, 2
add rdx, 2
dec r9d
jne 0x180003896
mov ebx, 0x800d
xor eax, eax
mov dword [rsi], ebx
jmp 0x18000391d
test r9d, r9d
je 0x1800038ab
movzx ecx, word [rcx]
movzx eax, word [rdx]
cmp ecx, eax
je 0x1800038ab
lea rdx, [0x1800024a8]
nop dword [rax]
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x1800038f1
add r8, 2
add rdx, 2
dec r10d
jne 0x1800038d0
mov ebx, 0x800e
xor eax, eax
mov dword [rsi], ebx
jmp 0x18000391d
test r10d, r10d
je 0x180003901
movzx ecx, word [r8]
movzx eax, word [rdx]
cmp ecx, eax
jne 0x180003912
mov ebx, 0x800e
xor eax, eax
mov dword [rsi], ebx
jmp 0x18000391d
mov ebx, ecx
test ebx, ebx
je 0x180003918
mov dword [rsi], ebx
xor eax, eax
jmp 0x18000391d
mov eax, 0x80090008
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180004f80
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180003da0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14, qword [rsp + 0xa0]
mov r15, qword [rsp + 0xa8]
xor eax, eax
mov r13d, edx
mov rdi, rcx
lea rdx, [rsp + 0x38]
mov rcx, r9
mov qword [r14], rax
mov dword [r15], eax
mov r12, r8
mov esi, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], eax
mov ebp, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
call fcn.1800037b0
mov ebx, eax
test eax, eax
js 0x180003f40
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180003e37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003f40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r12d, r12d
mov rsi, rax
test rax, rax
je 0x180003f38
mov r8d, r13d
mov rdx, rdi
mov rcx, rax
mov dword [rax], r12d
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
call fcn.180003470
mov ebx, eax
test eax, eax
js 0x180003f40
mov r8d, dword [rsi]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180003ea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003f40
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180003f1f
cmp dword [rsp + 0x34], 4
jne 0x180003f1f
mov edi, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x180003f3b
mov ecx, dword [rsp + 0x30]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
lea edx, [rax + 2]
mov r8, rbp
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180003f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003f40
mov eax, dword [rsp + 0x30]
mov qword [r14], rbp
mov rbp, r12
mov dword [r15], eax
jmp 0x180003f40
mov rsi, r12
mov ebx, 8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003f50
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test rbp, rbp
je 0x180003f69
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x180003f8a
mov rcx, rsi
call fcn.180002790
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004fb0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x180005117
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180005008
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180005010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x180005055
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x18000f654], r12d
shl eax, 8
mov dword [0x18000f660], esi
mov dword [0x18000f664], ebp
add eax, ebp
mov dword [0x18000f658], edi
mov dword [0x18000f65c], eax
call fcn.180006430
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180005008
call fcn.180006100
test eax, eax
je 0x18000510a
call fcn.180006f10
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180010130], rax
call fcn.180006d30
mov qword [0x18000f0c8], rax
call fcn.1800064c0
test eax, eax
js 0x180005105
call fcn.180006c20
test eax, eax
js 0x180005100
call fcn.180006880
test eax, eax
js 0x180005100
xor ecx, ecx
call fcn.180005680
test eax, eax
jne 0x180005100
add dword [0x18000f0c0], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1800067f0
call fcn.180005c20
call fcn.180006490
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180005160
mov eax, dword [0x18000f0c0]
test eax, eax
jle 0x180005008
sub eax, 1
cmp dword [0x18000f6b0], edx
mov dword [0x18000f0c0], eax
jne 0x18000513f
call fcn.1800058d0
test rbx, rbx
jne 0x1800051d9
call fcn.1800067f0
call fcn.180005c20
call fcn.180006490
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x1800051cd
call fcn.180005c10
mov edx, 0x2d8
mov ecx, 1
call fcn.1800062f0
test rax, rax
mov rbx, rax
je 0x180005008
mov ecx, dword [0x18000e018]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x1800051bd
xor edx, edx
mov rcx, rbx
call fcn.180005c70
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.180006220
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x1800051d9
xor ecx, ecx
call fcn.1800060a0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180005437
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x180004f9a
rol rcx, 0x10
test cx, 0xffff
jne 0x180004f96
repz ret
ror rcx, 0x10
jmp 0x180005390
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000f180]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000f278]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180005415
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, [0x18000f180]
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.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180005437
mov rax, qword [rsp + 0x88]
mov qword [0x18000f278], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000f218], rax
mov rax, qword [0x18000f278]
mov qword [0x18000f0f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000f200], rax
mov dword [0x18000f0e0], 0xc0000409
mov dword [0x18000f0e4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000e008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000f178], eax
mov ecx, 1
call fcn.180007490
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180001338]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000f178], 0
jne 0x1800054be
mov ecx, 1
call fcn.180007490
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 0x180006d30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x18000f7d8]
test eax, eax
jne 0x180006d83
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180006d63
mov dword [0x18000f7d8], 1
jmp 0x180006d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x180006d7d
mov dword [0x18000f7d8], 2
jmp 0x180006e79
mov eax, dword [0x18000f7d8]
cmp eax, 1
jne 0x180006e70
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180006ec3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180006dc5
add rbx, 2
cmp word [rbx], 0
jne 0x180006db1
add rbx, 2
cmp word [rbx], 0
jne 0x180006db1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x180006e63
mov rcx, rbp
call fcn.180006270
test rax, rax
mov rsi, rax
je 0x180006e63
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x180006e3d
mov rcx, rsi
call fcn.180006220
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x180006e49
cmp eax, 2
je 0x180006e79
test eax, eax
jne 0x180006ec3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x180006ec3
cmp byte [rax], 0
je 0x180006ea2
nop
add rax, 1
cmp byte [rax], 0
jne 0x180006e90
add rax, 1
cmp byte [rax], 0
jne 0x180006e90
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180006270
test rax, rax
mov rdi, rax
jne 0x180006ed5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180009830
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x1800074b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x18000e130]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1800074ee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1800074d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1800076d5
mov ecx, 3
call fcn.18000a030
cmp eax, 1
je 0x18000768c
mov ecx, 3
call fcn.18000a030
test eax, eax
jne 0x180007525
cmp dword [0x18000f0d8], 1
je 0x18000768c
cmp edi, 0xfc
je 0x1800076d5
mov qword [rsp + 0x50], rbp
lea rbp, [0x18000f7e0]
lea r8, [0x180001970]
mov rcx, rbp
mov edx, 0x314
call fcn.1800096b0
test eax, eax
je 0x180007569
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180007ad0
lea rdx, [0x18000f7f9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x18000f8fd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800075b9
lea r8, [0x180001958]
lea rcx, [0x18000f7f9]
mov edx, 0x2fb
call fcn.1800096b0
test eax, eax
je 0x1800075b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180007ad0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x18000f7f9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180007608
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x18000faf4]
lea r9d, [rax + 3]
lea r8, [0x180001954]
sub rdx, rcx
call fcn.180009f10
test eax, eax
je 0x180007608
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180007ad0
lea r8, [0x180001950]
mov edx, 0x314
mov rcx, rbp
call fcn.180009e50
test eax, eax
je 0x180007634
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180007ad0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.180009e50
test eax, eax
je 0x180007664
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180007ad0
lea rdx, [0x180001928]
mov r8d, 0x12010
mov rcx, rbp
call fcn.180009bf0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1800076d5
cmp rax, 0xffffffffffffffff
je 0x1800076d5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1800076f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.18000a030
cmp eax, 1
je 0x180007722
mov ecx, 3
call fcn.18000a030
test eax, eax
jne 0x1800077d6
cmp dword [0x18000f0d8], 1
jne 0x1800077d6
mov qword [rsp + 0x48], rbx
lea rbx, [0x18000e130]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18000774e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x180007738
jmp 0x1800077c2
cmp edi, 0x17
jae 0x1800077c2
mov ecx, 3
call fcn.18000a030
cmp eax, 1
je 0x180007779
mov ecx, 3
call fcn.18000a030
test eax, eax
jne 0x1800077c2
cmp dword [0x18000f0d8], 1
jne 0x1800077c2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1800077c2
cmp rax, 0xffffffffffffffff
je 0x1800077c2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1800074b0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x180007b80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x18000fd30]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180005b30
test rax, rax
je 0x180007bd4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x180007c69
mov ecx, 2
call fcn.180007490
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.18000a0a0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180007c55
test ebx, ebx
jne 0x180007c55
lea ecx, [rax + 2]
call fcn.180007490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret