joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444c42
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x44665c
Capabilities:
Encode data using xor

Disassembly:
shr dword [esp + 8], 2
xor edx, edx
cmp dword [esp + 8], edx
jle 0x446699
push esi
push edi
mov eax, dword [esp + 0xc]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
rol eax, 0x10
mov esi, eax
shr esi, 8
mov edi, eax
shl edi, 8
xor esi, edi
and esi, 0xff00ff
shl eax, 8
xor esi, eax
inc edx
cmp edx, dword [esp + 0x10]
mov dword [ecx], esi
jl 0x44666b
pop edi
pop esi
ret

Function at 0x448d42
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49c858], 0
push esi
jne 0x448cb0
call fcn.00448bc4
test eax, eax
je 0x448cf3
mov eax, dword [0x49c858]
cmp eax, 1
jne 0x448cd1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x448cf3
pop esi
ret
push eax
call dword [0x49c860]
test eax, eax
jne 0x448d3b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x448cf7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49c858]
call dword [0x49c860]
mov edi, eax
test edi, edi
je 0x448d1c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x448d38
mov edi, esi
add esi, 0xff0
push edi
push dword [0x49c858]
call dword [0x49c85c]
add edi, 0x10
cmp edi, esi
jb 0x448d24
mov eax, edi
pop edi
pop esi
ret
jmp 0x448c9d

Function at 0x449c1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a010]
jne 0x449c24
repz ret
jmp fcn.00452e0b
Function at 0x46c42d
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.00457ebb
and dword [ebp - 4], 0
cmp dword [0x49d3ac], 0
mov ebx, eax
jne 0x46c4de
push 0x4869f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46c58f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4869e4
push edi
call esi
test eax, eax
je 0x46c58f
push eax
call fcn.00457e49
mov dword [esp], 0x4869d4
push edi
mov dword [0x49d3ac], eax
call esi
push eax
call fcn.00457e49
mov dword [esp], 0x4869c0
push edi
mov dword [0x49d3b0], eax
call esi
push eax
call fcn.00457e49
mov dword [esp], 0x4869a4
push edi
mov dword [0x49d3b4], eax
call esi
push eax
call fcn.00457e49
pop ecx
mov dword [0x49d3bc], eax
test eax, eax
je 0x46c4de
push 0x48698c
push edi
call esi
push eax
call fcn.00457e49
pop ecx
mov dword [0x49d3b8], eax
mov eax, dword [0x49d3b8]
cmp eax, ebx
je 0x46c536
cmp dword [0x49d3bc], ebx
je 0x46c536
push eax
call fcn.00457ec4
push dword [0x49d3bc]
mov esi, eax
call fcn.00457ec4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46c536
test edi, edi
je 0x46c536
call esi
test eax, eax
je 0x46c52d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46c52d
test byte [ebp - 0xc], 1
jne 0x46c536
or dword [ebp + 0x10], 0x200000
jmp 0x46c56f
mov eax, dword [0x49d3b0]
cmp eax, ebx
je 0x46c56f
push eax
call fcn.00457ec4
pop ecx
test eax, eax
je 0x46c56f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46c56f
mov eax, dword [0x49d3b4]
cmp eax, ebx
je 0x46c56f
push eax
call fcn.00457ec4
pop ecx
test eax, eax
je 0x46c56f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d3ac]
call fcn.00457ec4
pop ecx
test eax, eax
je 0x46c58f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46c591
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x476a60
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0044b4f0
mov eax, dword [0x49a010]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x476bcb
cmp dword [esp + 0x2c20], edi
je 0x476bcb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push 0x4877ac
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.00476440
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x476ba4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00449ba0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x476b97
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00449ba0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00478630
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00476200
test eax, eax
jne 0x476b97
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x476bae
inc ebx
cmp ebx, 0x10
jl 0x476ab0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00449c1a
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00449c1a
add esp, 0x2c14
ret
Function at 0x476eb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x49a010]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4770b1
cmp dword [esp + 0x2f8], 0
je 0x4770b1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00449ba0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x486ad0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x477078
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x47706b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x477039
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x48783c
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47702e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00449ba0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00476da0
add esp, 0x14
test eax, eax
je 0x47702e
cmp byte [esp + 0x24], 0
je 0x476ff2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x47702e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x477021
mov cl, byte [esi + eax]
test cl, cl
je 0x477021
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x477006
jmp 0x477025
test edx, edx
jne 0x477026
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x476f50
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4770b1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00476200
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00449c1a
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00449c1a
add esp, 0x2ec
ret
Function at 0x477320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x49a010]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x47749d
cmp ebp, 0x20
jb 0x47749d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00449ba0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x486b40
push 0x486b28
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x47749d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4773b0
sub eax, edx
cmp eax, 0x40
jne 0x47749d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4773ee
mov cl, byte [esi + eax]
test cl, cl
je 0x4773ee
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4773d6
jmp 0x4773f2
test edx, edx
jne 0x4773f3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x47742b
mov cl, byte [edx + eax]
test cl, cl
je 0x47742b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x477410
jmp 0x47742f
test esi, esi
jne 0x477430
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00449ba0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004764d0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x47749d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00476200
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00449c1a
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00449c1a
add esp, 0x50c
ret

