joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x3271130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, dword [0x3283cc8]
test ebp, ebp
je 0x3271198
cmp dword [esp + 0x10], 0
je 0x3271198
push esi
push 2
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x327115f
pop esi
pop edi
xor al, al
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
je 0x3271191
test eax, eax
je 0x3271191
mov ecx, dword [esp + 0x18]
mov dword [ebp], ebx
pop ebx
pop esi
pop edi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
pop ebx
pop esi
pop edi
xor al, al
pop ebp
ret
pop edi
xor al, al
pop ebp
ret
Function at 0x3271fc0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0x3272057
test ebp, ebp
je 0x3272057
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3271fe0
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.03272b4f
mov esi, eax
add esp, 4
test esi, esi
je 0x3272052
push edi
push 0
push esi
call fcn.03275770
push esi
push ebp
mov eax, ebx
call fcn.032714d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0x327202b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0x3272023
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov bl, 1
call fcn.03274b4e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x3272900
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
push edi
mov esi, eax
je 0x32729df
cmp dword [esp + 0x18], 0
je 0x32729df
call fcn.03272870
test al, al
je 0x32729df
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], eax
xor edi, edi
test eax, eax
ja 0x327296b
mov ecx, dword [esi + 0x20c]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push ecx
call ebx
push 0x3e8
call ebp
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 0x14
jl 0x3272940
pop ebp
pop ebx
test eax, eax
je 0x32729df
push eax
call fcn.03272b4f
mov edi, eax
add esp, 4
test edi, edi
je 0x32729df
mov edx, dword [esp + 8]
push edx
push 0
push edi
call fcn.03275770
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x20c]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x32729d6
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 8]
jne 0x32729d6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], edi
pop edi
mov dword [edx], eax
mov al, 1
pop esi
add esp, 8
ret 8
push edi
call fcn.03274b4e
add esp, 4
mov eax, dword [esi + 0x20c]
cmp eax, 0xffffffff
je 0x32729fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20c], 0xffffffff
pop edi
xor al, al
pop esi
add esp, 8
ret 8

Function at 0x3274512
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3282060]
jne 0x327451c
repz ret
jmp fcn.0327607c
Function at 0x327e0e9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.03276f6e
and dword [ebp - 4], 0
cmp dword [0x3283be0], 0
mov ebx, eax
jne 0x327e19a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x327e24b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x327e24b
push eax
call fcn.03276efc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x3283be0], eax
call esi
push eax
call fcn.03276efc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x3283be4], eax
call esi
push eax
call fcn.03276efc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x3283be8], eax
call esi
push eax
call fcn.03276efc
pop ecx
mov dword [0x3283bf0], eax
test eax, eax
je 0x327e19a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.03276efc
pop ecx
mov dword [0x3283bec], eax
mov eax, dword [0x3283bec]
cmp eax, ebx
je 0x327e1f2
cmp dword [0x3283bf0], ebx
je 0x327e1f2
push eax
call fcn.03276f77
push dword [0x3283bf0]
mov esi, eax
call fcn.03276f77
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x327e1f2
test edi, edi
je 0x327e1f2
call esi
test eax, eax
je 0x327e1e9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x327e1e9
test byte [ebp - 0xc], 1
jne 0x327e1f2
or dword [ebp + 0x10], 0x200000
jmp 0x327e22b
mov eax, dword [0x3283be4]
cmp eax, ebx
je 0x327e22b
push eax
call fcn.03276f77
pop ecx
test eax, eax
je 0x327e22b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x327e22b
mov eax, dword [0x3283be8]
cmp eax, ebx
je 0x327e22b
push eax
call fcn.03276f77
pop ecx
test eax, eax
je 0x327e22b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x3283be0]
call fcn.03276f77
pop ecx
test eax, eax
je 0x327e24b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x327e24d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ccd3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001cceb
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x1001cd5d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 9
jmp 0x1001cd0d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff2
jge 0x1001cd5d
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x1001cd41
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1001cd54
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x24], 1
jmp 0x1001cd3a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x1001cd02
mov esp, ebp
pop ebp
ret

