joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a57f
Capabilities:
Compare security identifiers

Disassembly:
push 0x28
push 0x100c998
call fcn.01008e24
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 5
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
lea eax, [ebp - 0x2c]
push eax
push 1
mov esi, 0x2000000
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x100a5d6
xor eax, eax
jmp 0x100a5db
call fcn.0100a3ff
mov dword [ebp - 0x28], eax
cmp eax, 0x3f0
jne 0x100a60a
push ebx
call edi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100a602
xor eax, eax
jmp 0x100a607
call fcn.0100a3ff
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x100a613
mov dword [ebp - 0x2c], ebx
jmp 0x100a692
push ebx
call edi
push dword [ebp - 0x2c]
call fcn.0100a414
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x100a629
xor eax, eax
jmp 0x100a62e
call fcn.0100a3ff
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x100a692
push ebx
call edi
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100a659
xor eax, eax
jmp 0x100a65e
call fcn.0100a3ff
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x100a692
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x100a67b
mov dword [ebp - 0x28], 0xd
jmp 0x100a692
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100a692
mov dword [ebp - 0x28], 0x65b
mov dword [ebp - 4], 0xfffffffe
jmp 0x100a6cc
cmp dword [ebp - 0x30], ebx
je 0x100a6da
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x34], ebx
je 0x100a6e7
push dword [ebp - 0x34]
call fcn.0100a74e
cmp dword [ebp - 0x2c], ebx
je 0x100a6f5
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call edi
xor eax, eax
cmp dword [ebp - 0x28], ebx
sete al
call fcn.01008e6c
ret
Function at 0x100a7d3
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
je 0x100a826
push dword [ebp + 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp eax, edi
je 0x100a812
xor eax, eax
jmp 0x100a830
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x100a82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x100a960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x100ab40
test eax, eax
jne 0x100a9ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100ab43
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x100ab40
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x100ab40
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x100a9e0
cmp ax, 0x5a
jbe 0x100a9e9
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x100aa0d
cmp word [ebp - 0x20e], 0x3a
jne 0x100aa0d
cmp word [ebp - 0x20c], 0x5c
jne 0x100ab40
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x100aa4f
cmp word [ebp - 0x20e], di
jne 0x100aa4f
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x100ab40
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x100ab40
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100aa79
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x100ab43
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x100aa8d
mov esi, eax
jmp 0x100aa90
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x100ab40
cmp word [esi], di
jne 0x100ab40
cmp esi, dword [ebp - 0x214]
jbe 0x100ab40
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100ab40
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x100ab08
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x100aab1
cmp esi, dword [ebp - 0x214]
jbe 0x100ab40
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x100ab29
test al, 0x10
jne 0x100aaf6
mov eax, 0x10b
jmp 0x100ab43
cmp word [esi + 2], bx
je 0x100ab3c
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x100ab13
jmp 0x100a9a2
xor eax, eax
jmp 0x100ab43
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008d3f
leave
ret 4
Function at 0x100b757
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100e324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x100b8eb
xor eax, eax
cmp ax, word [esi]
je 0x100b8eb
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0100b555
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100b8d4
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0100b537
cmp eax, ebx
jl 0x100b868
cmp dword [ebp - 0x1c], 1
jne 0x100b833
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100b7cd
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x100b7f7
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x100b8a8
xor eax, eax
mov word [esi], ax
call fcn.0100be19
test eax, eax
jne 0x100b829
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x100b7fd
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x100b845
cmp ax, 0x7a
jbe 0x100b851
cmp ax, 0x41
jb 0x100b7f7
cmp ax, 0x5a
ja 0x100b7f7
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x100b7f7
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x100b7f7
add esi, 8
jmp 0x100b7f7
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1003a10
push 0x3000000
push 0x100e820
mov dword [ebp - 0x10], eax
call fcn.0100b291
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x100b8dd
call fcn.0100be19
xor esi, esi
inc esi
cmp eax, esi
je 0x100b8cf
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x100b8cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x10039b0
jmp 0x100b87f
mov dword [ebp - 0x18], esi
jmp 0x100b894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x100b8f5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01008d3f
leave
ret 4
Function at 0x100be19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x100be8a
xor ecx, ecx
cmp cx, word [eax]
je 0x100be8a
push edi
push esi
push eax
call fcn.0100b555
mov edi, eax
cmp edi, esi
je 0x100be85
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100be53
test al, 0x10
je 0x100be53
inc ebx
jmp 0x100be6e
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100be66
mov esi, 0x10b
cmp esi, 2
jne 0x100be6e
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x100be94
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100e576
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x100e6d1
push esi
call fcn.0100e2eb
cmp eax, 1
je 0x100e6d1
push esi
mov dword [ebp + 8], esi
call fcn.0100de6a
cmp eax, 1
jne 0x100e5b0
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.0100e469
test eax, eax
jne 0x100e5cc
call fcn.01002877
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100e705
cmp dword [ebp + 0x14], ebx
je 0x100e5f5
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100e5f5
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x100a8d0
push 2
call fcn.0100d497
add esp, 0x10
jmp 0x100e607
push dword [ebp + 8]
push 0x100a874
push 1
call fcn.0100d497
add esp, 0xc
test eax, eax
jne 0x100e62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e61d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002877
push 8
pop eax
jmp 0x100e705
call fcn.0100cfb1
cmp eax, ebx
jne 0x100e63c
push 0x12
call fcn.0100cf40
jmp 0x100e646
push ebx
push ebx
push eax
push 0x12
call fcn.01001a49
mov edx, eax
cmp edx, ebx
je 0x100e60b
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x100e697
cmp esi, 0x4b8
je 0x100e690
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002877
jmp 0x100e6ff
call fcn.0100d529
jmp 0x100e6ff
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.0100e111
push eax
call fcn.0100d008
test eax, eax
jne 0x100e6ff
push dword [ebp + 8]
call fcn.0100e559
push 0x1580
call fcn.01001c99
push eax
call fcn.0100229d
mov esi, 0x4b8
jmp 0x100e6ff
cmp dword [ebp + 0xc], ebx
je 0x100e703
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100e703
push 0x157e
call fcn.01001c99
push eax
call fcn.0100229d
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x100e705
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1003f49
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x101a400
call fcn.010040d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x101dbb0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003d5e
cmp eax, esi
jne 0x1003d51
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003d61
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003d38
xor esi, esi
inc esi
mov eax, dword [0x101dbac]
cmp eax, esi
jne 0x1003d74
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003daf
mov eax, dword [0x101dbac]
test eax, eax
jne 0x1003da9
mov dword [0x101dbac], esi
push 0x1001358
push 0x100134c
call fcn.01003cb5
pop ecx
pop ecx
test eax, eax
je 0x1003daf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003e79
mov dword [0x101d85c], esi
mov eax, dword [0x101dbac]
cmp eax, esi
jne 0x1003dd3
push 0x1001348
push 0x1001340
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101dbac], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003de0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101dbb4], ebx
je 0x1003e01
push 0x101dbb4
call fcn.01004049
pop ecx
test eax, eax
je 0x1003e01
push ebx
push 2
push ebx
call dword [0x101dbb4]
push dword [0x101d844]
push dword [0x101d848]
push dword [0x101d840]
call fcn.010048dc
add esp, 0xc
mov dword [0x101d858], eax
cmp dword [0x101d84c], ebx
jne 0x1003e5f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x101d85c], ebx
jne 0x1003e6d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101d858]
call fcn.01004119
ret
call fcn.01004219
jmp 0x1003d16
Function at 0x1005051
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push ebx
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x1b4]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
cmp eax, ebx
jne 0x10050b9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10050af
test byte [eax + 0x1c], 1
je 0x10050af
push 0x10013b8
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0xe0000000
jmp 0x10051ac
push dword [eax + 0x28]
call fcn.0101622e
test eax, eax
jne 0x10050f3
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10050e9
test byte [eax + 0x1c], 1
je 0x10050e9
push 0x10013b8
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80004005
jmp 0x10051ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi + 0x1b4]
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, 0x258
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100516d
mov eax, dword [0x101d014]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x101d014
je 0x100515b
test byte [eax + 0x1c], 1
je 0x100515b
call ebx
push eax
mov eax, dword [esi + 0x1b4]
add eax, edi
push eax
mov eax, dword [0x101d014]
push 0x10013b8
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010049da
call ebx
test eax, eax
jle 0x10051ac
and eax, 0xffff
or eax, 0x80070000
jmp 0x10051ac
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x10]
call ebx
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10051aa
test byte [eax + 0x1c], 4
je 0x10051aa
mov ecx, dword [esi + 0x1b4]
add ecx, edi
push ecx
push 0x10013b8
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100496d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10062c6
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x101d014]
mov esi, 0x101d014
mov ebx, 0x10013b8
cmp eax, esi
je 0x10062fd
test byte [eax + 0x1c], 4
je 0x10062fd
push ebx
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, dword [0x101d014]
cmp dword [edi + 0x1b4], 0
jne 0x1006325
cmp eax, esi
je 0x100631e
test byte [eax + 0x1c], 1
je 0x100631e
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0xe0000000
jmp 0x10063a4
test dword [edi + 0x1a4], 0x1000
je 0x1006335
xor eax, eax
jmp 0x10063a4
mov eax, dword [edi + 0x1b4]
push dword [eax + 0x9a84]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1006383
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov dword [ebp - 4], eax
test eax, eax
jge 0x1006383
mov eax, dword [0x101d014]
cmp eax, esi
je 0x10063a1
test byte [eax + 0x1c], 1
je 0x10063a1
push dword [ebp - 4]
push ebx
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x10063a1
cmp dword [ebp + 8], 0
je 0x100639d
mov eax, dword [edi + 0x1b4]
push 0xfa0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1006d61
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
jne 0x1006d9f
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1006d95
test byte [eax + 0x1c], 1
je 0x1006d95
push 0x10013b8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
jmp 0x1006ed9
push edi
push edi
push edi
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x1006ddf
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1006dd5
test byte [eax + 0x1c], 1
je 0x1006dd5
push 0x10013b8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
jmp 0x1006ece
mov ecx, dword [eax]
push ebx
xor ebx, ebx
inc ebx
cmp ecx, 0x11d8
je 0x1006e1f
cmp ecx, 0x1c50
je 0x1006e05
cmp ecx, 0x9c9c
jne 0x1006e39
mov dword [esi + 0x1c0], edi
jmp 0x1006e33
push eax
mov ecx, esi
mov dword [esi + 0x1bc], eax
call fcn.0100655b
mov dword [esi + 0x1c0], 2
jmp 0x1006e33
push eax
mov ecx, esi
mov dword [esi + 0x1b8], eax
call fcn.0100685d
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1b4], eax
mov eax, dword [esi + 0x1b4]
cmp eax, edi
jne 0x1006e6d
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1006e66
test byte [eax + 0x1c], bl
je 0x1006e66
push 0x10013b8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
jmp 0x1006ecd
test byte [eax + 0x38], 0x10
jne 0x1006e91
push edi
call fcn.010169fc
test eax, eax
je 0x1006e91
mov eax, dword [esi + 0x1b4]
or dword [eax + 0x44], 0x10
mov eax, dword [esi + 0x1b4]
or dword [eax + 0x4c], 0x10
push ebx
mov ecx, esi
call fcn.01004b47
mov ecx, esi
call fcn.01005238
mov esi, eax
cmp esi, edi
jge 0x1006ecb
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1006ecd
test byte [eax + 0x1c], bl
je 0x1006ecd
push 0x10013b8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1006ecd
xor esi, esi
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1007567
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], ebx
je 0x1007718
cmp dword [ebp + 0xc], ebx
je 0x1007718
push esi
push dword [ebp + 8]
call fcn.01006d61
mov esi, eax
cmp esi, ebx
jge 0x10075d0
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10076fa
test byte [eax + 0x1c], 1
je 0x10076fa
push 0x10013b8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x10076fa
mov ecx, edi
call fcn.010053be
test eax, eax
jne 0x1007609
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10075ff
test byte [eax + 0x1c], 1
je 0x10075ff
push 0x10013b8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
jmp 0x10076fa
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x100754f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1007662
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1007647
test byte [eax + 0x1c], 1
je 0x1007647
push 0x10013b8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100765b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10076fa
xor ebx, ebx
inc ebx
mov edi, 0x101d014
mov esi, 0x10013b8
test ebx, ebx
je 0x100769e
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1c4], 0
jne 0x100769e
call fcn.010052b4
mov ebx, eax
test ebx, ebx
jne 0x10076bb
mov eax, dword [0x101d014]
cmp eax, edi
je 0x10076bb
test byte [eax + 0x1c], 4
je 0x10076bb
push esi
push 0xe
jmp 0x10076b0
mov eax, dword [0x101d014]
cmp eax, edi
je 0x10076bb
test byte [eax + 0x1c], 4
je 0x10076bb
push esi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
push 0x1a0a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10076f3
cmp eax, 0x102
je 0x100766f
mov ecx, dword [0x101d014]
cmp ecx, edi
je 0x10076f3
test byte [ecx + 0x1c], 1
je 0x10076f3
push eax
push esi
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
mov edi, dword [ebp - 8]
xor esi, esi
xor ebx, ebx
mov eax, dword [edi + 0x1c8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], ebx
je 0x1007713
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
jmp 0x1007741
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100773c
test byte [eax + 0x1c], 1
je 0x100773c
push 0x10013b8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 8