joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc7e9
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc815
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x00510590]
cmp eax, 0
je 0x4fc84a
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc845
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4fca43
mov eax, dword [0x0051058c]
mov dword [rbp - 4], eax
mov eax, 1
mov dword [0x00510590], eax
mov eax, dword [0x00510588]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jbe 0x4fc8ce
mov eax, dword [rbp - 0xc]
shl rax, 3
mov r8, rax
lea rax, [0x00510448]
mov r11, rax
lea rax, [rbp - 0x150]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, 0
mov dword [0x00510588], eax
mov eax, dword [rbp - 0xc]
shl rax, 3
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [0x00510448]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc8ef
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [0x005105ac]
cmp eax, 0
je 0x4fc90d
mov r11, qword [0x00510060]
call r11
jmp 0x4fc915
mov eax, 0
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jbe 0x4fc944
mov eax, dword [rbp - 0xc]
mov r11, rax
lea rax, str.Found__u_leaked_objects:_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.005012cc
mov eax, 1
mov dword [rbp - 4], eax
mov eax, 0
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov ecx, dword [rbp - 0xc]
cmp eax, ecx
jae 0x4fc9b2
jmp 0x4fc96c
mov eax, dword [rbp - 8]
mov ecx, eax
add eax, 1
mov dword [rbp - 8], eax
jmp 0x4fc94c
mov eax, dword [rbp - 8]
shl rax, 3
lea rcx, [rbp - 0x150]
add rcx, rax
mov rax, qword [rcx]
mov qword [rbp - 0x158], rax
mov rax, qword [rbp - 0x158]
mov r10, rax
mov rcx, r10
mov r11, qword [fcn.004e8e60]
call r11
mov rax, qword [rbp - 0x158]
mov r10, rax
mov rcx, r10
call fcn.004f7541
jmp 0x4fc95f
mov eax, dword [rbp - 4]
cmp eax, 0
je 0x4fc9f6
lea rax, str.GC_ABORT_ON_LEAK
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
cmp rax, 0
je 0x4fc9f6
lea rax, str.Leaked_or_smashed_objects_encountered
mov r10, rax
mov rcx, r10
mov r11, qword [0x00510630]
call r11
call sub.kernel32.dll_DebugBreak
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fca17
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov eax, 0
mov dword [0x00510590], eax
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fca43
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
leave
ret
Function at 0x4fc7f4
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc815
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x00510590]
cmp eax, 0
je 0x4fc84a
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc845
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4fca43
mov eax, dword [0x0051058c]
mov dword [rbp - 4], eax
mov eax, 1
mov dword [0x00510590], eax
mov eax, dword [0x00510588]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jbe 0x4fc8ce
mov eax, dword [rbp - 0xc]
shl rax, 3
mov r8, rax
lea rax, [0x00510448]
mov r11, rax
lea rax, [rbp - 0x150]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, 0
mov dword [0x00510588], eax
mov eax, dword [rbp - 0xc]
shl rax, 3
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [0x00510448]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fc8ef
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [0x005105ac]
cmp eax, 0
je 0x4fc90d
mov r11, qword [0x00510060]
call r11
jmp 0x4fc915
mov eax, 0
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jbe 0x4fc944
mov eax, dword [rbp - 0xc]
mov r11, rax
lea rax, str.Found__u_leaked_objects:_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.005012cc
mov eax, 1
mov dword [rbp - 4], eax
mov eax, 0
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov ecx, dword [rbp - 0xc]
cmp eax, ecx
jae 0x4fc9b2
jmp 0x4fc96c
mov eax, dword [rbp - 8]
mov ecx, eax
add eax, 1
mov dword [rbp - 8], eax
jmp 0x4fc94c
mov eax, dword [rbp - 8]
shl rax, 3
lea rcx, [rbp - 0x150]
add rcx, rax
mov rax, qword [rcx]
mov qword [rbp - 0x158], rax
mov rax, qword [rbp - 0x158]
mov r10, rax
mov rcx, r10
mov r11, qword [fcn.004e8e60]
call r11
mov rax, qword [rbp - 0x158]
mov r10, rax
mov rcx, r10
call fcn.004f7541
jmp 0x4fc95f
mov eax, dword [rbp - 4]
cmp eax, 0
je 0x4fc9f6
lea rax, str.GC_ABORT_ON_LEAK
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
cmp rax, 0
je 0x4fc9f6
lea rax, str.Leaked_or_smashed_objects_encountered
mov r10, rax
mov rcx, r10
mov r11, qword [0x00510630]
call r11
call sub.kernel32.dll_DebugBreak
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fca17
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov eax, 0
mov dword [0x00510590], eax
mov eax, dword [0x00510694]
cmp eax, 0
je 0x4fca43
lea rax, [0x00512a30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
leave
ret
Function at 0x4fd965
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov eax, 0
mov dword [rbp - 0x3c], eax
mov eax, dword [0x005105c4]
cmp eax, 2
jne 0x4fd997
call sub.kernel32.dll_GetTickCount
mov dword [rbp - 0x3c], eax
mov eax, 0
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, dword [0x005105a8]
cmp eax, ecx
jae 0x4fdb09
jmp 0x4fd9c2
mov eax, dword [rbp - 0xc]
mov ecx, eax
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x4fd99f
mov eax, dword [rbp - 0xc]
shl rax, 5
lea rcx, [0x00510218]
add rcx, rax
mov qword [rbp - 0x28], rcx
mov rax, qword [rbp - 0x28]
add rax, 8
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp - 0x30]
cmp rax, 0
jne 0x4fd9f9
jmp 0x4fd9b5
movabs rax, 1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0x80
ja 0x4fdb04
jmp 0x4fda2e
mov rax, qword [rbp - 8]
mov rcx, rax
add rax, 1
mov qword [rbp - 8], rax
jmp 0x4fda07
mov rax, qword [rbp - 8]
shl rax, 3
mov rcx, qword [rbp - 0x30]
add rcx, rax
mov qword [rbp - 0x38], rcx
mov rax, qword [rbp - 0x38]
mov rcx, qword [rax]
mov qword [rbp - 0x20], rcx
cmp rcx, 0
je 0x4fdaff
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x4fda86
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov r11, qword [rbp - 0x48]
call r11
cmp eax, 0
je 0x4fda86
mov eax, 0
jmp 0x4fdb4d
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call fcn.004e9b34
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov eax, dword [rbp + 0x18]
cmp eax, 0
je 0x4fdad2
mov rax, qword [rbp - 0x18]
add rax, 0x1a
movzx ecx, word [rax]
mov rax, qword [0x0050ffa8]
sub rax, 1
cmp rcx, rax
jne 0x4fdafa
mov rax, qword [rbp - 0x18]
add rax, 0x20
mov ecx, 0
mov r8, rcx
mov rcx, qword [rax]
mov r11, rcx
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004fcf1b
jmp 0x4fda41
jmp 0x4fda1d
jmp 0x4fd9b5
mov eax, dword [0x005105c4]
cmp eax, 2
jne 0x4fdb48
call sub.kernel32.dll_GetTickCount
mov dword [rbp - 0x4c], eax
mov eax, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x3c]
sub eax, ecx
mov ecx, 0
mov r8, rcx
mov r11, rax
lea rax, str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0050136a
mov eax, 1
leave
ret
Function at 0x4fd970
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov eax, 0
mov dword [rbp - 0x3c], eax
mov eax, dword [0x005105c4]
cmp eax, 2
jne 0x4fd997
call sub.kernel32.dll_GetTickCount
mov dword [rbp - 0x3c], eax
mov eax, 0
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, dword [0x005105a8]
cmp eax, ecx
jae 0x4fdb09
jmp 0x4fd9c2
mov eax, dword [rbp - 0xc]
mov ecx, eax
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x4fd99f
mov eax, dword [rbp - 0xc]
shl rax, 5
lea rcx, [0x00510218]
add rcx, rax
mov qword [rbp - 0x28], rcx
mov rax, qword [rbp - 0x28]
add rax, 8
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp - 0x30]
cmp rax, 0
jne 0x4fd9f9
jmp 0x4fd9b5
movabs rax, 1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0x80
ja 0x4fdb04
jmp 0x4fda2e
mov rax, qword [rbp - 8]
mov rcx, rax
add rax, 1
mov qword [rbp - 8], rax
jmp 0x4fda07
mov rax, qword [rbp - 8]
shl rax, 3
mov rcx, qword [rbp - 0x30]
add rcx, rax
mov qword [rbp - 0x38], rcx
mov rax, qword [rbp - 0x38]
mov rcx, qword [rax]
mov qword [rbp - 0x20], rcx
cmp rcx, 0
je 0x4fdaff
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x4fda86
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov r11, qword [rbp - 0x48]
call r11
cmp eax, 0
je 0x4fda86
mov eax, 0
jmp 0x4fdb4d
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call fcn.004e9b34
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov eax, dword [rbp + 0x18]
cmp eax, 0
je 0x4fdad2
mov rax, qword [rbp - 0x18]
add rax, 0x1a
movzx ecx, word [rax]
mov rax, qword [0x0050ffa8]
sub rax, 1
cmp rcx, rax
jne 0x4fdafa
mov rax, qword [rbp - 0x18]
add rax, 0x20
mov ecx, 0
mov r8, rcx
mov rcx, qword [rax]
mov r11, rcx
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004fcf1b
jmp 0x4fda41
jmp 0x4fda1d
jmp 0x4fd9b5
mov eax, dword [0x005105c4]
cmp eax, 2
jne 0x4fdb48
call sub.kernel32.dll_GetTickCount
mov dword [rbp - 0x4c], eax
mov eax, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x3c]
sub eax, ecx
mov ecx, 0
mov r8, rcx
mov r11, rax
lea rax, str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0050136a
mov eax, 1
leave
ret
Function at 0x500ec6
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov eax, 0
mov dword [rbp - 0x14], eax
lea rax, [rbp - 0x128]
mov qword [rbp - 0x10], rax
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
lea rax, str.GC_LOG_FILE
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetEnvironmentVariableA
sub eax, 1
cmp eax, 0x104
jae 0x500f27
mov eax, 1
mov dword [rbp - 0x14], eax
jmp 0x500fcf
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetModuleFileNameA
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
cmp eax, 4
jle 0x500f97
mov eax, dword [rbp - 0x12c]
sub eax, 4
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x2e
jne 0x500f97
mov eax, dword [rbp - 0x12c]
sub eax, 4
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movabs rax, 8
mov r8, rax
lea rax, str..gc.log
mov r11, rax
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x500fe0
jmp 0x500fea
mov eax, 2
jmp 0x500fef
mov eax, 4
mov ecx, dword [0x005105c4]
cmp ecx, 2
mov dword [rbp - 0x130], eax
jne 0x501009
jmp 0x501013
mov eax, 0x80000080
jmp 0x501018
mov eax, pe_nt_image_headers64
movabs rcx, 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x130]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0x40000000
mov r11, rax
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_CreateFileA
mov qword [rbp - 8], rax
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x5010bb
mov rax, qword [rbp - 8]
cmp rax, 0xffffffffffffffff
je 0x5010bb
mov eax, 0
mov dword [rbp - 0x134], eax
mov eax, 2
mov r9, rax
lea rax, [rbp - 0x134]
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_SetFilePointer
mov rax, qword [rbp - 8]
leave
ret
Function at 0x500ed1
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov eax, 0
mov dword [rbp - 0x14], eax
lea rax, [rbp - 0x128]
mov qword [rbp - 0x10], rax
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
lea rax, str.GC_LOG_FILE
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetEnvironmentVariableA
sub eax, 1
cmp eax, 0x104
jae 0x500f27
mov eax, 1
mov dword [rbp - 0x14], eax
jmp 0x500fcf
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetModuleFileNameA
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
cmp eax, 4
jle 0x500f97
mov eax, dword [rbp - 0x12c]
sub eax, 4
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x2e
jne 0x500f97
mov eax, dword [rbp - 0x12c]
sub eax, 4
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movabs rax, 8
mov r8, rax
lea rax, str..gc.log
mov r11, rax
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x500fe0
jmp 0x500fea
mov eax, 2
jmp 0x500fef
mov eax, 4
mov ecx, dword [0x005105c4]
cmp ecx, 2
mov dword [rbp - 0x130], eax
jne 0x501009
jmp 0x501013
mov eax, 0x80000080
jmp 0x501018
mov eax, pe_nt_image_headers64
movabs rcx, 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x130]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0x40000000
mov r11, rax
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_CreateFileA
mov qword [rbp - 8], rax
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x5010bb
mov rax, qword [rbp - 8]
cmp rax, 0xffffffffffffffff
je 0x5010bb
mov eax, 0
mov dword [rbp - 0x134], eax
mov eax, 2
mov r9, rax
lea rax, [rbp - 0x134]
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_SetFilePointer
mov rax, qword [rbp - 8]
leave
ret
Function at 0x5010c1
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
cmp rax, 0
jne 0x5010ec
mov eax, 0
jmp 0x5011e0
mov eax, dword [0x00510694]
cmp eax, 0
je 0x50110d
lea rax, [0x00512d30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov rax, qword [0x00510620]
cmp rax, 0
jne 0x50112a
call fcn.00500ec6
mov qword [0x00510620], rax
mov rax, qword [0x00510620]
cmp rax, 0xffffffffffffffff
jne 0x501166
mov eax, dword [0x00510694]
cmp eax, 0
je 0x50115c
lea rax, [0x00512d30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, 0xffffffff
jmp 0x5011e0
movabs rax, 0
mov qword [rsp + 0x20], rax
lea rax, [rbp - 8]
mov r9, rax
mov eax, dword [rbp + 0x18]
mov r8, rax
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [0x00510620]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_WriteFile
mov dword [rbp - 4], eax
mov eax, dword [0x00510694]
cmp eax, 0
je 0x5011c2
lea rax, [0x00512d30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [rbp - 4]
cmp eax, 0
je 0x5011d3
jmp 0x5011dd
mov eax, 0xffffffff
jmp 0x5011e0
mov eax, dword [rbp - 8]
leave
ret
Function at 0x504888
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x510
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 8], eax
mov rax, qword [rbp + 0x10]
add rax, 0x10
lea rcx, [rbp - 4]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetExitCodeThread
cmp eax, 0
je 0x5048e0
mov eax, dword [rbp - 4]
cmp eax, 0x103
je 0x5048e0
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
call fcn.00503fd8
jmp 0x504a47
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x5049af
mov eax, 0x100003
mov dword [rbp - 0x4b0], eax
mov rax, qword [rbp + 0x10]
add rax, 0x10
lea rcx, [rbp - 0x4e0]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetThreadContext
cmp eax, 0
je 0x504974
mov rax, qword [rbp + 0x10]
add rax, 0x40
mov rcx, qword [rbp + 0x10]
add rcx, 0x48
lea rdx, [rbp - 0x4e0]
mov r11, rdx
mov r10, rcx
mov qword [rbp - 0x4e8], rax
mov rcx, r10
mov rdx, r11
call fcn.00504eb8
mov rcx, qword [rbp - 0x4e8]
mov qword [rcx], rax
jmp 0x504a01
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x5049af
lea rax, str.ResumeThread_failed_in_suspend_loop
mov r10, rax
mov rcx, r10
mov r11, qword [0x00510630]
call r11
call sub.kernel32.dll_DebugBreak
mov eax, dword [rbp - 8]
cmp eax, 1
jle 0x5049cb
mov eax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov eax, dword [rbp - 8]
add eax, 1
mov dword [rbp - 8], eax
cmp eax, 0xf4240
jl 0x5049fc
lea rax, str.SuspendThread_loop_failed
mov r10, rax
mov rcx, r10
mov r11, qword [0x00510630]
call r11
call sub.kernel32.dll_DebugBreak
jmp 0x504894
mov rax, qword [rbp + 0x10]
add rax, 0x3b
mov ecx, 1
mov byte [rax], cl
mov rax, qword [0x00510638]
cmp rax, 0
je 0x504a47
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r11, rcx
mov eax, 0xa
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [0x00510638]
call r11
leave
ret
Function at 0x504b71
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
jmp 0x504c57
mov eax, 0
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, 0x100
jge 0x504d5f
jmp 0x504c80
mov eax, dword [rbp - 0x1c]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x1c], eax
jmp 0x504c5f
mov eax, dword [rbp - 0x1c]
movsxd rax, eax
shl rax, 3
lea rcx, [0x00541320]
add rcx, rax
mov rax, qword [rcx]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x504d5a
jmp 0x504cbb
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
mov qword [rbp - 0x18], rcx
jmp 0x504c9b
mov rax, qword [rbp - 0x18]
add rax, 0x3b
movzx ecx, byte [rax]
cmp ecx, 0
je 0x504d55
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x504d0a
lea rax, str.ResumeThread_failed
mov r10, rax
mov rcx, r10
mov r11, qword [0x00510630]
call r11
call sub.kernel32.dll_DebugBreak
mov rax, qword [rbp - 0x18]
add rax, 0x3b
mov ecx, 0
mov byte [rax], cl
mov rax, qword [0x00510638]
cmp rax, 0
je 0x504d50
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r11, rcx
mov eax, 0xb
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [0x00510638]
call r11
jmp 0x504d55
jmp 0x504cae
jmp 0x504c73
leave
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
ret 0x8bd4
Function at 0x180003b40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18005f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_SR.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180003bc0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x144
lea rdx, [0x18005f0c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004dd70
add rsp, 0x50
pop rbx
ret

Function at 0x180003be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18005f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_SR.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180003c6f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x144
jne 0x180003c66
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x18005f0c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004dd70
add rsp, 0x50
pop rbx
ret

Function at 0x180005050
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18005f040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
call fcn.18004ceb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.18004d570
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18004c870
test eax, eax
je 0x1800050c3
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_attach_hook.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.18004cf70
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.1800050f0
mov qword [rax], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18004dd70
add rsp, 0x40
pop rbx
ret