joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006e090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100dff50
push 0x10079920
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100ed3e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1006e12f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006e12f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006e12f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006e12f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006e260
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x101082e0]
test esi, esi
je 0x1006e28a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1006e273
pop edi
pop esi
pop ecx
ret

Function at 0x1006e310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1006e2f0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1006e3ba
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1006e347
mov esi, 0x80010000
jmp 0x1006e3b0
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1006e3ba
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x1006e3a3
cmp eax, 0x10000
jb 0x1006e3a3
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1006e3bc
add esi, 0x10000
jmp 0x1006e3b0
mov edx, dword [esp + 0xc]
add eax, edx
call fcn.1006e2f0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x1006e333
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1006e480
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006e498
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006e4ab
mov ebx, 0xfff80000
mov eax, dword [0x101082e4]
test eax, eax
mov edx, dword [0x101082e0]
jne 0x1006e4c5
test edx, edx
je 0x1006e4d8
mov eax, edx
mov dword [0x101082e4], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006e4d8
cmp ecx, edi
jb 0x1006e4d8
cmp ecx, ebx
jbe 0x1006e5dd
test edx, edx
mov eax, edx
mov dword [0x101082e4], eax
je 0x1006e506
test eax, eax
je 0x1006e4fa
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006e4fa
cmp ecx, edi
jb 0x1006e4fa
cmp ecx, ebx
jbe 0x1006e5d8
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006e4e7
mov dword [0x101082e4], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006e530
lea eax, [esi - 0x40000000]
push edi
call fcn.1006e3d0
add esp, 4
test eax, eax
jne 0x1006e599
cmp esi, 0x40000000
jae 0x1006e545
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006e310
add esp, 4
test eax, eax
jne 0x1006e599
cmp esi, 0x40000000
jbe 0x1006e566
push esi
lea eax, [esi - 0x40000000]
call fcn.1006e310
add esp, 4
test eax, eax
jne 0x1006e599
cmp esi, 0x40000000
jae 0x1006e57b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006e3d0
add esp, 4
test eax, eax
jne 0x1006e599
push edi
mov eax, esi
call fcn.1006e3d0
add esp, 4
test eax, eax
jne 0x1006e599
push ebx
mov eax, esi
call fcn.1006e310
add esp, 4
test eax, eax
je 0x1006e604
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x101082e0]
mov dword [eax + 4], ecx
mov dword [0x101082e4], eax
mov dword [0x101082e0], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x1006e5c6
mov dword [eax + 8], edx
jmp 0x1006e5dd
mov dword [0x101082e4], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006e604
cmp esi, ebx
ja 0x1006e604
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10071b30
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x1006e640
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006e64b
xor eax, eax
ret
push edi
lea edi, [esi + 0x10000]
xor ecx, ecx
lea edx, [esi + 0x88]
lea ebx, [ebx]
mov eax, dword [edx]
test eax, eax
je 0x1006e66e
cmp eax, esi
jb 0x1006e683
cmp eax, edi
jae 0x1006e683
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x1006e660
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1006e750
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101082f0], eax
je 0x1006e766
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10108300]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1006e7bc
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x1006e7ab
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1006e7ab
call fcn.1006e610
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10071b15
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006e780
mov dword [0x10108300], ebp
call fcn.1006e290
mov esi, dword [0x101082fc]
cmp esi, ebp
je 0x1006e7ee
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.10071b15
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006e7d7
pop edi
pop esi
mov dword [0x101082fc], ebp
mov dword [0x101082f0], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1006eb20
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101082f4]
test eax, eax
jne 0x1006eb9c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1006eb3e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10071d5d
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006eb54
lea edi, [eax + 8]
jmp 0x1006eb71
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006eb88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10071b15
add esp, 4
pop esi
mov dword [0x101082f4], edi
mov eax, edi
mov dword [0x101082f8], 0
pop edi
ret 4
mov eax, dword [0x101082fc]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x101082fc], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x1006f020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100dff70
push 0x10079920
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100ed3e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006f070
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006f0be
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006f0be
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006f0de
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10071b1a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006f1b3
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006f1b3
test eax, 0x100
jne 0x1006f1b3
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006f12d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006f090
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006f118
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006f118
cmp eax, 0x40
jb 0x1006f118
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006f16c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006f090
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006f18c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006f090
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006f0c0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006f090
Function at 0x1006fe60
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006fe7b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006fee3
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006fec2
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006fb10
test eax, eax
jne 0x1006feec
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006ff0f
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006ff1b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x10070ba3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101083c4], 0
push esi
jne 0x10070b16
call fcn.10070a41
test eax, eax
je 0x10070b59
mov eax, dword [0x101083c4]
cmp eax, 1
jne 0x10070b37
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10070b59
pop esi
ret
push eax
call dword [0x101083cc]
test eax, eax
jne 0x10070ba1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10070b5d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101083c4]
call dword [0x101083cc]
mov edi, eax
test edi, edi
je 0x10070b84
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10070ba0
lea edi, [esi + 0xff0]
push esi
push dword [0x101083c4]
call dword [0x101083c8]
add esi, 0x10
cmp esi, edi
jb 0x10070b8a
mov eax, esi
pop edi
pop esi
ret
jmp 0x10070b03

