joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409838
cmp edx, dword [eax]
je 0x4056d7
add eax, 8
inc ecx
cmp eax, 0x4098c8
jl 0x4056c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409838]
jne 0x405805
mov eax, dword [0x409e5c]
cmp eax, 1
je 0x4057df
test eax, eax
jne 0x405708
cmp dword [0x409564], 1
je 0x4057df
cmp edx, 0xfc
je 0x405805
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40573f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004074e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405782
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408550
push edi
call fcn.00407660
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004074e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004074f0
lea eax, [ebp - 0xa0]
push 0x408530
push eax
call fcn.004074f0
push dword [esi + 0x40983c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004074f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004075d0
add esp, 0x2c
pop edi
jmp 0x405805
lea eax, [ebp + 8]
lea esi, [esi + 0x40983c]
push 0
push eax
push dword [esi]
call fcn.00406da0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402730
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, dword [esp + 0x114]
mov esi, ecx
push edi
push str.Current_Script
call fcn.004018f0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00401e10
mov byte [eax - 1], 0
lea eax, [esp + 0xc]
push eax
push str.Currentdir
mov ecx, esi
call fcn.004018f0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
add esp, 0x108
ret 4

Function at 0x402ad0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x88
push esi
mov esi, dword [esp + 0x90]
push edi
lea eax, [esp + 8]
push 0x4000
push eax
push esi
mov edi, ecx
mov byte [esp + 0x14], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x402b1e
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
mov ecx, edi
call fcn.004029f0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 4

Function at 0x402c60
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push esi
mov esi, ecx
lea edx, [esp + 8]
push edi
mov dword [esp + 8], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402c7b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00401e10
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d17
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
je 0x402d0f
lea eax, [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x264]
sub esi, eax
lea eax, [esp + 0x144]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x402cdb
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call ebx
cmp eax, 0x12
jne 0x402cd4
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
add esp, 0x248
ret 0xc
Function at 0x403510
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0x104
mov ecx, dword [ebx + 0x550]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.sysdir
mov ecx, ebx
call fcn.004017e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov esi, ecx
mov ecx, ebx
call fcn.00401e10
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + ecx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, ebx
mov ebp, eax
push str.sysdir
call fcn.004017e0
mov edx, ebp
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403582
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00401e10
mov edi, eax
or ecx, 0xffffffff
dec edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
sete al
test al, al
mov byte [ebx + 0x5e5], al
jne 0x403643
push 0x10038
push 0x10000
push ebp
mov ecx, ebx
call fcn.00403f20
test al, al
je 0x40361a
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40361a
push ebp
mov ecx, ebx
call fcn.00402590
push str.sysdir_nvu.exe
mov ecx, ebx
call fcn.004022c0
lea edx, [esp + 0x10]
mov esi, eax
push 0x403810
push edx
push esi
mov ecx, ebx
call fcn.00402c60
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, ebx
call fcn.00403750
mov ecx, ebx
call fcn.00403990
push str.Set_Current_Root_Key
mov ecx, ebx
mov dword [0x40e90c], ebx
call fcn.00401ef0
push str.Set_Current_Reg_Key
mov ecx, ebx
call fcn.00401ef0
push str.Set_Current_Reg_Name
mov ecx, ebx
call fcn.00401ef0
push str.Set_Current_Reg_Value
mov ecx, ebx
call fcn.00401ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x403c90
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x40811b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0xc], ebp
mov eax, dword [0x40e908]
mov dword [esp + 0x49c], 0
test eax, eax
je 0x403d1e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40e904]
mov eax, dword [eax]
mov esi, dword [eax + 8]
push esi
call edi
test eax, eax
jne 0x403cee
push eax
push esi
mov ecx, ebp
call fcn.004046c0
or byte [ebp + 0x5e4], al
mov eax, dword [0x40e904]
mov eax, dword [eax]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x40e908]
add esp, 4
dec eax
mov dword [0x40e908], eax
mov dword [esp + 0x10], eax
jne 0x403cce
push str.set_UninstallFilessysdir.nvu
mov ecx, ebp
call fcn.00401ef0
push str.UninstallFiles
mov ecx, ebp
call fcn.004017e0
push eax
mov ecx, ebp
call fcn.00403ef0
test eax, eax
jne 0x403d95
mov al, byte [ebp + 0x5e5]
test al, al
je 0x403d95
mov ecx, dword [ebp + 0x550]
lea eax, [esp + 0x14]
push 0x80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, ebp
call fcn.004046c0
push str.set_Current_File
mov ecx, ebp
call fcn.00401ef0
push str.DirAndApply_sysdir_nvu.exe_del_Current_File
mov ecx, ebp
call fcn.00401ef0
push str.Delreg_NVUninst_RegKey
mov ecx, ebp
call fcn.00401ef0
push str.ForceNoReboot
mov ecx, ebp
call fcn.004017e0
mov cl, byte [ebp + 0x5e4]
test cl, cl
je 0x403eab
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
test eax, eax
je 0x403dcc
push 0x40bb1c
push eax
call esi
add esp, 8
test eax, eax
je 0x403eab
push str.Silent
mov ecx, ebp
call fcn.004017e0
test eax, eax
je 0x403def
push 0x40bb1c
push eax
call esi
add esp, 8
test eax, eax
je 0x403e93
push str.Two_Reboot_Required
mov ecx, ebp
call fcn.004017e0
test eax, eax
je 0x403e2a
push 0x40bb1c
push eax
call esi
add esp, 8
test eax, eax
jne 0x403e2a
push 0xa
mov ecx, ebp
call fcn.00401690
lea edx, [esp + 0x94]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403e1e
jmp 0x403e32
mov byte [esp + 0x94], 0
push 2
mov ecx, ebp
call fcn.00401690
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40024
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x54c]
mov ecx, edx
mov edx, dword [ebp + 0x558]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403eab
push 1
push str.SeShutdownPrivilege
mov ecx, ebp
call fcn.00403c10
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, ebp
mov dword [esp + 0x49c], 0xffffffff
call fcn.00401760
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x494
ret
Function at 0x403f20
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x403f44
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403f99
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x40d59c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403f99
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 8]
cmp eax, ecx
jb 0x403f99
jne 0x403f9b
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x403f9b
mov bl, 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x404460
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push esi
jne 0x404480
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret 4
mov ecx, edi
call fcn.00404660
test al, al
jne 0x404492
pop edi
xor eax, eax
pop esi
ret 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4044ee
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, dword [0x40e904]
push 0xc
mov ebx, eax
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov dword [eax], esi
test edi, edi
jne 0x4044ce
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x4044e2
mov dword [eax], ebx
mov eax, dword [0x40e908]
pop ebx
inc eax
mov dword [0x40e908], eax
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x404950
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebx
push ebp
lea edx, [esp + 0x1c]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404971
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
mov ax, word [0x40d59c]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x130]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12c]
push 0xf003f
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404a8e
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404a83
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404a83
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, 0x80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x28]
dec eax
push edx
push eax
push ecx
mov dword [esp + 0x38], ebp
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
push edi
mov ecx, ebx
call fcn.00404950
test eax, eax
jne 0x404a78
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x404a23
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x404aa0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0xf003f
push 0
mov esi, 1
push ebx
push ebp
mov edi, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b27
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404b18
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404b18
push esi
push ebx
push ebp
mov ecx, edi
call fcn.00404950
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404b18
xor esi, esi
jmp 0x404b1c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404ec0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
mov esi, ecx
push edi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x404ff6
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x404fcd
lea ecx, [esp + 0x18]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x404f86
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
mov eax, dword [esp + 0x20]
dec ebx
cmp eax, 1
je 0x404f58
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x404f51
test ebx, ebx
jne 0x404f33
cmp dword [esp + 0x20], 1
jne 0x404f61
push 0x3e8
call edi
jmp 0x404f82
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.00401690
push eax
push str.Error:
push ebx
call fcn.00402510
add esp, 0x10
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebp
jne 0x404fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x404fb2
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x404fe2
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00402590
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x407820
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4078d2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4078cb
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x360]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x138]
push 0x224
push ecx
push edx
mov ecx, ebx
call fcn.00407780
test eax, eax
je 0x4078bc
lea eax, [esp + 0x158]
push eax
push edi
call ebp
add esp, 8
test eax, eax
je 0x4078e1
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40788d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 4

Function at 0x407900
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.00407820
test eax, eax
je 0x407939
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.00407900
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x401f78
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x404230
call fcn.004020dc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x405478
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x401d39
cmp eax, esi
jne 0x401d2c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x401d3c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401d13
xor esi, esi
inc esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401d4f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401d7e
mov eax, dword [0x405474]
test eax, eax
jne 0x401d78
mov dword [0x405474], esi
push 0x4030e4
push 0x4030d8
call fcn.00401c82
pop ecx
pop ecx
test eax, eax
je 0x401d7e
jmp 0x401ea6
mov dword [0x40513c], esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401da2
push 0x4030d4
push 0x4030cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405474], 2
test ebx, ebx
jne 0x401dae
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40547c], 0
je 0x401dd2
push 0x40547c
call fcn.00402064
pop ecx
test eax, eax
je 0x401dd2
push 0
push 2
push 0
call dword [0x40547c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401e2e
test al, al
je 0x401dec
cmp dword [ebp - 0x1c], 0
jne 0x401e2e
mov al, byte [esi]
test al, al
je 0x401dfc
cmp al, 0x20
ja 0x401dfc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401dec
test byte [ebp - 0x3c], 1
je 0x401e08
movzx eax, word [ebp - 0x38]
jmp 0x401e0b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x405138], eax
cmp dword [0x40512c], 0
jne 0x401e82
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x401e3d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401e50
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401dd9
cmp dword [0x40513c], 0
jne 0x401e91
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405138]
jmp 0x401eb2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00402121
ret
call fcn.0040220b
jmp 0x401cd9

Function at 0x93013c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x930142
pop ebp
sub ebp, 6
sub ebp, 0x53013c
jmp 0x9301a0
jmp 0x9301a9
mov eax, 0x53013c
add eax, ebp
add eax, 0x93
mov ecx, 0x645
mov edx, 0x94e52cea
xor byte [eax], dl
inc eax
dec ecx
jne 0x9301c0
jmp 0x9301d3
sub byte [edx - 0x1505157e], 0xea
sub dl, 0x26
invalid
Function at 0x4028f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403c7c
test esi, esi
jne 0x402926
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403d6c
jmp 0x402944
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402804
mov edi, eax
test esi, esi
je 0x402944
cmp dword [ebx], 0
je 0x402944
dec esi
jmp 0x40292d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ecc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f44
xor eax, eax
push ebp
push 0x402f3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x416020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x403b61
cmp word [0x417218], 0xd7b2
jne 0x403b29
cmp dword [0x417220], 0
jbe 0x403b29
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403b88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x416030], 0
jne 0x403b7d
push 0
push 0x416064
push 0x41606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret