joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1065ce0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x11
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x1065d3a
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 8], edx
lea edx, [ebp + 0xc]
push edx
push 0
push eax
push 0x1065c90
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
push 0
push 0
mov dword [eax], esi
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1065d35
push eax
mov eax, dword [esi + 0x1c0]
call eax
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.01065c00
test eax, eax
je 0x1065d36
mov eax, dword [ebp + 0x14]
push eax
call dword [ebp + 0x10]
pop ebp
ret 0x10

Function at 0x1065d60
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
xor dl, dl
xor eax, eax
push esi
mov byte [ebp - 4], dl
test ecx, ecx
jbe 0x1065d83
mov esi, dword [ebp + 8]
xor dl, byte [eax + esi]
inc eax
cmp eax, ecx
jb 0x1065d78
mov byte [ebp - 4], dl
cmp dword [ebp + 0x18], 0
je 0x1065da1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.0102fbf0
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1065de0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1065de0
xor byte [esi], 0xac
add ecx, 0xffffffff
je 0x1065de0
movzx eax, dl
push edi
cdq
mov edi, 0xff
idiv edi
pop edi
lea eax, [ecx + esi]
or esi, 0xffffffff
push ebx
jmp 0x1065dd0
mov bl, dl
add bl, cl
xor bl, byte [esi + eax]
dec ecx
xor byte [eax], bl
dec eax
test ecx, ecx
ja 0x1065dd0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1066930
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edi, [ebx + 0x323]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x10669a1
cmp esi, 0xffffffff
je 0x10669a1
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
call fcn.01066890
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x14
Function at 0x10669c0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edi, [ebx + 0x323]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x1066a38
cmp esi, 0xffffffff
je 0x1066a38
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebx + 0x428]
push edx
push ebx
call fcn.01066830
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x14

Function at 0x1066b40
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
mov esi, 2
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
push 0x23c
lea ecx, [ebp - 0x2dc]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0xc]
add esp, 0x18
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], 1
call fcn.01193b20
mov ebx, eax
test ebx, ebx
je 0x1066c1d
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], 0
mov edi, edi
lea ecx, [ebp - 0x2dc]
push ecx
push ebx
call fcn.01194290
test eax, eax
jne 0x1066c0b
cmp dword [ebp - 0xcc], 0x1400000
jae 0x1066c05
lea esi, [edi + 0x323]
push esi
push eax
push 2
push ebx
call fcn.01193680
test eax, eax
jne 0x1066bfe
push 3
lea edx, [ebp - 0x1d8]
push edx
push edi
call fcn.01066890
mov dword [ebp - 4], eax
test eax, eax
je 0x1066bfe
mov dword [ebp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp + 0xc], 0
je 0x1066bb0
push ebx
call fcn.0118b5a0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1069df0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x1069e08
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x1069e21
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x1069e5a
test ecx, ecx
je 0x1069e51
test esi, esi
ja 0x1069e12
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x106a450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x106a474
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
sub eax, 4
add dword [ebp + 0x10], 5
push ebx
lea ebx, [ecx + eax]
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
add edx, edi
cmp edx, ebx
jae 0x106a49d
mov edi, edi
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x106a49d
inc edx
cmp edx, ebx
jb 0x106a490
mov eax, dword [ebp + 8]
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x106a577
cmp ecx, 2
jbe 0x106a4f6
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x106a514
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0xc], ecx
je 0x106a51f
add eax, ecx
jmp 0x106a521
shr esi, cl
test esi, esi
je 0x106a4b9
cmp esi, 4
ja 0x106a514
cmp esi, 3
je 0x106a514
mov ecx, esi
shr ecx, 1
movzx eax, byte [ecx + edx + 1]
inc eax
test al, 0xfe
jne 0x106a4b9
or esi, 8
shr esi, 1
inc edi
jmp 0x106a485
sub eax, ecx
test esi, esi
je 0x106a555
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x106a550
mov ebx, pe_nt_image_headers32
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x106a54d
add eax, dword [ebp + 0xc]
jmp 0x106a550
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x106a485
pop ebx
cmp ecx, 2
jbe 0x106a58e
mov edx, dword [ebp + 0x14]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1070000
Capabilities:
Create process memory minidump

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
cmp word [0x11a0b50], 0
push 0x1010124
push 0x4b
push 0xd
push 0
push 9
je 0x107004a
movzx eax, word [0x11a0d5a]
push eax
push 0x11a0b50
push 0x10100e8
lea ecx, [ebp - 0x80c]
push 0x400
push ecx
call fcn.011952ee
add esp, 0x28
jmp 0x1070063
push 0x1010088
lea edx, [ebp - 0x80c]
push 0x400
push edx
call fcn.011952ee
add esp, 0x20
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
test esi, esi
je 0x10700cf
cmp esi, 0xffffffff
je 0x10700cf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push 0
neg eax
push 0
sbb eax, eax
lea ecx, [ebp - 0xc]
and eax, ecx
push eax
push 2
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1070680
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10706e7
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x802
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10706e0
push 0x802
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x10706d7
push 0x3ff
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
ret 8

Function at 0x1070e30
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x3ae
cmp byte [edi], 0
mov dword [ebp - 4], 0xffffffff
je 0x1070e84
xor ebx, ebx
mov esi, 0x119e060
mov eax, dword [esi]
test edi, edi
je 0x1070e6a
test eax, eax
je 0x1070e6e
push eax
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x1070e7c
add esi, 0x20
inc ebx
cmp esi, 0x119e200
jl 0x1070e55
jmp 0x1070e84
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
jne 0x1070ebe
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx edi, ax
test edi, edi
je 0x1070ebe
xor esi, esi
mov edx, 0x119e06c
xor eax, eax
mov ecx, edx
lea esp, [esp]
cmp dword [ecx], edi
je 0x1070eaf
inc eax
add ecx, 4
cmp eax, 5
jl 0x1070ea0
jmp 0x1070eb2
mov dword [ebp - 4], esi
add edx, 0x20
inc esi
cmp edx, 0x119e20c
jl 0x1070e98
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1071100
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x4064], edi
jne 0x10711ce
push ebx
lea ebx, [esi + 0x1c]
test ebx, ebx
je 0x10711cd
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x4060]
cmp eax, 0x1000
jge 0x10711c2
mov ecx, dword [ebp + 0x10]
shl eax, 5
mov dword [eax + esi + 0x40cc], ecx
mov edx, dword [esi + 0x4060]
mov ecx, dword [ebp + 0xc]
shl edx, 5
mov dword [edx + esi + 0x40d0], 1
mov eax, dword [esi + 0x4060]
shl eax, 5
lea eax, [eax + esi + 0x40bc]
push eax
push edi
push eax
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x10711ae
cmp edi, 0xffffffff
je 0x10711ae
mov edx, dword [esi + 0x4060]
mov dword [esi + edx*4 + 0x60], edi
mov eax, dword [esi + 0x4060]
inc eax
and eax, 0x80000fff
jns 0x10711a6
dec eax
or eax, 0xfffff000
inc eax
mov dword [esi + 0x4060], eax
jmp 0x10711c2
mov ecx, dword [esi + 0x4060]
shl ecx, 5
mov dword [ecx + esi + 0x40d0], 0
test ebx, ebx
je 0x10711cd
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10742d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xcc], 0
jne 0x1074310
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x32
call ebx
call esi
sub eax, edi
cmp eax, 0x3e8
jae 0x107430f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xcc], 0
je 0x10742f4
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x1075d70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax + 0x2a56c], 0
je 0x1075de5
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1075de5
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x401
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1075dde
push 0x401
push 0
push esi
call sub.msvcrt.dll_memset
mov edx, dword [edi]
mov eax, dword [edx + 0x2a56c]
add esp, 0xc
test eax, eax
je 0x1075dd5
push 0x24
push eax
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
pop ebp
ret 4
Function at 0x1075df0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1075e57
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x401
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1075e50
push 0x401
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [edi]
add esp, 0xc
add eax, 0x2b6f4
je 0x1075e47
push 0x24
push eax
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
pop ebp
ret 4