Function at 0x10071b1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ed3e0]
jne 0x10071b24
repz ret
jmp fcn.1007d6de
Function at 0x100804fa
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100edb80]
je 0x10080515
inc edi
cmp edi, 0x17
jb 0x10080506
cmp edi, 0x17
jae 0x10080695
push ebp
push 3
call fcn.1008ab7f
cmp eax, 1
pop ecx
je 0x10080661
push 3
call fcn.1008ab7f
test eax, eax
pop ecx
jne 0x10080549
cmp dword [0x1010862c], 1
je 0x10080661
cmp ebx, 0xfc
je 0x10080694
push 0x100c7c70
mov ebx, 0x314
push ebx
mov ebp, 0x10108b78
push ebp
call fcn.10079b27
add esp, 0xc
test eax, eax
je 0x1008057f
push esi
push esi
push esi
push esi
push esi
call fcn.10071dd1
add esp, 0x14
push 0x104
mov esi, 0x10108b91
push esi
push 0
mov byte [0x10108c95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100805c3
push 0x100c7c58
push 0x2fb
push esi
call fcn.10079b27
add esp, 0xc
test eax, eax
je 0x100805c3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10071dd1
add esp, 0x14
push esi
call fcn.10071f70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10080608
push esi
call fcn.10071f70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10108e8c
push 0x100c7c54
sub ecx, eax
push ecx
push eax
call fcn.10079083
add esp, 0x14
test eax, eax
je 0x10080608
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10071dd1
add esp, 0x14
jmp 0x1008060a
xor esi, esi
push 0x100c7c50
push ebx
push ebp
call fcn.10079ab6
add esp, 0xc
test eax, eax
je 0x1008062a
push esi
push esi
push esi
push esi
push esi
call fcn.10071dd1
add esp, 0x14
push dword [edi*8 + 0x100edb84]
push ebx
push ebp
call fcn.10079ab6
add esp, 0xc
test eax, eax
je 0x1008064c
push esi
push esi
push esi
push esi
push esi
call fcn.10071dd1
add esp, 0x14
push 0x12010
push 0x100c7c28
push ebp
call fcn.1008a9c2
add esp, 0xc
jmp 0x10080694
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10080694
cmp ebp, 0xffffffff
je 0x10080694
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100edb84]
push dword [esi]
call fcn.10071f70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1008a9c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007e4ce
xor ebx, ebx
cmp dword [0x101090d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1008aa98
push 0x100c8f24
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008ab78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100c8f18
push edi
call esi
cmp eax, ebx
je 0x1008ab78
push eax
call fcn.1007e460
mov dword [esp], 0x100c8f08
push edi
mov dword [0x101090d0], eax
call esi
push eax
call fcn.1007e460
mov dword [esp], 0x100c8ef4
push edi
mov dword [0x101090d4], eax
call esi
push eax
call fcn.1007e460
mov dword [0x101090d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007d37a
test eax, eax
pop ecx
pop ecx
je 0x1008aa66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10071dd1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1008aa98
push 0x100c8ed8
push edi
call esi
push eax
call fcn.1007e460
cmp eax, ebx
pop ecx
mov dword [0x101090e0], eax
je 0x1008aa98
push 0x100c8ec0
push edi
call esi
push eax
call fcn.1007e460
pop ecx
mov dword [0x101090dc], eax
mov eax, dword [0x101090dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1008ab1d
cmp dword [0x101090e0], ecx
je 0x1008ab1d
push eax
call fcn.1007e4d7
push dword [0x101090e0]
mov esi, eax
call fcn.1007e4d7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1008ab1d
cmp edi, ebx
je 0x1008ab1d
call esi
cmp eax, ebx
je 0x1008aaea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1008aaea
test byte [ebp - 0x18], 1
jne 0x1008ab1d
lea eax, [ebp - 0x10]
push eax
call fcn.1007d3b1
test eax, eax
pop ecx
je 0x1008ab05
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10071dd1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1008ab14
or dword [ebp + 0x10], 0x200000
jmp 0x1008ab58
or dword [ebp + 0x10], 0x40000
jmp 0x1008ab58
mov eax, dword [0x101090d4]
cmp eax, dword [ebp - 8]
je 0x1008ab58
push eax
call fcn.1007e4d7
cmp eax, ebx
pop ecx
je 0x1008ab58
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008ab58
mov eax, dword [0x101090d8]
cmp eax, dword [ebp - 8]
je 0x1008ab58
push eax
call fcn.1007e4d7
cmp eax, ebx
pop ecx
je 0x1008ab58
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101090d0]
call fcn.1007e4d7
cmp eax, ebx
pop ecx
je 0x1008ab78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1008ab7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008fe10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x19c
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008fe47
xor eax, eax
jmp 0x1008fedf
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10071b30
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1008fe85
jmp 0x1008fec3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008fe9a
jmp 0x1008fec3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1008feb3
jmp 0x1008fec3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008fe59
cmp dword [ebp - 4], 0
je 0x1008fedc
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10090a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1010927c], 0
jne 0x10090b18
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071b30
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [0x1010927c], ecx
xor eax, eax
cmp dword [0x1010927c], 0
setne al
jmp 0x10090b1d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b1a
mov esp, ebp
pop ebp
ret
Function at 0x10091870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x30], 0
je 0x100918b7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.10091720
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.100917a0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x100918d9
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.10090d50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x100918fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.10090d50
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1009191b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x34], 0
je 0x1009193b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
je 0x1009195b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
je 0x100919aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0x3a98
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret