joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006143c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100ba014
call fcn.10077292
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.10004bed
test al, al
jne 0x1006155e
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001731
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.10068985
call fcn.10021081
mov ecx, edi
mov ebx, eax
call fcn.100014b9
mov edi, eax
test edi, edi
je 0x100614a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x100614a8
xor eax, eax
jmp 0x100614bb
lea eax, [esi + esi]
call fcn.100812d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10034c22
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016fb
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10068a98
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10001769
mov ecx, edi
call fcn.10004e6d
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10061556
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1006154d
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006e788
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006154d
cmp dword [ebp - 0x34], esi
jne 0x1006154d
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10001769
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.100772dc
ret 8
Function at 0x10062467
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100b9754
call fcn.10077229
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.10072050
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10072050
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x100fc194]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x1006250f
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10060513
jmp 0x10062544
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10062544
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10060693
test eax, eax
je 0x10062544
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.1002122b
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10060912
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.1006066b
cmp ebx, edi
je 0x100625b9
lea eax, [ebp]
push eax
push edi
push 0x100cf5c0
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100cf5c8
push eax
call fcn.100748f2
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x100625b9
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.10074ab4
push esi
call fcn.10074ba8
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006f3d1
add ebp, 0x414
leave
ret

Function at 0x100678c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1006aed0
Capabilities:
Parse pe header

