joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
xor edx, edx
mov dx, word [ecx + 6]
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jge 0x401ae5
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x401a63
lea eax, [ebp - 0x20]
push 0x4030c8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x36
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x38]
test esi, esi
jle 0x401a51
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push 4
push 0x1000
mov edx, dword [ebx + 0xc]
push esi
add edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x401a57
ret
lea eax, [ebp - 0x24]
push 0x4030c8
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], 0x43
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x28], eax
mov eax, 0x401aa5
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualProtect
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov eax, dword [eax]
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edx]
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x401c9b
mov eax, dword [edi + 0x24]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401bf0
lea edx, [ebp - 0x24]
push 0x4030c8
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x4b
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 0x4000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x401bd4
ret
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov ecx, dword [edx*4 + 0x40f808]
mov dword [ebp - 0x1c], ecx
je 0x401c0f
mov eax, ecx
or ah, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x401c74
lea edx, [ebp - 0x28]
push 0x4030c8
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x10
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x401c50
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x401c65
ret
test al, 0x80
je 0x401c5f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, 0x401c65
ret
jbe 0x401c89
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [edi + 8]
push edx
push eax
push ecx
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edi
jmp 0x401b67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x45d0f1
call fcn.00440e5f
xor esi, esi
mov dword [ebp - 4], esi
push 0xf
pop edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.00401683
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.00401683
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040217a
push dword [ebp + 8]
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x14], 0x10
mov edi, eax
mov eax, dword [ebp - 0x28]
jae 0x402fbc
lea eax, [ebp - 0x28]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402dd6
push edi
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00402ea0
lea ecx, [ebp - 0xd0]
call fcn.00402b98
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00402c8a
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.004018f3
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018f3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040127b
call fcn.00440ee2
ret

Function at 0x403cd1
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x45d1b0
call fcn.00440df6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040360a
push str..
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403c9a
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040360a
call fcn.00403795
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127b
call fcn.00440ece
ret
Function at 0x403efb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x45d1ec
call fcn.00440df6
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00403ebd
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00440740
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00440740
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00440740
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00403d4a
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00403882
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00403882
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00403882
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00403882
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.00440de7
add ebp, 0x31c
leave
ret

Function at 0x404887
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
test eax, eax
jne 0x4048bf
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4048d3
push ebx
lea ebx, [ebp - 0x38]
push ebx
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
je 0x4048db
xor eax, eax
jmp 0x40490e
test edi, edi
je 0x404900
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4048d7
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
pop edi
call fcn.00440de7
add ebp, 0x68
leave
ret
Function at 0x4077d9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x45d683
call fcn.00440e29
mov eax, dword [ebp + 0x110]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
jl 0x40785a
call fcn.0041efbb
push eax
lea ecx, [ebp - 0x14]
call fcn.00413a19
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403c9a
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._ProgramFiles_
call fcn.00403882
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040127b
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jl 0x4078a3
call fcn.0041efbb
push eax
lea ecx, [ebp - 0x14]
call fcn.00413a19
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403c9a
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._AppData_
call fcn.00403882
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040127b
mov ecx, dword [ebp - 0x18]
mov edi, str._FFProfile_
push edi
call fcn.004033ce
cmp eax, 0xffffffff
jle 0x4079ce
call fcn.0041efbb
push eax
lea ecx, [ebp - 0x20]
call fcn.00413a19
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 3
call esi
test eax, eax
jl 0x4079c3
call fcn.0041efbb
push eax
lea ecx, [ebp - 0x14]
call fcn.00413a19
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00403c9a
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14]
call fcn.00403c9a
lea ecx, [ebp - 0x38]
call fcn.00422875
push 0x464374
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.00403c36
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.004228ed
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 5
call fcn.0040127b
cmp esi, ebx
je 0x4079a2
lea ecx, [ebp - 0x38]
call fcn.00422579
mov esi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x40794c
lea ecx, [ebp - 0x38]
call fcn.0042283a
cmp eax, ebx
jne 0x40794c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00422b27
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00403a68
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.0040127b
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.00403882
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0042289b
lea ecx, [esi - 0x10]
call fcn.0040127b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00440de7
add ebp, 0x108
leave
ret
Function at 0x407b3d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x48
mov eax, 0x45d717
call fcn.00440e29
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebp + 0x10c]
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x118]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ebx
call fcn.004035f6
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
xor edi, edi
inc edi
push esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x407c66
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00440740
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0xff
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x407c5d
push dword [ebp - 0x1c]
call fcn.00442aaa
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x407c54
cmp dword [ebp - 0x28], edi
jne 0x407c54
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00403c9a
push dword [ebp - 0x18]
call fcn.00440973
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00440de7
add ebp, 0x104
leave
ret

Function at 0x4088e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00440740
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00403d4a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00440de7
leave
ret
Function at 0x408aa4
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x45d9e4
call fcn.00440df6
mov ebx, dword [ebp + 0xa0]
xor edi, edi
push str.Unknown
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.00403d4a
push 0x94
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00440740
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x408b32
cmp dword [ebp + 8], 1
jne 0x408b25
push str.WinXP
jmp 0x408b4f
cmp dword [ebp + 8], 2
jne 0x408b56
push str.WinXP_64
jmp 0x408b4f
cmp dword [ebp + 4], 6
jne 0x408b56
cmp dword [ebp + 8], edi
jne 0x408b44
push str.WinVista
jmp 0x408b4f
cmp dword [ebp + 8], 1
jne 0x408b56
push str.Win7
mov ecx, ebx
call fcn.00403bba
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00440de7
add ebp, 0x98
leave
ret
Function at 0x4135cd
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x45f474
call fcn.00440df6
mov esi, ecx
call fcn.0041efbb
push eax
lea ecx, [ebp - 0x10]
call fcn.00413a19
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x41363b
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.00413437
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 8]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00413503
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403b6d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040127b
jmp 0x41365e
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00413503
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403b6d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040127b
mov eax, dword [esi + 8]
push ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp - 0x10]
push ebx
push esi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x4136a1
mov dword [ebp - 0x18], eax
push 0x473a7c
lea eax, [ebp - 0x18]
push eax
call fcn.00440927
lea ecx, [esi - 0x10]
call fcn.0040127b
call fcn.00440ece
ret
Function at 0x413f77
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0x98]
push 0x105
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00440740
lea eax, [ebp - 0x80]
push eax
call fcn.004088e8
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x4654a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040127b
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00403d4a
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00440de7
add ebp, 0x90
leave
ret

Function at 0x414faa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x45f825
call fcn.00440df6
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 0
call fcn.00403d4a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x1c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x4150d0
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00440740
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x20], 1
jbe 0x415067
mov byte [ebp - 0xd], 0
jmp 0x4150c7
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
lea ecx, [ebp - 0x14]
call fcn.00403d4a
lea eax, [ebp - 0x24]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
push edi
call esi
test eax, eax
jne 0x4150bc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x465690
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4150b3
cmp dword [ebp - 0x28], 1
je 0x4150b3
mov byte [ebp - 0xd], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040127b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040127b
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00440de7
add ebp, 0x104
leave
ret
Function at 0x41948e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00440740
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8
Function at 0x41d828
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x47d150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x41d8c6
push 0x466acc
push 4
push eax
call fcn.0044443f
push eax
call fcn.00403036
add esp, 0x10
push ebx
push edi
call fcn.004440be
mov edi, dword [eax]
call fcn.004440be
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00442f72
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004440be
cmp dword [eax], ebx
je 0x41d8dd
call fcn.004440be
push dword [eax]
call fcn.0041d1eb
pop ecx
jmp 0x41d8e4
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41d86e
jmp 0x41d96b
call fcn.004440be
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x41d967
cmp dword [ebp - 0x11c], esi
jae 0x41d967
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00440740
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41d956
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41d956
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41d956
push ebx
push ebx
push esi
jmp 0x41d95f
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x41d969
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00440de7
leave
ret

Function at 0x4215e6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x460c59
call fcn.00440df6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42160b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421651
lea ecx, [ebp - 0x10]
call fcn.004035f6
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041cf8e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040127b
mov eax, esi
call fcn.00440ece
ret 8