joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402a50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402a60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402aa1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402a98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402aa3
add rax, 0x28
cmp rax, r9
jne 0x402a84
xor eax, eax
ret

Function at 0x402b40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402baf
add rax, 0x28
cmp rax, r9
jne 0x402b90
xor eax, eax
add rsp, 0x28
ret

Function at 0x402cb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402cd0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cc8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d34
add rax, 0x28
cmp rax, r9
jne 0x402d10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402dbe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402dbe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402dbe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402dbe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402db5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402dc5
add rcx, 0x28
cmp rcx, rax
jne 0x402da0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402dd8
jmp 0x402dbe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402de6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402dbe
test r9d, r9d
jg 0x402dd0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x1400a5f0a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1400b9ac0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14026b117]
call fcn.1400a9448
mov rcx, qword [rbp + 0x100]
call fcn.1400a5f87
movzx eax, al
test eax, eax
je 0x1400b9af6
xor al, al
jmp 0x1400b9b28
mov rcx, qword [rbp + 0x100]
call fcn.1400a55e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x1400b9b18
xor al, al
jmp 0x1400b9b28
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
je 0x1400b9b26
mov al, 1
jmp 0x1400b9b28
xor al, al
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400a6d6f
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1400ccd80
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14026b62e]
call fcn.1400a9448
mov eax, dword [rbp + 0x120]
xor eax, 0xffffffff
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 4
jb 0x1400ccebc
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140205ba0]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140205ba0]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140205ba0]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140205ba0]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
sub rax, 4
mov qword [rbp + 0x130], rax
jmp 0x1400ccdbf
cmp qword [rbp + 0x130], 0
je 0x1400ccf17
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140205ba0]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
dec rax
mov qword [rbp + 0x130], rax
jmp 0x1400ccebc
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400a6e82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400baba0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140254140]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x14026b117]
call fcn.1400a9448
movzx eax, word [rbp + 0x238]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400bac1b
xor eax, eax
jmp 0x1400badc8
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400bac3e
xor eax, eax
jmp 0x1400badc8
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x1400bac69
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x1400badc8
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400bac8f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x1400badc8
mov eax, dword [rbp + 0x44]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400bacbe
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x1400badc8
mov eax, dword [rbp + 0x44]
mov r8d, eax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x88]
call fcn.1400a7157
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea r8, [rbp + 0xa8]
mov edx, 1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
jge 0x1400bad1a
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x1400badc8
mov ecx, 0x18
call fcn.1400a81f1
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0
je 0x1400bad65
mov edx, 0x18
mov rcx, qword [rbp + 0x1e8]
call fcn.1400a7db4
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x1e8]
call fcn.1400a5f73
mov qword [rbp + 0x1f8], rax
jmp 0x1400bad70
mov qword [rbp + 0x1f8], 0
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa8]
call qword [rax + InitCommonControls]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0xe8]
call fcn.1400a6658
test eax, eax
jne 0x1400badc6
mov rax, qword [rbp + 0xe8]
jmp 0x1400badc8
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140202060]
call fcn.1400a8836
mov rax, rdi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.1400a714d
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret
Function at 0x1400a6ef0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401217e0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401217fd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140121858
test al, 7
jne 0x1401217f0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140121811
mov rdx, qword [rax - 8]
test dl, dl
je 0x140121882
test dh, dh
je 0x14012187c
shr rdx, 0x10
test dl, dl
je 0x140121876
test dh, dh
je 0x140121870
shr rdx, 0x10
test dl, dl
je 0x14012186a
test dh, dh
je 0x140121864
shr edx, 0x10
test dl, dl
je 0x14012185e
test dh, dh
jne 0x140121811
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400a6f22
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401cb270
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401cadf0
lea rcx, [rsp + 0x20]
call fcn.1401cae40
movzx eax, al
test eax, eax
jne 0x1401cb2b5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401cae20
mov rax, qword [rsp + 0x40]
jmp 0x1401cb3af
lea rcx, [rsp + 0x20]
call fcn.1401caf40
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401caee0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400a71de
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400a69c8
lea rcx, [rsp + 0x28]
call fcn.1400a75bc
movzx eax, al
test eax, eax
jne 0x1401cb34f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400a866a
lea rcx, [rsp + 0x20]
call fcn.1401cae20
mov rax, qword [rsp + 0x50]
jmp 0x1401cb3af
lea rcx, [rsp + 0x20]
call fcn.1401caf40
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400a9394
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400a7157
lea rcx, [rsp + 0x28]
call fcn.1400a9ae2
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400a866a
lea rcx, [rsp + 0x20]
call fcn.1401cae20
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400a731e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14011bed0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14011b850
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011bf0f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14026c020]
jmp 0x14011bf19
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400a74fe
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401cafc0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401cadf0
lea rcx, [rsp + 0x40]
call fcn.1401caf70
movzx eax, al
test eax, eax
jne 0x1401cb008
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401cae20
mov rax, qword [rsp + 0x70]
jmp 0x1401cb1d9
lea rcx, [rsp + 0x40]
call fcn.1401caf40
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401caee0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401caf40
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400a8381
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401cb0ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401cae20
mov rax, qword [rsp + 0x80]
jmp 0x1401cb1d9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400a71de
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400a7053
lea rcx, [rsp + 0x48]
call fcn.1400a6b8f
movzx eax, al
test eax, eax
jne 0x1401cb115
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5a32
lea rcx, [rsp + 0x40]
call fcn.1401cae20
mov rax, qword [rsp + 0x88]
jmp 0x1401cb1d9
lea rcx, [rsp + 0x48]
call fcn.1400a7922
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401caf40
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400a8381
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401cb1ab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5a32
lea rcx, [rsp + 0x40]
call fcn.1401cae20
mov rax, qword [rsp + 0xa0]
jmp 0x1401cb1d9
lea rcx, [rsp + 0x48]
call fcn.1400a701c
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400a5a32
lea rcx, [rsp + 0x40]
call fcn.1401cae20
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400a7512
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14011be00
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14011b7d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011be41
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14026c020]
jmp 0x14011be47
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400a75c6
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401aaa20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401a9950
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401aaa87
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14026c030]
jmp 0x1401aaaa9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400a6b0d
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400a75d5
Capabilities:
Terminate process

