joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e6d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.0040d760
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x402f92
push str.RegDeleteKeyEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1464], eax
test eax, eax
je 0x402f92
lea eax, [ebp - 0x1458]
push eax
push 0xf013f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x1458], 0
je 0x402f9a
xor ecx, ecx
mov dword [ebp - 0x145c], 0xa28
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x145c]
mov dword [ebp - 0x1460], ecx
push eax
lea eax, [ebp - 0xa2c]
push eax
push ecx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f75
mov byte [ebp + 0x10], bl
mov ebx, dword [ebp - 0x1460]
lea eax, [ebp - 0xa2c]
inc ebx
push eax
push edi
push 0x4265ec
lea eax, [ebp - 0x1454]
push 0xa28
push eax
call fcn.00403cb5
push dword [ebp + 0x10]
lea eax, [ebp - 0x1454]
push eax
push esi
call fcn.00402e6d
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f1e
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push edi
push esi
call dword [ebp - 0x1464]
jmp 0x402f9a
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
Function at 0x40911d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5c
mov esi, 0x4339f8
push esi
call fcn.0040eca0
pop ecx
pop ecx
test eax, eax
je 0x409148
inc eax
jmp 0x40914a
mov eax, esi
cmp byte [0x433ba0], 0
mov esi, 0x410
push eax
lea eax, [ebp - 0x414]
je 0x409175
push 0x433ba0
push 0x4265ec
push esi
push eax
call fcn.00403cb5
add esp, 0x14
jmp 0x40917f
push esi
push eax
call fcn.00411193
add esp, 0xc
lea eax, [ebp - 0x414]
push str..log
push eax
call fcn.00411520
pop ecx
mov ecx, 0x414
sub ecx, eax
lea eax, [ebp - 0x414]
push ecx
push eax
call fcn.00411520
pop ecx
lea ecx, [ebp - 0x414]
sub ecx, 4
add eax, ecx
push eax
call fcn.00411193
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4092bc
mov ecx, dword [0x433970]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x409256
push ecx
push 0xffffffffffffffff
call fcn.00405c89
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.00408742
pop ecx
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411520
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
mov ecx, dword [0x433970]
push esi
lea eax, [ebp - 0x414]
test ecx, ecx
push eax
mov eax, 0x406
lea edx, [eax + 2]
cmovne eax, edx
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.00408742
pop ecx
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411520
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push esi
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d595
leave
ret
Function at 0x425100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42512d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42512d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x72c21e3d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x5e1e1c24
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
nop
mov ebx, 0x408f6c
mov ecx, 0x669d01a2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2f9869ca
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10012757
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012796
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012796
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012796
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012796
cmp dword [ecx + 0x74], 0xe
jbe 0x10012796
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001541f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100154bc
push ebx
push esi
call fcn.100153e8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001537c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015469
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100154bb
push edi
push eax
call fcn.100163da
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015489
call fcn.10013ec4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100154ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001537c
add esp, 0x20
test eax, eax
jne 0x100154a8
push edi
call fcn.10013ec4
jmp 0x100154b0
push ebx
call fcn.10013ec4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015729
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fe78
push 0x1001fe70
push str.FlsAlloc
push 0x1f
call fcn.10015645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001575d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c414]
call esi
jmp 0x10015763
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100157a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fe88
push 0x1001fe80
push str.FlsGetValue
push 0x21
call fcn.10015645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100157de
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c414]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100157e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fe90
push 0x1001fe88
push str.FlsSetValue
push 0x22
call fcn.10015645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015820
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c414]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001aea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001aecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001aecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1b771a63
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6e012bce
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402e0f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4127f0
call fcn.00404cf0
call fcn.004049c6
movzx esi, ax
push 2
call fcn.004047c6
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.gdi32.dll_TextOutA], ax
je 0x402cc6
xor ebx, ebx
jmp 0x402cf9
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.gdi32.dll_TextOutA], 0x4550
jne 0x402cc2
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x402cc2
sub ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x402cf9
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004041e8
test eax, eax
jne 0x402d0d
push 0x1c
call fcn.00402de8
pop ecx
call fcn.00403c4b
or eax, eax
jne 0x402d1e
push 0x10
call fcn.00402de8
pop ecx
call fcn.004048ad
and dword [ebp - 4], 0
call fcn.004041fd
test eax, eax
jns 0x402d38
push 0x1b
call fcn.00402de8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x484150], eax
call fcn.004048ed
mov dword [0x482144], eax
call fcn.004044ab
test eax, eax
jns 0x402d5e
push 8
call fcn.00403d26
pop ecx
call fcn.004046e4
or eax, eax
jns 0x402d6f
push 9
call fcn.00403d26
pop ecx
push 1
call fcn.00403d60
pop ecx
or eax, eax
je 0x402d82
push eax
call fcn.00403d26
pop ecx
call fcn.00404c9d
push esi
push eax
push 0
push sym.imp.gdi32.dll_TextOutA
call main
mov esi, eax
mov dword [ebp - 0x24], esi
or ebx, ebx
jne 0x402da4
push esi
call fcn.00403fbc
call fcn.00403d51
jmp 0x402dd9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00404d35
ret
call fcn.00404813
jmp 0x402c98
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
nop
mov ebx, 0x408f6c
mov ecx, 0x200d11db
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x670406a5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401400
Capabilities:
Check if file exists
Create http request
Create process on windows
Delete file
Get common file path
Get file attributes
Read data from internet
Receive data

