joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e0c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
mov eax, dword [esp + 0x208]
push esi
lea esi, [ecx + 0x13c]
lea ecx, [esp + 0xc]
mov dword [esi], eax
call fcn.0040c7f0
lea ecx, [esp + 4]
mov dword [esp + 0x204], 0
call sub.MFC42.DLL_CString::CString_2
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x208], 1
call fcn.0040cd20
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 8]
call fcn.0042f37e
lea edx, [esp + 0xfc]
push str.VolMic__
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push ecx
push str.SoftwareAnalog_DevicesSMax4Settings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42e199
cmp dword [esi], 0xffffffff
je 0x42e18e
mov eax, dword [esp + 8]
push 4
push esi
push 4
lea edx, [esp + 0x108]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x204], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x204], 0xffffffff
call fcn.0040c8b0
mov ecx, dword [esp + 0x1fc]
pop esi
mov dword fs:[0], ecx
add esp, 0x204
ret 4

Function at 0x42f0b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x434580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x435b54
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
push eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x5c]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
sub eax, ecx
sub eax, edx
mov esi, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, 3
add edx, esi
add ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
sub edx, esi
push 0
sub ecx, eax
push edx
push ecx
push esi
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x50], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x10001530
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x328
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
push 0x20019
push 0
push str.SoftwareClientsMail
mov edi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001721
lea ecx, [esp + 0xc]
lea edx, [esp + 0x230]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0
mov ebx, 1
mov esi, 0x104
push 0
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001721
cmp dword [esp + 0x10], ebx
jne 0x10001721
push ebp
lea ebp, [edi + 4]
lea edx, [esp + 0x234]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100016fb
mov esi, dword [esp + 0x33c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
lea edx, [esp + 0x34]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100016c9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push eax
push str.Protocols
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100016c9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100016c9
cmp dword [esp + 0x14], 1
jne 0x100016c9
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x1000169f
lea edx, [esp + 0x130]
push 1
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::InsertAt
lea eax, [esp + 0x2c]
lea ecx, [edi + 8]
push eax
jmp 0x100016c4
mov edx, dword [esi + 8]
lea ecx, [esp + 0x130]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov edx, dword [eax - 8]
test edx, edx
jne 0x100016c9
lea edx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
inc ebx
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100015ea
mov ecx, dword [ebp]
pop ebp
mov eax, dword [ecx - 8]
test eax, eax
je 0x10001721
mov edx, dword [edi + 8]
mov eax, dword [edx - 8]
test eax, eax
je 0x10001721
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x328
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x328
ret 4
Function at 0x10001850
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push 0x100018a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x10001a20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8000
call esi
push str.MAPI32.DLL
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [0x10004360], eax
call esi
mov eax, dword [0x10004360]
test eax, eax
jne 0x10001a55
pop edi
mov eax, 2
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogon
push eax
call esi
test eax, eax
mov dword [0x10004364], eax
jne 0x10001a74
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [0x10004360]
push str.MAPILogoff
push eax
call esi
test eax, eax
mov dword [0x10004368], eax
jne 0x10001a92
pop edi
mov eax, 4
pop esi
ret
mov ecx, dword [0x10004360]
push str.MAPISendMail
push ecx
call esi
test eax, eax
mov dword [0x1000436c], eax
jne 0x10001ab1
pop edi
mov eax, 4
pop esi
ret
mov edx, dword [0x10004360]
push str.MAPISendDocuments
push edx
call esi
test eax, eax
mov dword [0x10004370], eax
jne 0x10001ad0
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [0x10004360]
push str.MAPIFindNext
push eax
call esi
test eax, eax
mov dword [0x10004374], eax
jne 0x10001aee
pop edi
mov eax, 4
pop esi
ret
mov ecx, dword [0x10004360]
push str.MAPIReadMail
push ecx
call esi
test eax, eax
mov dword [0x10004378], eax
jne 0x10001b0d
pop edi
mov eax, 4
pop esi
ret
mov edx, dword [0x10004360]
push str.MAPISaveMail
push edx
call esi
test eax, eax
mov dword [0x1000437c], eax
jne 0x10001b2c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [0x10004360]
push str.MAPIDeleteMail
push eax
call esi
test eax, eax
mov dword [0x10004380], eax
jne 0x10001b4a
pop edi
mov eax, 4
pop esi
ret
mov ecx, dword [0x10004360]
push str.MAPIFreeBuffer
push ecx
call esi
test eax, eax
mov dword [0x10004384], eax
jne 0x10001b69
pop edi
mov eax, 4
pop esi
ret
mov edx, dword [0x10004360]
push str.MAPIAddress
push edx
call esi
test eax, eax
mov dword [0x10004388], eax
jne 0x10001b88
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [0x10004360]
push str.MAPIDetails
push eax
call esi
test eax, eax
mov dword [0x1000438c], eax
jne 0x10001ba6
pop edi
mov eax, 4
pop esi
ret
mov ecx, dword [0x10004360]
push str.MAPIResolveName
push ecx
call esi
mov dword [0x10004390], eax
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfc
add eax, 4
ret
Function at 0x40104d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401064
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401087
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401fde
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x401ff1
push 0x80004005
call fcn.00401000
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401ff8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x402028
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x402145
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x402096
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x402145
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x402109
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00402028
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x402168
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x4020ce
cmp dword [ebp - 0x210], esi
je 0x40212f
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x402155
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c28f
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x402178
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x402157
Function at 0x4039b5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
sub esp, 0xa08
lea ebp, [esp - 4]
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x38
mov eax, 0x47c8e0
call fcn.004642f2
lea eax, [edi + 0x5874]
xor ebx, ebx
cmp byte [eax], bl
je 0x4039ef
mov eax, 0x810a0001
jmp 0x403aff
mov byte [eax], 1
push 0x104
lea eax, [ebp + 0x800]
push eax
push ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x800]
push 0x5c
push eax
call fcn.0045cee7
cmp eax, ebx
pop ecx
pop ecx
jne 0x403a26
mov eax, 0x810a0002
jmp 0x403aff
mov word [eax], bx
lea eax, [ebp + 0x800]
lea ecx, [ebp - 0x28]
call fcn.00404670
push 0x486ccc
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], ebx
call fcn.00404ee1
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [edi + 0x583c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00404c2a
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.004049f4
push 0
or ebx, 0xffffffff
push 1
lea esi, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004049f4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebx
push eax
lea eax, [edi + 0x2ec]
push 0x1000
push eax
call fcn.0045ca8b
push ebx
push 0x486d64
lea eax, [edi + 0x573c]
push 0x40
push eax
call fcn.0045ca8b
push ebx
push 0x486d44
lea eax, [edi + 0x57bc]
push 0x40
push eax
call fcn.0045ca8b
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x486cec
lea eax, [ebp]
push ebx
push eax
call fcn.00404f26
add esp, 0x10
lea esi, [edi + 0x5858]
lea eax, [ebp]
call fcn.00404988
mov esi, 0x403b22
push esi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp eax, esi
mov dword [edi], eax
jne 0x403afd
and dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.0045c28f
add ebp, 0xa0c
leave
ret
Function at 0x403b86
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fec]
mov eax, 0x206c
call fcn.0046b060
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x1fe8], eax
mov eax, dword [ebx]
cmp dword [eax], 0x80000003
push esi
mov esi, ecx
jne 0x403ba3
xor eax, eax
mov ecx, dword [ebp + 0x1fe8]
xor ecx, ebp
pop esi
call fcn.0045c28f
add ebp, 0x1fec
leave
ret
xor eax, eax
cmp dword [esi + 0x5870], 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x486e54
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
jb 0x403bc9
mov eax, dword [esi + 0x585c]
jmp 0x403bcf
lea eax, [esi + 0x585c]
push edi
push eax
lea edi, [ebp - 0x2c]
call fcn.00404696
test eax, eax
jne 0x403bf3
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x486e54
call fcn.00404a3b
mov eax, edi
pop edi
jmp 0x403b8d
push 1
call fcn.00403d2d
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x403c14
push eax
mov eax, dword [ebx + 4]
call fcn.00403dd7
test eax, eax
je 0x403d1e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
push 0x2cc
push dword [ebx + 4]
lea eax, [esi + 0x20]
push eax
call fcn.0045c2a0
push 0x5834
lea eax, [esi + 8]
push eax
push dword [ebp - 0x24]
call fcn.0045c2a0
push 0x3c
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x7c], edi
call fcn.0045c910
mov dword [ebp - 0x3c], edi
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
cmp dword [esi + 0x5870], 8
stosd dword es:[edi], eax
jb 0x403c8f
mov ecx, dword [esi + 0x585c]
jmp 0x403c95
lea ecx, [esi + 0x585c]
cmp dword [esi + 0x5854], 8
jb 0x403ca6
mov eax, dword [esi + 0x5840]
jmp 0x403cac
lea eax, [esi + 0x5840]
push ecx
push eax
push 0x486d20
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
call fcn.00404f45
add esp, 0x14
cmp dword [esi + 0x5854], 8
jb 0x403cd2
mov esi, dword [esi + 0x5840]
jmp 0x403cd8
add esi, 0x5840
lea eax, [ebp - 0x3c]
push eax
xor edi, edi
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403d1b
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov dword [ebp - 0x1c], 1
jmp 0x403d1e
mov dword [ebp - 0x1c], edi
push 0
call fcn.00403d2d
mov edi, dword [ebp - 0x1c]
jmp 0x403bdf
Function at 0x403d2d
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x403d4b
xor eax, eax
jmp 0x403dd2
push esi
push 0x1c
pop esi
push esi
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0045c910
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x403d7a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403dd1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x10], eax
jne 0x403dc2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x403dc2
push dword [ebp - 0x14]
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x403d76
cmp dword [ebp + 8], 0
push esi
je 0x403db5
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x403dbb
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x403d7a
inc eax
pop esi
pop edi
leave
ret 4

