joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x459883
xor al, al
jmp 0x4598f7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x459890
xor al, al
jmp 0x4598f7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4598b1
xor al, al
jmp 0x4598f7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4599b0
push 0
push 0
call fcn.004627c1
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x4598f5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4598f7
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x45c4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b95e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [0x7bb15c]
and eax, 1
jne 0x45c55e
mov ecx, dword [0x7bb15c]
or ecx, 1
mov dword [0x7bb15c], ecx
mov dword [ebp - 4], 0
push 0x19000
mov ecx, 0x7bb154
call fcn.0045cb40
push 0x48c1f0
call fcn.0045f34e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x7bb154
call fcn.0045cbf0
mov dword [ebp - 0x38], eax
mov edx, dword [ebp + 0xc]
push edx
push 0x4918d4
lea eax, [ebp - 0x30]
push eax
call fcn.0045ee9d
add esp, 0xc
mov ecx, 0x7bb154
call fcn.0045cbb0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x7bb154
call fcn.0045cbe0
push eax
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xea
jne 0x45c5d3
mov eax, dword [ebp - 0x38]
add eax, 0x2800
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, 0x7bb154
call fcn.0045cb70
jmp 0x45c58a
mov edx, dword [ebp + 8]
mov eax, dword [0x7bb154]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45ee62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0270]
jne 0x45ee6c
repz ret
jmp fcn.0046b4a3
Function at 0x45f7b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x45f7f0
cmp dword [ebp + 0x14], edi
je 0x45f7f0
cmp ecx, edi
jne 0x45f7f7
call fcn.00469247
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045f16f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45f80b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x45f82c
cmp ebx, 0xffffffff
je 0x45f81b
push ebx
push edi
push ecx
call fcn.0045f1b0
add esp, 0xc
cmp esi, edi
je 0x45f7d8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45f7d8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45f848
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x45f84f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x45f940
test word [esi + 0xc], 0x10c
je 0x45f8a3
mov eax, dword [esi + 4]
test eax, eax
je 0x45f8a3
jl 0x45f9a1
cmp ebx, eax
mov edi, ebx
jb 0x45f874
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45f948
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004607b6
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x45f938
cmp ebx, dword [ebp - 0xc]
jb 0x45f910
cmp dword [ebp - 0xc], 0
je 0x45f8cd
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x45f8c2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45f8c9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45f8d8
mov eax, SysReAllocString
cmp ebx, eax
ja 0x45f8d8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45f974
push eax
push dword [ebp - 8]
push esi
call fcn.0046d0eb
pop ecx
push eax
call fcn.0046d9c6
add esp, 0xc
test eax, eax
je 0x45f9b3
cmp eax, 0xffffffff
je 0x45f9a1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45f938
push esi
call fcn.0046d2e5
cmp eax, 0xffffffff
pop ecx
je 0x45f9a5
cmp dword [ebp - 4], 0
je 0x45f974
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x45f857
mov eax, dword [ebp + 0x14]
jmp 0x45f7f2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x45f95f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0045f1b0
add esp, 0xc
call fcn.00469247
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45f7e8
cmp dword [ebp + 0xc], 0xffffffff
je 0x45f98a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0045f1b0
add esp, 0xc
call fcn.00469247
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45f7e8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x45f7f2
or dword [esi + 0xc], 0x10
jmp 0x45f9a5
Function at 0x474b80
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a1038]
je 0x474b9b
inc edi
cmp edi, 0x17
jb 0x474b8c
cmp edi, 0x17
jae 0x474d1b
push ebp
push 3
call fcn.00481fae
cmp eax, 1
pop ecx
je 0x474ce7
push 3
call fcn.00481fae
test eax, eax
pop ecx
jne 0x474bcf
cmp dword [0x4a0330], 1
je 0x474ce7
cmp ebx, 0xfc
je 0x474d1a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x7bb900
push ebp
call fcn.004637be
add esp, 0xc
test eax, eax
je 0x474c05
push esi
push esi
push esi
push esi
push esi
call fcn.0045f03b
add esp, 0x14
push 0x104
mov esi, 0x7bb919
push esi
push 0
mov byte [0x7bba1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x474c49
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004637be
add esp, 0xc
test eax, eax
je 0x474c49
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045f03b
add esp, 0x14
push esi
call fcn.004602c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x474c8e
push esi
call fcn.004602c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x7bbc14
push 0x494164
sub ecx, eax
push ecx
push eax
call fcn.004609ab
add esp, 0x14
test eax, eax
je 0x474c8e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045f03b
add esp, 0x14
jmp 0x474c90
xor esi, esi
push 0x494160
push ebx
push ebp
call fcn.0046764e
add esp, 0xc
test eax, eax
je 0x474cb0
push esi
push esi
push esi
push esi
push esi
call fcn.0045f03b
add esp, 0x14
push dword [edi*8 + 0x4a103c]
push ebx
push ebp
call fcn.0046764e
add esp, 0xc
test eax, eax
je 0x474cd2
push esi
push esi
push esi
push esi
push esi
call fcn.0045f03b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00481df1
add esp, 0xc
jmp 0x474d1a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x474d1a
cmp ebp, 0xffffffff
je 0x474d1a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a103c]
push dword [esi]
call fcn.004602c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x481df1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046c249
xor ebx, ebx
cmp dword [0x7bbe3c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x481ec7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x481fa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x495650
push edi
call esi
cmp eax, ebx
je 0x481fa7
push eax
call fcn.0046c1db
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x7bbe3c], eax
call esi
push eax
call fcn.0046c1db
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x7bbe40], eax
call esi
push eax
call fcn.0046c1db
mov dword [0x7bbe44], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046ca2e
test eax, eax
pop ecx
pop ecx
je 0x481e95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045f03b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x481ec7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046c1db
cmp eax, ebx
pop ecx
mov dword [0x7bbe4c], eax
je 0x481ec7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046c1db
pop ecx
mov dword [0x7bbe48], eax
mov eax, dword [0x7bbe48]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x481f4c
cmp dword [0x7bbe4c], ecx
je 0x481f4c
push eax
call fcn.0046c252
push dword [0x7bbe4c]
mov esi, eax
call fcn.0046c252
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x481f4c
cmp edi, ebx
je 0x481f4c
call esi
cmp eax, ebx
je 0x481f19
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x481f19
test byte [ebp - 0x18], 1
jne 0x481f4c
lea eax, [ebp - 0x10]
push eax
call fcn.0046cadd
test eax, eax
pop ecx
je 0x481f34
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045f03b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x481f43
or dword [ebp + 0x10], 0x200000
jmp 0x481f87
or dword [ebp + 0x10], 0x40000
jmp 0x481f87
mov eax, dword [0x7bbe40]
cmp eax, dword [ebp - 8]
je 0x481f87
push eax
call fcn.0046c252
cmp eax, ebx
pop ecx
je 0x481f87
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x481f87
mov eax, dword [0x7bbe44]
cmp eax, dword [ebp - 8]
je 0x481f87
push eax
call fcn.0046c252
cmp eax, ebx
pop ecx
je 0x481f87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x7bbe3c]
call fcn.0046c252
cmp eax, ebx
pop ecx
je 0x481fa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x481fa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7d3008], 0x8088405
inc edx
mov dword [ebx + 0x7d3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7bba17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7bba1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x7bc40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x7d5270]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x7d5270]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x7d40e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7bc416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40942f
pop dword [ebp - 0x14]
mov eax, 0xfe4d5d07
add eax, 0x1f33728
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xdd00a67d
sub dword [ebp - 0x24], 0x8eae6132
mov dword [ebp - 0x20], 0x7e872f3
add dword [ebp - 0x20], 0x2a4ad952
mov dword [ebp - 0x1c], 0x2c2a3804
sub dword [ebp - 0x1c], 0xdfddf3d6
mov dword [ebp - 0x18], 0x966fc1c7
sub dword [ebp - 0x18], 0x966fc1c7
lea eax, [ebp - 0x24]
push eax
mov eax, 0xe67de398
sub eax, 0xe63d1344
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x957d30c
add dword [ebp - 0x24], 0x6b1a964a
mov dword [ebp - 0x20], 0x1afebfb3
sub dword [ebp - 0x20], 0xd9925e3e
mov dword [ebp - 0x1c], 0x81f51a0b
add dword [ebp - 0x1c], 0xe17a5261
mov dword [ebp - 0x18], 0xab32b327
add dword [ebp - 0x18], 0x54cd4cd9
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a262
push 0
call eax
mov ecx, 0x4a71
xor edx, edx
add edx, eax
mov edi, 0x28039e70
add edi, 0xd83e1190
add edi, dword [ebp - 0x14]
mov esi, 0x51c17e6b
xor dword [ebp - 8], 0xc2bdb64f
mov ebx, dword [edi]
xor dword [ebp - 8], 0xa9cc2cf
sub ebx, esi
add dword [ebp - 4], edx
mov dword [edx], ebx
xor dword [ebp - 8], 0xb184d52f
add edx, 4
add edi, 0xaaedfda2
sub edi, 0xaaedfd9e
loop 0x409542
add eax, 0x11c97
mov ebx, eax
add eax, 5
mov ecx, 0x1d25acab
sub ecx, 0x1ce5acab
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401b50
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
sub esp, 0x61c
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push esi
push esi
push 0x2a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401c46
mov ecx, 0x104
lea eax, [esp + 4]
cmp word [eax], si
je 0x401b97
add eax, 2
sub ecx, 1
jne 0x401b88
jmp 0x401bb5
test ecx, ecx
je 0x401bb5
mov eax, 0x104
sub eax, ecx
je 0x401bb5
cmp word [esp + eax*2 + 2], 0x5c
lea eax, [esp + eax*2 + 2]
jne 0x401bb5
xor ecx, ecx
mov word [eax], cx
push ebx
push edi
lea edx, [esp + 0xc]
push edx
push str._sSMADAVSmadEngine.dll
mov ecx, 0x104
lea ebx, [esp + 0x21c]
call fcn.00401090
lea eax, [esp + 0x14]
push eax
push str._sSMADAVSmadav.loov
mov ecx, 0x104
lea ebx, [esp + 0x42c]
call fcn.00401090
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea ecx, [esp + 0x214]
push ecx
call esi
mov edx, ebx
push edx
mov edi, eax
call esi
cmp edi, 0xffffffff
pop edi
pop ebx
jne 0x401c2b
cmp eax, 0xffffffff
jne 0x401c2b
xor eax, eax
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004021fc
add esp, 0x61c
ret
mov eax, 1
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004021fc
add esp, 0x61c
ret
mov ecx, dword [esp + 0x61c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004021fc
add esp, 0x61c
ret

Function at 0x401c60
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 0x401c90
lea ecx, [edx + 0x7ffff82e]
test ecx, ecx
je 0x401cb0
movzx ecx, word [esi + eax]
test cx, cx
je 0x401cb0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401c90
jmp 0x401cb4
test edx, edx
jne 0x401cb7
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 0x401d07
cmp dword [0x411e4c], 2
jne 0x401d01
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.004021fc
add esp, 0x268
ret
Function at 0x401d30
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x3ea0
call fcn.0040ab60
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x3e9c], eax
push ebx
mov ebx, dword [esp + 0x3ea8]
push ebp
push esi
mov esi, dword [esp + 0x3eb8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x411d78
push 0x67
push ebx
call edi
push 0x64
push 0x411cb0
push 0x6d
push ebx
call edi
mov eax, ebx
call fcn.00401f60
test esi, esi
je 0x401d9e
mov ecx, 0x1f40
mov eax, esi
lea ebx, [ebx]
cmp word [eax], 0
je 0x401e01
add eax, 2
sub ecx, 1
jne 0x401d90
xor edi, edi
mov eax, 0x41
mov word [esp + 0x2c], ax
xor eax, eax
mov ecx, 0x2d
mov edx, 0x42
xor ebp, ebp
mov word [esp + 0x2e], cx
mov word [esp + 0x30], dx
mov word [esp + 0x32], ax
cmp edi, 3
jbe 0x401e99
cmp word [esi + edi*2 - 2], 0x22
jne 0x401e0e
cmp word [esi], 0x22
jne 0x401e0e
lea ecx, [edi - 2]
push ecx
add esi, 2
push esi
lea edx, [esp + 0x34]
push 0x1f40
push edx
call fcn.00402775
add esp, 0x10
xor eax, eax
mov word [esp + edi*2 + 0x28], ax
jmp 0x401e4c
test ecx, ecx
je 0x401d9e
mov edi, 0x1f40
sub edi, ecx
jmp 0x401da0
lea eax, [esp + 0x2c]
mov ecx, eax
mov edx, 0x1f40
sub esi, ecx
jmp 0x401e20
lea ecx, [edx + 0x7fffe0be]
test ecx, ecx
je 0x401e40
movzx ecx, word [esi + eax]
test cx, cx
je 0x401e40
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401e20
jmp 0x401e44
test edx, edx
jne 0x401e47
sub eax, 2
xor edx, edx
mov word [eax], dx
mov ecx, 0x1f40
lea eax, [esp + 0x2c]
cmp word [eax], bp
je 0x401e64
add eax, 2
sub ecx, 1
jne 0x401e55
jmp 0x401e99
test ecx, ecx
je 0x401e99
mov eax, 0x1f40
sub eax, ecx
cmp eax, 3
jbe 0x401e99
cmp word [esp + 0x2e], 0x70
jne 0x401e99
cmp word [esp + 0x30], 0x64
jne 0x401e99
cmp word [esp + 0x32], 0x61
jne 0x401e99
cmp word [esp + 0x34], 0x74
jne 0x401e99
mov ebp, 1
call fcn.00401b50
test eax, eax
jne 0x401ec1
push eax
push eax
push str._delete__tn__SmadavSecondaryUpdater___f
push str.schtasks.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
jmp 0x401f38
test ebp, ebp
je 0x401eba
mov eax, ebx
call fcn.00401ff0
test eax, eax
je 0x401f38
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x401f34
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x401f23
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x401f00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3eac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004021fc
add esp, 0x3ea0
ret 0x10