Function at 0x1001d755
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001d787
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1001d78f
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x100284cb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100284e6
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x10028623
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10028568
push 0xfffffffffffffffb
pop eax
test eax, eax
je 0x10028568
mov dword [ebp - 0x40], 1
jmp 0x1002856c
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10028591
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10028591
mov dword [ebp - 0x18], 1
jmp 0x10028595
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
jl 0x100285b2
mov dword [ebp - 0xc], 1
jmp 0x100285b6
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
je 0x100285d5
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x100285d5
mov dword [ebp - 0x1c], 1
jmp 0x100285d9
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
jne 0x100285f1
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x100285f1
and dword [ebp - 0x10], 0
jmp 0x100285f8
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0xffffffff
jg 0x10028614
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x10028614
and dword [ebp - 0x24], 0
jmp 0x1002861b
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002bf71
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002bf9f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1002bf9d
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1002c011
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 9
jmp 0x1002bfc1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff2
jge 0x1002c011
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x1002bff5
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1002c008
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x2c], 1
jmp 0x1002bfee
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x1002bfb6
mov esp, ebp
pop ebp
ret
Function at 0x1002fa5d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 0x2e3e
call fcn.1002f8e9
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002fa92
xor eax, eax
jmp 0x1002fbcb
lea eax, [ebp + 8]
push eax
push 0x62c4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 1
call fcn.1002f946
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002fabf
xor eax, eax
jmp 0x1002fbcb
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.1002f9a5
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002fade
xor eax, eax
jmp 0x1002fbcb
push dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x301c
call fcn.1002e198
add esp, 0x1c
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push 0
call fcn.10026c4e
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002fb37
push 0x39f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002f9fc
add esp, 0x10
push dword [ebp - 4]
call fcn.1002de09
pop ecx
test eax, eax
jne 0x1002fb4b
xor eax, eax
jmp 0x1002fbcb
push 0xf6e
push 0x5166
push 0
push 0x175f
push 0x6dd8
push 0x3201
push dword [ebp - 4]
call fcn.1002e198
add esp, 0x1c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002fbb3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002fb90
xor eax, eax
jmp 0x1002fbcb
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002fba9
xor eax, eax
jmp 0x1002fbcb
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002fbc4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002fbc8
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10042063
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10042091
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004208f
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100420a5
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100420a5
push 0
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esp, ebp
pop ebp
ret
Function at 0x1006c7b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10073330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005d4ed
mov dword [ebp - 0x14], eax
cmp dword [0x1065fe84], esi
jne 0x1006c8a8
push 0x800
push esi
push 0x100077cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006c835
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006c988
push esi
push esi
push 0x100077cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006c988
push 0x100077e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006c988
push eax
call ebx
push 0x100077f0
push edi
mov dword [0x1065fe84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007800
push edi
mov dword [0x1065fe88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007814
push edi
mov dword [0x1065fe8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065fe94], eax
test eax, eax
je 0x1006c8a5
push 0x10007830
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065fe90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006c8cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006c8c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006c8e2
push 4
pop eax
jmp 0x1006c98a
cmp dword [ebp - 0x14], esi
je 0x1006c8e2
push dword [0x1065fe84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006c8c7
mov eax, dword [0x1065fe90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006c940
cmp dword [0x1065fe94], edi
je 0x1006c940
push eax
call ebx
push dword [0x1065fe94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006c940
test eax, eax
je 0x1006c940
call ecx
test eax, eax
je 0x1006c935
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006c935
test byte [ebp - 8], 1
jne 0x1006c940
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006c970
mov eax, dword [0x1065fe88]
cmp eax, edi
je 0x1006c96d
push eax
call ebx
test eax, eax
je 0x1006c96d
call eax
mov esi, eax
test esi, esi
je 0x1006c96d
mov eax, dword [0x1065fe8c]
cmp eax, edi
je 0x1006c96d
push eax
call ebx
test eax, eax
je 0x1006c96d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065fe84]
call ebx
test eax, eax
je 0x1006c988
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006c98a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059e14
mov esp, ebp
pop ebp
ret
Function at 0x10009fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esi], 0
test edx, edx
jne 0x10009fcf
xor al, al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push ecx
push 0x40
push edx
push eax
mov dword [esi + 4], edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov cl, byte [esi]
mov byte [ebp - 5], cl
test eax, eax
je 0x1000a04e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov cl, byte [ebp - 5]
movzx eax, cl
sub eax, 0xe8
je 0x1000a0d1
sub eax, 1
je 0x1000a0d1
sub eax, 0x16
jne 0x1000a0c2
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1000d080
add esp, 4
cmp al, 0x15
je 0x1000a07b
cmp al, 0x25
jne 0x1000a0c2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x18], 4
push 4
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov esi, dword [esi]
test eax, eax
je 0x1000a0b5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.1000d030
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret