joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e977c
Capabilities:
Create directory

Disassembly:
push 0x260
mov eax, 0x5dbc01
call fcn.00506dfb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [eax - 4], 1
jle 0x4e97a9
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00412624
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
call fcn.004248bd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e991f
lea ecx, [ebp - 0x26c]
call fcn.0042ca82
push 0x230
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0056b050
lea eax, [ebp - 0x240]
push eax
push 0xffffffffffffffff
push edi
call fcn.00424795
mov ecx, dword [ebp - 0x240]
add esp, 0x18
mov dword [ebp - 0x24c], ecx
mov eax, ebx
mov dword [ebp - 0x248], eax
test ecx, ecx
jle 0x4e98ea
lea ecx, [ebp - 0x240]
push ecx
push eax
push edi
call fcn.00424795
pop ecx
pop ecx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x254], esp
mov ecx, esp
push eax
call fcn.00413f09
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 3
mov esi, esp
push eax
mov dword [ebp - 0x250], esi
call fcn.00412393
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x244]
pop ecx
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00434114
test byte [ebp - 0x34], 0x10
mov byte [ebp - 4], 4
je 0x4e988f
push 0x5f1cdc
lea ecx, [ebp - 0x244]
call fcn.00435cda
push ebx
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4e98bf
mov eax, dword [ebp - 0x244]
cmp dword [eax - 4], 1
jle 0x4e98af
push dword [eax - 0xc]
lea ecx, [ebp - 0x244]
call fcn.00412624
mov eax, dword [ebp - 0x244]
push eax
push dword [ebp - 0x248]
push edi
call fcn.00424d9e
add esp, 0xc
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, dword [ebp - 0x248]
inc eax
mov dword [ebp - 0x248], eax
cmp eax, dword [ebp - 0x24c]
jl 0x4e980d
push edi
call fcn.004247d7
pop ecx
push edi
test al, al
je 0x4e98fd
call fcn.00423e4f
jmp 0x4e9902
call fcn.00428b68
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x26c]
inc ebx
call fcn.0042e60b
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, ebx
call fcn.00506da5
ret 8
Function at 0x4ea9f8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20250
call fcn.00506f00
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 2
mov ebx, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4eaafa
push esi
lea eax, [ebp - 0x2024c]
push eax
push dword [ebp - 0x228]
call fcn.00503c87
pop ecx
pop ecx
test eax, eax
je 0x4eaae4
push 0x67e290
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x67e2a8]
mov ecx, dword [0x68603c]
inc edx
mov dword [0x67e2a8], edx
mov eax, dword [ecx]
mov dword [ebp - 0x20250], eax
cmp eax, ecx
je 0x4eaad2
push dword [ebp - 0x228]
mov esi, dword [eax + 0x14]
mov ecx, ebx
push dword [ebp - 0x20248]
push esi
call fcn.0045f7bd
test eax, eax
jne 0x4eaacc
push dword [ebp - 0x228]
mov ecx, ebx
push dword [ebp - 0x20248]
push esi
call fcn.004ca1bf
lea ecx, [ebp - 0x20250]
call fcn.004595e3
mov eax, dword [ebp - 0x20250]
cmp eax, dword [0x68603c]
jne 0x4eaa84
mov edx, dword [0x67e2a8]
dec edx
push 0x67e290
mov dword [0x67e2a8], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4eaa3e
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
Function at 0x4ecbae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x800b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
js 0x4ecc07
lea eax, [ebp - 0x20c]
push eax
jmp 0x4ecc0c
push 0x5f1b30
call fcn.00413f09
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 4

Function at 0x4ecc25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x8007
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
js 0x4ecc7e
lea eax, [ebp - 0x20c]
push eax
jmp 0x4ecc83
push 0x5f1b30
call fcn.00413f09
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 4

Function at 0x4ed062
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00413f09
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 4

