joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100039a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push edi
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersion
mov edi, ecx
push closesocket
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003a24
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.CSDVersion
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003a19
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x10003a0a
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.10003940
mov esi, eax
jmp 0x10003a19
cmp eax, 4
jne 0x10003a19
xor eax, eax
mov al, byte [esp + 0x15]
movzx si, al
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
add esp, 0x8c
ret

Function at 0x10003a30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
xor edi, edi
push str.SystemCurrentControlSetControlProductOptions
push closesocket
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003b8e
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edi
push edx
push edi
push str.ProductSuite
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x10003b83
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10003b83
push eax
call fcn.10026add
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push edi
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x10003b64
cmp dword [esp + 0x14], 7
jne 0x10003b64
mov esi, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebp
push ecx
call fcn.10026add
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1001912f
mov al, byte [ebx]
add esp, 8
xor edi, edi
mov esi, ebx
test al, al
je 0x10003b3e
push esi
call fcn.1001912f
push ebp
push esi
call fcn.100190b9
add esp, 0xc
test eax, eax
jne 0x10003b39
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x10003b13
jmp 0x10003b3e
mov edi, 1
push ebp
call fcn.10026b06
push ebx
call fcn.10026b06
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
push ebx
call fcn.10026b06
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x10004860
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.1001901f
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.10026ed9
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.1001901f
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.10026ed9
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.10026ed9
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.10026ed9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x10004964
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.10026ed9
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x1000499f
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x1003bab0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.10026ed9
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x10009240
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000932d
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.10009200
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.10009210
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x10009326
cmp dword [esp + 0x24], 0xe
jne 0x10009326
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.10009210
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x10009326
cmp dword [esp + 0x24], edi
jne 0x10009326
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x1000e5e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x1000e60b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x1000e61b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 0
je 0x1000e62c
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x1000e64a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x1000e65a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 1
je 0x1000e66b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x1000e689
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x1000e699
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret 4
Function at 0x1000e6b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x1000e860
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000e829
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000e859
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000e859
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000e859
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.10019737
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x1000e859
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x10048030
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x1000e829
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x1000e83e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000e845
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.10019737
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.1000e570
test eax, eax
je 0x1000e84c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x1000e78c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x1000e851
mov eax, dword [esp + 0x10]
push eax
jmp 0x1000e851
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1001964e
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x1000e870
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x1000e8a0
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x1000e8af
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x1000e8d2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x1000e8e1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x1000e904
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x1000e950
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x1000eac7
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.1000e870
test eax, eax
jne 0x1000e9b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x1000ea62
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x1000ea12
mov byte [esp + 0x1a], 0
jmp 0x1000ea1a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.1000e920
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000eac7
cmp dword [esp + 0x30], 0x10
jne 0x1000eac7
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x1000e9c9
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x1000eabc
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000eac7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x1000eac7
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x1000ea74
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x1000eae0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000eb5f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1000eb5f
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000eb5f
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x1000eb90
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100328b0
push 0x100186dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x1000ed20
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xbc], ecx
mov cl, byte [ebp + 0x14]
test cl, cl
mov ecx, str.SendMessageW
jne 0x1000ebf7
mov ecx, str.SendMessageA
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb8], eax
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x1000ed20
push 4
push 0x1000
push 0x88
push 0
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x1000ed26
lea edx, [ebp - 0x20]
push edx
push 0x88
lea eax, [ebp - 0xbc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, 0x1000edc0
sub edi, 0x1000ed90
mov dword [ebp - 0xc0], edi
push 0x40
push 0x1000
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1000ed26
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0x1000ed90
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 0x24]
push edx
push 0
push esi
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000ed26
push 0xffffffffffffffff
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x20]
push edx
push 0x88
lea eax, [ebp - 0xbc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov al, byte [ebp + 0x14]
test al, al
je 0x1000ecfa
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.10019c4e
add esp, 8
jmp 0x1000ed26
lea edi, [ebp - 0xb4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000ed23
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ed4c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f3c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [esp + 0x198]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x1000f42d
lea ecx, [esp + 4]
push ecx
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1000f42d
push 2
lea edx, [esp + 4]
push 4
push edx
call sub.WS2_32.dll_gethostbyaddr
test eax, eax
je 0x1000f42d
push esi
mov esi, dword [eax]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1a4]
not ecx
dec ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
add esp, 0x194
ret 8

Function at 0x1000f440
Capabilities:
Get mac address on windows

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [esp]
test eax, eax
je 0x1000f516
lea ecx, [eax + eax*4]
push esi
shl ecx, 7
push edi
push ecx
call fcn.10019737
mov esi, eax
mov eax, dword [esp + 0xc]
mov edi, esi
add esp, 4
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 7
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x1000f50b
lea edx, [ecx - 1]
cmp eax, edx
je 0x1000f4c3
mov esi, dword [esi]
inc eax
cmp eax, 5
jl 0x1000f4a1
push esi
call fcn.1001964e
add esp, 4
pop edi
pop esi
pop ecx
ret 8
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x199]
mov cl, byte [esi + 0x198]
xor edx, edx
push eax
mov dl, byte [esi + 0x197]
push ecx
xor eax, eax
push edx
mov al, byte [esi + 0x196]
xor ecx, ecx
mov cl, byte [esi + 0x195]
xor edx, edx
mov dl, byte [esi + 0x194]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.10018b13
add esp, 0x20
push esi
call fcn.1001964e
add esp, 4
pop edi
pop esi
pop ecx
ret 8
Function at 0x1000f5e0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1003063b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push esi
xor esi, esi
push 0x10048030
lea ecx, [esp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 6
call fcn.10026e0a
lea eax, [esp + 0x1c]
mov dword [esp + 0x1b4], esi
push eax
push 0x102
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1000f6eb
mov ecx, dword [esp + 0x1bc]
push ecx
call sub.WS2_32.dll_inet_addr
push 0x10
mov dword [esp + 0xc], eax
call fcn.10019737
add esp, 4
lea edx, [esp + 8]
push 2
push 4
push edx
call sub.WS2_32.dll_gethostbyaddr
cmp eax, esi
je 0x1000f6eb
mov edx, dword [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
call sub.iphlpapi.dll_SendARP
cmp eax, esi
jne 0x1000f6e6
mov eax, dword [esp + 0x11]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xf]
and eax, 0xff
push edi
and ecx, 0xff
push eax
mov eax, dword [esp + 0x16]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x19]
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xff
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
lea eax, [esp + 0x20]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.10025f9e
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1e4]
mov ecx, 5
add esp, 0x20
rep movsd dword es:[edi], dword [esi]
pop edi
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp + 4]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.10026d9c
mov ecx, dword [esp + 0x1ac]
pop esi
mov dword fs:[0], ecx
add esp, 0x1b4
ret 8

Function at 0x1000f720
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10030658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1004415c]
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp]
push ecx
push str.mailto:_s
push edx
mov dword [esp + 0x18], 0
call fcn.10025f9e
mov eax, dword [esp + 0xc]
add esp, 0xc
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.10026d9c
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1000f7a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x74]
push esi
push edi
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1000f827
mov eax, dword [esp + 0x210]
mov ecx, 0x19
mov esi, eax
lea edi, [esp + 0x18]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x1000f7df
lea ecx, [esp + 0x18]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [esp + 0x18]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1000f827
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0xc]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, dword [esp + 0x214]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
add esp, 0x204
ret 8