joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push esi
push 0x46f3ac
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [esp + 0x20]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x14
test esi, esi
jne 0x405bac
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edi
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret

Function at 0x405be0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, 0x64
push 0x46f3b0
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x405c0d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebp
test ebp, ebp
je 0x405c44
test esi, esi
je 0x405bf3
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x405c15
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x405e40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x405e63
xor al, al
add esp, 0x190
ret
cmp word [esp], 0x202
je 0x405e7b
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add esp, 0x190
ret
mov al, 1
add esp, 0x190
ret

Function at 0x405e90
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push eax
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
call fcn.00405eb0
add esp, 0x10
ret

Function at 0x405eb0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405ede
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
je 0x405f14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x405fc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405ffc
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40602f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x406040
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push esi
push 0
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x104
ret

Function at 0x406240
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4062b8
mov esi, dword [esp + 0x138]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x30]
push esi
push ecx
call edi
add esp, 8
test eax, eax
je 0x4062a5
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4062b8
lea eax, [esp + 0x30]
push esi
push eax
call edi
add esp, 8
test eax, eax
jne 0x406287
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x128
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x128
ret
Function at 0x406d30
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x13
ja case.0x406d3d.0
jmp dword [eax*4 + 0x406e04]
mov eax, 0xa
jmp 0x406dce
mov eax, 3
jmp 0x406dce
xor eax, eax
jmp 0x406dce
mov eax, 0x10
jmp 0x406dce
mov eax, 0x11
jmp 0x406dce
mov eax, 0x14
jmp 0x406dce
mov eax, 0x13
jmp 0x406dce
mov eax, 0x12
jmp 0x406dce
mov eax, 4
jmp 0x406dce
mov eax, 2
jmp 0x406dce
mov eax, 8
jmp 0x406dce
mov eax, 9
jmp 0x406dce
mov eax, 0xb
jmp 0x406dce
mov eax, 7
jmp 0x406dce
mov eax, 0x15
jmp 0x406dce
mov eax, 0x1a
jmp 0x406dce
mov eax, 0x17
jmp 0x406dce
mov eax, 0x19
jmp 0x406dce
mov eax, 0x23
jmp 0x406dce
mov eax, 5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 8]
test eax, eax
je 0x406dff
mov edx, dword [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406dff
mov al, 1
ret
xor al, al
ret

Function at 0x406f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406f73
xor al, al
ret
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
ret

Function at 0x406f80
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x407001
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x407001
lea ecx, [esp]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x46f144
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, 1
pop esi
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x4083ca
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4648f0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4083f2
cmp word [esp + 4], 0x202
je 0x4083f2
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop esi
add esp, 0x190
ret
mov ecx, 0x476838
jmp 0x4083c0

Function at 0x4084b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4084c5
xor eax, eax
ret 4
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret 4
Function at 0x408ba0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x10
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408bc0
or eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x18]
mov word [esp + 4], 2
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408be7
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 8
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push esi
mov eax, ecx
push edi
mov esi, dword [edx]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0xc]
push 0x10
push edx
push ebx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_connect]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x408c3a
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 8
mov eax, ebx
pop ebx
add esp, 0x10
ret 8

Function at 0x409720
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x40b840
Capabilities:
Get disk size

Disassembly:
sub esp, 0x720
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
push edi
mov edi, dword [esp + 0x734]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40b92d
lea eax, [esp + 0x230]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x134]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
call dword [sym.imp.MSVCRT.dll__splitpath]
fild qword [esp + 0x2c]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
fmul qword [0x464828]
not ecx
dec ecx
fstp qword [esp]
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x338]
push 0x471460
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x340]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
fild qword [esp + 0x18]
repne scasb al, byte es:[edi]
fmul qword [0x464828]
mov edx, dword [esp + 0x73c]
not ecx
fstp dword [edx + 4]
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40b900
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x738]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x40b93c
mov al, byte [ecx - 1]
test al, al
je 0x40b93c
cmp al, 0xff
je 0x40b93c
cmp ebx, edx
jne 0x40b96f
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x720
ret 0xc
cmp ebx, edx
jne 0x40b959
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x720
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x40b965
cmp eax, ebx
jae 0x40b978
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x330]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
pop edi
mov dword [ebp + 8], ebx
pop esi
mov byte [ecx + ebx], 0
pop ebp
pop ebx
add esp, 0x720
ret 0xc
Function at 0x40bb70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40bc06
mov edi, dword [esp + 0x138]
mov ebx, dword [sym.imp.MSVCRT.dll__strcmpi]
lea ecx, [esp + 0x30]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40bbd5
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bc06
lea eax, [esp + 0x30]
push edi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40bbb7
mov ecx, dword [esp + 0x14]
push 0
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x411590
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x348
push esi
push edi
mov edi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
lea esi, [ecx + 0x1ac]
push 0x47154c
push esi
call edi
add esp, 8
test al, al
je 0x41168a
push ebx
push ebp
lea eax, [esp + 0x54]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 0x35c]
mov ebp, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [edx + 0xe0]
test ecx, ecx
jne 0x4115e4
mov ecx, ebp
mov eax, dword [edx + 0xf0]
mov ebx, ebp
test eax, eax
je 0x4115f2
mov ebx, eax
mov eax, dword [edx + 4]
mov edi, ebp
test eax, eax
je 0x4115fd
mov edi, eax
mov eax, dword [edx + 0x14]
mov esi, ebp
test eax, eax
je 0x411608
mov esi, eax
mov eax, dword [edx + 0x90]
test eax, eax
jne 0x411614
mov eax, ebp
push ecx
push ebx
push edi
push esi
lea ecx, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x170]
push 0x471670
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x384]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x20
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push esi
push eax
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x174]
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x360]
mov edx, dword [esi]
pop ebp
pop ebx
pop edi
mov dword [eax], edx
pop esi
add esp, 0x348
ret 0xc
push 0x471478
push esi
call edi
add esp, 8
test al, al
je 0x4116bd
mov ecx, dword [esp + 0x354]
push 0
push 0
push ecx
push 0x4116d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x358]
mov dword [edx], eax
pop edi
pop esi
add esp, 0x348
ret 0xc
Function at 0x42c560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460abd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
push edi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push edi
mov dword [esp + 0x1c], edi
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x20]
push edi
mov byte [esp + 0x1c], 1
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push edi
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], edi
mov byte [esi + 0x40], al
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push edi
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], edi
mov byte [esi + 0x60], al
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov cl, byte [esp + 0xb]
mov dword [esi + 0x74], edi
mov byte [esi + 0x70], cl
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x80]
push edi
mov byte [esp + 0x1c], 7
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x42ed00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x461261
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.0042ee10
test al, al
jne 0x42ed97
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x42ed82
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ed78
cmp al, 0xff
je 0x42ed78
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.00432580
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.0042fb60
mov ecx, eax
call fcn.00432a90
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00432920
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x42edee
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ede4
cmp al, 0xff
je 0x42ede4
dec al
mov byte [ecx - 1], al
jmp 0x42edee
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x42f940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46134b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
push eax
push ebx
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esi + 0x5c]
mov edx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], edx
je 0x42fa3f
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x42fa3f
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x42f9fc
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x42f9ef
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00431c20
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00430d70
jmp 0x42fa6a
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x42fa6a
mov eax, dword [esp + 0xc]
mov edx, edi
mov dword [edx], eax
mov ecx, dword [esp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0xc]
mov dword [edx + 8], eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x1c], edx
jmp 0x42fa6a
mov ecx, esi
call fcn.00430d70
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea eax, [ecx + 0x20]
mov dword [esi + 0x1c], eax
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x42fa6a
lea edx, [esp + 0xc]
push edx
call fcn.00431c20
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x42fa96
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42fa8d
cmp al, 0xff
je 0x42fa8d
dec al
mov byte [ecx], al
jmp 0x42fa96
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x436df0
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x436e27
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push esi
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x437080
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
mov edi, 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4370d7
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
inc eax
push eax
push esi
mov esi, dword [esp + 0x10]
push edi
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4370dd
jmp 0x4370df
pop edi
xor eax, eax
pop esi
pop ecx
ret
xor edi, edi
test esi, esi
je 0x4370ea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret