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

Disassembly:
push 0x28
mov eax, 0x50808d
call fcn.00506098
mov ebx, edx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
call fcn.00426920
test ebx, ebx
mov edx, 0x100
mov ecx, 0x200
cmovne ecx, edx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x34]
or eax, 0x20019
push eax
push dword [ebp + 8]
push esi
call fcn.00407e8e
or ebx, 0xffffffff
test eax, eax
jne 0x41530f
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41530f
cmp dword [ebp - 0x10], eax
jne 0x41530f
cmp dword [ebp - 0x14], eax
jne 0x41530f
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004098e7
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.004228e1
pop ecx
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x415294
cmp dword [esi + 0xc], edi
jl 0x415288
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x415288
call fcn.004098e7
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415280
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x415294
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.0040942f
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4152b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
test esi, esi
je 0x4152c5
push 0x5c
push esi
call fcn.004f2400
pop ecx
pop ecx
mov edi, eax
push ecx
lea eax, [edi + 1]
mov dword [ebp - 0x18], esp
test edi, edi
mov ecx, esp
cmovne esi, eax
push esi
call fcn.004094e6
push ecx
mov byte [ebp - 4], 3
mov edi, esp
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x28], esi
lea ecx, [ecx - 0x10]
call fcn.004098e7
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00423458
mov edx, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00415099
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00408049
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00506061
ret
Function at 0x415338
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], 1
push edx
push edx
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp + 8]
xor edi, edi
test eax, eax
cmove edi, dword [ebp - 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41537c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415563
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x50812e
call fcn.00506098
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push eax
push eax
mov byte [ebp - 4], 2
call fcn.00426920
cmp dword [ebp + 0x10], 0
mov edx, 0x100
mov ecx, 0x200
cmovne ecx, edx
neg eax
sbb eax, eax
and eax, ecx
or eax, 0x2001f
push eax
push 0
push 0
push ecx
mov esi, esp
mov dword [ebp + 0x10], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004098e7
add eax, 0x10
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00414e95
mov edi, eax
test edi, edi
jne 0x4155ee
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push 4
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea ecx, [ebp - 0x18]
call fcn.00408049
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x415632
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
call fcn.00506061
ret

Function at 0x415b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x415b35
cmp dword [edi], 2
jae 0x415b35
push 0x7a
pop eax
jmp 0x415b84
mov eax, dword [edi]
and dword [edi], 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415b84
cmp dword [ebp + 0x10], 7
je 0x415b61
push 0xd
jmp 0x415b32
mov eax, dword [ebp + 0xc]
test esi, esi
je 0x415b80
cmp eax, 1
jb 0x415b5d
cmp byte [eax + esi - 1], 0
jne 0x415b5d
cmp eax, 1
jbe 0x415b80
cmp byte [eax + esi - 2], 0
jne 0x415b5d
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x416090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0x444], eax
push esi
add eax, 0xffffffd4
mov dword [ebp - 0x450], ecx
push edi
neg ebx
mov esi, 0x400
push esi
sbb ebx, ebx
xor edi, edi
and ebx, eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x448], ebx
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x404]
add ebx, 4
mov dword [ebp - 0x44c], ebx
push esi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push dword [ebx]
call edi
push 0x3c
mov esi, eax
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp - 0x43c], 0
jle 0x416144
push 0
push 0x4375ef
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [ebp - 0x444]
push ecx
push ecx
mov eax, esp
xor ecx, ecx
push ecx
push 2
push ecx
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
push dword [ebx]
call fcn.004167be
push dword [ebp - 0x448]
push 0x416354
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 0
push 0
push 0x418
push dword [esi]
call edi
push 0
push 1
push 0x401
push dword [esi]
call edi
push 0
push 1
push 0x7f
push dword [ebx]
call edi
test eax, eax
jne 0x41621a
mov eax, dword [0xd59fbc]
test eax, eax
jne 0x416200
mov esi, dword [0xd584c8]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 1
push esi
call edi
mov esi, dword [0xd584c8]
push 0
push 0x32
mov dword [0xd59fbc], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 1
push esi
call edi
mov ebx, dword [ebp - 0x44c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0xd59fb8], eax
mov eax, dword [0xd59fbc]
push eax
push 1
mov esi, 0x80
push esi
push dword [ebx]
call edi
push dword [0xd59fb8]
push 0
push esi
push dword [ebx]
call edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, ebx
call fcn.004165da
mov ecx, dword [ebp - 0x450]
xor eax, eax
pop edi
pop esi
inc eax
and dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4164bb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x90
xor ebx, ebx
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41650c
cmp dword [ebp - 0x94], 6
jb 0x41650c
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret
Function at 0x4177c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x417815
mov esi, dword [0xd5a9a0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, dword [0xd58f54]
test ecx, ecx
je 0x417801
add ecx, 0x5c
cmp eax, dword [ecx + 0x208]
jae 0x417811
xor eax, eax
inc eax
jmp 0x4178e4
mov eax, ebx
jmp 0x417818
lea eax, [ebx + 4]
cmp dword [eax], 0
jne 0x417824
xor eax, eax
jmp 0x4178e4
mov eax, dword [ebx + 0x14]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x4178e2
push esi
mov ecx, ebx
call fcn.00417689
test eax, eax
je 0x4178a2
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x14]
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004c08f1
test eax, eax
je 0x41786b
test edi, edi
je 0x4178a2
jmp 0x41786f
test edi, edi
jne 0x4178a2
mov dword [esp + 0xc], 1
test edi, edi
je 0x4178b2
mov edi, dword [0xd5a9a0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
xor edx, edx
mov ecx, 0x3e8
div ecx
imul ecx, dword [esp + 0x10], 0x3c
add ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4178b2
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
add esi, 0xa4
cmp esi, dword [eax + 4]
jne 0x417838
jmp 0x4178de
mov edi, dword [0xd5b044]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7d0
jb 0x417809
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov ecx, ebx
mov dword [0xd5b044], eax
call fcn.0041731f
mov ecx, dword [esp + 0xc]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c2e7
Capabilities:
Inspect section memory permissions
Write file on windows

Disassembly:
push 0x18
mov eax, 0x508c4e
call fcn.00506098
mov edi, ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push eax
push edi
call ebx
test eax, eax
je 0x41c496
cmp dword [ebp - 0x18], 4
jne 0x41c496
mov esi, dword [ebp + 8]
mov ecx, 0xa4
push 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
cdq
idiv ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
mov esi, dword [esi]
xor ebx, ebx
inc ebx
jmp 0x41c488
mov eax, dword [esi + 4]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 4]
cmp eax, 0x1b
je 0x41c389
cmp eax, 0x1c
je 0x41c389
cmp eax, ebx
je 0x41c385
cmp eax, 2
je 0x41c385
xor eax, eax
jmp 0x41c393
mov eax, ebx
jmp 0x41c393
mov ecx, esi
call fcn.004d1c11
movzx eax, ax
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0xa0]
or edx, 0x1000000
cmp dword [esi], 0
cmove edx, dword [esi + 0x28]
mov ecx, edx
or ecx, 0x2000000
cmp eax, ebx
cmovne ecx, edx
mov edx, ecx
or edx, 0x4000000
cmp eax, 2
cmovne edx, ecx
mov ecx, edx
or ecx, 0x8000000
cmp dword [esi + 8], 0
cmove ecx, edx
cmp dword [esi + 0x2c], 0x80000001
jne 0x41c3fa
or ecx, 0x10000000
jmp 0x41c409
cmp dword [esi + 0x2c], reloc.OLEAUT32.dll_SysReAllocString
jne 0x41c409
or ecx, 0x20000000
mov eax, ecx
or eax, 0xc0000000
cmp dword [esi + 0x58], 2
cmovne eax, ecx
cmp dword [esi + 0x58], 3
jne 0x41c424
or eax, 0x40000000
jmp 0x41c42f
cmp dword [esi + 0x58], 4
jne 0x41c42f
or eax, 0x80000000
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x64]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 0x10
push 0x4c
pop eax
push 0x20
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x10]
add eax, esi
push eax
call fcn.0041cf44
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041cf44
add esi, 0xa4
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 4]
jne 0x41c352
jmp 0x41c498
xor ebx, ebx
mov eax, ebx
call fcn.00506061
ret
Function at 0x41c4a0
Capabilities:
Clear file content

Disassembly:
push 0x120
mov eax, 0x508c7f
call fcn.005060cc
mov ebx, ecx
push 0x104
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.004f1a90
add esp, 0xc
lea ecx, [ebp - 0x114]
mov edx, str.startup.dat
call fcn.0042066b
test eax, eax
je 0x41c63f
or dword [ebp - 0x118], 0xffffffff
push 0x80
push 2
push 1
push 0x40000000
lea eax, [ebp - 0x114]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0040b961
mov esi, dword [ebp - 0x118]
test eax, eax
je 0x41c631
push ebx
mov edx, 0x677dbc19
mov ecx, esi
call fcn.0041c2e7
pop ecx
test eax, eax
je 0x41c631
lea eax, [ebx + 0xc]
mov edx, 0x94304d28
push eax
mov ecx, esi
call fcn.0041c2e7
pop ecx
test eax, eax
je 0x41c631
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], edi
mov byte [ebp - 4], 1
call fcn.00426031
mov dword [ebp - 0x128], 0xa4
test eax, eax
je 0x41c5c2
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
cdq
idiv dword [ebp - 0x128]
test eax, eax
je 0x41c5df
mov esi, edi
lea eax, [esi + ecx]
cmp dword [eax + 4], 0x1d
je 0x41c593
cmp dword [eax + 4], 0x1e
jne 0x41c5a1
push eax
lea ecx, [ebp - 0x124]
call fcn.0041ce03
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
inc edi
sub eax, ecx
add esi, 0xa4
cdq
idiv dword [ebp - 0x128]
cmp edi, eax
jb 0x41c584
mov esi, dword [ebp - 0x118]
xor edi, edi
jmp 0x41c5df
lea eax, [ebx + 0x18]
lea ecx, [ebp - 0x124]
cmp ecx, eax
je 0x41c5df
push dword [ebp - 0x12c]
push dword [eax + 4]
push dword [eax]
call fcn.0041d2e7
mov eax, dword [ebp - 0x120]
mov ecx, 0xa4
sub eax, dword [ebp - 0x124]
cdq
idiv ecx
test eax, eax
je 0x41c60f
lea eax, [ebp - 0x124]
mov edx, 0x49e4f7d
push eax
mov ecx, esi
call fcn.0041c2e7
pop ecx
test eax, eax
je 0x41c626
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
push edi
lea eax, [ebx + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
xor edi, edi
inc edi
lea ecx, [ebp - 0x124]
call fcn.0041d0cc
cmp esi, 0xffffffff
je 0x41c63d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00506076
ret
Function at 0x41cf9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004f0e50
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x41cfc5
xor eax, eax
jmp 0x41d081
push esi
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004f1a90
and dword [ebp - 0x1008], 0
lea eax, [ebp - 0x100c]
add esp, 0xc
push 0
push eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d07e
cmp dword [ebp - 0x100c], 4
jne 0x41d07e
mov esi, dword [ebp - 0x1008]
cmp esi, 0xffe
ja 0x41d07e
test esi, esi
je 0x41d035
push esi
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.0041d099
mov esi, dword [ebp - 0x1008]
test eax, eax
je 0x41d038
xor eax, eax
inc eax
test eax, eax
je 0x41d07e
cmp esi, 0x1000
jae 0x41d093
lea eax, [ebp - 0x1004]
mov byte [ebp + esi - 0x1004], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jne 0x41d07e
lea ecx, [ebp - 0x1004]
push ecx
call fcn.004f5d90
pop ecx
push eax
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, ebx
call fcn.0040942f
xor eax, eax
inc eax
jmp 0x41d080
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 4
call fcn.004f034b
int3

Function at 0x41ebea
Capabilities:
Enumerate pe sections

Disassembly:
push 0x30
push 0xaa4350
call fcn.004f0bc0
mov eax, edx
mov dword [ebp - 0x1c], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x41eccd
test eax, eax
je 0x41eccd
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41eccd
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41eccd
mov byte [eax], bl
mov dword [ecx], ebx
mov dword [edx], ebx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41eccd
cmp dword [ebp - 0x3c], ebx
je 0x41eccd
push 0x104
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41eccd
mov edi, dword [ebp - 0x3c]
mov edx, dword [edi + 0x3c]
add edx, edi
je 0x41eccd
movzx eax, word [edx + 0x14]
lea ecx, [edx + 0x18]
add ecx, eax
sub esi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
movzx eax, word [edx + 6]
cmp ebx, eax
jae 0x41eccd
test ecx, ecx
je 0x41eccd
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 8]
cmovbe eax, dword [ecx + 8]
add eax, edi
cmp esi, edi
jb 0x41ecc0
cmp esi, eax
ja 0x41ecc0
lea eax, [ebx + 1]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
sub esi, edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x41ecd6
inc ebx
add ecx, 0x28
jmp 0x41ec7c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004f0c06
ret
Function at 0x4204dd
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0xd5b158
mov dword [ebp - 0x108], esi
cmp byte [0xd5b158], 0
push edi
jne 0x4205c2
push 0x100
xor edi, edi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004f1a90
add esp, 0xc
lea ecx, [ebp - 0x104]
mov edx, str.startup.dat
call fcn.00423261
lea ecx, [ebp - 0x104]
call fcn.00423518
test eax, eax
je 0x4205dd
lea ecx, [ebp - 0x10c]
call fcn.0042320d
mov edi, dword [ebp - 0x10c]
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, dword [eax]
mov dword [ebp - 0x108], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42057a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [ebp - 0x108], 0
jne 0x42058a
push 0x51e784
jmp 0x4205c3
lea ecx, [ebp - 0x108]
call fcn.0042320d
push dword [eax]
push 0xd5b158
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4205bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 0xd5b158
push ebx
mov ecx, esi
call fcn.004094e6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret
push edi
push 0x1c
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x420583
mov ecx, ebx
call fcn.004227d2
push str.AnVir_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4205c2

Function at 0x420809
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx], 0
push esi
je 0x42086f
cmp dword [ebp + 0x18], 0
lea esi, [ecx + 4]
je 0x420856
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov edx, dword [edx]
call fcn.004229d4
push esi
push dword [eax]
push dword [ebp + 0x10]
push 0x51e630
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4208ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4208ab
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x51e630
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4208ab
cmp dword [ebp + 0x18], 0
je 0x420897
mov eax, dword [ebp + 8]
push 4
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
push 4
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4208ab
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
call fcn.00406623
pop esi
pop ebp
ret 0x14
Function at 0x4208b0
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ecx], esi
je 0x4208e1
add ecx, 4
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0x51e630
cmp dword [ebp + 0x18], esi
je 0x4208d9
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
jmp 0x42092c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
jmp 0x42092c
cmp dword [ebp + 0x18], esi
je 0x420904
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
push 3
push esi
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
jmp 0x42092c
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push edi
mov edi, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
push dword [ebp + 0x10]
call fcn.00421c72
test eax, eax
jne 0x420929
cmp dword [ebp + 0xc], edi
jne 0x420929
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x420931
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x50c], eax
push edi
mov edi, dword [ebp + 8]
cmp dword [ecx], esi
je 0x4209c5
lea eax, [ecx + 4]
mov dword [ebp - 0x508], eax
cmp dword [ebp + 0x18], esi
je 0x420979
push eax
push dword [edi]
push ebx
push 0x51e630
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x100
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x104]
push dword [ebp - 0x508]
push 0xff
push eax
push esi
push ebx
push 0x51e630
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.004f5d90
pop ecx
push eax
lea eax, [ebp - 0x104]
jmp 0x420a2c
cmp dword [ebp + 0x18], esi
je 0x4209d8
push 1
push dword [edi]
mov ecx, eax
push ebx
call fcn.0040769e
jmp 0x420a34
push 0x400
lea eax, [ebp - 0x504]
push esi
push eax
call fcn.004f1a90
mov ecx, dword [ebp - 0x50c]
lea eax, [ebp - 0x508]
add esp, 0xc
mov dword [ebp - 0x508], 0x400
push eax
lea eax, [ebp - 0x504]
push eax
push ebx
call fcn.00415b8a
test eax, eax
jne 0x420a34
lea eax, [ebp - 0x504]
xor esi, esi
push eax
inc esi
call fcn.004f5d90
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
mov ecx, edi
call fcn.0040942f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x14

Function at 0x420a49
Capabilities:
Check if file exists

Disassembly:
push esi
lea esi, [ecx + 4]
cmp byte [esi], 0
jne 0x420a5e
mov edx, str.anvir.ini
mov ecx, esi
call fcn.00423261
mov ecx, esi
pop esi
jmp fcn.00423518