joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c4bd
Capabilities:
Get session information
Get session user name
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461661
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43c529
cmp dword [ebp + 0xc], 0
je 0x43c51e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
test eax, eax
jne 0x43c50d
jmp 0x43c644
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
jmp 0x43c548
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jae 0x43c62a
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x43c568
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [ebp - 0x18], edx
jmp 0x43c53f
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x43c5da
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00401528
mov dword [ebp - 4], 0
lea edx, [ebp - 0x438]
push edx
mov ecx, dword [ebp + 8]
call fcn.004012c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00401005
mov eax, dword [ebp - 0x28]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x10], 1
jmp 0x43c62a
mov byte [ebp - 0x428], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.zhangdong_WTSQuerySessionInformation_Error__d_
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 0x18], eax
jmp 0x43c53f
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x1c], 0
xor edx, edx
test edx, edx
jne 0x43c4e3
cmp dword [ebp - 0x10], 0
je 0x43c657
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
test eax, eax
ja 0x43c68f
push str.SYSTEM
lea ecx, [ebp - 0x448]
call fcn.00401528
mov dword [ebp - 4], 1
lea eax, [ebp - 0x448]
push eax
mov ecx, dword [ebp + 8]
call fcn.004012c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00401005
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43d565
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x43d57f
mov eax, 1
jmp 0x43d6cc
push str.ewfapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
jne 0x43d5c2
push str.EWF:_load_ewfapi.dll_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 8], 0
je 0x43d5b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x43d5a4
xor eax, eax
jmp 0x43d6cc
push str.EwfMgrGetProtectedVolumeConfig
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push str.EwfMgrOpenProtected
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.EwfMgrClearCommand
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str.EwfMgrClose
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push str.EwfMgrEnable
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push str.EwfMgrDisable
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.EwfMgrCommit
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x43d6a9
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x43d6a9
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x43d6a9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x43d6a9
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x43d6a9
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x43d6a9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x43d6c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx + 0x20], 0
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x43e56b
Capabilities:
Lock the desktop
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
push 0
push str.SeShutdownPrivilege
call fcn.0042d5ed
add esp, 8
cmp dword [ebp + 8], 4
jne 0x43e591
call dword [sym.imp.USER32.dll_LockWorkStation]
jmp 0x43e5f6
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
ja case.default.0x43e5ae
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x43e5fc]
mov edx, dword [ebp - 8]
or edx, 1
mov dword [ebp - 8], edx
jmp case.default.0x43e5ae
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp case.default.0x43e5ae
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
jmp case.default.0x43e5ae
mov edx, dword [ebp - 8]
or edx, 8
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0
je 0x43e5ea
mov eax, dword [ebp - 8]
or al, 4
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret 8

Function at 0x440e49
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ac1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0
je 0x440e8f
mov eax, 1
jmp 0x440f95
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x440eb2
cmp dword [ebp - 0x18], 0x80010106
je 0x440eb2
xor eax, eax
jmp 0x440f95
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
push ecx
push 0x498b68
push 1
push 0
push 0x498c38
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x440ef8
xor eax, eax
jmp 0x440f95
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00442350
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.00401361
push eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040166d
cmp dword [ebp - 0x18], 0
jge 0x440f5e
xor eax, eax
jmp 0x440f95
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x440f86
xor eax, eax
jmp 0x440f95
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4486d6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462baa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
jmp 0x448706
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x4487a8
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4487a8
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0x20
jl 0x448742
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xa0
jl 0x4487a3
lea ecx, [ebp - 0x20]
call fcn.004010eb
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
push str.IsBiosAssetStringValid_Error___d__n
lea eax, [ebp - 0x20]
push eax
call fcn.00420521
add esp, 0xc
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401005
mov eax, dword [ebp - 0x24]
jmp 0x4487ad
jmp 0x4486fd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x449f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44a136
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
jne 0x44a14b
lea eax, [ebp - 8]
mov dword [ebp + 0x10], eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44a31c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax], 0xffffffff
setne cl
push ecx
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret 8

Function at 0x44a368
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x1c]
push eax
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x44a3a6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x44a40a
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x44a445
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
push 0x90
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00449d4f
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x44aabf
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x44aacd
xor eax, eax
jmp 0x44ab28
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov cl, byte [eax]
push ecx
call fcn.0044bb86
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44aaef
xor eax, eax
jmp 0x44ab28
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44ab25
cmp dword [ebp + 0x18], 0
je 0x44ab1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x44ab0e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44b180
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
mov dword [ebp - 0x148], 0xffffffff
mov byte [ebp - 0x24c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4a36c8
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
jne 0x44b218
cmp dword [ebp + 0x14], 0
je 0x44b20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor eax, eax
test eax, eax
jne 0x44b1fa
xor eax, eax
jmp 0x44b317
push 0x4a36cc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x44b244
push 0x4a36d0
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x44b246
jmp 0x44b2af
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.0044b0dc
add esp, 0xc
mov eax, dword [ebp - 0x144]
and eax, 0x10
cmp eax, 0x10
jne 0x44b2af
cmp dword [ebp + 0x10], 0
je 0x44b2af
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0044b180
add esp, 0x10
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44b218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x44b2f4
cmp dword [ebp + 0x14], 0
je 0x44b2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x44b2d6
mov dword [ebp - 4], 0
cmp dword [ebp - 0x148], 0xffffffff
je 0x44b314
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x148], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44fc80
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463338
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.0043b9c1
mov esi, dword [esp + 0x24]
mov edx, eax
cmp esi, ebx
je 0x44fd1d
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x44fd28
cmp edx, 2
jne 0x44fcfd
lea ecx, [esp + 8]
call fcn.0042d69b
push ebx
push esi
mov dword [esp + 0x24], ebx
call fcn.0044b752
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d6ee
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp edx, 1
jne 0x44fd28
push ebx
push esi
call fcn.0044b752
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push str.IsFileExist_lpszFileName_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x14]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x44fe00
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x24], 0
mov ecx, 0x44ffd0
sub ecx, 0x44ffa0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x20f
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x44fe73
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x40
push 0x101000
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x44fe98
jmp 0x44ff8d
cmp dword [ebp + 0x10], 0
jne 0x44feb2
mov edx, 0x44ffc0
sub edx, 0x44ffa0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x44fed3
jmp 0x44ff8b
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x44ffa0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x44fef7
jmp 0x44ff89
mov ecx, dword [ebp - 0x1c]
add ecx, 4
and ecx, 0xfffffffc
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x20c
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x44ff2d
jmp 0x44ff87
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0x10000
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44ff57
jmp 0x44ff85
cmp dword [ebp + 0x10], 0
je 0x44ff69
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], 0
je 0x44ff80
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x44ff8f
jmp 0x44ff70
jmp 0x44ff70
jmp 0x44ff70
jmp 0x44ff70
jmp 0x44ff70
mov esp, ebp
pop ebp
ret
Function at 0x4033e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403480
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403460
xor eax, eax
push ebp
push 0x403459
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 0x40349c
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 0x403460
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404184
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae04c], 0
je 0x4041e5
cmp word [0x4ae220], 0xd7b2
jne 0x4041ad
cmp dword [0x4ae228], 0
jbe 0x4041ad
mov eax, 0x4ae21c
call dword [0x4ae238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac06c
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 0x40420c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x404201
push 0
push 0x4ac064
push 0x4ac06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ac0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ae04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404328
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc