joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bb4
test esi, esi
je 0x401bb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b90
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401da0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ec8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e2e
cmp eax, 4
jne 0x401e50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e3e
cmp edx, 4
je 0x401e3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401da0

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x103a960c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a9616
pushal
call 0x103a961c
pop ebp
sub ebp, 0x10
sub ebp, 0x3a960c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a9640
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a9649
mov eax, 0x3a960c
add eax, ebp
add eax, 0x63
mov ecx, 0x60d
mov edx, 0x2295b885
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a9660
jmp 0x103a9673
push cs
dec eax
push cs
or al, 0xb9
test dword [ebp + 0x7d440485], eax
test dword [ebp + 0x3d488685], eax
lea eax, [ebp - 0x52c07a7b]
test dword [ebp - 0x79988d7b], eax
dec ebp
push cs
add al, 0x89
test dword [ebp - 0x2abf797b], eax
or cl, ah
mov eax, dword [0xa1810c79]
in eax, dx
xchg ebp, eax
mov eax, dword gs:[ebp - 0x51cf8013]
test dword [ecx + ebp*4 + 0x24b0eda1], eax
hlt
Function at 0x402f2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x45d832
call fcn.0044153f
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.00401669
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.00401669
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00402160
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 0x402fa2
lea eax, [ebp - 0x28]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402dbc
push edi
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00402e86
lea ecx, [ebp - 0xd0]
call fcn.00402b7e
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00402c70
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.004018d9
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018d9
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040127f
call fcn.004415c2
ret

Function at 0x403cc8
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x45d915
call fcn.004414d6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403601
push str..
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403c91
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00403601
call fcn.0040378c
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127f
call fcn.004415ae
ret
Function at 0x403ef2
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x45d9b8
call fcn.004414d6
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.00403eb4
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.00440e20
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.00440e20
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.00440e20
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.00403d41
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00403879
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00403879
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00403879
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00403879
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127f
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.004414c7
add ebp, 0x31c
leave
ret

Function at 0x40485f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x47e150]
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 0x404897
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4048ab
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 0x4048b3
xor eax, eax
jmp 0x4048e6
test edi, edi
je 0x4048d8
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 0x4048af
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.004414c7
add ebp, 0x68
leave
ret
Function at 0x407549
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x45de1b
call fcn.00441509
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 0x4075ca
call fcn.0041f689
push eax
lea ecx, [ebp - 0x14]
call fcn.004138d7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403c91
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._ProgramFiles_
call fcn.00403879
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040127f
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jl 0x407613
call fcn.0041f689
push eax
lea ecx, [ebp - 0x14]
call fcn.004138d7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403c91
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._AppData_
call fcn.00403879
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040127f
mov ecx, dword [ebp - 0x18]
mov edi, str._FFProfile_
push edi
call fcn.004033c5
cmp eax, 0xffffffff
jle 0x40773e
call fcn.0041f689
push eax
lea ecx, [ebp - 0x20]
call fcn.004138d7
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 3
call esi
test eax, eax
jl 0x407733
call fcn.0041f689
push eax
lea ecx, [ebp - 0x14]
call fcn.004138d7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00403c91
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14]
call fcn.00403c91
lea ecx, [ebp - 0x38]
call fcn.00422f44
push 0x46536c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.00403c2d
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00422fd9
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 5
call fcn.0040127f
cmp esi, ebx
je 0x407712
lea ecx, [ebp - 0x38]
call fcn.00422c48
mov esi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x4076bc
lea ecx, [ebp - 0x38]
call fcn.00422f09
cmp eax, ebx
jne 0x4076bc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00423213
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00403a5f
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.0040127f
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.00403879
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00422f6a
lea ecx, [esi - 0x10]
call fcn.0040127f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040127f
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.004414c7
add ebp, 0x108
leave
ret
Function at 0x4078ad
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x48
mov eax, 0x45deaf
call fcn.00441509
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.004035ed
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 0x4079d6
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00440e20
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 0x4079cd
push dword [ebp - 0x1c]
call fcn.0044318a
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 0x4079c4
cmp dword [ebp - 0x28], edi
jne 0x4079c4
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00403c91
push dword [ebp - 0x18]
call fcn.00441053
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.004414c7
add ebp, 0x104
leave
ret

Function at 0x408658
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47e150]
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.00440e20
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.00403d41
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004414c7
leave
ret
Function at 0x408814
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x45e15e
call fcn.004414d6
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.00403d41
push 0x94
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00440e20
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 0x4088a2
cmp dword [ebp + 8], 1
jne 0x408895
push str.WinXP
jmp 0x4088bf
cmp dword [ebp + 8], 2
jne 0x4088c6
push str.WinXP_64
jmp 0x4088bf
cmp dword [ebp + 4], 6
jne 0x4088c6
cmp dword [ebp + 8], edi
jne 0x4088b4
push str.WinVista
jmp 0x4088bf
cmp dword [ebp + 8], 1
jne 0x4088c6
push str.Win7
mov ecx, ebx
call fcn.00403bb1
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.004414c7
add ebp, 0x98
leave
ret
Function at 0x413461
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x45fbde
call fcn.004414d6
mov esi, ecx
call fcn.0041f689
push eax
lea ecx, [ebp - 0x10]
call fcn.004138d7
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x4134cf
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.004132cb
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.00413397
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403b64
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040127f
jmp 0x4134f2
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00413397
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403b64
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040127f
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 0x413535
mov dword [ebp - 0x18], eax
push 0x474bb4
lea eax, [ebp - 0x18]
push eax
call fcn.00441007
lea ecx, [esi - 0x10]
call fcn.0040127f
call fcn.004415ae
ret
Function at 0x413e35
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47e150]
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.00440e20
lea eax, [ebp - 0x80]
push eax
call fcn.00408658
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x4664a8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040127f
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00403d41
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004414c7
add ebp, 0x90
leave
ret

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

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x45ff6c
call fcn.004414d6
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 0
call fcn.00403d41
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 0x414f9d
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00440e20
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 0x414f34
mov byte [ebp - 0xd], 0
jmp 0x414f94
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
lea ecx, [ebp - 0x14]
call fcn.00403d41
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 0x414f89
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x466698
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414f80
cmp dword [ebp - 0x28], 1
je 0x414f80
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.0040127f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040127f
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.004414c7
add ebp, 0x104
leave
ret
Function at 0x41993f
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.00440e20
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 0x41def6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x47e150]
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 0x41df94
push 0x467b84
push 4
push eax
call fcn.00444b3f
push eax
call fcn.0040301c
add esp, 0x10
push ebx
push edi
call fcn.004447be
mov edi, dword [eax]
call fcn.004447be
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.00443652
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004447be
cmp dword [eax], ebx
je 0x41dfab
call fcn.004447be
push dword [eax]
call fcn.0041d8b9
pop ecx
jmp 0x41dfb2
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41df3c
jmp 0x41e039
call fcn.004447be
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x41e035
cmp dword [ebp - 0x11c], esi
jae 0x41e035
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.00440e20
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41e024
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41e024
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41e024
push ebx
push ebx
push esi
jmp 0x41e02d
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x41e037
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004414c7
leave
ret

Function at 0x421cb5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46142c
call fcn.004414d6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x421cda
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421d20
lea ecx, [ebp - 0x10]
call fcn.004035ed
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.0041d65c
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.0040127f
mov eax, esi
call fcn.004415ae
ret 8