Disassembly:
jmp 0x1400f8090
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400a78a0
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401dcb90
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140254140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401dcbb6
jmp 0x1401dcc33
mov rcx, qword [rbp + 0x30]
call fcn.1400a6ef0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401dcbcf
jmp 0x1401dcc33
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401dcbec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a5be5
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400a6176
test eax, eax
jne 0x1401dcc33
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400a714d
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400a7c51
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401cd120
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400a7c7e
Capabilities:
Create directory

Disassembly:
jmp 0x14012ae30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14012ae5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a6428
mov eax, 0xffffffff
jmp 0x14012ae60
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400a7eea
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400f9cb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400f9cd0
xor al, al
jmp 0x1400f9d51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400f9ce3
xor al, al
jmp 0x1400f9d51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400f9d0d
xor al, al
jmp 0x1400f9d51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400f9d21
xor al, al
jmp 0x1400f9d51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400f9d33
xor al, al
jmp 0x1400f9d51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400f9d4f
xor al, al
jmp 0x1400f9d51
mov al, 1
add rsp, 0x38
ret
Function at 0x1400a8589
Capabilities:
Terminate process

Disassembly:
jmp 0x14011d2a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14011d2ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400a8f7a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400a8fed
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401a53f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400a90d8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14011bf40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14011b890
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011bf89
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14026c020]
jmp 0x14011bf98
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x1401bb2e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400a5be5
sub rsp, rax
mov rax, qword [0x140254140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402576e0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401bb4d2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401bb426
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401bb426
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401bb40b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1401bb3a8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401bb492
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401bb4f1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401bb4cd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401bb4f1
jmp 0x1401bb37e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400a714d
add rsp, 0x1498
pop rdi
pop rsi
ret