joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441ea0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44200a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x441eb8
cmp edx, ecx
jne 0x441ff8
nop dword [rax]
test rsi, rsi
jne 0x441ff8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441f14
nop
call fcn.0045ffe0
xorps xmm15, xmm15
mov r14, qword [0x005974a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441da0
mov rcx, qword [0x005445c8]
mov rdx, qword [0x005445c0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x441ff3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x441fe8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00544fd0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00544fd0], rbx
nop
mov edx, 1
lea rsi, [0x00544fd8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x441fd7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004afb52]
mov ebx, 0x28
call fcn.00433740
mov rcx, rax
mov rax, rsi
call fcn.0045e640
call fcn.00431d60
lea rax, [0x004aef5c]
mov ebx, 0x23
call fcn.00433740
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bfe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00441ea0
Function at 0x44cc00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44cd78
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44cc3c
test r8b, r8b
jne 0x44cc3c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44cc4f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44cd38
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44cd26
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44cd1c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44cca3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44cce6
mov eax, 1
cmp rax, rbx
ja 0x44ccd5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045e700
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44cd14
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44ccdd
mov r8d, eax
mov eax, r10d
jmp 0x44cca8
mov rcx, rbx
call fcn.0045e640
xor eax, eax
mov rcx, rax
call fcn.0045e640
mov eax, r8d
mov rcx, rbx
call fcn.0045e700
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44cd6e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44cd31
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44cc55
mov eax, edx
mov rcx, rbx
call fcn.0045e640
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045e640
nop
int3
Function at 0x454460
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x454519
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00454560]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045bea0
xorps xmm15, xmm15
mov r14, qword [0x005974a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045bfe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00454460
Function at 0x45e080
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40280f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408ea0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bfe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027e0
cmp byte [0x005972cf], 0
je 0x45e095
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b0e0
jmp 0x4027e0

Function at 0x45e0a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00597580]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005972cf], 0
je 0x45e0d5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005978c0]
aesenc xmm0, xmmword [0x005978d0]
aesenc xmm0, xmmword [0x005978e0]
movq rax, xmm0
ret
jmp 0x4090a0

Function at 0x45e0e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00597580]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005972cf], 0
je 0x45e116
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005978c0]
aesenc xmm0, xmmword [0x005978d0]
aesenc xmm0, xmmword [0x005978e0]
movq rax, xmm0
ret
jmp 0x409100

Function at 0x45fb00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00597840]
mov qword [rsp + 8], rdx
lea r8d, [0x005972e4]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045dfc0
add rsp, 0x30
ret