Function at 0x1079940
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x25a8c]
mov eax, dword [eax + 0x1c]
push edi
push 0
push 0
push 0x147
push eax
call ebx
mov edi, dword [ebp + 0x10]
push 0
mov dword [edi + 0x1fc], eax
mov eax, dword [esi + 0x25a90]
mov ecx, dword [eax + 0x1c]
push 0
push 0x147
push ecx
call ebx
mov ebx, dword [ebp + 8]
push 0x3f
lea edx, [edi + 0x308]
mov dword [edi + 0x1f8], eax
mov eax, dword [esi + 0x25aa0]
push edx
push eax
push ebx
call fcn.01059c30
mov edx, dword [esi + 0x25a9c]
push 0x3f
lea ecx, [edi + 0x286]
push ecx
push edx
push ebx
call fcn.01059c30
push 0x3f
lea eax, [edi + 0x204]
push eax
mov eax, dword [esi + 0x25a94]
push eax
push ebx
call fcn.01059c30
lea eax, [edi + 0x204]
push eax
push esi
call fcn.01079880
mov esi, dword [esi + 0x25a98]
test ebx, ebx
je 0x1079a46
push 0x403
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1079a46
test esi, esi
je 0x1079a14
mov ecx, dword [esi + 0x1c]
push 0x1ff
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
call dword [sym.imp.msvcrt.dll__wtoi]
add esp, 4
cmp eax, 0xffff
mov dword [edi + 0x200], eax
jle 0x1079a30
mov eax, 0xffff
push ebx
push 0
mov dword [edi + 0x200], eax
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x107bd60
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
test esi, esi
je 0x107bd95
push 2
push 0x100cf4c
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x107bd95
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov cx, word [esi + 2]
mov ax, word [esi]
mov dx, word [esi + 4]
mov word [ebp - 6], cx
mov word [ebp - 8], ax
lea ecx, [ebp - 8]
xor eax, eax
push ecx
mov word [ebp - 4], dx
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x107bd8b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x107c9c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 0x10]
push eax
push ecx
push 0
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], 0
call fcn.0102e960
mov esi, dword [ebp - 4]
test esi, esi
je 0x107cae9
lea eax, [eax + eax + 0x864]
test eax, eax
je 0x107cad9
push ebx
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x107cad8
push edi
push 9
push esi
call fcn.0102d1a0
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x107ca7f
mov eax, dword [ebp - 4]
mov esi, edi
sub esi, eax
sar esi, 1
push esi
push eax
push ebx
call fcn.0102cdc0
cmp esi, 0x31
jl 0x107ca46
mov esi, 0x31
cmp esi, 0x32
jge 0x107ca70
mov eax, 0x20
movzx edx, ax
mov eax, edx
shl edx, 0x10
mov ecx, 0x32
sub ecx, esi
or eax, edx
shr ecx, 1
lea edi, [ebx + esi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 8]
add edi, 2
push edi
push ebx
call fcn.0102cd50
mov esi, dword [ebp - 4]
jmp 0x107ca8f
push 0x103
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp word [ebx], 0
mov eax, ebx
pop edi
je 0x107caa9
jmp 0x107caa0
add eax, 2
cmp word [eax], 0
jne 0x107caa0
sub eax, ebx
push 0
sar eax, 1
lea ecx, [ebp - 0xc]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30900]
push edx
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop ebx
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x107d790
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push edi
push 0x281
push 8
mov dword [ebp - 4], 0x280
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push eax
call ebx
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x107d999
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x107d7fb
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x107d999
inc eax
push eax
push 8
call esi
push eax
call ebx
mov dword [ebp - 8], eax
mov edi, eax
test edi, edi
je 0x107d999
lea ecx, [ebp - 4]
push ecx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x107d98d
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.msvcrt.dll_strncpy]
mov edi, edi
mov eax, dword [esi + 0x2e664]
cmp eax, 8
jge 0x107d984
imul eax, eax, 0x360
push 0x103
lea edx, [edi + 0x10c]
push edx
lea eax, [eax + esi + 0x2cc69]
push eax
call ebx
mov edx, dword [esi + 0x2e664]
imul edx, edx, 0x360
push 0x103
lea ecx, [edi + 8]
push ecx
lea eax, [edx + esi + 0x2cb64]
push eax
call ebx
mov eax, dword [edi + 0x190]
add esp, 0x18
cmp eax, 0x41
jb 0x107d87d
mov eax, 0x41
mov ecx, dword [esi + 0x2e664]
imul ecx, ecx, 0x360
mov dword [ecx + esi + 0x2cdb0], eax
mov edx, dword [esi + 0x2e664]
imul edx, edx, 0x360
mov ecx, dword [edx + esi + 0x2cdb0]
lea eax, [edx + esi]
push ecx
lea edx, [edi + 0x194]
push edx
add eax, 0x2cd6e
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x2e664]
mov ecx, dword [edi + 0x1a0]
imul eax, eax, 0x360
mov dword [eax + esi + 0x2cec0], ecx
mov eax, dword [esi + 0x2e664]
imul eax, eax, 0x360
push 0x3f
lea edx, [edi + 0x1b0]
push edx
lea ecx, [eax + esi + 0x2cdb4]
push ecx
call ebx
mov eax, dword [esi + 0x2e664]
imul eax, eax, 0x360
push 0x3f
lea edx, [edi + 0x1c0]
push edx
lea ecx, [eax + esi + 0x2cdf5]
push ecx
call ebx
mov eax, dword [esi + 0x2e664]
imul eax, eax, 0x360
push 0x3f
lea edx, [edi + 0x1d8]
push edx
lea ecx, [eax + esi + 0x2ce36]
push ecx
call ebx
add esp, 0x30
cmp dword [edi + 0x1a4], 0
je 0x107d974
mov edx, dword [esi + 0x2e664]
imul edx, edx, 0x360
mov dword [edx + esi + 0x2ce78], 1
mov ecx, dword [esi + 0x2e664]
imul ecx, ecx, 0x360
push 0x3f
lea eax, [edi + 0x200]
push eax
lea edx, [ecx + esi + 0x2ce7c]
push edx
call ebx
add esp, 0xc
inc dword [esi + 0x2e664]
mov edi, dword [edi]
test edi, edi
jne 0x107d820
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x107df30
Capabilities:
List user accounts

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 2
push 2
push edi
call sub.NETAPI32.dll_NetUserEnum
mov ebx, eax
cmp ebx, edi
je 0x107df70
cmp ebx, 0xea
jne 0x107dfa9
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x107dfbd
cmp dword [ebp - 8], edi
jbe 0x107dfac
lea esi, [eax + 0x24]
nop
mov ecx, dword [esi - 0x18]
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi - 0x1c]
push eax
mov eax, dword [esi - 0x24]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0107dea0
inc edi
add esi, 0x60
cmp edi, dword [ebp - 8]
jb 0x107df80
mov eax, dword [ebp - 4]
xor edi, edi
cmp eax, edi
je 0x107dfbd
push eax
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, 0xea
je 0x107df46
cmp eax, edi
pop edi
pop esi
pop ebx
je 0x107dfd2
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov esp, ebp
pop ebp
ret 4