joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413f6f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, 0x1fffe
call fcn.004051b6
mov esi, eax
xor edi, edi
mov dword [ebp - 0x10], esi
cmp esi, edi
je 0x41410b
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffff
push esi
push edi
push edi
push edi
call ebx
cmp eax, edi
jbe 0x414105
lea ecx, [eax + 1]
mov eax, esi
call fcn.00406096
test al, al
je 0x414105
mov eax, 0xc08
call fcn.004051b6
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x414105
lea eax, [edi + 0x5fa]
push 0x65
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
lea esi, [ebp - 0x6c]
pop eax
call fcn.0040f34a
push 0x66
lea esi, [ebp - 0x2c]
pop eax
call fcn.0040f34a
push 0x67
lea esi, [ebp - 0x1c]
pop eax
call fcn.0040f34a
push 0x68
lea esi, [ebp - 0x54]
pop eax
call fcn.0040f34a
push 0x69
lea esi, [ebp - 0x40]
pop eax
call fcn.0040f34a
jmp 0x414021
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4140e5
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4140e5
push dword [ebp + 8]
mov esi, 0xff
push esi
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4140e5
push dword [ebp + 8]
add edi, 0x1fe
push esi
push edi
push 0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4140e5
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push esi
lea esi, [edi + 0x1fe]
push esi
push 0
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4140e5
push esi
call fcn.00413e04
test eax, eax
jle 0x4140e5
push 0x56
lea esi, [ebp - 0x8c]
pop eax
call fcn.0040f34a
push dword [ebp - 8]
lea eax, [edi + 0x1fe]
push eax
push edi
mov edi, dword [ebp - 0xc]
mov eax, esi
push eax
mov edx, 0x307
call fcn.00405ed9
add esp, 0x10
test eax, eax
jle 0x4140e5
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.004055da
test al, al
je 0x4140e5
inc dword [esi + 4]
mov eax, dword [ebp - 4]
push 1
call fcn.004060d2
mov dword [ebp - 4], eax
test eax, eax
jne 0x41401e
push dword [ebp - 8]
call fcn.004051e6
mov esi, dword [ebp - 0x10]
push esi
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41415b
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.00405299
push 0x6a
lea esi, [ebp - 0xf8]
pop eax
call fcn.0040f34a
push 0x6b
lea esi, [ebp - 0x68]
pop eax
call fcn.0040f34a
mov ebx, 0x104
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0xf8]
push eax
lea edi, [ebp - 0x300]
mov eax, 0x80000001
call fcn.0040930a
cmp eax, 0xffffffff
je 0x4141e4
test eax, eax
je 0x4141e4
push ebx
lea eax, [ebp - 0x508]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00413f6f
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x414309
push 0x6d
lea esi, [ebp - 0x3c]
pop eax
call fcn.0040f34a
push 0x6e
lea esi, [ebp - 0x94]
pop eax
call fcn.0040f34a
push 0x6f
lea esi, [ebp - 0x50]
pop eax
call fcn.0040f34a
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0x24], 0x24
mov dword [ebp - 0x20], 0x1a
mov dword [ebp - 0x1c], 0x26
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + edi*4 - 0x24]
lea eax, [ebp - 0x300]
push eax
xor eax, eax
push eax
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41429d
cmp esi, 0x24
jne 0x41427d
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00413f2d
xor eax, eax
mov word [ebp - 0x2fa], ax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
push 0x414112
push 2
push 3
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x300]
call fcn.0040a91b
inc edi
cmp edi, 4
jb 0x414243
cmp dword [ebp - 4], 0
jne 0x41430d
push 0x6a
lea esi, [ebp - 0xb0]
pop eax
call fcn.0040f34a
push 0x6c
lea esi, [ebp - 0x3c]
pop eax
call fcn.0040f34a
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0xb0]
push eax
lea edi, [ebp - 0x300]
mov eax, 0x80000001
call fcn.0040930a
cmp eax, 0xffffffff
je 0x414309
test eax, eax
je 0x414309
push ebx
lea eax, [ebp - 0x508]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00413f2d
cmp dword [ebp - 4], 0
jbe 0x414321
mov edi, dword [ebp - 8]
push 0xcb
push 0x70
pop eax
call fcn.0041293e
jmp 0x414329
push dword [ebp - 8]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41458b
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00405299
push 0x77
lea esi, [ebp - 0x74]
pop eax
call fcn.0040f34a
push 0x78
lea esi, [ebp - 0x28]
pop eax
call fcn.0040f34a
mov esi, 0x104
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x280]
mov eax, 0x80000001
call fcn.0040930a
cmp eax, 0xffffffff
je 0x414603
cmp eax, ebx
jbe 0x414603
push esi
lea eax, [ebp - 0x488]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.0041432e
cmp dword [ebp - 4], ebx
jne 0x41466e
push 0x79
lea esi, [ebp - 0x40]
pop eax
call fcn.0040f34a
mov eax, esi
mov dword [ebp - 0x18], 0x1a
mov dword [ebp - 0x14], 0x26
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x280]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x414665
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x414366
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x280]
call fcn.0040a91b
inc esi
cmp esi, 3
jb 0x41462f
cmp dword [ebp - 4], ebx
jbe 0x414682
mov edi, dword [ebp - 8]
push 0xcb
push 0x7a
pop eax
call fcn.0041293e
jmp 0x41468a
push dword [ebp - 8]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41492a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
push edi
lea esi, [ebp - 0x30]
mov eax, 0x81
call fcn.0040f34a
mov eax, esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.00405299
xor edi, edi
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4149a2
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x41468f
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x238]
call fcn.0040a91b
inc edi
cmp edi, 3
jb 0x41496c
cmp dword [ebp - 4], esi
jbe 0x4149c1
mov edi, dword [ebp - 8]
push 0xcb
mov eax, 0x82
call fcn.0041293e
jmp 0x4149c9
push dword [ebp - 8]
call fcn.004051e6
pop edi
pop esi
leave
ret

Function at 0x4149cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
push edi
lea eax, [ebp - 0x100]
push eax
call fcn.00405222
mov cl, byte [ebp - 0xff]
xor cl, byte [ebp - 0x100]
mov dl, byte [ebp - 0xfe]
xor eax, eax
or cl, 0x50
mov byte [ebp - 2], al
cmp dl, al
je 0x414a1f
push esi
lea esi, [ebp - 0xfe]
xor dl, cl
movzx edx, dl
mov word [edi + eax*2], dx
inc eax
inc esi
mov dl, byte [esi]
test dl, dl
jne 0x414a0d
pop esi
xor ecx, ecx
mov word [edi + eax*2], cx
leave
ret
Function at 0x414ca0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov ecx, edi
call fcn.00405d35
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x414d52
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.00405a23
test al, al
je 0x414d52
xor eax, eax
test esi, esi
jle 0x414ce9
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x414cdc
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x414d02
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x414d08
lea eax, [ebp - 0xff]
movzx ecx, byte [eax]
lea ecx, [eax + ecx + 1]
movzx eax, bl
lea edx, [eax + ecx]
lea esi, [ebp + esi - 0x100]
cmp edx, esi
ja 0x414d52
cmp eax, dword [ebp + 8]
jl 0x414d52
cmp byte [ebp - 0x100], 0xff
jne 0x414d34
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x414d4a
movzx esi, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x414d3d
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x414d54
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x414d5a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00405299
mov eax, 0xc1c
call fcn.004051b6
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x414f7c
add eax, 0x3fc
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x100]
mov eax, 0x8a
mov dword [ebp - 0x2c], 0x80000001
mov dword [ebp - 0x28], 0x80000002
call fcn.0040f34a
lea esi, [ebp - 0x54]
mov eax, 0x8b
call fcn.0040f34a
lea esi, [ebp - 0x80]
mov eax, 0x8c
call fcn.0040f34a
lea esi, [ebp - 0x40]
mov eax, 0x8d
call fcn.0040f34a
lea esi, [ebp - 0x68]
mov eax, 0x8e
call fcn.0040f34a
mov dword [ebp - 8], edi
mov ebx, 0xff
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414f67
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x308]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x414f5e
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.0040930a
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x414f30
test eax, eax
je 0x414f30
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.0040930a
mov esi, eax
cmp esi, 0xffffffff
je 0x414f30
test esi, esi
je 0x414f30
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.0040930a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x414f30
test eax, eax
je 0x414f30
add esi, dword [ebp - 0x24]
push esi
call fcn.00414ca0
test eax, eax
jle 0x414f30
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.004093c0
mov edi, eax
cmp edi, 1
jb 0x414ee6
cmp edi, 0xffff
jbe 0x414ee9
push 0x15
pop edi
push 0x55
lea esi, [ebp - 0xa8]
pop eax
call fcn.0040f34a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.00405ed9
add esp, 0x14
test eax, eax
jle 0x414f30
push edi
lea ecx, [ebp - 0x1c]
call fcn.004055da
test al, al
je 0x414f30
inc dword [ebp - 0x18]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x414e39
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jb 0x414deb
push dword [ebp - 0xc]
call fcn.004051e6
cmp dword [ebp - 0x18], edi
jbe 0x414f95
mov edi, dword [ebp - 0x1c]
push 0xcb
mov eax, 0x8f
call fcn.0041293e
jmp 0x414f9d
push dword [ebp - 0x1c]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41524b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
lea esi, [ebp - 0x38]
mov eax, 0x95
call fcn.0040f34a
mov eax, esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.00405299
xor edi, edi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4152c3
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x414fbc
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x240]
call fcn.0040a91b
inc edi
cmp edi, 3
jb 0x41528d
cmp dword [ebp - 4], esi
jbe 0x4152e2
mov edi, dword [ebp - 8]
push 0xcb
mov eax, 0x96
call fcn.0041293e
jmp 0x4152ea
push dword [ebp - 8]
call fcn.004051e6
pop edi
pop esi
leave
ret
Function at 0x4152ee
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405299
mov eax, 0xc1c
call fcn.004051b6
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x41550d
add eax, 0x3fc
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0xb0]
mov eax, 0x97
call fcn.0040f34a
lea esi, [ebp - 0x3c]
mov eax, 0x98
call fcn.0040f34a
lea esi, [ebp - 0x48]
mov eax, 0x99
call fcn.0040f34a
lea esi, [ebp - 0x30]
mov eax, 0x9a
call fcn.0040f34a
lea esi, [ebp - 0x24]
mov eax, 0x9b
call fcn.0040f34a
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0xb0]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4154e4
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4154db
mov ebx, 0xff
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040930a
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4154ad
test eax, eax
je 0x4154ad
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.0040930a
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4154ad
test eax, eax
je 0x4154ad
mov edi, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040930a
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4154ad
test eax, eax
je 0x4154ad
mov ecx, edi
call fcn.00405d35
test eax, eax
jle 0x4154ad
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.004093c0
mov edi, eax
cmp edi, 1
jb 0x415466
cmp edi, 0xffff
jbe 0x415469
push 0x15
pop edi
push 0x55
lea esi, [ebp - 0x70]
pop eax
call fcn.0040f34a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.00405ed9
add esp, 0x14
test eax, eax
jle 0x4154ad
push edi
lea ecx, [ebp - 0x18]
call fcn.004055da
test al, al
je 0x4154ad
inc dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4153ba
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004051e6
cmp dword [ebp - 0x14], edi
jbe 0x415505
mov edi, dword [ebp - 0x18]
push 0xcb
mov eax, 0x9c
call fcn.0041293e
jmp 0x41550d
push dword [ebp - 0x18]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415c5a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00405299
lea esi, [ebp - 0x128]
mov eax, 0xa3
call fcn.0040f34a
lea esi, [ebp - 0xb8]
mov eax, 0xa5
call fcn.0040f34a
lea esi, [ebp - 0x54]
mov eax, 0xa4
call fcn.0040f34a
lea esi, [ebp - 0x2c]
mov eax, 0xa6
call fcn.0040f34a
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, 0x80000001
call fcn.0040930a
cmp eax, 0xffffffff
je 0x415d19
test eax, eax
je 0x415d19
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x538]
call fcn.004159c1
add esi, 4
dec dword [ebp - 4]
jne 0x415cd8
cmp dword [ebp - 8], 0
jbe 0x415d3b
mov edi, dword [ebp - 0xc]
push 0xcb
mov eax, 0xa7
call fcn.0041293e
jmp 0x415d43
push dword [ebp - 0xc]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4162a1
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
push edi
push 0x26
lea esi, [esp + 0x24]
pop eax
call fcn.0040f34a
mov eax, esi
mov dword [esp + 8], eax
xor edi, edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push 0x21
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41633b
push 0x27
lea esi, [esp + 0x1c]
pop eax
call fcn.0040f34a
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x416218
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.0040a91b
lea eax, [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.0040aa77
test al, al
je 0x41633b
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.0040a91b
test bl, 2
je 0x416352
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x416401
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.004051b6
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x416436
push esi
call fcn.004051e6
xor al, al
jmp 0x416512
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x4163b8
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], esi
mov byte [esp + 0x1b], 1
call fcn.00405299
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
push esi
push 8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4164a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4164dc
lea eax, [ebp + 0xc]
push eax
call fcn.00408953
jmp 0x416471
cmp dword [esp + 0x30], esi
je 0x4164e1
mov ecx, dword [edi]
add ecx, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
call fcn.00405171
test al, al
je 0x4164dc
push dword [esp + 0x30]
mov eax, esi
mov eax, dword [eax]
push dword [esp + 0x14]
add eax, dword [edi]
push eax
call fcn.00405222
mov eax, dword [esp + 0x30]
add dword [edi], eax
xor esi, esi
jmp 0x416471
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x14]
inc eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push eax
push dword [ebp + 8]
call ebx
push dword [esp + 0x10]
call fcn.004051e6
cmp byte [esp + 0xf], 0
jne 0x41650e
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.004051e6
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4178f4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x180]
sub esp, 0x2c8
push esi
push edi
test eax, eax
je 0x41791d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4179bc
lea esi, [ebx + 0x17c]
call fcn.00406bf5
push 1
lea edi, [ebp - 0x2c8]
call fcn.0041cc9c
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x2937498d
call fcn.0041c946
push 0x44
pop edx
push edx
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.00405299
push dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x404a5c
lea eax, [ebp - 0x2c8]
push eax
call fcn.00406aad
test eax, eax
jne 0x41798e
xor al, al
jmp 0x4179be
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00405222
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4179bc
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.00406bf5
jmp 0x41798a
mov al, 1
pop edi
pop esi
leave
ret