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

Disassembly:
push 0xffffffffffffffff
push 0x7488f0
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 0x732ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.0072f7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x732e61
mov edx, dword [eax]
jmp 0x732e63
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.00731050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x732ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x732ebf
cmp esi, edi
je 0x732ebf
mov ecx, esi
call fcn.0072aa00
push esi
call fcn.007381c8
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.0072f990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x732ef5
mov eax, dword [eax]
jmp 0x732ef7
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.0072e640
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 0x732f25
mov eax, dword [eax]
jmp 0x732f27
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 0x732f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x732f76
cmp esi, edi
je 0x732f76
mov eax, dword [esi]
cmp eax, edi
je 0x732f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x732f6d
push eax
call fcn.007381c8
add esp, 4
push esi
call fcn.007381c8
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 0x732f90
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 0x732ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x733035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00732e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x732fc5
mov edi, 0x74d8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x733035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00732e00
add edi, 4
add esp, 0xc
cmp edi, 0x74d8c0
jb 0x733000
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 0x733f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7489fb
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 0x734002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00737dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x734002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0072f6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0073820b
push 0x10
call fcn.007381d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x733fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007241c0
jmp 0x733fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00733b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x733ff0
mov ecx, edi
call fcn.007242c0
push edi
call fcn.007381c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x734021
inc ebx
cmp ebx, 0x20
jb 0x733f3e
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 0x735250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749808
push 0x739288
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 0x735329
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 0x735329
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.007381d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x735329
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 0x735329
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 0x73532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00735351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x735d20
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 0x735d58
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 0x735d60
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 0x735d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x735d94
push eax
push esi
call fcn.0073820b
add esp, 8
pop esi
ret 0x10

Function at 0x735da0
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 0x735e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x735e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x74e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00737dff
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 0x735dda
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 0x735e30
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 0x735ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x735eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x74e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00737dff
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 0x735eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x735e6a
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 0x736000
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 0x736131
push esi
call fcn.00739145
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.00728080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x736131
push 0
push ebp
call fcn.007283a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00728260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x73608b
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.007282f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x736121
push 0x74e918
push edi
call fcn.007373f0
push eax
push ebx
push esi
call fcn.00735f60
push 0x74e8f8
push edi
call fcn.007373f0
push eax
push ebx
push esi
call fcn.00735f60
push 0x74e8d8
push edi
call fcn.007373f0
push eax
push ebx
push esi
call fcn.00735f60
push 0x74e8c0
push edi
call fcn.007373f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00735f60
push 0x74e8a0
push edi
call fcn.007373f0
push eax
push ebx
push esi
call fcn.00735f60
push 0x74e888
push edi
call fcn.007373f0
push eax
push ebx
push esi
call fcn.00735f60
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 0x7371b0
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.00737140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00737140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00737140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00737140
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 0x737bfa
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 0x737c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x74987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x737c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x737c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401020
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [0x40850c]
push ebp
push esi
mov esi, dword [0x408510]
push edi
xor ebp, ebp
push 2
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401054
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x1c
ret 0x10
cmp ebx, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jle 0x40117c
mov eax, dword [esi + 4]
push eax
call fcn.0040126b
add esp, 4
dec eax
cmp eax, 3
ja case.default.0x401079
jmp dword [eax*4 + 0x4011c8]
push edi
call fcn.00401000
mov esi, eax
add esp, 4
test esi, esi
je 0x4011a5
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401187
call ebx
cmp eax, 0x426
je 0x401187
mov ebp, 2
jmp 0x401187
push edi
call fcn.00401000
mov esi, eax
add esp, 4
test esi, esi
je 0x4011a5
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401187
call ebx
cmp eax, 0x430
je 0x401187
mov ebp, 2
jmp 0x401187
mov edx, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.SoundMAX_Agent_Service
push str.SoundMAX_Agent_Service__default_
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
jmp 0x401185
push edi
call fcn.00401000
mov esi, eax
add esp, 4
test esi, esi
je 0x4011a5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401187
call ebx
cmp eax, 0x420
je 0x401187
mov ebp, 2
jmp 0x401187
push edi
call fcn.00401000
mov esi, eax
add esp, 4
test esi, esi
je 0x4011a5
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010b6
mov ebp, dword [esp + 0x14]
jmp 0x401187
push edi
call fcn.00401000
add esp, 4
mov esi, eax
test esi, esi
je 0x4011a5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
call ebx
xor ecx, ecx
cmp eax, 0x424
setne cl
inc ecx
push edi
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x402221
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406338
cmp edx, dword [eax]
je 0x402243
add eax, 8
inc ecx
cmp eax, 0x4063c8
jl 0x402234
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406338]
jne 0x402371
mov eax, dword [0x408544]
cmp eax, 1
je 0x40234b
test eax, eax
jne 0x402274
cmp dword [0x406070], 1
je 0x40234b
cmp edx, 0xfc
je 0x402371
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4022ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403860
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4022ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403860
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053d8
push edi
call fcn.00404090
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403780
lea eax, [ebp - 0xa0]
push 0x4053b8
push eax
call fcn.00403780
push dword [esi + 0x40633c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403fff
add esp, 0x2c
pop edi
jmp 0x402371
lea eax, [ebp + 8]
lea esi, [esi + 0x40633c]
push 0
push eax
push dword [esi]
call fcn.00403860
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401758
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0x18]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x40180a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401802
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4017f5
cmp eax, 2
jne 0x401802
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
add eax, edx
jmp 0x40181e
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
add eax, edx
jmp 0x40181e
add dword [ebp - 0xc], 0x28
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
jg 0x4017b4
mov eax, 0
leave
ret

Function at 0x401820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [0x55a024]
mov dword [esp], eax
call fcn.00401671
sub esp, 4
mov edx, eax
mov dword [esp + 0xc], 1
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00401758
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40187b
mov eax, 0
jmp 0x4018e2
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
jne 0x4018c3
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_Failed_to_un_protect_memory__d_n
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x4018e2
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0x517060
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004016f7
mov eax, 1
leave
ret
Function at 0x4019c4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 1
jne 0x401a54
mov dword [0x55d9ac], 0x20
mov dword [0x55d9b0], 0x80000001
call int.00510654
cmp eax, 1
jne 0x401a10
mov dword [0x55d9a8], 1
mov dword [0x55d9b0], 0x80000002
call fcn.00510722
cmp eax, 1
jne 0x401a24
mov dword [0x55d9ac], 0x40
mov dword [esp], str.TEMP
mov eax, dword [sym.imp.msvcrt.dll__wgetenv]
call eax
mov dword [0x55d420], eax
mov dword [esp], str.SystemRoot
mov eax, dword [sym.imp.msvcrt.dll__wgetenv]
call eax
mov dword [0x55d428], eax
call fcn.00418e60
call fcn.00410ac0
mov eax, dword [0x55a024]
mov dword [esp + 4], str.uhost.exe
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x401aad
mov dword [esp + 8], str.__tk__
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexW]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
jne 0x401aa6
mov eax, 0
jmp 0x401ae2
call fcn.005144f5
jmp 0x401adf
cmp dword [ebp + 8], 1
jne 0x401acb
call fcn.00515b7d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00516748
mov dword [ebp - 0xc], eax
jmp 0x401adf
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00515bee
jmp 0x401ae2
mov eax, dword [ebp - 0xc]
leave
ret