Function at 0x404696
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4046a6
xor eax, eax
jmp 0x40470a
push esi
mov esi, edi
call fcn.00404a3b
lea esi, [ebp - 0x14]
call fcn.004038f8
push dword [ebp + 8]
mov esi, 0x5834
push esi
push 0
push 4
add eax, 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
lea eax, [ebp - 0x14]
call fcn.0040399d
mov eax, dword [edi + 4]
test eax, eax
je 0x4046ff
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [edi + 8], eax
jne 0x404703
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404709
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
pop esi
leave
ret 4
Function at 0x405f35
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x54
mov eax, 0x47d98e
call fcn.0046435b
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], edi
mov eax, dword [0x4a6c0c]
inc dword [0x4ae5ec]
mov esi, ecx
add eax, 0x8c
mov dword [ebp - 0x60], esi
call fcn.00405054
mov dword [ebp - 4], edi
push dword [0x4ae5ec]
lea eax, [ebp - 0x50]
push 0x4884c0
push 0x20
push eax
mov dword [ebp - 0x54], 1
call fcn.0045d727
movzx eax, word [ebp + 8]
add esp, 0x10
push 0x4884f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00405073
cmp dword [esi + 0x18], 8
jb 0x405fcb
mov eax, dword [esi + 4]
jmp 0x405fce
lea eax, [esi + 4]
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406008
push edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x54], edi
push dword [ebp - 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004643de
ret
Function at 0x407753
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], eax
je 0x407851
cmp eax, edi
je 0x407851
push eax
call fcn.0045c7b8
cmp eax, 0x20
pop ecx
jne 0x407851
push esi
mov byte [ebp - 0x5d], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40784a
test al, 0x10
jne 0x40784a
push edi
push 0x80
push 4
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40784a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x6400000
jae 0x407834
push esi
call fcn.0045b098
pop ecx
push edi
lea ecx, [ebp - 0x6c]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x64]
push esi
lea edi, [ebp - 0x18]
call fcn.004403d0
mov eax, dword [ebp - 0x68]
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.004076cc
push 0x10
lea eax, [ebp - 0x5c]
push eax
mov eax, edi
push eax
call fcn.0045d743
add esp, 0xc
test eax, eax
jne 0x40782b
mov byte [ebp - 0x5d], 1
push dword [ebp - 0x64]
call fcn.0045c98a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x5d], 0
jne 0x407846
push dword [ebp - 0x70]
jmp 0x40784b
mov al, 1
jmp 0x407853
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c28f
leave
ret
Function at 0x408d4f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a6c0c]
add eax, 0x194
push 0x4889a0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404ee1
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x408d87
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.004049f4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045c28f
leave
ret
Function at 0x409577
Capabilities:
Check for time delay via gettickcount
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ae5f0]
cmp eax, 0x2710
jae 0x4095ac
mov al, 1
jmp 0x409626
push edi
call esi
push 0
push 2
mov dword [0x4ae5f0], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x409623
mov esi, 0x22c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0045c910
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp - 0x80], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40961c
mov esi, 0x4a6e98
cmp dword [0x4a6eac], 8
mov eax, dword [0x4a6e98]
jae 0x4095fe
mov eax, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045f2c2
test eax, eax
pop ecx
pop ecx
jne 0x40963c
lea eax, [ebp - 0x80]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4095ee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp + 0x1ac]
xor ecx, ebp
pop esi
call fcn.0045c28f
add ebp, 0x1b0
leave
ret
mov al, 1
jmp 0x409625