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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x410040]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
push 0x5c
mov esi, ebx
mov dword [ebp - 4], eax
call fcn.00403c31
mov edx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
sub ecx, edx
mov eax, ebx
call fcn.004028d3
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
lea esi, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call fcn.00401000
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4085d6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x408642
inc edi
push 0x5c
mov ecx, edi
mov esi, ebx
call fcn.00403c31
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
call fcn.004014d6
xor esi, esi
cmp dword [ebp + 0xc], esi
jl 0x408642
lea eax, [ebp - 0x108]
push eax
lea esi, [ebp + 8]
call fcn.00402c48
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
sub ecx, edi
mov edx, edi
mov eax, ebx
call fcn.004028d3
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.0040124c
lea eax, [ebx - 0x10]
call fcn.0040124c
mov eax, dword [ebp - 0x10c]
add eax, 0xfffffff0
call fcn.0040124c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00406b52
leave
ret 0xc

Function at 0x408661
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x410040]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [ebp + 0x90], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp + 0x9c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], 0x104
call ebx
test eax, eax
jne 0x4086f3
push esi
lea eax, [ebp - 0x74]
push eax
lea esi, [ebp - 0x80]
call fcn.00402c48
mov eax, esi
mov esi, dword [ebp + 0xa0]
push eax
call fcn.00402a98
mov eax, dword [ebp - 0x80]
inc dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040124c
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x104
push dword [ebp + 0x9c]
call ebx
test eax, eax
je 0x4086a8
pop esi
mov ecx, dword [ebp + 0x90]
pop edi
pop ebx
call fcn.00406b52
add ebp, 0x94
leave
ret 8
Function at 0x409ce5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call fcn.004033c4
mov esi, eax
call fcn.00401000
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], str.open
call fcn.004033c4
add eax, 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x409d56
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004033c4
mov esi, eax
add esi, 4
call fcn.00401000
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x409d73
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret 8

Function at 0x409e67
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea esi, [eax + 4]
mov ecx, dword [esi]
add eax, 0x20
mov dword [eax], ecx
lea ecx, [esp + 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x409e1d
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
xor eax, eax
call fcn.00402445
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40a11e
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x410040]
mov dword [ebp + 0x198], eax
push edi
lea eax, [ebp - 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x80], eax
je 0x40a254
lea eax, [ebp + 0x94]
push eax
push edi
push 0x40e71c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40a254
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebp + 0x94]
push eax
call ebx
lea eax, [ebp + 0x94]
push eax
lea esi, [ebp - 0x74]
call fcn.00402c48
mov esi, str..url
mov ecx, esi
call fcn.00401084
push eax
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.00402881
mov esi, dword [ebp - 0x74]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x40a1d0
lea eax, [esi - 0x10]
jmp 0x40a24d
mov eax, dword [0x4100e8]
mov ecx, 0x4100e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1a4]
push dword [eax]
lea eax, [ebp - 0x7c]
push str._InternetShortcut__n_rURL_s_n_r
push eax
call fcn.004014f0
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi - 0xc]
add esp, 0xc
push edi
lea ecx, [ebp - 0x80]
push ecx
push eax
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x78]
mov dword [ebp + 0x1a4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1a4], edi
je 0x40a23c
push 5
push edi
push edi
push dword [ebp - 0x74]
push 0x40e748
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [ebp - 0x74]
push edi
call ebx
lea eax, [esi - 0x10]
call fcn.0040124c
lea eax, [edi - 0x10]
call fcn.0040124c
pop esi
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
call fcn.00406b52
add ebp, 0x19c
leave
ret 4

Function at 0x40a766
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
push ecx
mov eax, esp
xor ebx, ebx
mov edx, esi
mov dword [eax], ebx
call fcn.00402de8
mov eax, dword [esp + 0xc]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [esi], 0x40eb58
mov byte [esi + 0x4c], bl
call fcn.00402d9b
push str.RTF_FILE
push 0xd2
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x40a7ca
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40a7ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x40a7ca
push edi
push ebx
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x7c], eax
pop edi
mov dword [esi + 0x80], ebx
mov eax, esi
pop ebx
ret 4
Function at 0x40a879
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, 0x800
push edi
mov esi, eax
call fcn.004068bd
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x40a8a5
push eax
call fcn.004068c2
pop ecx
push 3
pop eax
jmp 0x40a99f
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xc]
sub eax, edi
cmp eax, 0xfffff800
mov dword [ebp - 0xc], eax
jge 0x40a8c2
add eax, 0xfffffff6
push 2
push 0
push eax
push dword [esi + 0x50]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40a990
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a990
cmp dword [ebp - 4], edi
jne 0x40a990
xor eax, eax
mov ecx, dword [ebp - 8]
xor edi, edi
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [edi + str.ADVINSTSFX]
jne 0x40a916
inc edi
inc ecx
cmp edi, 0xa
jl 0x40a905
cmp edi, 0xa
je 0x40a92a
inc eax
cmp eax, 0x7f6
jb 0x40a8fe
mov edi, 0x800
jmp 0x40a8b0
mov ecx, dword [ebp - 0x10]
lea edi, [eax + ecx - 0x18]
test edi, edi
je 0x40a923
push 0
push 0
push edi
push dword [esi + 0x50]
call ebx
cmp eax, 0xffffffff
je 0x40a990
push 0
lea eax, [ebp - 4]
push eax
push 0x24
push esi
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a990
cmp dword [ebp - 4], 0
je 0x40a990
xor eax, eax
movzx ecx, byte [esi + eax + 0x18]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x40a982
inc eax
cmp eax, 0xa
jl 0x40a962
cmp dword [esi + 4], 0x64
je 0x40a986
push 6
jmp 0x40a992
push 5
jmp 0x40a992
sub edi, dword [esi + 8]
mov dword [esi + 0x68], edi
xor esi, esi
jmp 0x40a993
push 2
pop esi
push dword [ebp - 8]
call fcn.004068c2
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40aa63
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x28]
push esi
push edi
sub eax, 0x10
call fcn.00401264
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402881
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea esi, [ebp - 4]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
call fcn.00401000
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x34], 0x40e630
cmp dword [eax - 0xc], 0
je 0x40aad5
call fcn.00401000
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 8], 0
je 0x40aafd
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add ebx, 0x60
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040124c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x40ab11
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x44]
push ebx
mov dword [ebp - 0x10], eax
call fcn.00402b90
xor ebx, ebx
cmp byte [eax], bl
je 0x40ab33
xor eax, eax
jmp 0x40ac5a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
sub eax, 0x10
call fcn.00401264
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x2c]
call fcn.00405efc
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402881
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea esi, [ebp - 0xc]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x40ab8f
push 2
pop ebx
jmp 0x40ac4c
mov eax, dword [ebp + 8]
push ebx
lea esi, [edi + 0x38]
push ebx
mov ecx, esi
call fcn.00402b2c
mov eax, dword [eax + 8]
add eax, dword [edi + 0x68]
push eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40abbe
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ab87
push 0x10000
call fcn.004068bd
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.00402b2c
mov esi, dword [eax + 4]
mov eax, 0x10000
cmp esi, eax
ja 0x40abe4
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ac23
cmp dword [ebp - 4], ebx
je 0x40ac23
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ac23
cmp dword [ebp - 4], ebx
je 0x40ac23
sub esi, dword [ebp - 4]
cmp esi, ebx
jg 0x40abd9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
call fcn.00402b90
push dword [ebp - 8]
mov byte [eax], 1
call fcn.004068c2
pop ecx
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040124c
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x40ac5f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [edi + 0x14], 1
jne 0x40accd
push ebx
xor ebx, ebx
cmp dword [edi + 0x30], ebx
jle 0x40accc
push esi
mov ecx, ebx
lea eax, [edi + 0x44]
call fcn.00402b90
cmp byte [eax], 0
je 0x40acc5
mov eax, dword [edi + 0x28]
sub eax, 0x10
call fcn.00401264
add eax, 0x10
mov dword [ebp - 4], eax
lea ecx, [edi + 0x2c]
mov eax, ebx
call fcn.00405efc
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402881
lea esi, [ebp - 4]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040124c
inc ebx
cmp ebx, dword [edi + 0x30]
jl 0x40ac72
pop esi
pop ebx
leave
ret
Function at 0x40ae95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [edi + 0x68]
add eax, dword [edi + 0xc]
push ebx
xor ebx, ebx
push ebx
push ebx
push eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40aebd
push 2
pop eax
jmp 0x40af88
cmp dword [edi], ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x40af7c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x50]
call esi
test eax, eax
je 0x40af79
cmp dword [ebp - 8], ebx
je 0x40af79
cmp dword [ebp - 4], ebx
je 0x40af04
push dword [ebp - 4]
call fcn.004068c2
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401017
test al, al
je 0x40af75
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [edi + 0x50]
call esi
test eax, eax
je 0x40af79
cmp dword [ebp - 8], ebx
je 0x40af79
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], bl
lea eax, [ebp - 0x20]
push eax
lea ebx, [edi + 0x38]
call fcn.00402adf
push dword [ebp - 4]
lea esi, [ebp - 0x10]
call fcn.00402c48
push eax
lea esi, [edi + 0x2c]
call fcn.00402a98
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040124c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [edi]
jb 0x40aecc
jmp 0x40af7c
push 3
jmp 0x40af7b
push 2
pop ebx
push dword [ebp - 4]
call fcn.004068c2
pop ecx
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40b314
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x410040]
push ebx
push esi
push 0x40e62c
lea esi, [ebp - 0x80]
mov dword [ebp + 0x88], eax
mov ebx, ecx
call fcn.00402c48
mov eax, esi
push eax
mov ecx, ebx
call fcn.0040b132
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.0040124c
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40b36b
push 4
pop eax
jmp 0x40b38f
cmp byte [ebp + eax - 0x7d], 0x5c
je 0x40b378
mov byte [ebp + eax - 0x7c], 0x5c
inc eax
mov byte [ebp + eax - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.004014d6
call fcn.0040b1a1
mov ecx, dword [ebp + 0x88]
pop esi
pop ebx
call fcn.00406b52
add ebp, 0x8c
leave
ret
Function at 0x40b7ab
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.AdvancedInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40b7ec
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40b7df
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x10], 4
push ebx
jmp 0x40b90f
mov eax, dword [esi]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x40b8ee
mov eax, dword [esi + 4]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401264
add eax, 0x10
cmp byte [esi + 0x24], 0
mov dword [ebp - 4], eax
je 0x40b81e
cmp dword [ebp - 8], 1
jle 0x40b830
mov ecx, dword [esi]
mov eax, edi
call fcn.00401788
push eax
lea eax, [ebp - 4]
call fcn.0040b74e
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40b845
push ebx
push edi
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi]
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.00401788
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0040b3fa
mov ecx, dword [esi]
mov ebx, eax
sub eax, 0x401
mov dword [ebp - 0xc], ebx
je 0x40b88d
sub eax, 0xb
mov eax, edi
je 0x40b87f
call fcn.00401788
mov dword [eax + 0xc], 1
jmp 0x40b89d
call fcn.00401788
mov dword [eax + 0xc], 1
jmp 0x40b8c1
mov eax, edi
mov ebx, 0x404
call fcn.00401788
and dword [eax + 0xc], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40b8af
push 0
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 0xc], 0x408
je 0x40b8da
cmp dword [ebp - 0xc], 0x405
je 0x40b8da
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040124c
inc edi
xor ebx, ebx
cmp edi, dword [ebp - 8]
jl 0x40b7ff
jmp 0x40b8ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
mov dword [esi + 0x10], 2
call fcn.0040124c
xor ebx, ebx
cmp edi, dword [ebp - 8]
pop edi
jne 0x40b90c
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40b909
push ebx
push ebx
push 0x40b
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x10], ebx
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop ebx
leave
ret

