joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041d0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x10060f0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xa44], eax
mov eax, dword [ebp + 0x24]
push esi
push edi
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa40], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
xor esi, esi
push eax
mov dword [ebp - 0xa30], esi
call dword [0x10010c4]
test eax, eax
je 0x1004239
lea eax, [ebp - 0x414]
push eax
call dword [0x10010c8]
push edi
mov edi, dword [0x10010e0]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa34]
call edi
push 0x30c
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa44]
call edi
lea eax, [ebp - 0xa30]
push eax
push ebx
call fcn.01002266
lea eax, [ebp - 0x20c]
push eax
call fcn.01002170
xor eax, eax
push 0xf
pop ecx
lea edi, [ebp - 0xa80]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa70], eax
mov ax, word [ebp - 0xa2c]
neg ax
lea ecx, [ebp - 0xa2c]
mov dword [ebp - 0xa80], 0x3c
mov dword [ebp - 0xa7c], 0x800640
mov dword [ebp - 0xa68], ebx
sbb eax, eax
and eax, ecx
cmp dword [ebp + 0x18], esi
mov dword [ebp - 0xa6c], eax
je 0x10042d6
mov dword [ebp - 0xa64], esi
jmp 0x10042e7
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 6
inc eax
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0xa80]
push eax
call dword [ebp - 0xa38]
mov dword [ebp - 0xa38], eax
call dword [fcn.010010f0]
cmp dword [ebp - 0xa30], esi
mov edi, dword [fcn.01001050]
mov ebx, dword [fcn.01001044]
mov dword [ebp - 0xa34], eax
je 0x1004335
push dword [ebp - 0xa30]
push 0x100120c
call edi
push dword [ebp - 0xa30]
call ebx
mov dword [ebp - 0xa30], esi
cmp dword [ebp - 0xa38], esi
je 0x1004375
cmp dword [ebp + 0x14], esi
mov dword [ebp - 0xa34], esi
je 0x1004367
push 0xffffffffffffffff
push dword [ebp - 0xa48]
call dword [0x1001074]
call fcn.010022e5
push 0x1001408
push 0x10013dc
call edi
push dword [ebp - 0xa48]
call dword [fcn.0100106c]
jmp 0x10043dc
cmp dword [ebp - 0xa40], esi
je 0x10043dc
mov eax, dword [ebp - 0xa70]
push esi
push 1
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0xa38]
push eax
push esi
push dword [ebp - 0xa34]
mov dword [ebp - 0xa38], esi
push esi
push 0x1100
call dword [0x10010cc]
push esi
lea eax, [ebp - 0xa3c]
push eax
push esi
push 2
push esi
push 0x3e8
push esi
push 1
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 0xa38], esi
je 0x10043dc
push dword [ebp - 0xa38]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa34]
pop edi
pop esi
pop ebx
call fcn.01004e6a
leave
ret 0x24
Function at 0x1004fcb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100201c
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x1005023
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1002058
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005016
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1005025
xor eax, eax
pop esi
leave
ret 4
Function at 0x406200
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4aa51b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40433c
call fcn.00406f1c
push 4
mov dword [esp + 0x18], 0
call fcn.00408371
mov edi, eax
add esp, 4
test edi, edi
je 0x406274
push ebx
call fcn.00406d17
mov dword [edi], eax
call fcn.00406ad6
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406edd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406268
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406f05
pop ebx
jmp 0x406276
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4089eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4add68]
jne 0x4089f5
repz ret
jmp fcn.0040e46c
Function at 0x412222
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4add68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040abab
and dword [ebp - 0x14], 0
cmp dword [0x4b2698], 0
mov dword [ebp - 0x18], eax
jne 0x4122d5
push 0x403f58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41237d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f4c
push ebx
call edi
test eax, eax
je 0x41237d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f3c
push ebx
mov dword [0x4b2698], eax
call edi
push eax
call esi
push 0x403f28
push ebx
mov dword [0x4b269c], eax
call edi
push eax
call esi
push 0x403f0c
push ebx
mov dword [0x4b26a0], eax
call edi
push eax
call esi
mov dword [0x4b26a8], eax
test eax, eax
je 0x4122d5
push 0x403ef4
push ebx
call edi
push eax
call esi
mov dword [0x4b26a4], eax
mov eax, dword [0x4b26a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41232e
cmp dword [0x4b26a8], ecx
je 0x41232e
push eax
call esi
push dword [0x4b26a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41232e
test ebx, ebx
je 0x41232e
call edi
test eax, eax
je 0x412325
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412325
test byte [ebp - 8], 1
jne 0x41232e
or dword [ebp + 0x10], 0x200000
jmp 0x412361
mov eax, dword [0x4b269c]
cmp eax, dword [ebp - 0x18]
je 0x412361
push eax
call esi
test eax, eax
je 0x412361
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412361
mov eax, dword [0x4b26a0]
cmp eax, dword [ebp - 0x18]
je 0x412361
push eax
call esi
test eax, eax
je 0x412361
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b2698]
call esi
test eax, eax
je 0x41237d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41237f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089eb
leave
ret
Function at 0x4a7910
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe44
cmp dword [0x8363fc], 0x37
jne 0x4a79a6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 0x644]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x8373f0]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x836364]
mov byte [edx + esi], cl
add esp, 0xe44
ret
Function at 0x4a7c30
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x8363fc]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x836364]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x4a7e47
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4a7c66
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x8363fc], 0x1c
jne 0x4a7c7d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x4ae2c4]
mov ebx, dword [0x4ae2c0]
mov ebp, dword [0x4ae2c8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4ae2cc]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0x20
jmp 0x4a7cc6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, dword [esp + 0x30]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebp
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x836368], edi
mov eax, dword [esp + 0x1c]
add dword [0x836368], eax
mov eax, dword [0x836368]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, ebx
cmp dword [0x8363fc], 0x1be
mov dword [esp + 0x10], eax
lea edi, [esi + ecx]
jne 0x4a7d86
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x2c]
cmp dword [0x8363fc], 0x979
mov dword [0x836370], 0xff6b3619
mov dword [0x836374], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x4a7dc4
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x4a7cc0
cmp dword [0x8363fc], 0x8d4
jne 0x4a7dfc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x8363fc], 0x17
jne 0x4a7e36
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x48]
push ecx
push 0x403fd8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x4a7c60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x40e6a1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa4], 0
je 0x40e6b2
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40e680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa4], eax
je 0x40e6ad
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40fcf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fd69
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00490dce
add esp, 0x110
ret 0xc

Function at 0x40fee0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ffdc
lea ecx, [esp + 0xc]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040fcf0
test eax, eax
jne 0x40fffa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0040fcf0
test eax, eax
jne 0x40fff6
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00491fd4
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ffb3
lea eax, [esp + 0x10]
push 0x4b3548
push eax
call fcn.00491fd4
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ffb3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40ffb6
mov byte [esi], 0
push 0x4b12ec
push esi
call ebx
push ebp
push esi
call ebx
call dword [0x4e9c00]
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00490dce
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x40ffdb
mov eax, esi
jmp 0x40ffdc
Function at 0x417950
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor edx, edx
cmp eax, 1
push edi
mov esi, ecx
jne 0x4179f9
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3cc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
div ecx
mov ebp, dword [esp + 0x18]
test eax, eax
jbe 0x417ac8
lea edi, [esi + 0x3f4]
nop
xor edx, edx
test ecx, ecx
mov eax, edi
jle 0x4179b3
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov edi, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
add edx, 1
add eax, 1
cmp edx, dword [esi + 0x3cc]
jl 0x4179a0
push ebp
push edi
mov ecx, esi
call fcn.00417680
mov ecx, dword [esi + 0x3cc]
push ecx
push ebp
push edi
call fcn.00492bf0
mov eax, dword [esi + 0x3cc]
add dword [esp + 0x20], eax
add ebp, eax
mov ecx, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div ecx
mov ebx, dword [esp + 0x2c]
add ebx, 1
add esp, 0xc
mov dword [esp + 0x20], ebx
cmp ebx, eax
jb 0x417990
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp eax, 2
mov eax, dword [esp + 0x1c]
jne 0x417a8e
div dword [esi + 0x3cc]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x417ac8
mov edi, edi
push edi
lea eax, [esi + 0x3f4]
push eax
mov ecx, esi
call fcn.00417680
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
mov eax, edi
jle 0x417a53
jmp 0x417a40
mov dl, byte [ecx + ebp]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, dword [esi + 0x3cc]
jl 0x417a40
mov eax, dword [esi + 0x3cc]
push eax
lea eax, [esi + 0x3f4]
push edi
push eax
call fcn.00492bf0
mov eax, dword [esi + 0x3cc]
add ebp, eax
add edi, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div dword [esi + 0x3cc]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jb 0x417a20
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
div dword [esi + 0x3cc]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jbe 0x417ac8
Function at 0x401138
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.004038fe
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004038fe
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.004038fe
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 2
call fcn.004038f8
cmp dword [ebp - 0x20], esp
je 0x4011f5
push 6
call fcn.004038f2
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40120e
push ebx
call fcn.00403904
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 3
call fcn.004038f8
cmp dword [ebp - 0x20], esp
je 0x40123d
push 6
call fcn.004038f2
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x469d58
mov eax, 4
call fcn.004038f8
cmp dword [ebp - 0x20], esp
je 0x401267
push 6
call fcn.004038f2
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 5
call fcn.004038f8
cmp dword [ebp - 0x20], esp
je 0x4012fb
push 6
call fcn.004038f2
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 6
call fcn.004038f8
cmp dword [ebp - 0x20], esp
je 0x401320
push 6
call fcn.004038f2
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x401328
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401339
push ebx
call fcn.00403904
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00403904
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00403904
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00403904
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x408d10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x463e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00458c7b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408d92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456bca
mov eax, dword [eax]
push 0x47d1f0
push eax
call fcn.00449894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00458f06
test bl, bl
je 0x408d92
push 0x47d1f0
lea ecx, [esp + 0xc]
call fcn.00459296
push 0x480d48
lea ecx, [esp + 0xc]
call fcn.00459296
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408dce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00458f06
jmp 0x408e99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408e52
lea edx, [esp + 0x7c]
push 0x480d44
push edx
call fcn.00449894
add esp, 8
test eax, eax
je 0x408e52
lea eax, [esp + 0x7c]
push 0x480d40
push eax
call fcn.00449894
add esp, 8
test eax, eax
je 0x408e52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408de2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00458f06
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409690
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4096f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409700
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x463ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x487270]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409838
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409766
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458f06
xor eax, eax
jmp 0x4098af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459043
push esi
lea ecx, [esp + 0xc]
call fcn.004592d2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x480d80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40988d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409690
test eax, eax
jne 0x40988d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00409690
test eax, eax
jne 0x40988d
lea eax, [esp + 0x14]
push 0x480d5c
push eax
call fcn.0044a8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40986c
lea ecx, [esp + 0x14]
push 0x480d58
push ecx
call fcn.0044a850
mov esi, eax
add esp, 8
test esi, esi
jne 0x40986c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40986f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458ff3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40977e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458f06
xor eax, eax
jmp 0x4098af
mov byte [esi], 0
push 0x480d54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00458f06
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4