Disassembly:
sub esp, 0x44c
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [esp + 0x454]
push ebx
push ebp
mov ebp, dword [esp + 0x458]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 1
push 0x40ebc8
mov ebx, ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [ebp + 0xc800]
push ecx
mov edi, eax
call fcn.004022c2
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
cmp edi, esi
je 0x4015f8
push esi
push 0x80000000
push esi
push esi
push ebx
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
je 0x4014a7
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0xc800
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
add esi, eax
test eax, eax
jbe 0x4014a7
cmp esi, ebp
jb 0x401480
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
cmp esi, ebp
jne 0x4015f8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push ebp
push eax
call fcn.004012e0
add esp, 0xc
test eax, eax
je 0x4015f8
lea ecx, [esp + 0x250]
push ecx
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4015f8
lea edx, [esp + 0x250]
call fcn.004013b0
push edx
push str._sSmadavSmadavUpdaterMain.exe
mov ecx, 0x104
lea ebx, [esp + 0x50]
call fcn.00401090
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401531
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
push edx
mov edi, ebp
lea eax, [esp + 0x4c]
call fcn.00401130
add esp, 4
test eax, eax
je 0x4015f8
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ecx, dword [str.open]
mov edx, dword [0x40ec3c]
mov dword [esp + 0x20], ecx
mov cx, word [0x40ec40]
mov word [esp + 0x28], cx
xor ecx, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2a], ecx
mov dword [esp + 0x2e], ecx
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov word [esp + 0x46], cx
test eax, eax
jne 0x4015dd
lea eax, [esp + 0x20]
lea edx, [ecx + 0x14]
mov esi, str.runas
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x4015d1
movzx ecx, word [esi + eax]
test cx, cx
je 0x4015d1
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4015b1
jmp 0x4015d5
test edx, edx
jne 0x4015d8
sub eax, 2
xor edx, edx
mov word [eax], dx
push 1
push 0
push str._NOCLSMADAVAPPLICATIONUPDATER
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x10]
push edx
call fcn.00402327
mov ecx, dword [esp + 0x45c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004020cc
add esp, 0x44c
ret
Function at 0x401b50
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x268
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
lea eax, [esp + 8]
mov esi, str.http:__
mov ecx, eax
mov edx, 0x7d0
sub esi, ecx
jmp 0x401b80
lea ecx, [edx + 0x7ffff82e]
test ecx, ecx
je 0x401ba0
movzx ecx, word [esi + eax]
test cx, cx
je 0x401ba0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401b80
jmp 0x401ba4
test edx, edx
jne 0x401ba7
sub eax, 2
xor edx, edx
mov word [eax], dx
push str.mencapai.com
lea eax, [esp + 0xc]
call fcn.00401000
inc dword [0x411e48]
push 0
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x401bf7
cmp dword [0x411e4c], 2
jne 0x401bf1
lea ecx, [esp + 8]
push ecx
call fcn.00401630
add esp, 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
inc dword [0x411e4c]
mov ecx, dword [esp + 0x264]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004020cc
add esp, 0x268
ret

Function at 0x4020cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410040]
jne 0x4020d6
repz ret
jmp fcn.004028c8

Function at 0x405e6e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004044ae
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x40658f
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
invalid
invalid
add al, 0xf9
Function at 0x402510
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497895
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0x4ba004
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x4ba00c
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call dword [eax + 4]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4025af
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4025b7
call edi
mov esi, eax
test esi, esi
jne 0x4025d0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4025d5
call edi
mov esi, eax
mov dword [ebx + 0xc], esi
jmp 0x4025e1
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00402a30
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x4ba00c
test eax, eax
je 0x4025fa
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4ba004
test eax, eax
je 0x40261f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8