Function at 0x40b928
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 8]
push edi
xor edi, edi
push edi
push 1
push 1
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 8]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x14]
push eax
push edi
push esi
push 0x40b91a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x18], eax
setne al
pop edi
ret 4
Function at 0x40c070
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x410040]
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov dword [ebp - 0x5c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c0ad
xor al, al
jmp 0x40c0df
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c0d4
push dword [esi]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp + 0x74]
call fcn.00406b52
add ebp, 0x78
leave
ret

Function at 0x40c0ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40c16c
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401017
test al, al
jne 0x40c123
push 8
pop esi
jmp 0x40c178
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c16c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40e52c
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c175
cmp dword [ebp - 0x14], 0
je 0x40c175
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x40c161
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x40c175
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
jmp 0x40c175
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.004068c2
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x40c240
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x410040]
push esi
push edi
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push 0x40e574
mov edi, 0xc8
push 0x80000001
mov esi, ecx
mov dword [ebp - 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c282
xor al, al
jmp 0x40c2c7
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c2a3
cmp dword [ebp - 0x5c], edi
jbe 0x40c2bc
mov edi, dword [esi]
push dword [edi - 0xc]
call fcn.00401000
push eax
push 1
push 0
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
call fcn.00406b52
add ebp, 0x78
leave
ret
Function at 0x40c2d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [edi]
push ebx
xor ebx, ebx
push esi
sub eax, 0x10
mov dword [ebp - 4], ebx
call fcn.00401264
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 8]
call fcn.00401000
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40c3db
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401017
test al, al
je 0x40c3c4
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.00401000
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c3c4
mov eax, dword [0x4100e8]
mov ecx, 0x4100e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c38c
cmp dword [ebp - 0x14], ebx
je 0x40c38c
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0xc]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.004014f0
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0xc]
call fcn.00401000
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c3b7
cmp dword [ebp - 0x1c], ebx
je 0x40c3b7
push dword [ebp - 0x20]
push edi
call fcn.004014d6
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040124c
mov bl, 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040124c
push dword [ebp - 4]
call fcn.004068c2
mov al, bl
jmp 0x40c3ee
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040124c
push ebx
call fcn.004068c2
xor al, al
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40c9c2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x410040]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x40e704
mov esi, ecx
call fcn.00401000
mov esi, dword [ebp + 0xc]
push eax
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x103
je 0x40ca58
push ebx
push edi
push str.NOT_FOUND
lea esi, [ebp + 0xc]
call fcn.00402c48
mov edi, eax
lea eax, [ebp - 0x108]
push eax
lea esi, [ebp + 8]
call fcn.00402c48
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, eax
mov eax, dword [ebp + 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040124c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040124c
pop edi
test bl, bl
pop ebx
je 0x40ca5c
xor al, al
jmp 0x40ca6d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
call fcn.004014d6
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
call fcn.00406b52
leave
ret 0xc