joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f1920
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00d5c658]
cmp qword [rax + 0x2d0], 0
je 0x6f1afa
test sil, sil
jne 0x6f1a19
cmp dword [rbx + 0x138], 0
jne 0x6f1a0a
mov rcx, rbx
call fcn.006f5e30
lea rcx, [0x006f17c0]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0xa8], 0
je 0x6f19cc
mov rax, qword [0x00d5c658]
cmp byte [rax + 0x193], 0
je 0x6f19cc
mov rax, qword [rbx + 0x1a0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x6f19a5
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6f19cb
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor rdx, rdx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f19ad
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6f1a09
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004e5ea0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f19dd
nop
lea rax, [rbx + 0x138]
add dword [rax], 1
jmp 0x6f1afa
cmp dword [rbx + 0x138], 0
jle 0x6f1afa
lea rax, [rbx + 0x138]
sub dword [rax], 1
cmp dword [rbx + 0x138], 0
jne 0x6f1afa
cmp qword [rbx + 0xa8], 0
je 0x6f1a99
mov rax, qword [0x00d5c658]
cmp byte [rax + 0x193], 0
je 0x6f1a99
mov rax, qword [rbx + 0x1a0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x6f1a6f
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6f1a98
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f1a77
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6f1ad6
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004e5ea0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f1aaa
nop
mov rax, qword [rbx + 0x130]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x1a0]
mov rdx, qword [0x006dbd68]
call fcn.00412060
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x6f6230
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
cmp sil, byte [rbx + 0x193]
je 0x6f6401
mov byte [rbx + 0x193], sil
cmp qword [rbx + 0xa8], 0
je 0x6f6362
mov rcx, qword [rbx + 0xa8]
call fcn.005acf00
test al, al
je 0x6f6362
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6f6362
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6f6362
test sil, sil
je 0x6f62df
mov rcx, qword [rbx + 0x2d0]
xor rdx, rdx
xor r8, r8
call fcn.006e0510
mov rcx, qword [rbx + 0xa8]
call fcn.005ac900
mov rcx, rax
mov dl, 1
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006e0510
jmp 0x6f634a
call sub.user32.dll_GetForegroundWindow
mov rdi, rax
mov rcx, qword [rbx + 0xa8]
call fcn.005ac900
cmp rdi, rax
sete dil
mov rcx, qword [rbx + 0xa8]
call fcn.005ac900
mov rcx, rax
xor rdx, rdx
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006e0510
mov rcx, qword [rbx + 0x2d0]
mov dl, 1
mov r8b, 1
call fcn.006e0510
test dil, dil
je 0x6f634a
mov rcx, qword [rbx + 0xa8]
call fcn.005ac900
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rcx, qword [rbx + 0xa8]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005a0840
test sil, sil
je 0x6f63ac
mov rax, qword [rbx + 0x2d0]
mov rsi, qword [rbx + 0x2d0]
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
or rax, 0x80
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rcx, qword [rbx + 0x2d0]
xor rdx, rdx
call sub.user32.dll_SetWindowTextW
jmp 0x6f6401
mov rax, qword [rbx + 0x2d0]
mov rsi, qword [rbx + 0x2d0]
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
and rax, 0xffffffffffffff7f
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rsi, qword [rbx + 0x2d0]
mov rax, qword [rbx + 0x118]
mov rcx, rax
call fcn.0040ffc0
mov rcx, rsi
mov rdx, rax
call sub.user32.dll_SetWindowTextW
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x7146c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
call fcn.007147c0
xor rdi, rdi
mov rcx, rsi
call fcn.0040ffc0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x7147ab
mov byte [rbx], 1
mov dil, 1
mov ecx, eax
test ecx, 1
setne cl
mov byte [rbx + 1], cl
mov ecx, eax
test ecx, 2
setne cl
mov byte [rbx + 2], cl
mov ecx, eax
test ecx, 4
setne cl
mov byte [rbx + 3], cl
mov ecx, eax
test ecx, 8
setne cl
mov byte [rbx + 4], cl
mov ecx, eax
test ecx, 0x10
setne cl
mov byte [rbx + 5], cl
mov ecx, eax
test ecx, 0x20
setne cl
mov byte [rbx + 6], cl
mov ecx, eax
test ecx, 0x80
setne cl
mov byte [rbx + 7], cl
mov ecx, eax
test ecx, 0x100
setne cl
mov byte [rbx + 8], cl
mov ecx, eax
test ecx, 0x400
setne cl
mov byte [rbx + 9], cl
mov ecx, eax
test ecx, 0x800
setne cl
mov byte [rbx + 0xa], cl
mov ecx, eax
test ecx, 0x4000
setne cl
mov byte [rbx + 0xb], cl
mov ecx, eax
test ecx, 0x10000
setne cl
mov byte [rbx + 0xc], cl
test eax, 0x1ff
setne al
mov byte [rbx + 0xd], al
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x7e4230
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
mov edx, 0x1c0
xor r8, r8
call fcn.004099a0
lea rcx, [0x00ce4900]
mov rdx, rbx
mov r8d, 0x20
call fcn.00406ce0
add rsp, 0x20
pop rbx
ret
Function at 0xa7bbf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 1
cmp eax, r8d
jg 0xa7bc2e
add r8d, 1
lea r9, [0x00d091c4]
movzx r10, byte [rcx]
xor r10b, byte [rdx]
movzx r10, r10b
mov r11d, dword [rcx]
shr r11d, 8
mov r9d, dword [r9 + r10*4]
xor r9d, r11d
mov dword [rcx], r9d
add rdx, 1
add eax, 1
cmp eax, r8d
jne 0xa7bbff
nop
ret

Function at 0xa7cdc0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
mov edx, 0x1c0
xor r8, r8
call fcn.004099a0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret

Function at 0xa7d5c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
xor rdi, rdi
movsxd rax, edi
mov ecx, dword [rsi + rax*4]
call fcn.00a7d580
movsxd rcx, edi
mov dword [rbx + rcx*4], eax
add edi, 1
cmp edi, 0x10
jne 0xa7d5d0
nop
mov edi, 0x10
movsxd rax, edi
movsxd rcx, edi
mov eax, dword [rbx + rax*4 - 0xc]
xor eax, dword [rbx + rcx*4 - 0x20]
movsxd rcx, edi
xor eax, dword [rbx + rcx*4 - 0x38]
movsxd rcx, edi
xor eax, dword [rbx + rcx*4 - 0x40]
movsxd rcx, edi
mov edx, eax
add edx, edx
shr eax, 0x1f
or edx, eax
mov dword [rbx + rcx*4], edx
add edi, 1
cmp edi, 0x50
jne 0xa7d5f0
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0xa7dc00
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
mov edx, 0x1c0
xor r8, r8
call fcn.004099a0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
add rsp, 0x20
pop rbx
ret
Function at 0x140c03eb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rdi
mov edi, 0xa84c024
dec edi
push r9
movsx r9d, dil
lea rdi, [0x140bf7c00]
movzx r9d, byte [rax]
push 0x13a9a910
xor r9d, edx
and r9d, 0xff
mov r9d, dword [rdi + r9*4]
shr edx, 8
sal dword [rsp + 4], 0x41
xor edx, r9d
push 0x2eacedae
inc rax
dec word [rsp + 0xe]
xor edx, 0xadb6250d
dec r11
push 0xffffffffa913ec88
lea rsp, [rsp + 0x18]
jne 0x140c03ec8
call fcn.140c24127

Function at 0x140c06e08
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rdi
mov edi, 0xfd841914
lea rcx, [0x140c22d70]
movzx edi, byte [rbx]
push 0x1cb8e198
xor edi, r9d
sub byte [rsp + 7], 0x38
shr dword [rsp + 4], 2
and edi, 0xff
ror byte [rsp + 1], 0x21
mov edi, dword [rcx + rdi*4]
shr r9d, 8
xor r9d, edi
inc rbx
rol word [rsp], 0x8f
xor r9d, 0xb2306cad
dec rax
lea rsp, [rsp + 8]
jne 0x140c06e18
call fcn.140c16d06
mov eax, 0x75972d30
lea rcx, [rax + rax + 0x8a4650e]
mov eax, dword [rdi + rax - 0x75972d30]
shl cx, 0xa4
mov ecx, dword [rdi + 4]
add rdi, 4
not eax
call fcn.140c1fd42

Function at 0x140c0b532
Capabilities:
Encode data using xor

Disassembly:
jmp fcn.140c1b434
jns 0x140c14a9e
call fcn.140be2620
lea rsp, [rsp + 0x10]
jmp fcn.140c15ea0
neg r10w
lea r10, [0x140c0e560]
lea rsp, [rsp + 8]
push 0xffffffff8bb7219b
movzx r11d, byte [r8]
xor r11d, ebx
and r11d, 0xff
mov r11d, dword [r10 + r11*4]
shr ebx, 8
xor ebx, r11d
push 0x3915e98d
inc r8
xor ebx, 0x71afe9b8
mov dword [rsp + 0xb], 0x71af942e
dec rax
lea rsp, [rsp + 0x10]
jne 0x140c14aae
call fcn.140c20477
mov ebp, 0x5d88d1be
mov rbp, qword [rbp + rdi - 0x5d88d1be]
push 0xffffffffaf0870bb
not byte [rsp + 7]
add rdi, 8
not byte [rsp + 1]
mov qword [rsp], rbp
popfq
jmp 0x140bf869a
Function at 0x1c10aa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1c10aad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1c10abd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1c10aa5
lea eax, [rcx + 1]
jmp 0x1c10acb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1c10ade
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1c10ac4
sub eax, 3
jb 0x1c10afe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1c10b4d
sar eax, 1
movsxd rbp, eax
jb 0x1c10b34
jmp 0x1c10b0c
add ebx, ebx
jne 0x1c10b0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1c10b34
inc ecx
add ebx, ebx
jne 0x1c10b1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1c10b34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1c10b2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1c10b1c
add ecx, 2
jmp 0x1c10b39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01c10a62
jmp 0x1c10aad
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17fb000]
mov eax, dword [rdi]
or eax, eax
je 0x1c10ba9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1810000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1c10b59
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1c10ba3
mov qword [rbx], rax
add rbx, 8
jmp 0x1c10b79
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1c10bed
cmp al, 0xef
ja 0x1c10bd5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1c10bb5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1c10bc4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1c10bc4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1c10c41
sub rsp, 0xffffffffffffff80
jmp 0x4684e0
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rdx, rdx
mov r10, rsp
movabs rdi, 0x1a5d7cde840061c3
and r10w, 0xfcb0
fcmovb st(0), st(2)
mov dx, 0x1a5
fxsave64 [r10]
add r10, 8
mov r12, qword [r10]
dec rdx
xor qword [r12 + rdx*8 + 0x1e], rdi
test rdx, rdx
jne 0x140004027
xchg edi, eax
sub byte [rdi + 0x181cc13c], bh
ja 0x1400040ab
pop rbp
adc esp, dword [rdx]
adc eax, 0x8107182b
invalid
jbe 0x14000411e
sub byte [rsi - 0x67], bl
in eax, 0x37
mov byte [rax + 0x33], dl
mov esp, 0xde2c762a
invalid
hlt
invalid
xchg byte [rdi + 0x18a03bf6], bh
imul ebx, esi, 4
cdq
test byte [rcx - 0x70], 0x24
test eax, 0x8829467
jb 0x1400040f3
mov ch, 0x19
in al, 0xfc
xor eax, 0x4abd6025
test byte [rcx - 0x22f267a7], ah
sub al, 0xb3
mov eax, 0x5187a2a0
mov ch, 0xfa
push rsi
movsb byte [rdi], byte [rsi]
xor al, 0x52
jno 0x1400040ef
mov ebp, 0x34811ece
jp 0x140004135
vpaddq xmm10, xmm15, xmmword [rcx - 0x1eb5abd0]
invalid
Function at 0x1400a6d80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400a6d8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a6d9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a6d85
lea eax, [rcx + 1]
jmp 0x1400a6dab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a6dbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a6da4
sub eax, 3
jb 0x1400a6dde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a6e2d
sar eax, 1
movsxd rbp, eax
jb 0x1400a6e14
jmp 0x1400a6dec
add ebx, ebx
jne 0x1400a6dea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e14
inc ecx
add ebx, ebx
jne 0x1400a6dfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a6e0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a6dfc
add ecx, 2
jmp 0x1400a6e19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a6d42
jmp 0x1400a6d8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a6e79
cmp rsi, rcx
jae 0x1400a6e81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a6e60
cmp al, 0x8f
ja 0x1400a6e60
cmp byte [rsi - 2], 0xf
je 0x1400a6e66
sub al, 0xe8
cmp al, 1
ja 0x1400a6e4a
cmp rsi, rcx
jae 0x1400a6e81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a6e50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a6e81
lodsb al, byte [rsi]
jmp 0x1400a6e60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa4000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a6ede
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1311e0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400a6e8e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400a6ed8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a6eae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400a6f18
cmp al, 0xef
ja 0x1400a6f0a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400a6eea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400a6ef9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400a6f6c
sub rsp, 0xffffffffffffff80
jmp 0x140001260
Function at 0x1400017fc
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400603f0]
mov dword [rax], 1
mov rax, qword [0x140060400]
mov dword [rax], 1
mov rax, qword [0x140060410]
mov dword [rax], 1
mov rax, qword [0x1400603a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140027d00
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140043c60
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14003d770
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140027d59
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140042940
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 fcn.1400540c0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400540c0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140043612
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140069468]
test eax, eax
je 0x1400436aa
lea rax, [0x140069440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140069470]
mov qword [rbp - 8], rax
jmp 0x14004368e
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 0x140043682
cmp qword [rbp - 0x10], 0
je 0x140043682
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 0x140043648
lea rax, [0x140069440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400436ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400437b0
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 0x1400437d8
mov eax, 0
jmp 0x140043826
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 0x140043801
mov eax, 0
jmp 0x140043826
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 0x140043821
mov eax, 0
jmp 0x140043826
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004382c
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 0x1400438aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400438a1
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 0x1400438a1
mov rax, qword [rbp - 8]
jmp 0x1400438bf
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 0x140043874
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003620
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400036c0
jmp 0x1400036af
jae 0x14000377f
cmp r8, 0x201
jae 0x1400036c0
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140003717
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400036ef
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.140018ec0
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140003740
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400037f9
mov r8d, r13d
cmp r12, r8
jne 0x1400036a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000382d
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400036af
jmp 0x1400036c0
cmp r14, r8
jb 0x140003847
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.1400053a0
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x1400037e2
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140001260
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x1400037cd
jmp 0x1400037e2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140019c90
jmp 0x14000385c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001a070
ud2