joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027515
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x3c
push edi
test eax, eax
je 0x100275e0
cmp dword [eax + 4], 0
je 0x100275e0
test dword [eax + 0x1c], 0x200
je 0x100275e0
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1002755d
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x100275ea
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.10131950
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x1002759b
push esi
call fcn.101319ca
pop ecx
test eax, eax
je 0x1002759b
mov dword [ebp - 0x28], esi
jmp 0x1002759f
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x100275c1
push 0xe00b1015
mov eax, 0x1018a910
jmp 0x100275ea
cmp word [ebp + 0x14], 0
je 0x100275d3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100275f9
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
leave
ret 0x10

Function at 0x100279d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x21c
push esi
xor esi, esi
cmp eax, esi
je 0x10027acf
cmp dword [eax + 4], esi
je 0x10027acf
test dword [eax + 0x1c], 0x800
je 0x10027acf
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.10131950
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 5
pop eax
cmp ecx, eax
mov dword [ebp - 0x14], 0x24
mov dword [ebp - 0x10], 0x25
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x26
mov dword [ebp - 4], 0x1c
jle 0x10027a60
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10027ad9
lea eax, [ebp - 0x21c]
push eax
jne 0x10027a76
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x10027a89
mov eax, dword [ebp + ecx*4 - 0x14]
push esi
push esi
or eax, 0x8000
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
call fcn.101319ca
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x10027ab9
lea eax, [ebp - 0x21c]
push eax
call fcn.101319ca
pop ecx
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x21c], cx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x10027ae8
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop esi
leave
ret 0xc
Function at 0x100287db
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push esi
xor esi, esi
cmp eax, esi
je 0x10028882
cmp dword [eax + 4], esi
je 0x10028882
test byte [eax + 0x1c], 2
je 0x10028882
push edi
push esi
push 0x80
push 3
push esi
push esi
push closesocket
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10028841
push 0xe00b100f
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a974
call fcn.10004ead
mov esi, eax
jmp 0x1002887d
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 8], esi
je 0x10028871
push 0xe00b1010
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a968
call fcn.10004ead
mov esi, eax
jmp 0x10028876
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
jmp 0x1002889b
push 0xe00b101b
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a898
call fcn.10004ead
pop esi
pop ebp
ret 0xc
Function at 0x10028976
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0xc
push esi
xor esi, esi
cmp eax, esi
je 0x10028ad4
cmp dword [eax + 4], esi
je 0x10028ad4
test byte [eax + 0x1c], 4
je 0x10028ad4
cmp dword [ebp + 0xc], esi
je 0x10028ac8
cmp dword [ebp + 0x10], esi
je 0x10028ac8
push dword [ebp + 0x10]
call fcn.101319ca
shr eax, 2
imul eax, eax, 3
add eax, 0x10
push eax
mov dword [ebp + 8], eax
call fcn.101317de
pop ecx
pop ecx
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
call fcn.10026568
mov dword [ebp + 0x10], eax
cmp eax, esi
jne 0x10028aba
push ebx
push edi
push esi
mov ebx, 0x80
push ebx
push 3
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0xc0000000
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x10028a52
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 4]
test eax, eax
je 0x10028a90
cmp esi, dword [ebp + 8]
jb 0x10028a2b
jmp 0x10028aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10028a72
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10028a25
push 0xe00b100f
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a974
call fcn.10004ead
mov dword [ebp + 0x10], eax
jmp 0x10028ab8
push 0xe00b1012
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a940
call fcn.10004ead
mov dword [ebp + 0x10], eax
cmp edi, 0xffffffff
je 0x10028ab8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push dword [ebp - 8]
call fcn.101317e9
mov eax, dword [ebp + 0x10]
pop ecx
jmp 0x10028aed
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10028ade
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop esi
leave
ret 0xc
Function at 0x10028cac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push edi
xor edi, edi
cmp eax, edi
je 0x10028dcb
cmp dword [eax + 4], edi
je 0x10028dcb
test byte [eax + 0x1c], 2
je 0x10028dcb
cmp dword [ebp + 0xc], edi
jne 0x10028cee
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10028dd5
push ebx
push esi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push dword [ebp + 0xc]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, 0xffffffff
jne 0x10028d2f
push 0xe00b100f
mov eax, 0x1018a974
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
jmp 0x10028dad
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 8], edi
je 0x10028d4e
push 0xe00b1010
mov eax, 0x1018a968
jmp 0x10028d1e
push edi
push edi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10028d6b
push 0xe00b1033
mov eax, 0x1018a5e4
jmp 0x10028d1e
mov eax, dword [ebp + 0x14]
add eax, 8
push eax
xor esi, esi
call fcn.101317de
pop ecx
mov ebx, eax
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [ebp - 4]
cmp dword [ebp - 4], edi
je 0x10028da1
cmp esi, dword [ebp + 0x14]
jb 0x10028d7c
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push ebx
call fcn.10011bc6
push ebx
mov esi, eax
call fcn.101317e9
cmp dword [ebp + 0xc], 0xffffffff
pop ecx
je 0x10028dc5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
jmp 0x10028de4
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
leave
ret 0x14
Function at 0x10028de9
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0xc
push esi
xor esi, esi
cmp eax, esi
je 0x10028f5c
cmp dword [eax + 4], esi
je 0x10028f5c
test byte [eax + 0x1c], 4
je 0x10028f5c
cmp dword [ebp + 0xc], esi
je 0x10028f50
cmp dword [ebp + 0x14], esi
je 0x10028f50
push dword [ebp + 0x14]
call fcn.101319ca
shr eax, 2
imul eax, eax, 3
add eax, 0x10
push eax
mov dword [ebp - 4], eax
call fcn.101317de
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.10026568
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x10028f42
push ebx
push edi
push esi
mov ebx, 0x80
push ebx
push 3
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0xc0000000
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10028ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10028ea9
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10028ec7
push 0xe00b100f
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a974
call fcn.10004ead
mov dword [ebp + 8], eax
jmp 0x10028f40
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10028ee8
push 0xe00b1033
mov eax, 0x1018a5e4
jmp 0x10028f1f
mov dword [ebp - 8], edi
xor esi, esi
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
mov eax, dword [ebp - 0xc]
add eax, esi
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 8]
cmp eax, edi
je 0x10028f15
cmp esi, dword [ebp - 4]
jb 0x10028eed
jmp 0x10028f31
push 0xe00b1012
mov eax, 0x1018a940
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
mov dword [ebp + 8], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x10028f40
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push dword [ebp - 0xc]
call fcn.101317e9
mov eax, dword [ebp + 8]
pop ecx
jmp 0x10028f75
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10028f66
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop esi
leave
ret 0x10
Function at 0x1002a339
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
test eax, eax
je 0x1002a38b
cmp dword [eax + 4], 0
je 0x1002a38b
test byte [eax + 0x1c], 4
je 0x1002a38b
cmp dword [esp + 8], 0
jne 0x1002a369
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x1002a395
push 0
push dword [esp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x1002a387
cmp eax, 0xb7
je 0x1002a387
cmp eax, 0x50
jne 0x1002a35d
xor eax, eax
jmp 0x1002a3a4
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
ret 8
Function at 0x1002a5f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x1002a7f1
cmp dword [eax + 4], edi
je 0x1002a7f1
test byte [eax + 0x1c], 0x40
je 0x1002a7f1
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1002a774
cmp dword [ebp + 0x10], edi
je 0x1002a774
push 0x24
push esi
push str.HKEY_CLASSES_ROOT
xor ebx, ebx
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a65f
push str.HKEY_CLASSES_ROOT_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCR
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a686
push str.HKCR_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x24
push esi
push str.HKEY_CURRENT_USER
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a6ad
push str.HKEY_CURRENT_USER_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCU
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a6d4
push str.HKCU_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x26
push esi
push str.HKEY_LOCAL_MACHINE
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a6fb
push str.HKEY_LOCAL_MACHINE_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKLM
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a722
push str.HKLM_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x16
push esi
push str.HKEY_USERS
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a749
push str.HKEY_USERS_
mov ebx, reloc.WS2_32.dll_closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x28
push esi
push str.HKEY_CURRENT_CONFIG
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002a770
push str.HKEY_CURRENT_CONFIG_
mov ebx, reloc.WS2_32.dll_getpeername
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
test ebx, ebx
jne 0x1002a780
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x1002a7fb
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp + 0xc], 0
jne 0x1002a79e
push 0xe00b1016
mov eax, 0x1018a8fc
jmp 0x1002a7fb
push dword [ebp + 0x14]
call fcn.101319ca
shr eax, 1
add eax, 0x10
push eax
mov dword [ebp - 4], eax
call fcn.101317de
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x20]
push dword [ebp - 4]
push esi
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.101317e9
pop ecx
xor eax, eax
jmp 0x1002a80a
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1002a811
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x3c
xor ecx, ecx
push ebx
push edi
cmp eax, ecx
je 0x1002a8f5
cmp dword [eax + 4], ecx
je 0x1002a8f5
test dword [eax + 0x1c], 0x200
je 0x1002a8f5
mov ebx, dword [ebp + 0xc]
cmp ebx, ecx
je 0x1002a8e9
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x1002a8e9
mov eax, dword [ebp + 0x20]
push esi
push 0x3c
pop esi
push esi
mov dword [eax], ecx
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.10131950
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x1002a899
push esi
call fcn.101319ca
pop ecx
test eax, eax
je 0x1002a899
mov dword [ebp - 0x28], esi
jmp 0x1002a89d
and dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x1002a8be
push 0xe00b1015
mov eax, 0x1018a910
jmp 0x1002a8ff
cmp word [ebp + 0x1c], 0
je 0x1002a8dc
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x20]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002a90e
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x1002a8ff
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
pop ebx
leave
ret 0x1c
Function at 0x1002aafb
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2420
call fcn.10139950
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x1002acb8
cmp dword [eax + 4], ebx
je 0x1002acb8
test dword [eax + 0x1c], 0x10000
je 0x1002acb8
cmp dword [ebp + 0xc], ebx
jne 0x1002ab4b
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x1002acc2
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1002ab78
push 0xe00b103a
mov eax, 0x1018a558
jmp 0x1002acc2
mov eax, dword [ebp - 0x10]
shr eax, 2
mov dword [ebp - 8], eax
cmp eax, ebx
jbe 0x1002ac99
mov edi, 0x206
xor eax, eax
push edi
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10131950
add esp, 0xc
push dword [ebp + ebx*4 - 0x1420]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002ac8f
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1002abef
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x218]
push eax
call fcn.101319ca
pop ecx
test eax, eax
je 0x1002ac88
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x2420]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1002ac88
and dword [ebp + 8], 0
test dword [ebp - 4], 0xfffffffc
jbe 0x1002ac88
xor eax, eax
push edi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10131950
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x2420]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1002ac7a
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 0xc]
call fcn.101321fa
pop ecx
pop ecx
test eax, eax
je 0x1002aca1
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
shr eax, 2
cmp dword [ebp + 8], eax
jb 0x1002ac2b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x1002ab8e
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x1002acb4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + ebx*4 - 0x1420]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x1002acd1
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002ad24
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x208
test eax, eax
je 0x1002ade6
cmp dword [eax + 4], 0
je 0x1002ade6
test dword [eax + 0x1c], 0x10000
je 0x1002ade6
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.10131950
add esp, 0xc
push dword [ebp + 0xc]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002add1
lea eax, [ebp + 0xc]
push eax
push 4
lea eax, [ebp + 8]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1002adb6
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002ade1
push 0x1018a0dc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop esi
jmp 0x1002adff
push 0xe00b101b
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a898
call fcn.10004ead
leave
ret 0xc

