joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, edi
mov dword [esp + 8], edi
jbe 0x401694
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [0x465650]
lea eax, [esi + 1]
xor edx, edx
div ebp
mov esi, edx
xor edx, edx
mov bl, byte [esi + ecx]
mov eax, ebx
and eax, 0xff
add eax, edi
div ebp
mov edi, edx
mov al, byte [edi + ecx]
mov byte [esi + ecx], al
mov edx, dword [0x465660]
sub edx, dword [0x46566c]
imul edx, dword [0x465664]
add edx, edi
mov byte [edx + ecx], bl
mov eax, dword [0x465668]
mov ebp, dword [0x46566c]
mov ebx, 1
lea edx, [eax + 1]
mov eax, dword [0x465664]
imul edx, eax
sub ebx, edx
mov edx, 2
imul ebx, ebp
add ebx, 3
imul ebx, eax
mov eax, dword [0x465660]
sub edx, eax
imul edx, eax
mov eax, dword [0x46565c]
add ebx, edx
dec eax
mov edx, dword [0x46565c]
imul eax, dword [0x465668]
add ebx, eax
xor eax, eax
sub ebx, edx
xor edx, edx
mov dl, byte [esi + ecx]
add ebx, edi
mov al, byte [ebx + ecx]
add eax, edx
xor edx, edx
div dword [0x465650]
lea eax, [ebp - 1]
imul eax, dword [0x465660]
add ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x1c]
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x10]
mov bl, byte [eax + ebp]
xor bl, dl
mov edx, dword [esp + 0x20]
mov byte [eax + ebp], bl
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x4015bd
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4017c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [0x465664]
mov edx, dword [0x46566c]
mov ecx, dword [0x465660]
push ebx
push ebp
push esi
mov esi, eax
mov ebx, dword [0x465668]
sub esi, edx
mov edx, dword [0x46565c]
inc esi
mov ebp, eax
imul esi, ecx
imul ebp, ecx
sub esi, ebx
push edi
mov edi, dword [esp + 0x18]
sub esi, edx
add esi, eax
mov dword [esp + 0x10], 0
shl esi, 6
mov esi, dword [esi + edi + 0x3c]
mov esi, dword [esi + edi + 0x78]
add esi, edi
inc ebp
imul ebp, edx
inc ebp
imul ebp, ebx
mov ebx, eax
sub ebx, edx
mov edx, dword [0x46566c]
add ebp, edx
lea edx, [ecx + 2]
imul edx, dword [0x46565c]
sub ebx, ecx
lea ebx, [ebp + ebx*2]
add edx, ebx
mov ebx, dword [esi + 0x20]
add edx, ecx
lea edx, [ebx + edx*4]
mov ebx, dword [0x465668]
sub eax, ebx
mov ebx, dword [0x46566c]
sub eax, ecx
add edx, edi
lea ebp, [ebx - 1]
inc eax
imul ebp, dword [0x465668]
imul eax, dword [0x46565c]
add ebp, ebx
lea ebx, [ecx - 1]
imul ebx, ecx
add ebp, eax
mov eax, dword [esi + 0x1c]
add ebx, ebp
mov ebp, dword [esi + 0x24]
add ebp, edi
lea ebx, [eax + ebx*4]
mov eax, dword [esi + 0x18]
add ebx, edi
test eax, eax
jbe 0x4018b8
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add eax, edi
push eax
call fcn.00401450
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x4018c0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jb 0x401884
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [ebp + eax*2]
mov eax, dword [ebx + edx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40f0c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4669e0
cmp edx, dword [eax]
je 0x40f0e7
add eax, 8
inc ecx
cmp eax, 0x466a70
jl 0x40f0d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4669e0]
jne 0x40f215
mov eax, dword [0x46972c]
cmp eax, 1
je 0x40f1ef
test eax, eax
jne 0x40f118
cmp dword [0x4664f4], 1
je 0x40f1ef
cmp edx, 0xfc
je 0x40f215
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f14f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f2b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f3a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f192
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f3a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422fac
push edi
call fcn.004109b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f2b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f2c0
lea eax, [ebp - 0xa0]
push 0x422f8c
push eax
call fcn.0040f2c0
push dword [esi + 0x4669e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f2c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410927
add esp, 0x2c
pop edi
jmp 0x40f215
lea eax, [ebp + 8]
lea esi, [esi + 0x4669e4]
push 0
push eax
push dword [esi]
call fcn.0040f3a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4174af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4174f1
call fcn.0041bdc2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4174f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4174e8
xor eax, eax
jmp 0x4174f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004174ff
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c2b5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41c2e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c301
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c21b
jmp 0x41c301
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c301
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c21b
test edi, edi
mov eax, edi
jne 0x41c2eb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010f6
Capabilities:
Create process on windows
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x6c], esi
call fcn.0040c280
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.GetProductInfo
push str.Kernel32
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x401162
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call section..text
pop ecx
pop ecx
cmp eax, esi
jne 0x401184
cmp dword [ebp - 0x14], 0x2000
ja 0x40119d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401189
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x24]
call edi
mov eax, esi
jmp 0x401184
push str.CreateProcessWithTokenW
push str.Advapi32
call edi
push eax
call ebx
mov edi, eax
cmp edi, esi
jne 0x4011b7
xor eax, eax
inc eax
jmp 0x401184
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x10]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x40122d
lea ecx, [ebp - 8]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40122d
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push esi
push 0xf01ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40122d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x40122d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp dword [ebp - 8], esi
je 0x401245
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x40124f
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x14], esi
je 0x401259
push dword [ebp - 0x14]
call edi
mov esi, ebx
jmp 0x40118f
Function at 0x401260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401296
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x401296
call edi
jmp 0x4012b4
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x4012bb
xor al, al
jmp 0x40137f
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
push esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], 0x10000000
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp dword [ebp - 0x10], ebx
je 0x401356
push ebx
push dword [ebp - 0x10]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret
Function at 0x401463
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x404c
call fcn.00411790
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push 0x38
mov dword [ebp - 0x4010], eax
lea eax, [ebp - 0x4048]
push str.1.2.5
push eax
mov edi, ecx
mov dword [ebp - 0x400c], esi
xor ebx, ebx
mov dword [ebp - 0x4028], esi
mov dword [ebp - 0x4024], esi
mov dword [ebp - 0x4020], esi
mov dword [ebp - 0x4044], esi
mov dword [ebp - 0x4048], esi
call fcn.00405860
add esp, 0xc
cmp eax, esi
jne 0x401570
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4044], eax
mov dword [ebp - 0x4048], edi
lea eax, [ebp - 0x4008]
mov dword [ebp - 0x403c], eax
lea eax, [ebp - 0x4048]
push esi
mov edi, 0x4000
push eax
mov dword [ebp - 0x4038], edi
call fcn.00405980
sub edi, dword [ebp - 0x4038]
pop ecx
add ebx, edi
pop ecx
cmp dword [ebp - 0x400c], esi
je 0x401523
push ebx
push dword [ebp - 0x400c]
call fcn.004048e1
pop ecx
pop ecx
jmp 0x401532
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x400c], eax
push edi
lea eax, [ebp - 0x4008]
push eax
mov eax, ebx
sub eax, edi
add eax, dword [ebp - 0x400c]
push eax
call fcn.00409720
add esp, 0xc
cmp dword [ebp - 0x4038], esi
je 0x4014dd
lea eax, [ebp - 0x4048]
push eax
call fcn.00406ee0
mov eax, dword [ebp - 0x4010]
pop ecx
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x400c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret

Function at 0x401585
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x401615
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x401615
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, esi
call fcn.00401463
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40160e
push ebx
push ebx
push 4
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4015f9
push dword [ebp - 8]
push esi
push eax
call fcn.004049df
add esp, 0xc
jmp 0x4015fb
xor eax, eax
push 0x8000
push ebx
cmp eax, ebx
push esi
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40161d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ebx
mov esi, 0x103
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x401683
cmp byte [ebp + 0xc], 0
je 0x40166d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40164d
mov dword [ebp - 4], 0x41d320
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 4]
sub esi, edi
push str._s_u.exe
lea eax, [ebx + edi*2]
push esi
push eax
call fcn.004083fd
add esp, 0x14
jmp 0x40167f
sub esi, edi
push esi
push dword [ebp + 8]
lea eax, [ebx + edi*2]
push eax
call fcn.004084cd
add esp, 0xc
mov al, 1
jmp 0x401685
xor al, al
pop edi
pop esi
leave
ret

Function at 0x401c81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [eax + 0x2252]
xor esi, esi
cmp word [ecx], si
jne 0x401caa
mov ecx, 0x41d320
lea edx, [eax + 0x204a]
cmp word [edx], si
jne 0x401cba
mov edx, 0x41d458
push ecx
push edx
push dword [eax + 0x2c84]
lea ecx, [eax + 0x2a72]
push dword [eax + 0x2c80]
push ecx
lea ecx, [eax + 0x286a]
push ecx
add eax, 0x2662
push eax
push str.http:__yourfiledownloader.com_uninstall__s_s__sa_sd_lldq_st_s
lea eax, [ebp - 0x80c]
push 0x3ff
push eax
call fcn.004083fd
add esp, 0x28
push 1
push esi
push esi
lea eax, [ebp - 0x80c]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004083ee
leave
ret 4

Function at 0x401d1b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [eax + 0x2c90]
xor esi, esi
cmp word [ecx], si
jne 0x401d44
mov ecx, 0x41d320
lea edx, [eax + 0x2252]
cmp word [edx], si
jne 0x401d54
mov edx, 0x41d458
push ecx
push edx
push dword [eax + 0x2c84]
lea ecx, [eax + 0x2a72]
push dword [eax + 0x2c80]
push dword [eax + 0x2e98]
push ecx
lea ecx, [eax + 0x286a]
push ecx
add eax, 0x2662
push eax
push str.http:__yourfiledownloader.com_welcome__s_s__sa_sb_dd_lldt_sn_s
lea eax, [ebp - 0x80c]
push 0x3ff
push eax
call fcn.004083fd
add esp, 0x2c
push 1
push esi
push esi
lea eax, [ebp - 0x80c]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004083ee
leave
ret 4
Function at 0x40254a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0x41d584
lea eax, [esi + 0x1e42]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004083fd
add esp, 0x14
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x20c]
je 0x40259f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x4025b3
push 0
push edi
add esi, 0x1622
push esi
push edi
push eax
call fcn.0040138e
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004083ee
leave
ret 4

Function at 0x4025c2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x1a32]
push 0
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40260c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40260c
xor al, al
jmp 0x402687
push ebx
push str.Uninstall
push edi
mov ebx, str._s_s.lnk
push ebx
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004083fd
lea eax, [esi + 0x1c3a]
push 1
push eax
add esi, 0x1622
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040138e
add esp, 0x28
test al, al
je 0x402686
push 0x41d584
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call fcn.004083fd
push 0
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push esi
push dword [ebp - 0x210]
push eax
call fcn.0040138e
add esp, 0x28
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004083ee
leave
ret 4
Function at 0x402697
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x2a72]
push eax
push str.advert_id
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
lea eax, [esi + 0x1622]
push eax
push str.install_dir
mov dword [ebp - 0x218], eax
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
lea eax, [esi + 0x286a]
push eax
push str.version
mov dword [ebp - 0x214], eax
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
push dword [esi + 0x2c84]
mov ebx, str.last_update_date
push dword [esi + 0x2c80]
push ebx
call fcn.00403f7f
add esp, 0xc
test al, al
je 0x4028c7
lea eax, [esi + 0x2662]
push eax
push str.soft_id
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
lea eax, [ebp - 0x228]
push eax
mov edi, str.install_date
push edi
call fcn.00403f07
pop ecx
pop ecx
test al, al
jne 0x40277e
push dword [esi + 0x2c84]
push dword [esi + 0x2c80]
push edi
call fcn.00403f7f
add esp, 0xc
test al, al
je 0x4028c7
push dword [esi + 0x2c84]
push dword [esi + 0x2c80]
push ebx
call fcn.00403f7f
add esp, 0xc
test al, al
je 0x4028c7
lea edi, [esi + 0x204a]
cmp word [edi], 0
je 0x4027cb
push edi
call fcn.00403fbc
pop ecx
test al, al
je 0x4028c7
push edi
push str.start_keyword_duplicate
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
lea eax, [esi + 0x2252]
cmp word [eax], 0
je 0x4027ec
push eax
push str.track
call fcn.00403f40
pop ecx
pop ecx
test al, al
je 0x4028c7
lea eax, [esi + 0x1c3a]
push eax
push 0x41df88
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.004083fd
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x10
push 0x26
push str.YourFileDownloader
push 1
push str.DisplayName
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallYourFileDownloader
push ebx
mov edi, SysReAllocString
push edi
call esi
push 0x208
lea eax, [ebp - 0x210]
push eax
push 1
push str.UninstallString
push ebx
push edi
call esi
push 0x208
push dword [ebp - 0x21c]
push 1
push str.DisplayIcon
push ebx
push edi
call esi
push 0x3e
push str.http:__yourfiledownloader.com_
push 1
push str.Publisher
push ebx
push edi
call esi
push 0x208
push dword [ebp - 0x218]
push 1
push str.InstallLocation
push ebx
push edi
call esi
push 0x3e
push str.http:__yourfiledownloader.com_
push 1
push str.URLInfoAbout
push ebx
push edi
call esi
push 0x46
push str.http:__yourfiledownloader.com_help
push 1
push str.HelpLink
push ebx
push edi
call esi
push 0x208
push dword [ebp - 0x214]
push 1
push str.DisplayVersion
push ebx
push edi
call esi
mov al, 1
jmp 0x4028c9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret
Function at 0x4028d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x5fc]
imul eax, eax, 0x130
add eax, edi
xor dl, dl
push ebx
push esi
cmp byte [eax + 0x638], dl
jne 0x402924
cmp byte [eax + 0x650], dl
jne 0x402924
cmp byte [eax + 0x668], dl
jne 0x402924
mov dword [edi + 0x2e98], 3
jmp 0x402a32
mov ecx, 0x41d320
mov dword [ebp - 0x41c], ecx
cmp byte [eax + 0x638], dl
jne 0x402941
mov dword [ebp - 0x41c], str._notb
mov ebx, str._mds
cmp byte [eax + 0x650], dl
jne 0x402950
mov ebx, ecx
mov esi, str._mhp__mnt
cmp byte [eax + 0x668], dl
jne 0x40295f
mov esi, ecx
cmp byte [eax + 0x680], dl
je 0x40296c
mov ecx, str._rvt
push dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push str.112573
push ebx
push esi
push ecx
push str._s__s__s__babTrack_affID_S___s__afltbabsst__instlrefsst__srcExtss__s
push 0x103
push eax
call fcn.004083fd
push 0x104
lea esi, [edi + 0x2c90]
push str.babylon_en
push esi
call fcn.004084cd
add esp, 0x2c
push 1
push str.toolbar
lea ebx, [ebp - 0x210]
call fcn.0040161d
pop ecx
pop ecx
test al, al
je 0x402a32
push str.DATA
push str.TOOLBAR
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4029e9
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401585
pop ecx
pop ecx
jmp 0x4029eb
xor al, al
cmp al, bl
je 0x402a32
push 1
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movzx eax, word [esi]
cmp ax, bx
jne 0x402a2a
mov eax, dword [edi + 0x5fc]
imul eax, eax, 0x130
mov eax, dword [eax + edi + 0x60c]
movzx eax, word [eax]
push eax
mov eax, edi
call fcn.00401b71
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret