joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41021b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41286d
call fcn.00410d20
mov eax, 0x1058
call fcn.00411070
push esi
mov esi, 0x800
push edi
lea eax, [ebp - 0x1064]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x864]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x1a]
mov word [ebp - 0x1c], si
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xe
lea eax, [ebp - 0x1c]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x1c]
push 0x41b124
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1064]
push esi
push eax
call fcn.00411674
add esp, 0x30
test al, al
jne 0x4102d6
lea eax, [ebp - 0x864]
push esi
push eax
call fcn.00411674
pop ecx
test al, al
pop ecx
jne 0x4102d6
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411674
pop ecx
test al, al
pop ecx
jne 0x4102d6
mov ecx, dword [ebp - 0xc]
pop edi
inc al
pop esi
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x41e22c]
cmp eax, esi
jne 0x4102e4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push dword [0x41c75c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00408c15
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
push eax
call fcn.0040857f
add esp, 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x413544
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x64]
push 0x417868
push eax
mov dword [ebp - 0x64], esi
call sub.MSVCRT.dll__CxxThrowException

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x5d4304e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x665d0f5e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40d2f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d35c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404780
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408980
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d363
lea eax, [ebp - 0xc]
call fcn.00404510
ret
Function at 0x41b97c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41b9c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041b7d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b9e1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41b9e8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b7d4
dec esi
jne 0x41ba0a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41d16c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x494888
cmp dword [edi], 0
jne 0x41d1e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x494884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x484470
mov ecx, 2
call fcn.00402c60
mov edx, 0x41d144
lea eax, [esi + 5]
call fcn.0041d164
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d164
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41d1bd
mov dword [0x494884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e83c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e842
ret

Function at 0x420d08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420d59
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420d40
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420d30
jmp 0x420d59
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x420d41
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453190
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4531a2
add esp, 0xfffffff0
call fcn.00403a38
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041babc
mov eax, dword [0x493b08]
mov dword [eax + 4], ebx
mov dword [eax], 0x453534
mov eax, dword [0x493b14]
mov dword [eax + 4], ebx
mov dword [eax], 0x453540
mov eax, ebx
call fcn.0045354c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412a24]
call fcn.004036d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412a24]
call fcn.004036d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412a24]
call fcn.004036d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412a24]
call fcn.004036d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412a24]
call fcn.004036d0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f964
push eax
push 0
push 0
mov eax, dword [0x493c70]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f3a8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f3a8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f3a8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045399c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453864
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453864
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453864
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4532df
call fcn.00403a90
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x7fbd3905
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x1cee088c
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4067d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x148], ecx
push 2
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x548]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x40680f
jmp 0x406a16
movzx eax, word [ebp - 0x128]
cmp eax, 0xff
jle 0x406822
jmp 0x406a16
mov cl, byte [ebp - 0x128]
mov byte [ebp - 0x131], cl
movzx edx, byte [ebp - 0x131]
push edx
call fcn.00412ec2
add esp, 4
mov byte [ebp - 0x13d], al
movzx eax, byte [ebp - 0x131]
push eax
call fcn.004130cb
add esp, 4
mov byte [ebp - 0x129], al
push 0
push 0
push 0x147
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x1c0]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x40688a
jmp 0x406a16
push 0
mov eax, dword [ebp - 0x138]
push eax
push 0x150
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x1c0]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x42e48c]
mov dword [ebp - 0x13c], ecx
push 0
push 0
push 0x188
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x4068f6
jmp 0x406a16
cmp dword [ebp - 0x13c], 0x14
jge 0x40690b
invalid
invalid

Function at 0x407630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
je 0x40764a
jmp 0x407667
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x80
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00407540
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4087e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x838], ecx
push 0x400
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x82c]
push eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0x3b0]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0x838]
mov eax, dword [edx + 0x1b4]
push eax
call fcn.00408da0
add esp, 0xc
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0xffffffff
je 0x4088fd
push 0
mov ecx, dword [ebp - 0x830]
push ecx
push 0x182
mov edx, dword [ebp - 0x838]
mov eax, dword [edx + 0x1b4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0x214]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov ecx, dword [ebp - 0x838]
call fcn.00408710
movzx eax, word [ebp - 0x808]
neg eax
sbb eax, eax
neg eax
push eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0x1c4]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x838]
mov ecx, dword [eax + 0x3b0]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push 0xb1
mov edx, dword [ebp - 0x838]
mov eax, dword [edx + 0x3b0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
nop
mov ecx, 0xb3a545a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x2f416762
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x1f6e6b5c
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x67f674c8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
xor eax, eax
push esi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
push edi
mov ecx, 0x3d69a9ec
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
call fcn.10019ae0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
sete al
test al, al
je 0x10001dd3
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x10023840
sub edi, 0x7e80af00
lea esi, [ebp - 0x230]
call fcn.10019b60
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x234], eax
jmp 0x10001e01
mov ecx, 0x3d69a9ec
lea eax, [ebp - 0x218]
call fcn.10019ae0
push eax
call esi
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
cmp dword [ebp - 0x234], 0
jne 0x10001e38
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
pop edi
mov dword [ebx + 8], ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d525
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x238]
push edx
call esi
mov edi, 0x4bddc689
lea esi, [ebp - 0x230]
mov dword [ebp - 0x238], eax
call fcn.10019ba0
push eax
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x238]
push 0xc
lea ecx, [ebp - 0x244]
mov esi, eax
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x21c], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 8], edx
mov eax, ebx
pop esi
call fcn.1001d525
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], ecx
call ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10027a78
push 0x1001db69
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002b018]
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 ebx, ecx
mov edi, edx
mov dword [ebp - 4], 0
push 0xa
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi]
mov dword [esi], edx
mov al, byte [edi + 4]
mov byte [esi + 4], al
add esi, 5
mov byte [esi], 0xe9
mov ecx, edi
sub ecx, esi
mov dword [esi + 1], ecx
lea edx, [ebp - 0x1c]
push edx
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [edi], 0xe9
sub ebx, edi
sub ebx, 5
mov dword [edi + 1], ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esi - 5]
jmp 0x10002de9
mov dword [ebp - 4], 0xfffffffe
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 0x10002e10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0xb
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xb
push edi
call ebx
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0xb
push 0x1000a560
call ebx
mov edx, dword [esi]
mov dword [edi], edx
mov ax, word [esi + 4]
mov word [edi + 4], ax
lea edx, [ebp - 4]
push edx
add edi, 6
push 0x40
mov ecx, esi
sub ecx, edi
push 6
inc ecx
push esi
mov byte [edi], 0xe9
mov dword [edi + 1], ecx
call ebx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
mov eax, 0x1000a560
sub eax, esi
push 6
sub eax, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi - 6]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
push eax
push esi
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f36
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d525
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002f24
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x10002f60
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002f88
test dl, dl
je 0x10002f84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002f88
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002f68
xor eax, eax
jmp 0x10002f8d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002faf
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x10002f60
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d525
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d525
mov esp, ebp
pop ebp
ret

Function at 0x100030c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001faae
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x1015ee30], 1
jne 0x1000315b
or dword [0x1015ee30], 1
mov edi, 0x10234901
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.10019ee0
mov esi, eax
mov ecx, 0x10234915
lea eax, [ebp - 0x1c]
call fcn.10019e60
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001d0b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1015ee2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], al
mov dword [ebp - 4], 0xffffffff
push 0
push 0xffffffffffffffff
call dword [0x1015ee2c]
test eax, eax
jne 0x10003170
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d525
mov esp, ebp
pop ebp
ret