joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505ea7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x505eca
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x505eef
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
jmp 0x505f9e
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x505f92
call fcn.00484390
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x74
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.004844c0
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00401baa
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x505f40
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.0048c5c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x505f65
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.00401baa
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x505f87
push dword [ebp - 0xc8]
call fcn.00596316
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00484570
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
xor eax, eax
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x505fa9
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x505fcc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x505fff
and eax, 0x410
cmp eax, 0x410
jne 0x505fff
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005060d9
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x506009
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x5060c2
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x5060c0
call fcn.00484390
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.004844c0
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.00401baa
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x50606e
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.0048c5c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x506093
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00401baa
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5060b5
push dword [ebp - 0xc8]
call fcn.00596316
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00484570
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5060d9
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov edi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x5060fb
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x5061b8
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x5061b8
call fcn.00484390
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.004844c0
lea eax, [ebp - 0xb4]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00401baa
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xcc], eax
jns 0x506161
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push ecx
push edi
push ebx
call fcn.0048c5c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x506186
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push dword [ebp - 0xcc]
call fcn.00401baa
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5061ad
push dword [ebp - 0xc8]
call fcn.00596316
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00484570
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5072b8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00505fa9
Function at 0x507574
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, 3
test al, al
je 0x5075cd
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov ebx, 0x80003
cmp eax, 6
jb 0x5075cd
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [esp], 0
call fcn.00507613
mov dword [edi + 4], eax
mov dword [edi + 8], 1
cmp byte [esi + 0xb], 0
jns 0x5075d5
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x5dd400]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
sub esp, 0x20
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x50780c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x5078cd
and eax, 0xfeff
cmp eax, 6
je 0x5078cd
mov eax, dword [0x64478c]
mov ecx, dword [0x644310]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x5078ed
push 0x10000000
push 0
push esi
call dword [0x644788]
mov esi, eax
test eax, eax
jne 0x5078c6
push 2
call fcn.00483a10
add esp, 4
test al, al
je 0x5078c6
call fcn.00484390
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x21
push str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
call fcn.004844c0
lea eax, [ebp - 0xb4]
push 0x1b
push 0x5dd631
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00484570
test esi, esi
setne bl
jmp 0x5078d6
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x64478c
call fcn.00596397
add esp, 4
cmp dword [0x64478c], 0xffffffff
jne 0x50786b
push 1
push str.::InitializeCriticalSectionEx
push 0x5c5e58
call fcn.00507e40
add esp, 0xc
mov dword [0x644788], eax
push 0x64478c
call fcn.0059640d
add esp, 4
jmp 0x50786b

Function at 0x507934
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret
Function at 0x51a770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ecx + 4]
jmp 0x51a786
mov esi, dword [esi + 0x8c]
test esi, esi
je 0x51a7bb
xor edi, edi
xchg dword [esi], edi
test edi, edi
je 0x51a780
nop word cs:[eax + eax]
nop dword [eax]
bsf ecx, edi
mov ebx, 1
shl ebx, cl
mov eax, dword [esi + ecx*4 + 8]
push eax
call dword [eax + 4]
add esp, 4
xor edi, ebx
jne 0x51a7a0
jmp 0x51a780
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x520e70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x644bf8]
mov ecx, dword [0x644310]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x520e9b
mov ecx, 0x644bf0
pop ebp
jmp fcn.0048e6e0
push 0x644bf8
call fcn.00596397
add esp, 4
cmp dword [0x644bf8], 0xffffffff
jne 0x520e90
mov dword [0x644bf4], 0
mov dword [0x644bf0], 0
mov ecx, 0x644bf0
push 0
call fcn.0048e750
push 0x644bf8
call fcn.0059640d
add esp, 4
jmp 0x520e90

Function at 0x5342a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x5342b7
mov eax, dword [esi]
mov ecx, eax
jmp 0x5342dc
mov eax, dword [esi]
test eax, eax
je 0x5342c1
mov ecx, eax
jmp 0x5342dc
cmp dword [esi + 0xc], 0
je 0x5342cd
mov ecx, eax
xor eax, eax
jmp 0x5342dc
mov ecx, eax
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x534333
add ecx, 1
cmp ecx, 2
jb 0x5342fb
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x534321
call fcn.004835e0
push dword [esi + 4]
call fcn.00498c60
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x53437c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x534360
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x53436f
mov dword [esi], ebx
call fcn.004835e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x5343c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
add eax, 1
cmp eax, 2
jb 0x5343ad
call fcn.004835e0
push dword [esi + 4]
call fcn.00498c60
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x5343bd
mov dword [esi + 4], ebx
call fcn.004835e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x5344f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x534582
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x534586
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x534593
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x53456d
mov dword [ebp - 0x18], eax
call fcn.004835e0
push dword [esi]
call fcn.00498c60
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x53458c
mov dword [esi], ebx
mov esi, eax
call fcn.004835e0
mov eax, esi
jmp 0x53458c
mov bl, 1
jmp 0x534598
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5346aa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.00534480
test al, al
je 0x5346ce
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.00534730
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5346ed
mov dword [esi + 0x34], eax
push eax
call fcn.00596316
add esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], 0
test eax, eax
je 0x534704
push eax
call fcn.00499770
add esp, 4
mov ecx, edi
push 0
call fcn.00534730
lea ecx, [esi + 0x18]
call fcn.00408ad6
lea ecx, [esi + 0x14]
call fcn.00408ad6
lea ecx, [esi + 0x10]
call fcn.00408ad6
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.005343e0
Function at 0x53b830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [ebp - 8], ecx
cmp eax, 3
jne 0x53b8ee
mov dword [ebp - 0x14], 0x53b910
lea eax, [ebp - 0x14]
push 0
push eax
push 0x53b810
push 0x644d30
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x53b900
cmp dword [0x644d34], 0
jne 0x53b8ee
push dword [0x644d38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53b8ee
mov esi, eax
push 0x644d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x644d48]
mov dword [ebp - 0xc], eax
movsd xmm0, qword [0x644d40]
movsd qword [ebp - 0x14], xmm0
push 0x644d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x53b8c7
push dword [esi]
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x53b8d6
push dword [esi + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x53b8e5
push dword [esi + 8]
call eax
add esp, 4
push esi
call fcn.004fcc20
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00596351
add esp, 0x10
pop esi
pop ebp
ret 0xc
call fcn.005aa3fa
int3
Function at 0x555718
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x555790
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x555754
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00596351
add esp, 8
pop esi
pop ebp
ret
lea esi, [ebp - 0xc]
push 0x1b
push str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
push esi
call fcn.00504ae0
add esp, 0xc
mov ecx, esi
call fcn.00504ab0
push 0xc
push 0x5d3e77
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00504ac0
jmp 0x555744

Function at 0x5571b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x644e48]
mov ecx, dword [0x644310]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x557225
mov ecx, 0x644e40
call fcn.0048e6e0
test eax, eax
jne 0x557218
mov edi, esp
push 4
call fcn.00596296
add esp, 4
mov esi, eax
mov dword [eax], 0
mov ecx, 0x644e40
call fcn.0048e6e0
test eax, eax
je 0x55720b
push eax
call fcn.00596316
add esp, 4
mov ecx, 0x644e40
push esi
call fcn.0048e710
mov esp, edi
mov ecx, 0x644e40
pop esi
pop edi
pop ebp
jmp fcn.0048e6e0
push 0x644e48
call fcn.00596397
add esp, 4
cmp dword [0x644e48], 0xffffffff
jne 0x5571d2
mov dword [0x644e44], 0
mov dword [0x644e40], 0
mov ecx, 0x644e40
push 0x407030
call fcn.0048e750
push 0x644e48
call fcn.0059640d
add esp, 4
jmp 0x5571d2

Function at 0x55c1e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x55c259
mov ecx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x55c1fc
xor esi, esi
jmp 0x55c23e
and ebx, 0xfffffffe
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edi, al
movzx edx, byte [ecx + esi]
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x5e40d4]
movzx edx, al
movzx edi, byte [ecx + esi + 1]
xor edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x5e40d4]
add esi, 2
cmp ebx, esi
jne 0x55c210
mov edx, dword [ebp + 0x10]
test dl, 1
je 0x55c259
movzx edx, al
movzx ecx, byte [ecx + esi]
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x5e40d4]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5605d2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
cmp eax, 3
jne 0x560652
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0xb], 0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jns 0x560611
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x560663
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x560666
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, 5
jmp 0x560682
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x560980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 5]
mov edi, 5
cmp eax, 1
ja 0x560ac3
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp byte [eax + 0xb], 0
jns 0x5609cf
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call fcn.005ac886
add esp, 4
movzx edx, byte [edi + 0xb]
test dl, dl
jns 0x5609e8
mov edx, dword [edi + 4]
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp byte [esi + 0xb], 0
jns 0x5609fb
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x560ab3
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x560aaa
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov eax, 0x1fffff
cmove esi, eax
mov edi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x560ab3
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x560ac3
push eax
call fcn.00499770
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x560ad8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x560b37
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x562e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, ecx
mov al, byte [ebp + 8]
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test al, al
je 0x562e80
xor esi, esi
inc esi
mov edi, 0x5e4db2
mov ecx, ebx
push 0
push 0x5766b0
push esi
push str.NtMapViewOfSection
push edi
call fcn.005629c6
mov ecx, ebx
push esi
push 0x576890
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.005629c6
jmp 0x562e8a
cmp dword [ebx + 0xc], 0
je 0x562f84
mov eax, dword [ebx]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x5e4d90]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebx + 0xc]
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.0056289c
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
mov eax, 0xfffff000
mov ecx, ebx
and ecx, eax
add ecx, dword [ebp - 0x6c]
add esi, 0x104f
and esi, eax
push 0x40
push 0x1000
push esi
push ecx
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x562f9c
mov edi, eax
and ebx, 0xfff
add edi, ebx
lea esi, [ebp - 0x60]
mov ebx, dword [ebp - 0x70]
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
push 0xa8
push eax
push 0x644ed0
call fcn.0059a740
add esp, 0xc
mov ecx, dword [ebp - 0x74]
push esi
push ebx
push edi
call fcn.005631c2
mov ebx, eax
test eax, eax
jne 0x562f86
lea eax, [ebp - 0x64]
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x562f86
cmp dword [ebp - 0x64], 0x10
jne 0x562f86
lea eax, [ebp - 0x68]
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0xa8
push 0x644ed0
push str.g_originals
call fcn.00534ad0
mov ebx, eax
jmp 0x562f86
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3