Disassembly:
cmp edi, 0x40
jae 0x1006aed8
xor eax, eax
ret
cmp word [ecx], 0x5a4d
jne 0x1006aed5
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp edi, edx
jb 0x1006aed5
cmp dword [eax + ecx], 0x4550
jne 0x1006aed5
test byte [eax + ecx + 0x16], 2
je 0x1006aed5
cmp word [eax + ecx + 0x14], 0xe0
jne 0x1006aed5
push esi
lea esi, [eax + ecx + 0xf8]
movzx eax, word [eax + ecx + 6]
xor edx, edx
test eax, eax
jle 0x1006af33
lea ecx, [esi + 0x10]
jmp 0x1006af20
mov esi, dword [ecx + 4]
add esi, dword [ecx]
cmp esi, edi
ja 0x1006af3a
add edx, 1
add ecx, 0x28
cmp edx, eax
jl 0x1006af20
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1006bf80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d4ef0
push 0x100765a0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100e13e0]
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 0x1006bfd0
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 0x1006c01e
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006c01e
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006c03e
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.1006f3d1
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006c113
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006c113
test eax, 0x100
jne 0x1006c113
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 0x1006c08d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bff0
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006c078
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006c078
cmp eax, 0x40
jb 0x1006c078
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006c0cc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bff0
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006c0ec
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bff0
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006c020
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bff0
Function at 0x1006cdc0
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 0x1006cddb
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 0x1006ce43
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006ce22
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.1006ca70
test eax, eax
jne 0x1006ce4c
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 0x1006ce6f
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 0x1006ce7b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006ce90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d4f10
push 0x100765a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100e13e0]
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 0x1006cf2f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006cf2f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006cf2f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006cf2f
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 0x1006d060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x100fc268]
test esi, esi
je 0x1006d08a
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 0x1006d073
pop edi
pop esi
pop ecx
ret
Function at 0x1006d110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1006d0f0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1006d1ba
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1006d147
mov esi, 0x80010000
jmp 0x1006d1b0
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 0x1006d1ba
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x1006d1a3
cmp eax, 0x10000
jb 0x1006d1a3
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1006d1bc
add esi, 0x10000
jmp 0x1006d1b0
mov edx, dword [esp + 0xc]
add eax, edx
call fcn.1006d0f0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x1006d133
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1006d280
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006d298
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006d2ab
mov ebx, 0xfff80000
mov eax, dword [0x100fc26c]
test eax, eax
mov edx, dword [0x100fc268]
jne 0x1006d2c5
test edx, edx
je 0x1006d2d8
mov eax, edx
mov dword [0x100fc26c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006d2d8
cmp ecx, edi
jb 0x1006d2d8
cmp ecx, ebx
jbe 0x1006d3dd
test edx, edx
mov eax, edx
mov dword [0x100fc26c], eax
je 0x1006d306
test eax, eax
je 0x1006d2fa
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006d2fa
cmp ecx, edi
jb 0x1006d2fa
cmp ecx, ebx
jbe 0x1006d3d8
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006d2e7
mov dword [0x100fc26c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006d330
lea eax, [esi - 0x40000000]
push edi
call fcn.1006d1d0
add esp, 4
test eax, eax
jne 0x1006d399
cmp esi, 0x40000000
jae 0x1006d345
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006d110
add esp, 4
test eax, eax
jne 0x1006d399
cmp esi, 0x40000000
jbe 0x1006d366
push esi
lea eax, [esi - 0x40000000]
call fcn.1006d110
add esp, 4
test eax, eax
jne 0x1006d399
cmp esi, 0x40000000
jae 0x1006d37b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006d1d0
add esp, 4
test eax, eax
jne 0x1006d399
push edi
mov eax, esi
call fcn.1006d1d0
add esp, 4
test eax, eax
jne 0x1006d399
push ebx
mov eax, esi
call fcn.1006d110
add esp, 4
test eax, eax
je 0x1006d404
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x100fc268]
mov dword [eax + 4], ecx
mov dword [0x100fc26c], eax
mov dword [0x100fc268], 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 0x1006d3c6
mov dword [eax + 8], edx
jmp 0x1006d3dd
mov dword [0x100fc26c], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006d404
cmp esi, ebx
ja 0x1006d404
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10072050
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 0x1006d440
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006d44b
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 0x1006d46e
cmp eax, esi
jb 0x1006d483
cmp eax, edi
jae 0x1006d483
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x1006d460
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1006d550
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100fc278], eax
je 0x1006d566
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x100fc288]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1006d5bc
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 0x1006d5ab
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1006d5ab
call fcn.1006d410
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.1006f3e0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006d580
mov dword [0x100fc288], ebp
call fcn.1006d090
mov esi, dword [0x100fc284]
cmp esi, ebp
je 0x1006d5ee
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.1006f3e0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006d5d7
pop edi
pop esi
mov dword [0x100fc284], ebp
mov dword [0x100fc278], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1006d920
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100fc27c]
test eax, eax
jne 0x1006d99c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1006d93e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.1006f147
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006d954
lea edi, [eax + 8]
jmp 0x1006d971
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006d988
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1006f3e0
add esp, 4
pop esi
mov dword [0x100fc27c], edi
mov eax, edi
mov dword [0x100fc280], 0
pop edi
ret 4
mov eax, dword [0x100fc284]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x100fc284], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x1006f3d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e13e0]
jne 0x1006f3db
repz ret
jmp fcn.1007b00e
Function at 0x1007eef2
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 + 0x100e1b88]
je 0x1007ef0d
inc edi
cmp edi, 0x17
jb 0x1007eefe
cmp edi, 0x17
jae 0x1007f08d
push ebp
push 3
call fcn.100882a4
cmp eax, 1
pop ecx
je 0x1007f059
push 3
call fcn.100882a4
test eax, eax
pop ecx
jne 0x1007ef41
cmp dword [0x100fc4e8], 1
je 0x1007f059
cmp ebx, 0xfc
je 0x1007f08c
push 0x100bec28
mov ebx, 0x314
push ebx
mov ebp, 0x100fca30
push ebp
call fcn.100767a7
add esp, 0xc
test eax, eax
je 0x1007ef77
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1bb
add esp, 0x14
push 0x104
mov esi, 0x100fca49
push esi
push 0
mov byte [0x100fcb4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007efbb
push 0x100bec10
push 0x2fb
push esi
call fcn.100767a7
add esp, 0xc
test eax, eax
je 0x1007efbb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1006f1bb
add esp, 0x14
push esi
call fcn.1006f330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007f000
push esi
call fcn.1006f330
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100fcd44
push 0x100bec0c
sub ecx, eax
push ecx
push eax
call fcn.10076103
add esp, 0x14
test eax, eax
je 0x1007f000
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1bb
add esp, 0x14
jmp 0x1007f002
xor esi, esi
push 0x100bec08
push ebx
push ebp
call fcn.10076736
add esp, 0xc
test eax, eax
je 0x1007f022
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1bb
add esp, 0x14
push dword [edi*8 + 0x100e1b8c]
push ebx
push ebp
call fcn.10076736
add esp, 0xc
test eax, eax
je 0x1007f044
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1bb
add esp, 0x14
push 0x12010
push 0x100bebe0
push ebp
call fcn.100880e7
add esp, 0xc
jmp 0x1007f08c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1007f08c
cmp ebp, 0xffffffff
je 0x1007f08c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100e1b8c]
push dword [esi]
call fcn.1006f330
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 0x100880e7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007aa1f
xor ebx, ebx
cmp dword [0x100fcf8c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100881bd
push 0x100bfe74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008829d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bfe68
push edi
call esi
cmp eax, ebx
je 0x1008829d
push eax
call fcn.1007a9b1
mov dword [esp], 0x100bfe58
push edi
mov dword [0x100fcf8c], eax
call esi
push eax
call fcn.1007a9b1
mov dword [esp], 0x100bfe44
push edi
mov dword [0x100fcf90], eax
call esi
push eax
call fcn.1007a9b1
mov dword [0x100fcf94], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007a5ad
test eax, eax
pop ecx
pop ecx
je 0x1008818b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006f1bb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100881bd
push 0x100bfe28
push edi
call esi
push eax
call fcn.1007a9b1
cmp eax, ebx
pop ecx
mov dword [0x100fcf9c], eax
je 0x100881bd
push 0x100bfe10
push edi
call esi
push eax
call fcn.1007a9b1
pop ecx
mov dword [0x100fcf98], eax
mov eax, dword [0x100fcf98]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10088242
cmp dword [0x100fcf9c], ecx
je 0x10088242
push eax
call fcn.1007aa28
push dword [0x100fcf9c]
mov esi, eax
call fcn.1007aa28
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10088242
cmp edi, ebx
je 0x10088242
call esi
cmp eax, ebx
je 0x1008820f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1008820f
test byte [ebp - 0x18], 1
jne 0x10088242
lea eax, [ebp - 0x10]
push eax
call fcn.1007a5e4
test eax, eax
pop ecx
je 0x1008822a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006f1bb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10088239
or dword [ebp + 0x10], 0x200000
jmp 0x1008827d
or dword [ebp + 0x10], 0x40000
jmp 0x1008827d
mov eax, dword [0x100fcf90]
cmp eax, dword [ebp - 8]
je 0x1008827d
push eax
call fcn.1007aa28
cmp eax, ebx
pop ecx
je 0x1008827d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008827d
mov eax, dword [0x100fcf94]
cmp eax, dword [ebp - 8]
je 0x1008827d
push eax
call fcn.1007aa28
cmp eax, ebx
pop ecx
je 0x1008827d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100fcf8c]
call fcn.1007aa28
cmp eax, ebx
pop ecx
je 0x1008829d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1008829f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008d7bd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100fd070], 0
push esi
jne 0x1008d730
call fcn.1008d65b
test eax, eax
je 0x1008d773
mov eax, dword [0x100fd070]
cmp eax, 1
jne 0x1008d751
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008d773
pop esi
ret
push eax
call dword [0x100fd078]
test eax, eax
jne 0x1008d7bb
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 0x1008d777
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100fd070]
call dword [0x100fd078]
mov edi, eax
test edi, edi
je 0x1008d79e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008d7ba
lea edi, [esi + 0xff0]
push esi
push dword [0x100fd070]
call dword [0x100fd074]
add esi, 0x10
cmp esi, edi
jb 0x1008d7a4
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008d71d

Function at 0x1008d860
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 0x1008d897
xor eax, eax
jmp 0x1008d92f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10072050
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 0x1008d8d5
jmp 0x1008d913
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008d8ea
jmp 0x1008d913
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 0x1008d903
jmp 0x1008d913
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008d8a9
cmp dword [ebp - 4], 0
je 0x1008d92c
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