Function at 0x4774c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x49a010]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.00449ba0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.004764d0
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x47752b
mov cl, byte [esi + eax]
test cl, cl
je 0x47752b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x477510
jmp 0x47752f
test edx, edx
jne 0x477530
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.00476350
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477556
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x486b40
push 0x486b28
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00449c1a
add esp, 0x188
ret
Function at 0x401009
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0041b5c0
push 0xff
lea eax, [ebp - 0x213]
push ebx
push eax
mov byte [ebp - 0x214], bl
call fcn.0041b5c0
lea eax, [ebp - 0x10]
push eax
call fcn.0041b10f
lea eax, [ebp - 0x10]
push eax
call fcn.0041b0e8
add esp, 0x20
cmp eax, ebx
je 0x401085
push eax
call fcn.0041b3db
pop ecx
cmp eax, ebx
je 0x401085
push eax
push 0x434678
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.0041b160
add esp, 0x10
mov edi, 0x104
push edi
lea eax, [ebp - 0x114]
push eax
push 0x434680
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x114]
jne 0x4010b7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4010bf
push 0x434688
push eax
call esi
push 0x43468c
lea eax, [ebp - 0x114]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x401143
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
push eax
lea eax, [ebp - 0x214]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401148
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0041b5c0
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x401285
cmp eax, edi
ja 0x401285
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0041b5c0
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x4346d4
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041b160
add esp, 0x20
cmp eax, ebx
jg 0x401215
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b5c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str._snprintf_failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0041b160
mov byte [ebp + eax - 0xa0c], bl
jmp 0x4012c4
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x401281
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b5c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.LoadLibrary__s__failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0041b160
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call fcn.00401009
add esp, 0x18
mov eax, edi
jmp 0x4012d5
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.0041b5c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xa0c]
push str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
push esi
push eax
call fcn.0041b160
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call fcn.00401009
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40139d
push 0x104
push esi
call fcn.0041b6fd
pop ecx
pop ecx
test eax, eax
je 0x40139d
push 0x7ff
lea eax, [ebp - 0x7ff]
push 0
push eax
mov byte [ebp - 0x800], 0
call fcn.0041b5c0
add esp, 0xc
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x800]
je 0x401356
push dword [ebp + 0xc]
push esi
push str.Safe_CreateProcess__s___s_
push 0xffffffffffffffff
push 0x800
push eax
call fcn.0041b6dc
add esp, 0x18
jmp 0x40136c
push esi
push str.Safe_CreateProcess__s_
push 0xffffffffffffffff
push 0x800
push eax
call fcn.0041b6dc
add esp, 0x14
lea eax, [ebp - 0x800]
push eax
call fcn.00401009
pop ecx
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x4013b2
push str.Safe_CreateProcess_error:_lpApplicationName_is_NULL_or_empty.
call fcn.00401009
pop ecx
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret
Function at 0x40205f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov esi, 0x80004005
mov byte [ebp - 0x434], bl
call fcn.0041b5c0
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.0041801b
add esp, 0x10
test eax, eax
je 0x402133
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00417e98
mov eax, dword [ebp - 4]
imul eax, eax, 0xa
add esp, 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 0x434]
push eax
push 0x400
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402133
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x434b24
lea eax, [ebp - 0x434]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402133
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xa]
cmp ecx, dword [ebp - 8]
jg 0x402131
jne 0x402133
movzx ecx, word [eax + 8]
cmp ecx, dword [ebp - 0xc]
jg 0x402131
jne 0x402133
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 4]
jl 0x402133
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40381c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b5c0
push 0xff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b5c0
mov esi, dword [ebp + 8]
add esp, 0x18
cmp dword [esi + 0x187c], ebx
jne 0x403871
cmp dword [esi + 0x58], ebx
je 0x403871
xor ecx, ecx
jmp 0x403874
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x4038b5
mov eax, dword [esi + 0x1878]
cmp eax, ebx
je 0x403887
cmp ecx, ebx
je 0x4038b5
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x4038ab
push 1
call fcn.0040e083
pop ecx
test eax, eax
je 0x4038b5
mov eax, 0x80070204
jmp 0x4039aa
call fcn.004177e8
jmp 0x4039a8
cmp dword [esi + 0x187c], ebx
je 0x4038cb
push 0x80
lea eax, [esi + 8]
push eax
call fcn.004094d3
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040332d
mov edi, eax
cmp edi, ebx
jl 0x403994
push str.Download_Status:_Download_Complete
call fcn.0041904c
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x403929
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x4039a8
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x4039a2
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4470b0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4470b0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0040da5e
call fcn.00419d01
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x4039a2
push 0xffffffffffffffc3
call fcn.0040da5e
mov dword [esp], str.Download_Status:_Download_Failed
call fcn.0041904c
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409b0e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4470ac]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.004178d8
mov dword [esi + 0x3c], eax
call fcn.0040d498
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x409a35
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x409b95
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.00409486
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40a412
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x40a425
push 0xd
pop eax
jmp 0x40a44d
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40a428
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40a916
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
xor esi, esi
push dword [edi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040a38f
mov ebx, eax
cmp ebx, esi
je 0x40a95c
lea ecx, [ebp - 0x10]
call fcn.0040a30c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40a977
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a916
cmp eax, esi
jne 0x40a9ac
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], 0x100
call ebx
test eax, eax
je 0x40a964
lea ecx, [ebp - 0x10]
call fcn.0040a30c
push dword [ebp + 8]
mov ecx, edi
call fcn.0040a29c
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040a30c
mov eax, esi
jmp 0x40a955