Function at 0x4ed135
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4ed14a
xor eax, eax
jmp 0x4ed187
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
call fcn.004ed18b
pop ecx
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x4ed174
push dword [ebp - 4]
call fcn.004ed503
pop ecx
cmp ebx, 0xffffffff
je 0x4ed183
test bl, 0x10
je 0x4ed183
xor eax, eax
inc eax
jmp 0x4ed185
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed1dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4ed1f1
xor eax, eax
jmp 0x4ed22e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
call fcn.004ed18b
pop ecx
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x4ed21b
push dword [ebp - 4]
call fcn.004ed503
pop ecx
cmp ebx, 0xffffffff
je 0x4ed22a
test bl, 0x10
jne 0x4ed22a
xor eax, eax
inc eax
jmp 0x4ed22c
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed6a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
xor ebx, ebx
inc ebx
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push esi
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ed709
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
cmp dword [edi + 0xc], esi
jne 0x4ed6fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412ac4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ed71f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
inc esi
cmp dword [eax - 0xc], 0xfe
push edi
mov edi, ecx
jg 0x4ed7cd
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push 0
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ed7cd
lea eax, [ebp - 0x204]
push eax
call fcn.0057600b
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push 0
push dword [ebp + 8]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
cmp dword [edi + 0xc], ecx
jne 0x4ed7bf
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ed7cf
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 8
Function at 0x4ed883
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00506f00
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1040], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1048], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x102c], eax
cmp eax, 0xffffffff
jne 0x4ed8cc
xor eax, eax
jmp 0x4eda91
push edi
mov edi, eax
push esi
and edi, 0x10
mov eax, edi
shl eax, 0x15
push eax
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ed8f8
xor eax, eax
jmp 0x4eda90
lea eax, [ebp - 0x1050]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x1028]
push esi
push eax
call fcn.0056b050
movzx ecx, word [ebp - 0x1038]
add esp, 0xc
movzx eax, word [ebp - 0x103c]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x102c]
push dword [ebp - 0x1048]
or dword [ebp - 0x1008], eax
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x1044]
call fcn.0044d653
push 9
push 8
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1028]
push eax
push dword [ebp - 0x1044]
push dword [ebp - 0x1040]
call fcn.00405e30
add esp, 0x28
test eax, eax
jne 0x4eda6d
test edi, edi
jne 0x4eda6d
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1034], esi
push eax
push ebx
mov dword [ebp - 0x1030], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4eda6d
mov ecx, dword [ebp - 0x1030]
cmp ecx, esi
jl 0x4eda6a
mov eax, dword [ebp - 0x1034]
jg 0x4ed9ef
cmp eax, esi
jbe 0x4eda6a
mov edi, 0x1000
cmp ecx, esi
jl 0x4eda00
jg 0x4ed9fe
cmp eax, edi
jbe 0x4eda00
mov eax, edi
push esi
lea ecx, [ebp - 0x102c]
mov dword [ebp - 0x102c], esi
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4eda6d
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1040]
call fcn.00405f70
add esp, 0xc
test eax, eax
js 0x4eda6d
mov eax, dword [ebp - 0x1034]
sub eax, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
sbb ecx, esi
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], ecx
cmp ecx, esi
jg 0x4ed9fe
jl 0x4eda6a
cmp eax, esi
ja 0x4ed9f4
xor esi, esi
inc esi
push dword [ebp - 0x1040]
call fcn.004068c0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1044]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
Function at 0x4ee131
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4ee297
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4ee296
cmp eax, 0x29
jne 0x4ee169
cmp dword [esi + 0x10], 0
jne 0x4ee296
test dword [esi + 0x50], edx
je 0x4ee2a3
cmp eax, 0x2e
jne 0x4ee184
push 5
lea ecx, [esi + 0x24]
call fcn.004f1a99
mov ecx, esi
call fcn.004f1ad9
jmp 0x4ee281
cmp eax, 0x5c
jne 0x4ee1df
mov ecx, esi
call fcn.004f1ad9
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4ee1b6
cmp byte [esi + 0x48], 0x62
jne 0x4ee1b6
push 4
lea ecx, [esi + 0x24]
call fcn.004f1a99
mov ecx, esi
call fcn.004f1ad9
jmp 0x4ee288
test eax, eax
je 0x4ee1d3
cmp byte [esi + 0x48], 0x42
jne 0x4ee1d3
push 4
lea ecx, [esi + 0x24]
call fcn.004f1a99
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4ee1aa
mov ecx, esi
call fcn.004ee2ab
jmp 0x4ee281
cmp eax, 0x5b
jne 0x4ee1ff
mov ecx, esi
call fcn.004f1ad9
mov ecx, esi
call fcn.004ef1e3
cmp dword [esi + 0x4c], 0x5d
je 0x4ee178
push 4
jmp 0x4ee2a5
cmp eax, 0x28
jne 0x4ee227
mov ecx, esi
call fcn.004f1ad9
mov ecx, esi
call fcn.004f400c
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4ee2a3
mov ecx, esi
call fcn.004f1ad9
jmp 0x4ee27d
cmp eax, 0x5e
jne 0x4ee233
push 2
jmp 0x4ee1a2
cmp eax, 0x24
jne 0x4ee23f
push 3
jmp 0x4ee1a2
cmp eax, 0x2a
je 0x4ee29f
cmp eax, 0x2b
je 0x4ee29f
cmp eax, 0x3f
je 0x4ee29f
cmp eax, 0x7b
je 0x4ee29f
cmp eax, 0x7d
jne 0x4ee25d
test dword [esi + 0x50], edx
je 0x4ee29b
cmp eax, 0x5d
jne 0x4ee267
test dword [esi + 0x50], edx
je 0x4ee1f8
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004edaea
mov ecx, esi
call fcn.004f1ad9
mov bl, 1
test bl, bl
je 0x4ee288
mov ecx, esi
call fcn.004f1b02
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4ee143
pop ebx
mov al, cl
pop esi
ret
push 6
jmp 0x4ee2a5
push 0xa
jmp 0x4ee2a5
push 5
call fcn.005087de
int3

Function at 0x4f462a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push esi
push edi
push 0x424
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x42c], 0x428
call fcn.0056b050
add esp, 0xc
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f4679
xor eax, eax
jmp 0x4f46d5
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x4f46a6
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x418]
cmp eax, dword [ebp - 0x414]
jb 0x4f46ac
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4f4688
jmp 0x4f46c5
lea eax, [ebp - 0x40c]
push eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x418]
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x10]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 8
Function at 0x4f46e8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push eax
push 2
mov word [ebx], ax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov esi, eax
call fcn.0041279d
push eax
lea ecx, [ebp - 0x234]
call fcn.00411d94
test esi, esi
je 0x4f476a
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0059b3ca
push 0x60cdc4
push ebx
call fcn.0059b3ca
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4f473e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 4

Function at 0x5026e4
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push 0x454
push 0x671920
call fcn.00507940
mov eax, dword [ebp + 8]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x450], ecx
xor esi, esi
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x448], esi
mov ebx, esi
mov dword [ebp - 0x458], ebx
mov edi, esi
mov dword [ebp - 0x45c], edi
mov dword [ebp - 4], esi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x448], eax
cmp eax, 0xffffffff
je 0x502854
mov dword [ebp - 0x444], 0x428
push 0x424
push esi
lea eax, [ebp - 0x440]
push eax
call fcn.0056b050
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x448]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x5027e1
push dword [ebp - 0x450]
lea eax, [ebp - 0x424]
push eax
call fcn.0059b558
pop ecx
pop ecx
test eax, eax
je 0x5027ba
push dword [ebp - 0x450]
lea eax, [ebp - 0x224]
push eax
call fcn.0059b558
pop ecx
pop ecx
test eax, eax
je 0x5027ba
mov eax, esi
mov dword [ebp - 0x44c], esi
jmp 0x5027c3
xor eax, eax
inc eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x460], eax
test eax, eax
jne 0x5027eb
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x448]
call sub.KERNEL32.dll_Module32NextW
jmp 0x50277c
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x502854
push dword [ebp - 0x464]
push esi
push 0x40a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x458], ebx
test ebx, ebx
je 0x502854
push 0x6271c0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x502854
push esi
push esi
push dword [ebp - 0x430]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov dword [ebp - 0x45c], edi
test edi, edi
je 0x502854
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
inc esi
mov dword [ebp - 0x454], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0050287a
mov eax, esi
call fcn.00507989
ret
Function at 0x5028a2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x502916
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x626bac
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret

Function at 0x502a0e
Capabilities:
Create thread
Inject thread

Disassembly:
push 0x1c
push 0x671900
call fcn.005078e0
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov ebx, esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push 1
call fcn.005028a2
pop ecx
push dword [ebp + 8]
push esi
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x502aba
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
mov dword [ebp - 0x2c], eax
push 4
push 0x1000
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x502aba
push esi
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x502aba
push esi
push esi
push dword [ebp - 0x1c]
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x502aba
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.005028a2
pop ecx
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00502ad7
mov eax, dword [ebp - 0x28]
call fcn.00507926
ret
Function at 0x5030bf
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x60], 0
je 0x5031c9
push ebx
push esi
call fcn.005033a4
push dword [edi + 0x50]
and dword [edi + 0x60], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
xor ecx, ecx
sub eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ecx
test eax, 0xfffffffc
jle 0x503161
mov eax, dword [edi]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x503151
push dword [esi]
call ebx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x503144
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 8
push esi
call fcn.005066f1
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, dword [edi + 4]
inc ecx
sub eax, dword [edi]
sar eax, 2
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x503114
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 4], eax
lea eax, [edi + 0x18]
push eax
call esi
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x30]
push eax
call esi
cmp dword [edi + 0x48], 0
je 0x503197
push dword [edi + 0x48]
call ebx
and dword [edi + 0x48], 0
cmp dword [edi + 0x50], 0
je 0x5031a6
push dword [edi + 0x50]
call ebx
and dword [edi + 0x50], 0
cmp dword [edi + 0x54], 0
je 0x5031b5
push dword [edi + 0x54]
call ebx
and dword [edi + 0x54], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x18]
push eax
call esi
lea eax, [edi + 0x30]
push eax
call esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret