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

Disassembly:
mov eax, dword [esp + 0x10]
push esi
push 0x4713ac
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 0x4713b0
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 0x405ee0
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.00405f00
add esp, 0x10
ret

Function at 0x405f00
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 0x405f2e
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 0x405f64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x406010
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 0x40604c
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 0x40607f
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 0x406090
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 0x406290
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 0x406308
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 0x4062f5
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406308
lea eax, [esp + 0x30]
push esi
push eax
call edi
add esp, 8
test eax, eax
jne 0x4062d7
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 0x406d80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x13
ja case.0x406d8d.0
jmp dword [eax*4 + 0x406e54]
mov eax, 0xa
jmp 0x406e1e
mov eax, 3
jmp 0x406e1e
xor eax, eax
jmp 0x406e1e
mov eax, 0x10
jmp 0x406e1e
mov eax, 0x11
jmp 0x406e1e
mov eax, 0x14
jmp 0x406e1e
mov eax, 0x13
jmp 0x406e1e
mov eax, 0x12
jmp 0x406e1e
mov eax, 4
jmp 0x406e1e
mov eax, 2
jmp 0x406e1e
mov eax, 8
jmp 0x406e1e
mov eax, 9
jmp 0x406e1e
mov eax, 0xb
jmp 0x406e1e
mov eax, 7
jmp 0x406e1e
mov eax, 0x15
jmp 0x406e1e
mov eax, 0x1a
jmp 0x406e1e
mov eax, 0x17
jmp 0x406e1e
mov eax, 0x19
jmp 0x406e1e
mov eax, 0x23
jmp 0x406e1e
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 0x406e4f
mov edx, dword [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406e4f
mov al, 1
ret
xor al, al
ret

Function at 0x406fb0
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 0x406fc3
xor al, al
ret
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
ret

Function at 0x40838a
Capabilities:
Initialize winsock library

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

Function at 0x408470
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 0x408485
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 0x40b750
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 0x40b83d
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 [0x466820]
not ecx
dec ecx
fstp qword [esp]
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x338]
push 0x473434
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 [0x466820]
mov edx, dword [esp + 0x73c]
not ecx
fstp dword [edx + 4]
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40b810
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 0x40b84c
mov al, byte [ecx - 1]
test al, al
je 0x40b84c
cmp al, 0xff
je 0x40b84c
cmp ebx, edx
jne 0x40b87f
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 0x40b869
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 0x40b875
cmp eax, ebx
jae 0x40b888
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 0x411450
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 0x47351c
push esi
call edi
add esp, 8
test al, al
je 0x41154a
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 0x4114a4
mov ecx, ebp
mov eax, dword [edx + 0xf0]
mov ebx, ebp
test eax, eax
je 0x4114b2
mov ebx, eax
mov eax, dword [edx + 4]
mov edi, ebp
test eax, eax
je 0x4114bd
mov edi, eax
mov eax, dword [edx + 0x14]
mov esi, ebp
test eax, eax
je 0x4114c8
mov esi, eax
mov eax, dword [edx + 0x90]
test eax, eax
jne 0x4114d4
mov eax, ebp
push ecx
push ebx
push edi
push esi
lea ecx, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x170]
push str._s__InSetUP___s__s__s__s__s
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 0x473380
push esi
call edi
add esp, 8
test al, al
je 0x41157d
mov ecx, dword [esp + 0x354]
push 0
push 0
push ecx
push 0x411590
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 0x42a0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4624dd
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 0x42c870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462c81
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.0042c980
test al, al
jne 0x42c907
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x42c8f2
mov al, byte [ecx - 1]
cmp al, bl
je 0x42c8e8
cmp al, 0xff
je 0x42c8e8
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.004300d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.0042d6d0
mov ecx, eax
call fcn.004305e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00430470
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x42c95e
mov al, byte [ecx - 1]
cmp al, bl
je 0x42c954
cmp al, 0xff
je 0x42c954
dec al
mov byte [ecx - 1], al
jmp 0x42c95e
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 0x42d4b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x462d6b
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 0x42d5af
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x42d5af
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x42d56c
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x42d55f
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.0042f770
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.0042e870
jmp 0x42d5da
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 0x42d5da
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 0x42d5da
mov ecx, esi
call fcn.0042e870
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 0x42d5da
lea edx, [esp + 0xc]
push edx
call fcn.0042f770
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x42d606
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42d5fd
cmp al, 0xff
je 0x42d5fd
dec al
mov byte [ecx], al
jmp 0x42d606
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 0x434b90
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 0x434be7
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 0x434bed
jmp 0x434bef
pop edi
xor eax, eax
pop esi
pop ecx
ret
xor edi, edi
test esi, esi
je 0x434bfa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x438130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x463509
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov edx, dword [esp + 0x28]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
cmp ecx, eax
push edi
mov dword [esp + 0xc], ebx
jle 0x4381a2
mov esi, dword [esp + 0x30]
mov al, byte [esp + 0x30]
mov edi, 0x478924
or ecx, 0xffffffff
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x478924
mov ecx, esi
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_char_const___unsigned_int_]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [edx + 0xc]
sub eax, ecx
inc eax
add esi, ecx
mov cl, byte [esp + 0x30]
push ebp
mov ebp, eax
mov byte [esp + 0x14], cl
push 1
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4381f1
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push eax
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 ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x438256
mov al, byte [ecx - 1]
cmp al, bl
je 0x43824c
cmp al, 0xff
je 0x43824c
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x43b2e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4