joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64fe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6658f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x64fed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.0064c7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x64fe61
mov edx, dword [eax]
jmp 0x64fe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0064e050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x64febf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x64febf
cmp esi, edi
je 0x64febf
mov ecx, esi
call fcn.00647a00
push esi
call fcn.006551c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0064c990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x64fef5
mov eax, dword [eax]
jmp 0x64fef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.0064b640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x64ff25
mov eax, dword [eax]
jmp 0x64ff27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x64ff76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x64ff76
cmp esi, edi
je 0x64ff76
mov eax, dword [esi]
cmp eax, edi
je 0x64ff5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x64ff6d
push eax
call fcn.006551c8
add esp, 4
push esi
call fcn.006551c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x64ff90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x64fffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x650035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0064fe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x64ffc5
mov edi, 0x66a8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x650035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0064fe00
add edi, 4
add esp, 0xc
cmp edi, 0x66a8c0
jb 0x650000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x650070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00656082
mov esi, eax
add esp, 8
test esi, esi
je 0x650107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x650102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00655946
add esp, 8
test eax, eax
je 0x6500e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x6500e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00655946
add esp, 8
test eax, eax
jne 0x6500c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x650102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x650f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6659fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x651002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00654dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x651002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0064c6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0065520b
push 0x10
call fcn.006551d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x650fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006411c0
jmp 0x650fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00650b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x650ff0
mov ecx, edi
call fcn.006412c0
push edi
call fcn.006551c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x651021
inc ebx
cmp ebx, 0x20
jb 0x650f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x652250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666808
push 0x656288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x652329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x652329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006551d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x652329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x652329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x65232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00652351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x652d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x652d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x652d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x652d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x652d94
push eax
push esi
call fcn.0065520b
add esp, 8
pop esi
ret 0x10

Function at 0x652da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x652e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x652e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x66b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00654dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x652dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x652e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x652ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x652eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x66b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00654dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x652eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x652e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x653000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x653131
push esi
call fcn.00656145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00645080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x653131
push 0
push ebp
call fcn.006453a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00645260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x65308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006452f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x653121
push 0x66b918
push edi
call fcn.006543f0
push eax
push ebx
push esi
call fcn.00652f60
push 0x66b8f8
push edi
call fcn.006543f0
push eax
push ebx
push esi
call fcn.00652f60
push 0x66b8d8
push edi
call fcn.006543f0
push eax
push ebx
push esi
call fcn.00652f60
push 0x66b8c0
push edi
call fcn.006543f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00652f60
push 0x66b8a0
push edi
call fcn.006543f0
push eax
push ebx
push esi
call fcn.00652f60
push 0x66b888
push edi
call fcn.006543f0
push eax
push ebx
push esi
call fcn.00652f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6541b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00654140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00654140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00654140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00654140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x654bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x654c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x66687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x654c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x654c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x6311047f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x202c34a9
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0x2a
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
cmp dword [ebp - 8], 0xffffffff
je 0x4010ec
mov dword [ebp - 0x1c], 0
jmp 0x40107e
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jae 0x4010e0
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 0x15], al
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x401075
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4010ec
mov byte [ebp - 9], 1
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x46f120]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
lea ecx, [ebp - 0xd0]
push ecx
movzx edx, byte [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004011e0
add esp, 0xc
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
cmp dword [ebp - 4], 0
je 0x401455
jmp 0x4014ba
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x4014af
cmp dword [ebp - 0xd4], 0xb7
je 0x4014b1
jmp 0x4014b3
jmp 0x4014b5
jmp 0x4014ba
jmp 0x4014ba
mov eax, dword [ebp - 4]
jmp 0x4014ec
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.004026c5
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x46f120]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x402446
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
xor al, al
jmp 0x40261d
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
mov dword [ebp - 0x130], 0x128
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x154]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4024b2
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40261d
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401130
add esp, 4
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4025e2
mov edx, dword [ebp - 0x158]
add edx, 2
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx ecx, byte [0x46f03c]
add ecx, 0x11a
mov byte [0x46f03c], cl
mov dword [ebp - 0x15c], 0
jmp 0x402556
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x40258b
mov ecx, dword [ebp - 0x15c]
movsx edx, byte [ebp + ecx - 0x150]
add edx, 1
mov eax, dword [ebp - 0x15c]
mov byte [ebp + eax - 0x150], dl
jmp 0x402547
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00406298
add esp, 8
test eax, eax
jne 0x4025c0
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x40261d
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x402500
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4024c3
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.004026c5
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x46f03c]
add eax, 0x11a
mov byte [0x46f03c], al
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
movsx edx, byte [0x46f03c]
add edx, 0x11a
mov byte [0x46f03c], dl
cmp dword [ebp - 4], 0xffffffff
je 0x402675
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x402679
xor eax, eax
jmp 0x40267e
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402865
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407170
call fcn.00402bf0
mov edi, 0x94
mov eax, edi
call fcn.00403900
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x46f3c0], ecx
mov eax, dword [esi + 4]
mov dword [0x46f3cc], eax
mov edx, dword [esi + 8]
mov dword [0x46f3d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46f3c4], esi
cmp ecx, 2
je 0x4028c5
or esi, 0x8000
mov dword [0x46f3c4], esi
shl eax, 8
add eax, edx
mov dword [0x46f3c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402900
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402900
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402918
cmp eax, 0x20b
je 0x402905
mov dword [ebp - 0x1c], esi
jmp 0x40292c
cmp dword [ecx + 0x84], 0xe
jbe 0x402900
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402926
cmp dword [ecx + 0x74], 0xe
jbe 0x402900
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004038a2
pop ecx
test eax, eax
jne 0x402958
cmp dword [0x46f3ac], 1
jne 0x402945
call fcn.00403057
push 0x1c
call fcn.00402ee0
push 0xff
call fcn.00402d45
pop ecx
pop ecx
call fcn.00403800
mov dword [ebp - 4], esi
call fcn.00403655
test eax, eax
jge 0x402971
push 0x1b
call fcn.00402840
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46f934], eax
call fcn.00403533
mov dword [0x46f3a4], eax
call fcn.00403491
test eax, eax
jge 0x402997
push 8
call fcn.00402840
pop ecx
call fcn.0040325e
test eax, eax
jge 0x4029a8
push 9
call fcn.00402840
pop ecx
push 1
call fcn.00402d75
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4029be
push eax
call fcn.00402840
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403201
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4029df
movzx eax, word [ebp - 0x40]
jmp 0x4029e2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401500
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402a00
push edi
call fcn.00402ea0
call fcn.00402ec2
jmp 0x402a32
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402c2b
ret