joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a94a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43502c], ebx
push esi
push edi
jne 0x42a9ca
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42aa05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431364
push edi
call esi
test eax, eax
mov dword [0x43502c], eax
je 0x42aa05
push 0x431354
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x435030], eax
call esi
cmp dword [0x434dc8], 2
mov dword [0x435034], eax
jne 0x42a9ca
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43503c], eax
je 0x42a9ca
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x435038], eax
mov eax, dword [0x435038]
test eax, eax
je 0x42aa0f
call eax
test eax, eax
je 0x42a9f6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43503c]
test eax, eax
je 0x42a9f6
test byte [ebp - 8], 1
jne 0x42aa0f
cmp dword [0x434dd4], 4
jb 0x42aa09
or byte [ebp + 0x12], 0x20
jmp 0x42aa2e
xor eax, eax
jmp 0x42aa3e
or byte [ebp + 0x12], 4
jmp 0x42aa2e
mov eax, dword [0x435030]
test eax, eax
je 0x42aa2e
call eax
mov ebx, eax
test ebx, ebx
je 0x42aa2e
mov eax, dword [0x435034]
test eax, eax
je 0x42aa2e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43502c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42aadf
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004214d0
mov eax, dword [0x43355c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x4362a8]
mov dword [ebp - 4], eax
jae 0x42ac2a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4362c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42ac2a
push 1
push esi
push ebx
call fcn.00421b65
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42ac34
push 2
push esi
push ebx
call fcn.00421b65
add esp, 0xc
cmp eax, 0xffffffff
je 0x42ac34
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42abd4
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00427750
push 0x8000
push ebx
call fcn.0042ba4c
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42ab90
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004240d1
add esp, 0xc
cmp eax, 0xffffffff
je 0x42abae
sub edi, eax
test edi, edi
jg 0x42ab85
jmp 0x42abc4
cmp dword [0x434dc0], 5
jne 0x42abc1
mov dword [0x434dbc], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042ba4c
pop ecx
pop ecx
jmp 0x42ac14
jge 0x42ac14
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00421b65
push ebx
call fcn.00428a01
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x42ac14
mov dword [0x434dbc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x434dc0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00421b65
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42ac37
mov dword [0x434dbc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004278d9
leave
ret
Function at 0x10005480
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x100054f1
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100054f1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp dword [ebp - 0x14], ebx
je 0x100054d6
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x100054c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
push 1
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [0x10faa3b8], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000565a
mov esp, ebp
pop ebp
ret

Function at 0x1000565a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009018]
jne 0x10005664
repz ret
jmp fcn.10005b71

Function at 0x408928
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
add edi, 0xe8a6c9c0
call fcn.00408958
xor dword [esi], eax
add esi, 1
mov edi, edi
mov ebx, 0x6f1b0a4d
cmp esi, ecx
jne fcn.00408928
or edi, ebx
add edi, 0x4fc764df
ret

Function at 0x100047f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10005ae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10003620
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x100073e4
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x32b00ee1
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0xe115a71
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4012b6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x414470
call fcn.004014c4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4012f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4012f1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401309
cmp eax, 0x20b
je 0x4012f6
mov dword [ebp - 0x1c], edi
jmp 0x40131d
cmp dword [ecx + 0x84], 0xe
jbe 0x4012f1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401317
cmp dword [ecx + 0x74], 0xe
jbe 0x4012f1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x41a0c4], 0xffffffff
or dword [0x41a0c8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41844c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x418448]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41a0c0], eax
call fcn.00401019
cmp dword [section..data], edi
jne 0x40137a
push fcn.00401019
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004014b2
push 0x414444
push 0x414440
call sub.msvcrt.dll__initterm
mov eax, dword [0x418444]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x418440]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x41443c
push 0x414408
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4013e0
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40149a
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40142e
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4013fc
cmp ax, 0x22
jne 0x4013e9
cmp word [esi], 0x22
jne 0x401407
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401415
cmp ax, 0x20
jbe 0x401402
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40143b
movzx eax, word [ebp - 0x48]
jmp 0x40143e
cmp word [esi], 0x20
jbe 0x401407
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40142e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40145f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x401494
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014fd
ret

Function at 0x401e8c
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, esi
mov edi, esi
imul eax, esi
xor edx, edx
shr edi, 2
je 0x401eba
push ebx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov ebx, ecx
imul ebx, edx
imul ebx, esi
imul ebx, ebx, 0x11
add ecx, eax
xor ebx, ecx
inc edx
cmp edx, edi
mov eax, ebx
jb 0x401e9c
pop ebx
pop edi
ret
Function at 0x401f6e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x401fec
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x401fef
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 7], 0x64
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x401ff1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x40202a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
call fcn.00401ff1
test eax, eax
je 0x4020bb
call fcn.00401f6e
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x4020d3
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x24
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], 4
mov dword [ebp + 0x14], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
pop edi
jmp 0x4020d3
push dword [ebp + 0x14]
xor edx, edx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
pop esi
pop ebx
leave
ret 0x10
Function at 0x402403
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
call fcn.00402128
push dword [esp + 0x10]
call fcn.0040cc78
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x402459
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.0040c0de
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402452
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x402452
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4027ea
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4027f1
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x402839
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402872
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40286e
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x402bf7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x402c15
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004028b6
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x402c28
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004133a0
cmp dword [ebp + 8], 0
je 0x402c8d
test esi, esi
je 0x402c7b
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x402c7b
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x402c7f
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret
Function at 0x402dd8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004133a0
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
je 0x402e34
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040bfc2
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x402e77
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4144cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x4004]
sbb esi, esi
push edi
push eax
neg esi
call fcn.0040cfb3
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x403e91
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x403ef3
push edi
push str.psapi.dll
call fcn.0040cd66
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret

Function at 0x403f1c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0x2c
call fcn.00401000
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 4], eax
lea eax, [ebp - 0x670]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x674], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x404096
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea eax, [ebp - 0x23c]
call fcn.0040116e
mov eax, dword [ebp - 0x66c]
mov ecx, dword [ebp - 0x65c]
push eax
push ebx
push 0x410
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x2c], ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x403fdf
call fcn.0040d3df
test eax, eax
je 0x40406c
push dword [ebp - 0x23c]
push ebx
push 0x1000
call edi
mov esi, eax
cmp esi, ebx
je 0x40406c
push 0x208
lea eax, [ebp - 0x446]
push ebx
push eax
mov word [ebp - 0x448], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.00403ef4
cmp word [ebp - 0x448], bx
je 0x40401e
cmp word [ebp - 0x448], 0x3f
jne 0x404039
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x448]
push eax
push esi
mov dword [ebp - 8], 0x104
call fcn.00403b27
add esp, 0xc
lea eax, [ebp - 0x448]
lea ebx, [ebp - 0x238]
call fcn.00403d3b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00403ad1
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp + 8]
add eax, 0x2c
call fcn.004011ad
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x403f8b
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
leave
ret 4

Function at 0x40472c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x418724], 2
jne 0x40473d
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
Function at 0x406082
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
push esi
call fcn.00404b8c
test eax, eax
je 0x4060a6
lea edi, [esi + 0x6b0]
call fcn.0040d7ae
jmp 0x40610a
lea edi, [ebp - 0x208]
call fcn.0040c863
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
mov ecx, edi
push ecx
push eax
call fcn.00405add
test eax, eax
je 0x40610a
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4060e5
mov eax, edi
push eax
call fcn.0040d540
pop ecx
jmp 0x4060eb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4060fd
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040d5e6
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40786d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x2004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4078ba
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x4078dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.004133a0
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x8004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40792e
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret