joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac3d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400ac418
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400ac3ea
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400ffc40
Capabilities:
Get session user name
Initialize winhttp library

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2a8
call fcn.140014250
lea rsi, [rsp + 0x9e]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 0x101
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, str.Failed_to_get_user_name
test eax, eax
je 0x1400ffcb3
xor edx, edx
xor r9d, r9d
lea rcx, str.A_WinHTTP_Example_Program_1.0
xor r8d, r8d
mov dword [rsp + 0x20], edx
xor edx, edx
call sub.WINHTTP.dll_WinHttpOpen
mov rbx, rax
test rax, rax
jne 0x1400ffcd8
lea rdx, str.WinHttpOpen_failed
mov rcx, qword [0x14010b370]
mov ebx, 1
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
jmp 0x1400ffe87
mov rcx, rsi
lea rbp, [rsp + 0x88]
lea rdi, [rsp + 0x78]
mov qword [rsp + 0x78], rbp
call sub.msvcrt.dll_wcslen
mov rdx, rsi
mov rcx, rdi
lea r8, [rsi + rax*2]
lea rsi, [rsp + 0x38]
call fcn.140001588
mov rdx, rdi
mov rcx, rsi
call fcn.1400015ec
mov rcx, rdi
call fcn.1400e34f0
xor eax, eax
mov rcx, rdi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x40]
mov byte [rsp + 0x88], 0
lea rdx, [rax + 0xe]
call fcn.1400e1090
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x80]
cmp rax, 0xd
ja 0x1400ffd65
lea rcx, [0x140104175]
call fcn.140100270
mov r8d, 0xe
lea rdx, str._hostname_:__
mov rcx, rdi
call fcn.1400e1210
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x80]
cmp rax, r8
jae 0x1400ffda7
lea rcx, [0x140104175]
call fcn.140100270
mov rcx, rdi
call fcn.1400e1210
jmp 0x1400ffdb6
lea rdx, [0x140104199]
mov rcx, rdi
call fcn.1400dc430
lea rbp, [rsp + 0x58]
mov rdx, rax
mov rcx, rbp
call fcn.1400e1750
mov rcx, rdi
call fcn.1400db480
mov rcx, qword [0x14010b390]
mov rdx, rbp
call fcn.1400fb670
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rdx, rbp
mov rcx, rbx
call fcn.140001842
test al, al
jne 0x1400ffe3b
mov rcx, qword [0x14010b370]
lea rdx, str.Failed_to_send_POST_request
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
mov ebx, 1
jmp 0x1400ffe45
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
xor ebx, ebx
mov rcx, rbp
call fcn.1400db480
mov rcx, rsi
call fcn.1400db480
jmp 0x1400ffe87
mov eax, ebx
add rsp, 0x2a8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x2fc4caa90
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 0x2fc4cb492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb52a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb50e
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 0x2fc4cb502
cmp qword [rbp - 0x10], 0
je 0x2fc4cb502
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 0x2fc4cb4c8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb52b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb630
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 0x2fc4cb658
mov eax, 0
jmp 0x2fc4cb6a6
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 0x2fc4cb681
mov eax, 0
jmp 0x2fc4cb6a6
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 0x2fc4cb6a1
mov eax, 0
jmp 0x2fc4cb6a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb6ac
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 0x2fc4cb72a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb721
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 0x2fc4cb721
mov rax, qword [rbp - 8]
jmp 0x2fc4cb73f
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 0x2fc4cb6f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004af24
xor r8d, r8d
xor edx, edx
jmp 0x14004ac14

Function at 0x14000211c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400737e0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140096040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140098b48]
xor r11d, r11d
lea rdi, [0x140081904]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140073850
mov rax, 0xfffffffffffffffe
jmp 0x14007399d
cmp word [r10 + 6], r11w
jne 0x1400738bf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007387a
test r14, r14
je 0x14007386b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007399d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140073888
mov r8b, 2
jmp 0x1400738a6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140073896
mov r8b, 3
jmp 0x1400738a6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140073992
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400738e8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140073992
cmp bl, bpl
jb 0x140073992
cmp bl, r8b
jae 0x140073992
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140073915
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140073992
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400738f7
cmp r9, rbp
jae 0x140073941
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140073844
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140073992
cmp edx, 0x110000
jae 0x140073992
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140073992
test r14, r14
je 0x140073980
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14000393b
jmp 0x14007399d
mov rdx, rsi
mov rcx, r10
call fcn.140003f71
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002581
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002162
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1400079fc
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007a89
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140007a89
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a89
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007a70
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140007a6a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007a72
add rdx, 0x28
jmp 0x140007a4f
xor edx, edx
test rdx, rdx
jne 0x140007a7b
xor al, al
jmp 0x140007a8f
cmp dword [rdx + 0x24], 0
jge 0x140007a85
xor al, al
jmp 0x140007a8f
mov al, 1
jmp 0x140007a8f
xor al, al
jmp 0x140007a8f
add rsp, 0x18
ret

Function at 0x1400026b7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400152fc
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400828c8]
mov ecx, 2
lea r8, [0x1400828c0]
lea rdx, str.FlsGetValue
call fcn.140014dcc
mov ecx, ebx
test rax, rax
je 0x140015336
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027f7
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005eaa8
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 0x14005ead8
xor eax, eax
jmp 0x14005eb9b
mov rbp, rbx
cmp word [rax], si
je 0x14005eafd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005eae4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005eae0
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.140003157
movsxd r14, eax
test eax, eax
jne 0x14005eb3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005ead1
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x14005eb54
xor ecx, ecx
call fcn.140001168
jmp 0x14005eb30
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.140003157
test eax, eax
jne 0x14005eb85
mov rcx, rdi
call fcn.140001168
jmp 0x14005eb8f
xor ecx, ecx
call fcn.140001168
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 0x140002806
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14001524c
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140082888]
xor ecx, ecx
lea r8, [0x140082880]
lea rdx, str.FlsAlloc
call fcn.140014dcc
test rax, rax
je 0x140015285
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000287e
Capabilities:
Get geographical location

Disassembly:
jmp 0x140053a44
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140083ed8]
mov rbp, rcx
lea r8, [0x140083ed0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140052f64
test rax, rax
je 0x140053aa4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a0030]
jmp 0x140053abe
xor edx, edx
mov rcx, rbp
call fcn.1400021b7
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000288d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400771ac
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029c8
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004aeb8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004ac14

Function at 0x140002b53
Capabilities:
Parse pe header

Disassembly:
jmp 0x140076fa0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140076fc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140076fc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e5f
Capabilities:
Parse pe header

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

Function at 0x1400030d0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140076ee0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140076f21
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140076f15
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140076f23
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140076f03
xor eax, eax
ret
Function at 0x1400032ba
Capabilities:
Terminate process

Disassembly:
jmp 0x140052250
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14005226a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003945
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a2b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140015354
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400828e8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400828e0]
call fcn.140014dcc
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140015394
call qword [0x1400a0020]
jmp 0x14001539a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003ac1
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006ebb4
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.1400020f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006ec3e
cmp byte [rbp - 0x21], r15b
je 0x14006ec39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006ec74
call fcn.140003e5e
test eax, eax
jne 0x14006ec60
cmp byte [rbp - 0x21], r15b
je 0x14006ec58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006ec74
cmp byte [rbp - 0x21], r15b
je 0x14006ec71
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.14000402a
test eax, eax
jne 0x14006ed14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006ecb3
cmp byte [rbp - 0x21], r15b
je 0x14006ece8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006ece8
call fcn.140003e5e
test eax, eax
jne 0x14006ecd4
cmp byte [rbp - 0x21], r15b
je 0x14006eccd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006ece8
cmp byte [rbp - 0x21], r15b
je 0x14006ece5
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.14000402a
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006ed14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006ed17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006ed25
mov rcx, rdi
call fcn.140001168
cmp byte [rbp + 0x3f], r15b
je 0x14006ed34
mov rcx, qword [rbp + 0x27]
call fcn.140001168
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 0x140003bb1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004aea8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004ac83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004ac83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ac83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004ac83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004ac83
cmp dword [rcx + 0x84], 0xe
jbe 0x14004ac83
cmp dword [rcx + 0xf8], 0
je 0x14004ac83
mov ecx, ebx
call fcn.14004adec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004a96c
nop
cmp dword [rbp + 0x20], 0
je 0x14004acd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004ad0c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004ac14

Function at 0x140007fac
Capabilities:
Parse pe header

Disassembly:
jmp 0x140007fac
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007ff6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007ff6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007ff6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007ff6
cmp dword [rcx + 0x84], 0xe
jbe 0x140007ff6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007ff8
xor al, al
add rsp, 0x28
ret
Function at 0x14006d120
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006d136
mov al, 1
jmp 0x14006d196
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006d147
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006d194
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003e0e
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006d194
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006d194
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006d194
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006d196
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x2fc4da830
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 0x2fc4db232
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4db2ca
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4db2ae
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 0x2fc4db2a2
cmp qword [rbp - 0x10], 0
je 0x2fc4db2a2
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 0x2fc4db268
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db2cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db3d0
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 0x2fc4db3f8
mov eax, 0
jmp 0x2fc4db446
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 0x2fc4db421
mov eax, 0
jmp 0x2fc4db446
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 0x2fc4db441
mov eax, 0
jmp 0x2fc4db446
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db44c
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 0x2fc4db4ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db4c1
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 0x2fc4db4c1
mov rax, qword [rbp - 8]
jmp 0x2fc4db4df
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 0x2fc4db494
mov eax, 0
add rsp, 0x20
pop rbp
ret