joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400edd90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1400eddec
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x1400edee0
test r15w, r15w
je 0x1400eddec
cmp r15w, 0x2e
jne 0x1400edee0
test r12w, r12w
jne 0x1400edee0
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.14014a250
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x1400edec5
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1400ede41
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x1400edec5
cmp word [rsp + 0xac], 0x2e
jne 0x1400ede6a
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400ede30
cmp ax, 0x2e
jne 0x1400ede6a
cmp word [rsp + 0xb0], 0
je 0x1400ede30
lock inc qword [r14]
jle 0x1400edfc9
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x1400edf0b
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400edf57
mov qword [rsi], 0
jmp 0x1400edfb7
lock inc qword [r14]
jle 0x1400edfc9
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.140149ba0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.140149ba0
jmp 0x1400edf6a
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.140149ba0
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

Function at 0x1400eef80
Capabilities:
Create directory

Disassembly:
test cl, cl
je 0x1400eef8f
mov rcx, rdx
mov rdx, r8
jmp fcn.1400ef050
mov rcx, rdx
mov rdx, r8
jmp fcn.1400eefa0
Function at 0x1400eefa0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400e6980
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400ef045
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400ed340
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400ef045
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ef020
test rsi, rsi
je 0x1400ef01c
mov edx, 2
mov rcx, rdi
call fcn.140024600
xor esi, esi
jmp 0x1400ef045
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400ef042
mov edx, 2
mov rcx, rdi
call fcn.140024600
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400f9990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400e6980
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400f9a06
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400f9880
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400f9a14
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f9a34
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400f9a25
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.1400e3fc0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x1400f9a25
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140024600
Function at 0x1400fb5d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14023aaf0]
mov ecx, 0x10
mov edx, 8
call fcn.140024570
test rax, rax
je 0x1400fb6a7
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400fbb50]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400fb699
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x1400fb676
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140024600
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140024600
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1401592c0
ud2
Function at 0x1400fc660
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400fc6a3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400ea2d0]
mov qword [rbp - 0x28], rax
lea rax, [0x1401c2958]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1401596a0
ud2

Function at 0x140103c60
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140103c95
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140103c9a
call fcn.1400fc660
nop
add rsp, 0x38
ret

Function at 0x14010db46
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14010db4d
test al, 1
je 0x14010db6c
test al, 2
jne 0x14010db81
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401c63f0]
mov edx, 0x23
jmp 0x14010db94
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401c6430]
mov edx, 0x25
call fcn.140159860
ud2

Function at 0x14010e6a4
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.14010cdf0
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14010e6df
xor eax, eax
jmp 0x14010e6ed
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14010ea0c
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x50], r8
mov r14, rdx
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp + 0x70]
lea rsi, [rbp - 0x16]
lea r13, [rbp - 0x36]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
lea r15, [rdx + 0x18]
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rdx
mov rdx, qword [r14 + 0x10]
mov rdi, rcx
mov r8, qword [rbp - 0x50]
call fcn.14010e69c
mov al, byte [rbp - 0x17]
cmp al, 3
je 0x14010eb99
mov rcx, qword [rbp - 0x20]
cmp al, 2
je 0x14010eba6
mov dl, byte [rbp - 0x18]
movzx r8d, word [rsi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rsi]
mov dword [r13], r8d
mov qword [rbp - 0x40], rcx
mov byte [rbp - 0x38], dl
mov byte [rbp - 0x37], al
mov rcx, r15
lea rdx, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.32.0_srciopoll_evented.rs
call fcn.14005a6a9
mov rcx, qword [r15]
mov rdx, qword [rbp - 0x48]
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14010ebb7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.140047f30
cmp al, 0xd
jne 0x14010eb66
mov rax, qword [r15 + 8]
test rax, rax
je 0x14010eb66
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14010ebe7
mov rbx, r13
mov r15, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14007593f
mov rsi, rax
xor ecx, ecx
call fcn.140068124
test rsi, rsi
je 0x14010eb58
push 1
pop rcx
mov rdx, qword [rbp - 8]
call fcn.140075b5f
mov rax, rsi
mov rsi, r15
mov r13, rbx
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
jmp 0x14010eb6a
mov rsi, r15
mov r13, rbx
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
mov rax, qword [rbp - 8]
mov rbx, rax
mov rcx, rax
call fcn.140105ee4
cmp al, 0xd
jne 0x14010ebc7
mov qword [rbp - 0x20], rbx
mov rcx, r14
lea rdx, [rbp - 0x40]
call fcn.14010e318
mov rcx, rdi
call fcn.140104d0a
mov rcx, rdi
jmp 0x14010ea6c
mov rax, qword [rbp - 0x10]
mov qword [rax], 2
jmp 0x14010ebd6
mov rax, qword [rbp - 0x10]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14010ebd6
cdqe
mov rcx, qword [rbp - 0x10]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14010ebd6
mov rax, qword [rbp - 0x10]
mov qword [rax], 1
mov qword [rax + 8], rbx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2

Function at 0x14011ee0c
Capabilities:
Create directory

Disassembly:
mov r8, rdx
mov rdx, rcx
mov cl, 1
jmp fcn.1400eef80
Function at 0x1401208a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0x20
mov rsi, rcx
jb 0x14012092c
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call fcn.14014e72c
mov rcx, qword [rsi + 0x18]
mov edx, 0xc
mov rbx, rax
call fcn.14014e72c
mov rcx, qword [rsi + 0x10]
mov edx, 7
add rbx, rax
call fcn.14014e72c
mov rcx, qword [rsi + 8]
mov edx, 1
add rbx, rax
call fcn.14014e72c
mov rdx, qword [rsi + 8]
lea rcx, [rbx + rax]
call fcn.140120834
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.140120834
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.140120834
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.140120834
jmp 0x14012093d
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
mov r8, qword [rsi]
lea rdx, [rsi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401206c0
Function at 0x14014986c
Capabilities:
Parse pe header

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

Function at 0x14014f454
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14014f250
Function at 0x140152b64
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140152b94
xor eax, eax
jmp 0x140152c57
mov rbp, rbx
cmp word [rax], si
je 0x140152bb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140152ba0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140152b9c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140152a84
movsxd r14, eax
test eax, eax
jne 0x140152bf7
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140152b8d
mov rcx, r14
call fcn.140150508
mov rdi, rax
test rax, rax
jne 0x140152c10
xor ecx, ecx
call fcn.1401504cc
jmp 0x140152bec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140152a84
test eax, eax
jne 0x140152c41
mov rcx, rdi
call fcn.1401504cc
jmp 0x140152c4b
xor ecx, ecx
call fcn.1401504cc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140156520
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140151b54
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401565aa
cmp byte [rbp - 0x21], r15b
je 0x1401565a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401565e0
call fcn.1401541f0
test eax, eax
jne 0x1401565cc
cmp byte [rbp - 0x21], r15b
je 0x1401565c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401565e0
cmp byte [rbp - 0x21], r15b
je 0x1401565dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140151134
test eax, eax
jne 0x140156680
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140151b54
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14015661f
cmp byte [rbp - 0x21], r15b
je 0x140156654
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140156654
call fcn.1401541f0
test eax, eax
jne 0x140156640
cmp byte [rbp - 0x21], r15b
je 0x140156639
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140156654
cmp byte [rbp - 0x21], r15b
je 0x140156651
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140151134
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140156680
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140156683
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140156691
mov rcx, rdi
call fcn.1401504cc
cmp byte [rbp + 0x3f], r15b
je 0x1401566a0
mov rcx, qword [rbp + 0x27]
call fcn.1401504cc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x2fc798420
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc798e22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc7ba108]
test eax, eax
je 0x2fc798eba
lea rax, [0x2fc7ba0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc7ba110]
mov qword [rbp - 8], rax
jmp 0x2fc798e9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc798e92
cmp qword [rbp - 0x10], 0
je 0x2fc798e92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc798e58
lea rax, [0x2fc7ba0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc798ebb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc798fc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc798fe8
mov eax, 0
jmp 0x2fc799036
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc799011
mov eax, 0
jmp 0x2fc799036
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc799031
mov eax, 0
jmp 0x2fc799036
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc79903c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
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 dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc7990ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc7990b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc7990b1
mov rax, qword [rbp - 8]
jmp 0x2fc7990cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc799084
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001ce4
Capabilities:
Parse pe header

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

Function at 0x140c06058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c061df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c06089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c0606f
add dl, dl
jne 0x140c06096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c060f6
xor eax, eax
add dl, dl
jne 0x140c060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c061ad
add dl, dl
jne 0x140c060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c0607e
mov eax, 1
add dl, dl
jne 0x140c06106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c06113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c060fb
sub eax, ebx
mov ebx, 1
jne 0x140c0614c
mov ecx, 1
add dl, dl
jne 0x140c0612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c0613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c06123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c06168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c06175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c0615d
cmp eax, 0x7d00
jae 0x140c0619b
cmp eax, 0x500
jb 0x140c06196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0607e
cmp eax, 0x7f
ja 0x140c0619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c061d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c0607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20