joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004b81f0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004b8200]
mov dword [rax], 1
mov rax, qword [0x004b8210]
mov dword [rax], 1
mov rax, qword [0x004b81e0]
mov dword [rax], 1
mov rax, qword [0x004b80c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004b81d0]
mov dword [0x004bc008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004b8190]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004b8030]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp dword [rbp + 0x18], 0
jne 0x401571
mov rax, 0xffffffffffffffff
jmp 0x401679
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0x18]
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 6]
movzx eax, ax
sub eax, 1
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x401672
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x18], eax
jb 0x401669
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov ecx, dword [rax + 0xc]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x10]
add eax, ecx
cmp dword [rbp + 0x18], eax
ja 0x401669
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov edx, dword [rax + 0x14]
mov eax, dword [rbp + 0x18]
lea ecx, [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
sub ecx, eax
mov eax, ecx
mov eax, eax
jmp 0x401679
sub dword [rbp - 4], 1
jmp 0x40159c
mov rax, 0xffffffffffffffff
add rsp, 0x10
pop rbp
ret
Function at 0x40167f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x40169d
cmp qword [rbp + 0x18], 0
jne 0x4016a7
mov eax, 0
jmp 0x401872
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rax, 0x88
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x4016ea
mov eax, 0
jmp 0x401872
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0xffffffff
jne 0x40170c
mov eax, 0
jmp 0x401872
mov eax, dword [rbp - 0x28]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x18]
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x401734
mov eax, 0
jmp 0x401872
mov rax, qword [rbp - 0x30]
mov edx, dword [rax + 0x20]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0xffffffff
jne 0x40175a
mov eax, 0
jmp 0x401872
mov eax, dword [rbp - 0x28]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x30]
mov edx, dword [rax + 0x1c]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0xffffffff
jne 0x40178e
mov eax, 0
jmp 0x401872
mov eax, dword [rbp - 0x28]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x30]
mov edx, dword [rax + 0x24]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0xffffffff
jne 0x4017c2
mov eax, 0
jmp 0x401872
mov eax, dword [rbp - 0x28]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 4]
sub eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov edx, dword [rax]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x50]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x401859
mov eax, dword [rbp - 4]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x48]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, dword [rax]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rva2ofs__IMAGE_NT_HEADERS64__unsigned_long_
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
jmp 0x401872
sub dword [rbp - 4], 1
cmp dword [rbp - 4], 0
setne al
test al, al
je 0x40186d
jmp 0x4017d0
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x401d5b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rcx, str.Ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x10], rax
mov byte [rbp - 0x50], 0x52
mov byte [rbp - 0x4f], 0x74
mov byte [rbp - 0x4e], 0x6c
mov byte [rbp - 0x4d], 0x45
mov byte [rbp - 0x4c], 0x74
mov byte [rbp - 0x4b], 0x68
mov byte [rbp - 0x4a], 0x65
mov byte [rbp - 0x49], 0x72
mov byte [rbp - 0x48], 0x6e
mov byte [rbp - 0x47], 0x65
mov byte [rbp - 0x46], 0x74
mov byte [rbp - 0x45], 0x53
mov byte [rbp - 0x44], 0x74
mov byte [rbp - 0x43], 0x72
mov byte [rbp - 0x42], 0x69
mov byte [rbp - 0x41], 0x6e
mov byte [rbp - 0x40], 0x67
mov byte [rbp - 0x3f], 0x54
mov byte [rbp - 0x3e], 0x6f
mov byte [rbp - 0x3d], 0x41
mov byte [rbp - 0x3c], 0x64
mov byte [rbp - 0x3b], 0x64
mov byte [rbp - 0x3a], 0x72
mov byte [rbp - 0x39], 0x65
mov byte [rbp - 0x38], 0x73
mov byte [rbp - 0x37], 0x73
mov byte [rbp - 0x36], 0x41
mov byte [rbp - 0x35], 0
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x10]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
cmp dword [rbp - 8], 0x1387
jg 0x401e8d
mov eax, dword [rbp - 4]
cdqe
mov rdx, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rcx, qword [rax]
mov rdx, qword [rbp - 0x28]
lea rax, [rbp - 0x58]
mov r9, qword [rbp - 0x20]
mov r8, rdx
mov rdx, rax
call r9
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp - 0x5c]
test eax, eax
jns 0x401e83
mov eax, 0
jmp 0x401e92
add dword [rbp - 4], 6
add dword [rbp - 8], 1
jmp 0x401e2d
mov eax, 1
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x40ea6e
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
mov rcx, rax
call sym._ftelli64
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x40eadb
mov rax, qword [rbp + 0x18]
cmp qword [rbp - 0x10], rax
je 0x40eae2
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
mov r8d, 0
mov rcx, rax
call sym._fseeki64
test eax, eax
je 0x40eae2
mov eax, 1
jmp 0x40eae7
mov eax, 0
test al, al
je 0x40eaf2
mov eax, 0
jmp 0x40eb1a
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
nop
add rsp, 0x30
pop rbp
ret

