joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ea55
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x488359
call fcn.00463b70
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
push ebx
call fcn.0047ea17
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.00401950
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00401ee0
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x47eada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.0047de4d
push dword [esi + 0xc]
mov ecx, 0x4ae704
push eax
call fcn.0047dcd9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c

Function at 0x47eafb
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x488359
call fcn.00463b70
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0047ea17
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401950
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x47eb62
push eax
push dword [esi + 8]
call fcn.0047de4d
push dword [esi + 0xc]
mov ecx, 0x4ae704
push eax
call fcn.0047dcd9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x47fefc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4aadb8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x47ff5a
push 0x4990b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00464e68
add esp, 0x10
cmp eax, 0xffffffff
je 0x47ff6e
cmp eax, esi
jae 0x47ff6e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x47ff70
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x47ff25
jmp 0x47ff71
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0045f776
leave
ret
Function at 0x47ff91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4aadb8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x480033
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x480135
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4800e3
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x480136
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4800d8
cmp dword [ebp - 0x24], 1
jne 0x4800d8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4990c4
push eax
call fcn.00464018
add esp, 0xc
cmp eax, 1
jne 0x4800d8
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x480136
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x480136
lea ecx, [ebp - 0x18]
push ecx
push 0x47ff7b
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x480136
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x48015c
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0047fefc
cmp eax, ebx
pop ecx
pop ecx
jne 0x48015e
inc edi
cmp edi, esi
jl 0x480145
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0045f776
leave
ret 4
Function at 0x48016d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4aa71c
je 0x480229
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x480211
mov esi, dword [ebx + 4]
jmp 0x48020b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4801fb
cmp dword [ebp - 0xc], 4
jne 0x4801fb
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4801f3
or dword [eax + 0x9c], ecx
jmp 0x4801fb
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4801bf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4801a2
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4805e3
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4885fc
call fcn.00463b70
sub esp, 0x11c
mov eax, dword [0x4aadb8]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4806dc
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4806b0
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402080
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004805e3
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011e0
test bl, bl
jne 0x4806b0
or dword [ebp - 4], 0xffffffff
jmp 0x480621
cmp esi, 0x103
je 0x4806c0
cmp esi, 0x3f2
jne 0x4806d0
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0045f776
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x480c88
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x480cbd
cmp edi, dword [esi + 0xc]
jge 0x480cbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480cbd
cmp edi, dword [eax + 8]
jge 0x480cbd
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x480cbf
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x480dc3
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x480df7
jmp fcn.00470660
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x480e68
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x480f61
cmp eax, dword [edi + 0xc]
jge 0x480f61
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x480eb9
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x480f4a
cmp dword [ebp + 0xc], ebx
je 0x480f4a
jmp 0x480ee3
push 0x10
call fcn.00480b54
cmp eax, ebx
je 0x480ecf
mov ecx, eax
call fcn.00480dba
mov esi, eax
jmp 0x480ed1
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x480efa
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x480f0a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x480f1c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00470660
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00463b10
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x480f5c
cmp ecx, dword [esi + 8]
jge 0x480f5c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x480f62
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x481020
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48104e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48106c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480f8a
jmp 0x48106c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48106c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00480f8a
test edi, edi
mov eax, edi
jne 0x481056
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4ae924]
test ecx, ecx
je 0x48111f
jmp 0x48101f
ret 8
Function at 0x4018a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x4018b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x4018cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4018ee
cmp esi, eax
jae 0x4018c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018e0
cmp esi, eax
jae 0x4018c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x938
mov eax, dword [0x438348]
push ebp
push esi
xor esi, esi
push 0x12
push esi
push esi
push 0x42c328
mov dword [esp + 0x94c], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, esi
jne 0x404aca
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x934]
call fcn.00410017
add esp, 0x938
ret
push ebx
mov dword [esp + 0xc], esi
push edi
lea eax, [esp + 0x28]
push eax
push esi
push 0x42c328
push 0
push ebp
mov dword [esp + 0x3c], 0x1c
call dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x404b06
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x103
je 0x404c3e
jmp 0x404bc5
push 0x20019
push 0
lea ecx, [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.setupapi.dll_SetupDiOpenDeviceInterfaceRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404bc5
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x42c348
push ebx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x404b72
mov edi, 0x42c344
lea esi, [esp + 0x44]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404b6e
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
jmp 0x404bc5
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0x42c338
push ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
push ebx
je 0x404ba4
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x404bc5
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x94c]
add eax, 3
push eax
call fcn.00410c69
mov ecx, dword [esp + 0x20]
add esp, 4
cmp ecx, eax
je 0x404bd8
inc esi
cmp esi, 0x100
mov dword [esp + 0x10], esi
jl 0x404ad0
jmp 0x404c3e
cmp esi, 0x100
jge 0x404c3e
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x800
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
mov dword [esp + 0x15c], 5
call dword [sym.imp.setupapi.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x404c3e
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x14], eax
je 0x404c3e
lea edx, [esp + 0x148]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
push ebp
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x944]
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
pop ebp
call fcn.00410017
add esp, 0x938
ret
Function at 0x405a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405ac7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push esi
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x405ae0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x405b40
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
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 0x405b50
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x405ba8
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x405c80
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x438348]
xor eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], eax
xor eax, eax
cmp ebp, eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0x10
je 0x405db2
mov esi, dword [esp + 0x3c]
cmp esi, eax
je 0x405db2
mov ebx, dword [esp + 0x40]
cmp ebx, 0x20
jb 0x405db4
push edi
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0xf0000000
xor eax, eax
push 1
mov dword [esp + 0x28], eax
xor edi, edi
push edi
mov dword [esp + 0x30], eax
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], eax
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x405d13
mov dword [esp + 0x14], edi
jmp 0x405d7b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
push edi
push 0x8003
push eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
jne 0x405d34
mov dword [esp + 0x10], edi
jmp 0x405d8a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push edi
push ecx
push ebp
push edx
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x405d7b
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push 2
push edx
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
test eax, eax
je 0x405d7b
push ebx
push esi
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004059f0
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x405d8a
push eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x405d9a
push edi
push eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x24]
add esp, 0x24
jmp fcn.00410017
xor eax, eax
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
add esp, 0x24
jmp fcn.00410017
Function at 0x405dd0
Capabilities:
Get common file path
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.00410b30
mov eax, dword [0x438348]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2128], eax
xor eax, eax
test esi, esi
push edi
je 0x405fc9
mov ecx, 0x54
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x101
call dword [sym.imp.advapi32.dll_GetUserNameA]
test eax, eax
jne 0x405e34
push 0x101
push 0x42c3d0
push esi
call dword [sym.imp.kernel32.dll_lstrcpyn]
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x101]
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.kernel32.dll_GetComputerNameA]
test eax, eax
jne 0x405e60
push 0x10
push 0x42c3d0
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov ebx, dword [sym.imp.user32.dll_wsprintfA]
push esi
push edi
lea edx, [esp + 0x130]
push 0x42c3c8
push edx
call ebx
add esp, 0x10
push 0x21
lea edi, [esi + 0x111]
push edi
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.00405c80
add esp, 0x10
test eax, eax
jne 0x405eb2
push 0x42c35c
push edi
call dword [sym.imp.kernel32.dll_lstrcpy]
push 0x1000
lea edx, [esp + 0x12c]
push edx
push 0x42c3bc
xor eax, eax
push 0x42c38c
mov ecx, 0x400
lea edi, [esp + 0x138]
push 0x80000002
rep stosd dword es:[edi], eax
call fcn.00405a70
add esp, 0x14
test eax, eax
jne 0x405f02
push 0x1000
push 0x42c3d0
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
push 0x105
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x405f6d
push edi
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x43], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x405f6d
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0x42c384
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x1130]
push 0x42c3c8
push ecx
call ebx
add esp, 0x10
push 0x21
add esi, 0x132
push esi
lea edx, [esp + 0x1130]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
push eax
lea eax, [esp + 0x1134]
push eax
call fcn.00405c80
add esp, 0x10
test eax, eax
jne 0x405fc4
push 0x42c35c
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
mov eax, 1
mov ecx, dword [esp + 0x212c]
xor ecx, dword [ebp + 4]
call fcn.00410017
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret