joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d060
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.0041f6e0
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.0041db10
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d283
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41d276
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.0041ced0
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.0041ced0
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.0041ced0
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.0041ced0
add esp, 0x20
cmp byte [0x42d7f0], 0
jne 0x41d239
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x41d1b2
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x41d239
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x42d3ef], al
test al, al
jne 0x41d1c0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x42cbef], al
test al, al
jne 0x41d1e0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x42d7ef], al
test al, al
jne 0x41d200
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x42cfef], al
test al, al
jne 0x41d220
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x41d27c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
Function at 0x41e3d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42256d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.0041e260
cmp byte [ebp - 0x84], 0
jne 0x41e521
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x41e465
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x42c020
call fcn.0041e260
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.0041e260
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x41e4d4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.0041e310
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x41e563
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e559
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
Function at 0x1010550
Capabilities:
Access peb ldr_data
Check os version
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1097227
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.0103e45a
lea ebp, [esi + 0xc]
push 0x1001d1c
mov ecx, ebp
mov dword [esp + 0xb0], edi
mov dword [esi + 8], edi
call fcn.0108e799
push edi
mov eax, 1
push edi
push eax
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xbc], al
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
call fcn.0103e4da
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xb0], 2
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1010603
cmp dword [esp + 0x20], 2
jne 0x1010603
cmp dword [esp + 0x14], 5
jb 0x1010603
mov ecx, dword [esp + 0xb4]
push ecx
mov ecx, ebp
call fcn.0108eb07
mov ecx, esi
call fcn.01010630
jmp 0x101060a
mov dword [esi + 8], 3
mov ecx, dword [esp + 0xa4]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa4
ret 4
Function at 0x1012f20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x18]
push eax
push esi
mov dword [edi], 0x43535953
mov dword [edi + 4], esi
mov word [edi + 0xe], 0x14
mov word [edi + 0xc], 0xffff
mov ecx, dword [ebx + 0xc]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1012fee
cmp dword [esp + 0x14], esi
jne 0x1012fee
push 0x1c
call fcn.0108e46c
mov esi, eax
add esp, 4
test esi, esi
je 0x1012fee
mov eax, dword [ebx + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
push 0x1c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1012fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1012fe5
cmp dword [esp + 0x14], 0x1c
jne 0x1012fe5
cmp dword [esi], 0x52535953
jne 0x1012fe5
cmp dword [esi + 4], 0x1c
jb 0x1012fe5
mov ecx, dword [esi + 8]
cmp ecx, dword [edi + 8]
jne 0x1012fe5
cmp word [esi + 0x16], 0x1c
jne 0x1012fe5
cmp word [esi + 0x14], 0xffff
jne 0x1012fe5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
pop edi
mov dword [edx], esi
pop esi
mov dword [eax], 0x1c
mov eax, 1
pop ebx
ret 0x14
push esi
call fcn.0108e495
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x14
Function at 0x1013000
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x1097298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov esi, ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x38], eax
push 0x14
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0x100000
call fcn.01013730
test eax, eax
je 0x1013150
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1013150
mov ecx, dword [eax + 0x18]
push eax
mov dword [esi + 0x30], ecx
call fcn.0108e495
mov edx, dword [0x10aa77c]
add esp, 4
mov dword [esp + 8], edx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0xc]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x1001d14
push edx
mov dword [esp + 0x60], 0
call fcn.01089297
add esp, 0x10
push 0x1001d28
lea ecx, [esp + 0xc]
call fcn.0108eb07
push 1
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x34]
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 8]
push 0
push 0x40000000
push 3
lea eax, [esp + 0x20]
push eax
push 0
push 0xc0000000
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
jne 0x1013163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x101312e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10130f3
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x10130f3
lea ecx, [esp + 8]
mov dword [esp + 0x50], 0xffffffff
call fcn.0108e72b
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0
push 0
push esi
push 0x100f420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esp + 0x50], 0xffffffff
call fcn.0108e72b
mov ecx, dword [esp + 0x48]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x1013570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 8]
push esi
push edi
lea edi, [ebp + 8]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x18], edi
call dword [eax + 0xc]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esi], 0x43495041
mov dword [esi + 4], ebx
mov word [esi + 0xe], 0x10c
mov word [esi + 0xc], 0xffff
mov edx, dword [ebp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1013616
cmp dword [esp + 0x10], ebx
jne 0x1013616
push 0x114
call fcn.0108e46c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1013616
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x114
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
test ebp, ebp
jne 0x1013629
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x101360d
cmp dword [esp + 0x10], 0x114
je 0x1013629
push ebx
call fcn.0108e495
add esp, 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [ebx], 0x52495041
jne 0x101370b
mov eax, dword [ebx + 4]
cmp eax, 0x114
jb 0x101370b
mov ecx, dword [ebx + 8]
cmp ecx, dword [esi + 8]
jne 0x101370b
cmp word [ebx + 0x16], 0x114
jne 0x101370b
cmp word [ebx + 0x14], 0xffff
jne 0x101370b
xor esi, esi
test ebp, ebp
jne 0x10136e3
cmp dword [esp + 0x10], eax
jae 0x10136e3
push eax
call fcn.0108e46c
mov ebp, eax
mov ecx, 0x45
mov esi, ebx
mov edi, ebp
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0108e495
mov esi, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 0x10]
sub esi, 0x114
push esi
lea eax, [ebp + 0x114]
push eax
push edx
mov ebx, ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10136c1
cmp dword [esp + 0x10], esi
je 0x10136df
push ebp
call fcn.0108e495
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add esp, 4
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ecx], ebx
add esi, 0x114
mov dword [edx], esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14
push ebx
call fcn.0108e495
mov edx, dword [edi]
add esp, 4
mov ecx, edi
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x1013730
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [ebx], 0x43535953
mov dword [ebx + 4], edi
mov word [ebx + 0xe], 0x14
mov word [ebx + 0xc], 0xffff
mov edx, dword [esi + 0x24]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101382c
cmp dword [esp + 0xc], edi
jne 0x101382c
push 0x1c
call fcn.0108e46c
mov edi, eax
add esp, 4
test edi, edi
jne 0x101379f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1c
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10137e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10137cb
cmp dword [esp + 0xc], 0x1c
je 0x10137e4
push edi
call fcn.0108e495
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [edi], 0x52535953
jne 0x10137cb
cmp dword [edi + 4], 0x1c
jb 0x10137cb
mov ecx, dword [edi + 8]
cmp ecx, dword [ebx + 8]
jne 0x10137cb
cmp word [edi + 0x16], 0x1c
jne 0x10137cb
cmp word [edi + 0x14], 0xffff
jne 0x10137cb
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx], edi
mov dword [eax], 0x1c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x1013840
Capabilities:
Create thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d30
push 0x104aa94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [ebp + 8]
cmp dword [esi], 0x43535953
jne 0x1013921
mov eax, 0x14
cmp dword [esi + 4], eax
jne 0x1013921
cmp word [esi + 0xe], ax
jne 0x1013921
cmp word [esi + 0xc], 0xffff
jne 0x1013921
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
cmp dword [esi + 8], 0x200000
jne 0x1013921
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 8
call fcn.0108e46c
add esp, 4
xor edi, edi
cmp eax, edi
je 0x1013921
mov dword [eax], ebx
cmp dword [esi + 0x10], edi
je 0x10138d7
mov dword [eax + 4], 1
jmp 0x10138da
mov dword [eax + 4], edi
push edi
push edi
push eax
push 0x100f5b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1013936
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.0104a98b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x50], 0x52535953
mov edi, 0x1c
mov word [ebp - 0x3a], di
mov dword [ebp - 0x4c], edi
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], eax
mov word [ebp - 0x3c], 0xffff
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
push edi
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebx + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x10139a0
cmp dword [ebp - 0x30], edi
jne 0x10139a0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.0104a98b
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
test esi, esi
jne 0x10139e6
cmp eax, 0x3e5
jne 0x10139e6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.0104a98b
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
call fcn.010139f4
jmp 0x10139ce
Function at 0x1013c40
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x14]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x1013d16
push esi
mov esi, dword [eax + 0x18]
cmp esi, ebp
push edi
je 0x1013d11
mov ecx, dword [esi + 4]
cmp ecx, ebp
mov edi, dword [ebx + 0xc]
je 0x1013d11
mov eax, edi
xor edx, edx
shr eax, 4
div dword [esi + 8]
mov edx, dword [ecx + edx*4]
cmp edx, ebp
je 0x1013d11
cmp dword [edx + 8], edi
je 0x1013c91
mov edx, dword [edx]
cmp edx, ebp
jne 0x1013c81
jmp 0x1013d11
cmp edx, ebp
je 0x1013d11
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x1013d11
mov eax, edi
shr eax, 4
xor edx, edx
div dword [esi + 8]
mov eax, dword [ecx + edx*4]
cmp eax, ebp
lea ecx, [ecx + edx*4]
je 0x1013d11
cmp dword [eax + 8], edi
je 0x1013cbf
mov ecx, eax
mov eax, dword [eax]
cmp eax, ebp
jne 0x1013cb0
jmp 0x1013d11
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [esi + 0x10], eax
dec dword [esi + 0xc]
jne 0x1013d11
mov edi, dword [esi + 4]
cmp edi, ebp
je 0x1013cf4
mov eax, dword [esi + 8]
cmp eax, ebp
jbe 0x1013cf4
mov ecx, edi
mov edx, eax
mov eax, dword [ecx]
cmp eax, ebp
je 0x1013cee
mov eax, dword [eax]
cmp eax, ebp
jne 0x1013ce8
add ecx, 4
dec edx
jne 0x1013ce2
push edi
call fcn.0108e495
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.01089a31
mov dword [esi + 0x14], ebp
pop edi
mov dword [ebx + 0x14], ebp
pop esi
cmp dword [ebx + 0x20], ebp
jne 0x1013d2a
mov edx, dword [ebx + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 4], ebp
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x1013d54
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
mov ecx, dword [ebx + 0x1c]
cmp ecx, ebp
je 0x1013d65
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [ebx + 0x1c], ebp
pop ebp
pop ebx
ret
Function at 0x10140a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1097306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x40]
push ebx
mov ecx, edi
mov dword [esp + 0x14], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov byte [esi + 0xe], bl
mov byte [esi + 0xf], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 1
call fcn.0103e7ed
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], 0x1001ddc
add edi, 8
push edi
call ebp
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x60], 0x1001dcc
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], 0x11
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 0xa
lea edi, [esi + 0x7c]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.0103e7ed
mov dword [edi], 0x1001ddc
add edi, 8
push edi
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x9c], eax
pop edi
mov dword [esi], 0x1001dc4
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10140ba
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1097306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x40]
push ebx
mov ecx, edi
mov dword [esp + 0x14], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov byte [esi + 0xe], bl
mov byte [esi + 0xf], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 1
call fcn.0103e7ed
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], 0x1001ddc
add edi, 8
push edi
call ebp
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x60], 0x1001dcc
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], 0x11
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 0xa
lea edi, [esi + 0x7c]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.0103e7ed
mov dword [edi], 0x1001ddc
add edi, 8
push edi
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x9c], eax
pop edi
mov dword [esi], 0x1001dc4
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1017040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
lea eax, [esp + 4]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esi, 0x5c
push esi
push 0
push 0x10021ac
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
pop esi
jne 0x101707a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x104
ret