Function at 0x410a02
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
add rsp, 0x20
pop rbp
ret

Function at 0x41114e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
mov rcx, rax
call sym._ftelli64
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x4111bb
mov rax, qword [rbp + 0x18]
cmp qword [rbp - 0x10], rax
je 0x4111c2
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
mov r8d, 0
mov rcx, rax
call sym._fseeki64
test eax, eax
je 0x4111c2
mov eax, 1
jmp 0x4111c7
mov eax, 0
test al, al
je 0x4111d2
mov eax, 0
jmp 0x4111fa
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x58]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4147b4
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rdx
mov qword [rbp + 0xa0], r8
mov qword [rbp + 0xa8], r9
mov eax, dword [rbp + 0xb8]
mov word [rbp - 0x24], ax
mov dword [rbp + 0x74], 0
lea rax, [rbp + 0x10]
mov r8d, 0x60
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0xc0]
test eax, eax
jns 0x41481c
mov dword [rbp + 0xc0], 6
cmp qword [rbp + 0x90], 0
je 0x414867
cmp qword [rbp + 0x98], 0
je 0x414867
mov rax, qword [rbp + 0xa8]
test rax, rax
je 0x414846
cmp qword [rbp + 0xa0], 0
je 0x414867
movzx eax, word [rbp - 0x24]
test ax, ax
je 0x414859
cmp qword [rbp + 0xb0], 0
je 0x414867
mov eax, dword [rbp + 0xc0]
and eax, 0xf
cmp eax, 0xa
jbe 0x414871
mov eax, 0
jmp 0x4149ff
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.mz_zip_writer_validate_archive_name
test eax, eax
sete al
test al, al
je 0x414893
mov eax, 0
jmp 0x4149ff
lea rax, [rbp - 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0x90]
call sym._stat64i32
test eax, eax
setne al
test al, al
je 0x4148e4
lea rax, [rbp + 0x10]
mov r8d, 0
mov rdx, qword [rbp + 0x90]
mov rcx, rax
call sym.mz_zip_writer_init_file
test eax, eax
sete al
test al, al
je 0x4148db
mov eax, 0
jmp 0x4149ff
mov dword [rbp + 0x74], 1
jmp 0x41494a
mov eax, dword [rbp + 0xc0]
or ah, 8
mov edx, eax
lea rax, [rbp + 0x10]
mov r8d, edx
mov rdx, qword [rbp + 0x90]
mov rcx, rax
call sym.mz_zip_reader_init_file
test eax, eax
sete al
test al, al
je 0x414918
mov eax, 0
jmp 0x4149ff
lea rax, [rbp + 0x10]
mov rdx, qword [rbp + 0x90]
mov rcx, rax
call sym.mz_zip_writer_init_from_reader
test eax, eax
sete al
test al, al
je 0x41494a
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0
jmp 0x4149ff
movzx eax, word [rbp - 0x24]
movzx edx, ax
mov r9, qword [rbp + 0xa8]
mov r10, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x98]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov r8d, dword [rbp + 0xc0]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rdx
mov r8, r10
mov rdx, rcx
mov rcx, rax
call sym.mz_zip_writer_add_mem_ex
mov dword [rbp + 0x7c], eax
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.mz_zip_writer_finalize_archive
test eax, eax
sete al
test al, al
je 0x4149c4
mov dword [rbp + 0x7c], 0
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.mz_zip_writer_end
test eax, eax
sete al
test al, al
je 0x4149e0
mov dword [rbp + 0x7c], 0
cmp dword [rbp + 0x7c], 0
jne 0x4149fc
mov eax, dword [rbp + 0x74]
test eax, eax
je 0x4149fc
mov rcx, qword [rbp + 0x90]
call sym.remove
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x7c]
add rsp, 0x100
pop rbp
ret
Function at 0x41ed20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004bc644]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x41eea8
mov rax, qword [0x004bc648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41ed6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x41edf5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x41ed50
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x41eedd
mov rax, qword [0x004bc648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004bc648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41eec0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41edee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x41ee50
add dword [0x004bc644], 1
cmp edi, 8
jae 0x41ee23
test dil, 4
jne 0x41ee94
test edi, edi
je 0x41ee18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41eeaf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x41ee18
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x41ee3c
jmp 0x41ee18
add rsi, qword [0x004bc648]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41edee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x41ee18
xor esi, esi
jmp 0x41ed77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x41ee18
mov rax, qword [0x004bc648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x41f630
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004bc920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004bc900]
test rbx, rbx
je 0x41f684
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41f67b
test rsi, rsi
je 0x41f67b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x41f660
lea rcx, [0x004bc920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x41f8c0
Capabilities:
Parse pe header

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

Function at 0x41f8e0
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 0x41f921
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x41f918
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x41f923
add rax, 0x28
cmp rax, r9
jne 0x41f904
xor eax, eax
ret

Function at 0x41f9c0
Capabilities:
Enumerate pe sections

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

Function at 0x41fb30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004b80c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x41fb50
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41fb48
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41fbad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x41fba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41fbb4
add rax, 0x28
cmp rax, r9
jne 0x41fb90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x41fbd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004b80c0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x41fc3e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41fc3e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x41fc3e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x41fc3e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x41fc35
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x41fc45
add rcx, 0x28
cmp rcx, rax
jne 0x41fc20
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x41fc58
jmp 0x41fc3e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x41fc66
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x41fc3e
test r9d, r9d
jg 0x41fc50
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x41fd40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41fd70
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp sym.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x41fda0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x41fdd0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41fde5
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x420120
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x420151
xor edx, edx
mov ecx, eax
mov dword [0x004bc970], eax
call sym.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x00450698], eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42013e

Function at 0x420260
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov edi, 1
mov rax, qword [rdx]
mov rbp, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
test rax, rax
mov rsi, rcx
mov rbx, rdx
mov r15, r8
je 0x420360
mov r13, qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4202bc
mov qword [0x004bc978], r14
mov rax, qword [rbx]
add edi, 1
mov rax, qword [rax]
test rax, rax
mov qword [rbx], rax
je 0x420360
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
mov r14, qword [rax + 0x30]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call rbp
test eax, eax
jne 0x420380
test r14, r14
je 0x42030f
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
call r14
cmp eax, 7
je 0x4203a5
cmp eax, 8
jne 0x420380
mov rax, qword [rbx]
mov r14, qword [rax]
mov eax, dword [0x00450698]
test eax, eax
js 0x420350
test eax, eax
je 0x4202a0
mov rdx, r14
mov ecx, dword [0x004bc970]
call r13
test eax, eax
jne 0x4202a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4202a7
call dbg.fc_key_init_once
mov eax, dword [0x00450698]
jmp 0x42031f
mov qword [rsp + 0x28], r12
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0x1a
mov qword [rsp + 0x20], rbx
mov ecx, 1
call rbp
test eax, eax
je 0x4203a0
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 5
mov dword [r15], edi
jmp 0x420385