Function at 0x460040
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460070
mov rcx, 0x28
jmp 0x46007b
shl rcx, 3
add rcx, 0x1480
mov qword [0x005974a0], rcx
ret
Function at 0x140005650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea eax, [rsp + 0x60]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140005656
lea rcx, [rdi - 1]
inc rcx
cmp byte [rcx], bl
jne 0x140005668
lea r8, [rsp + 0x50]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140005676
lea rcx, [rdi - 1]
inc rcx
cmp byte [rcx], bl
jne 0x140005688
lea r8, [rsp + 0x40]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140005696
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [rbp - 0x30]
mov r15, rax
test rax, rax
je 0x1400058ad
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x4000000
mov rdx, rdi
mov rcx, rax
call qword [rbp - 0x28]
mov r14, rax
test rax, rax
je 0x140005898
lea r9, [rbp + 0x498]
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 0x480]
mov edx, 0x20000005
mov rcx, rax
call qword [rbp - 0x20]
test eax, eax
je 0x140005883
mov edx, dword [rbp + 0x480]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call rsi
mov r8d, dword [rbp + 0x480]
lea r9, [rbp + 0x490]
mov rdx, rax
mov rcx, r14
mov rdi, rax
call qword [rbp - 0x18]
test eax, eax
jne 0x14000574f
cmp dword [rbp + 0x490], ebx
ja 0x1400059b8
mov esi, dword [rbp + 0x480]
mov rcx, r14
call r13
jmp 0x140005890
mov rdi, qword [rbp + 0x480]
mov esi, dword [rbp + 0x480]
mov rcx, r14
call r13
jmp 0x1400058a5
mov rdi, qword [rbp + 0x480]
mov esi, dword [rbp + 0x480]
mov rcx, r15
call r13
jmp 0x1400058ba
mov rdi, qword [rbp + 0x480]
mov esi, dword [rbp + 0x480]
mov r8, rdi
mov ecx, ebx
add rdi, 0x20
mov rdx, rbx
add esi, 0xffffffe0
mov r10d, pe_nt_image_headers64
mov eax, ecx
mov byte [rbp + rdx + 0x10], cl
and eax, 0x1f
inc ecx
mov al, byte [rax + r8]
mov byte [rbp + rdx + 0x220], al
inc rdx
cmp ecx, r10d
jl 0x1400058cf
mov edx, ebx
mov r8, rbx
mov r15d, 0x800000ff
mov r14d, 0xffffff00
movzx eax, byte [rbp + r8 + 0x220]
movzx r9d, byte [rbp + r8 + 0x10]
add edx, eax
add edx, r9d
and edx, r15d
jge 0x14000591e
dec edx
or edx, r14d
inc edx
movsxd rcx, edx
mov al, byte [rbp + rcx + 0x10]
mov byte [rbp + r8 + 0x10], al
inc r8
mov byte [rbp + rcx + 0x10], r9b
cmp r8, r10
jl 0x1400058fe
mov edx, ebx
test esi, esi
jle 0x140005993
mov r9, rdi
inc ebx
and ebx, r15d
jge 0x14000594e
dec ebx
or ebx, r14d
inc ebx
movsxd r10, ebx
movzx r11d, byte [rbp + r10 + 0x10]
add edx, r11d
and edx, r15d
jge 0x140005966
dec edx
or edx, r14d
inc edx
movsxd rcx, edx
mov al, byte [rbp + rcx + 0x10]
mov byte [rbp + r10 + 0x10], al
mov byte [rbp + rcx + 0x10], r11b
movzx ecx, byte [rbp + r10 + 0x10]
add rcx, r11
movzx eax, cl
mov cl, byte [rbp + rax + 0x10]
xor byte [r9], cl
inc r9
sub rsi, 1
jne 0x140005940
mov edx, dword [rbp + 0x480]
lea r9, [rbp - 0x40]
mov r8d, 0x20
mov rcx, rdi
call qword [rbp + 0x488]
mov ecx, 0xbb8
call r12
call rdi
jmp 0x1400059be
or ecx, 0xffffffff
call qword [rbp - 0x10]
add rsp, 0x538
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400075e0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
xor r10d, r10d
mov r8d, r10d
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov r11, qword [rcx + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov edi, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add rdi, r11
mov esi, dword [rcx + 0x24]
add r9, r11
mov ebx, dword [rcx + 0x18]
add rsi, r11
test ebx, ebx
je 0x140007689
nop dword [rax]
mov edx, dword [r9]
mov eax, r10d
add rdx, r11
movzx ecx, byte [rdx]
test cl, cl
je 0x14000766d
imul eax, eax, 0x8a
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140007650
cmp eax, 0x93af6383
je 0x14000767b
inc r8d
add r9, 4
cmp r8d, ebx
jb 0x140007640
jmp 0x140007689
mov eax, r8d
movzx ecx, word [rsi + rax*2]
mov r10d, dword [rdi + rcx*4]
add r10, r11
xor ecx, ecx
call r10
add rax, 0x4ee0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009930]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009940]
mov dword [rax], 1
mov rax, qword [0x140009950]
mov dword [rax], 1
mov rax, qword [0x140009920]
mov dword [rax], 1
mov rax, qword [0x1400097e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140009910]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009790]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400015a1
Capabilities:
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x1c], 0
mov dword [rbp - 0x20], 4
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
je 0x140001603
lea rcx, str.Failed_to_open_registry_key_n
call sym.printf
jmp 0x1400017ab
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.ProxyEnable
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
je 0x14000165d
lea rcx, str.Failed_to_query_ProxyEnable_value_n
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400017ab
mov eax, dword [rbp - 0x1c]
test eax, eax
sete al
movzx eax, al
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.ProxyEnable
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
je 0x1400016c4
lea rcx, str.Failed_to_set_ProxyEnable_value_n
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400017ab
mov eax, dword [rbp - 0x1c]
test eax, eax
je 0x140001750
lea rax, str.0.0.0.0:8080
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
lea edx, [rax + 1]
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.ProxyServer
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
je 0x14000173b
lea rcx, str.Failed_to_set_ProxyServer_value_n
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400017ab
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rcx, str.Proxy_enabled:__s_n
call sym.printf
jmp 0x14000175c
lea rcx, str.Proxy_disabled_n
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov r9d, 0
mov r8d, 0
mov edx, 0x27
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
mov r9d, 0
mov r8d, 0
mov edx, 0x25
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140002240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002294
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000228b
test r12, r12
je 0x14000228b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002270
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024c0
Capabilities:
Parse pe header

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

Function at 0x1400024e0
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 0x140002525
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000251c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002527
add rax, 0x28
cmp rax, r9
jne 0x140002508
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections

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

Function at 0x140002730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400097e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000279f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000279f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000279d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027a8
add rax, 0x28
cmp rax, r9
jne 0x140002780
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400027c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400097e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002838
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002838
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002838
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002838
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000282c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002840
add rdx, 0x28
cmp rdx, r10
jne 0x140002818
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002850
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000285e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002835
test r8d, r8d
jg 0x140002848
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140011447
Capabilities:
Terminate process

Disassembly:
jmp 0x140017a10
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]
nop
add rsp, 0x28
ret

Function at 0x140011523
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018890
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400188b0
xor al, al
jmp 0x140018931
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400188c3
xor al, al
jmp 0x140018931
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 0x1400188ed
xor al, al
jmp 0x140018931
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018901
xor al, al
jmp 0x140018931
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018913
xor al, al
jmp 0x140018931
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001892f
xor al, al
jmp 0x140018931
mov al, 1
add rsp, 0x38
ret