Function at 0x1002ae03
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push esi
test eax, eax
je 0x1002ae60
cmp dword [eax + 4], 0
je 0x1002ae60
test dword [eax + 0x1c], 0x10000
je 0x1002ae60
push dword [esp + 0xc]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002ae5c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp word [esp + 0x10], 1
jne 0x1002ae55
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002ae79
push 0xe00b101b
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a898
call fcn.10004ead
pop esi
ret 0xc

Function at 0x1002af27
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002af90
push esi
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1002af86
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0x80010002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
leave
ret 4
Function at 0x1002afa3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x14
push edi
xor edi, edi
cmp eax, edi
je 0x1002b10b
cmp dword [eax + 4], edi
je 0x1002b10b
test byte [eax + 0x1c], 2
je 0x1002b10b
cmp dword [ebp + 0xc], edi
jne 0x1002afe7
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x1002b115
push esi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
jne 0x1002b017
push 0xe00b100f
mov eax, 0x1018a974
jmp 0x1002b03e
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], edi
jne 0x1002b034
cmp eax, 0x8000000
jbe 0x1002b054
push 0xe00b1010
mov eax, 0x1018a968
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
mov esi, eax
jmp 0x1002b0e5
push ebx
push eax
call fcn.101317de
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
xor esi, esi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [ebp - 0x10]
cmp esi, dword [ebp + 0xc]
jb 0x1002b063
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push dword [ebp + 0xc]
push ebx
push edi
push 0xfde9
call esi
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101317de
lea ecx, [ebx + ebx + 2]
push ecx
push edi
push eax
mov dword [ebp + 8], eax
call fcn.10131950
add esp, 0x10
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push 0xfde9
call esi
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov esi, edi
pop ebx
push dword [ebp + 8]
call fcn.101317e9
push dword [ebp - 4]
call fcn.101317e9
cmp dword [ebp - 8], 0xffffffff
pop ecx
pop ecx
je 0x1002b106
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
jmp 0x1002b124
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
leave
ret 0xc