joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad7
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42b98f
call fcn.004160f0
lea eax, [ebp - 0x10]
push eax
call fcn.00403549
xor esi, esi
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004162c0
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.004162c0
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401308
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403b6b
cmp dword [0x43a328], esi
je 0x403b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43a31c
call fcn.0040143b
add esp, 0x10
mov ecx, 0x43a278
call fcn.00404ffa
jmp 0x403bbc
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403bac
cmp dword [ebp - 0x14], 0xbc2
jne 0x403bac
cmp dword [0x43a32c], esi
jne 0x403bac
mov ecx, 0x43a278
mov dword [0x43a32c], 1
call fcn.0041adfb
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401030
call fcn.0041618f
ret
Function at 0x403dd1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov edi, ecx
call fcn.004162c0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.004162c0
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401308
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403e5c
cmp dword [0x43a328], esi
je 0x403e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43a31c
call fcn.0040143b
add esp, 0x10
mov ecx, 0x43a278
call fcn.00404ffa
xor eax, eax
jmp 0x403ee0
xor edi, edi
cmp dword [0x43a330], esi
jne 0x403e76
push esi
push esi
push esi
push esi
push 0x42d870
call fcn.0040d9cc
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x403ea1
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x403e90
xor eax, eax
jmp 0x403e93
mov eax, dword [eax + 0x20]
push esi
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x403ece
cmp dword [ebp - 4], 0xbc2
jne 0x403ece
mov ecx, 0x43a278
mov dword [0x43a32c], edi
call fcn.0041adfb
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x403f80
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42c40a
call fcn.004160f0
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.004029a4
test eax, eax
je 0x403fb5
push 0
push str.ftp:__
mov ecx, ebx
call fcn.004029a4
test eax, eax
jne 0x404034
push 0x2f
mov ecx, ebx
call fcn.004028c8
mov ecx, dword [ebx]
inc eax
cmp eax, dword [ecx - 0xc]
mov dword [ebp - 0x10], eax
jne 0x403fd2
mov ecx, ebx
call fcn.00401201
jmp 0x404034
lea ecx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], 1
call fcn.004013ee
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401308
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ad
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403ee4
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004031e5
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401030
push edi
mov ecx, ebx
call fcn.004013ee
call fcn.0041618f
ret
Function at 0x40403a
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42ba2e
call fcn.004160f0
mov esi, ecx
call fcn.00406519
push eax
lea ecx, [ebp - 0x10]
call fcn.004011d2
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401308
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ad
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00403145
lea ecx, [esi + 4]
push edi
call fcn.00401308
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [esi + 4]
call fcn.004011ad
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401da8
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401da8
push 0x43a320
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43a278
mov byte [ebp - 4], 2
call fcn.00404626
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004013ee
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401030
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401030
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401030
mov ecx, esi
call fcn.00403f80
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x404180
cmp dword [esi + 0xc], ebx
jne 0x404148
push edi
mov ecx, 0x43a278
call fcn.0040486b
test eax, eax
jne 0x404148
mov ecx, edi
call fcn.00401201
jmp 0x404180
call fcn.00406519
push eax
lea ecx, [ebp - 0x14]
call fcn.004011d2
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.0040143b
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004031e5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401030
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401030
call fcn.0041618f
ret

Function at 0x404626
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012f4
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401308
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x42d7cc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011ad
inc edi
cmp esi, edi
jbe 0x40464e
mov eax, ebx
call fcn.0041618f
ret 0x10
Function at 0x40486b
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42bb48
call fcn.004160f0
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.00401746
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401308
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401030
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ad
lea ecx, [ebp - 0x28]
call fcn.0040feef
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x404923
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff7d
test eax, eax
je 0x404923
lea ecx, [ebp - 0x28]
call fcn.0040fc04
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.004101c0
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004013ee
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401030
lea ecx, [ebp - 0x28]
call fcn.0040fb34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ff15
xor eax, eax
inc eax
jmp 0x404931
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ff15
xor eax, eax
call fcn.0041618f
ret 4

Function at 0x404939
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x4049df
je 0x4049d8
sub eax, 0x404
cmp eax, 0x12
ja case.0x40497d.1029
jmp dword [eax*4 + 0x404a29]
mov eax, 0x8b
jmp 0x4049f2
mov eax, 0x8c
jmp 0x4049f2
mov eax, 0x8a
jmp 0x4049f2
mov eax, 0x85
jmp 0x4049f2
mov eax, 0x86
jmp 0x4049f2
mov eax, 0x88
jmp 0x4049f2
mov eax, 0x89
jmp 0x4049f2
mov eax, 0x8e
jmp 0x4049f2
mov eax, 0x8d
jmp 0x4049f2
mov eax, 0x8f
jmp 0x4049f2
mov eax, 0x90
jmp 0x4049f2
mov eax, 0x84
jmp 0x4049f2
mov eax, 0x91
jmp 0x4049f2
cmp eax, 0x804
je 0x4049ed
mov eax, 0x87
jmp 0x4049f2
mov eax, 0x83
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404a75
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404b1b
je 0x404b14
sub eax, 0x404
cmp eax, 0x12
ja case.0x404ab9.1029
jmp dword [eax*4 + 0x404b65]
mov eax, 0xc3
jmp 0x404b2e
mov eax, 0xc4
jmp 0x404b2e
mov eax, 0xc2
jmp 0x404b2e
mov eax, 0xca
jmp 0x404b2e
mov eax, 0xcb
jmp 0x404b2e
mov eax, 0xcd
jmp 0x404b2e
mov eax, 0xce
jmp 0x404b2e
mov eax, 0xc6
jmp 0x404b2e
mov eax, 0xc5
jmp 0x404b2e
mov eax, 0xc7
jmp 0x404b2e
mov eax, 0xc8
jmp 0x404b2e
mov eax, 0xc0
jmp 0x404b2e
mov eax, 0xc9
jmp 0x404b2e
cmp eax, 0x804
je 0x404b29
mov eax, 0xcc
jmp 0x404b2e
mov eax, 0xc1
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4

Function at 0x404bb1
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404c57
je 0x404c50
sub eax, 0x404
cmp eax, 0x12
ja case.0x404bf5.1029
jmp dword [eax*4 + 0x404ca1]
mov eax, 0xd2
jmp 0x404c6a
mov eax, 0xd3
jmp 0x404c6a
mov eax, 0xd1
jmp 0x404c6a
mov eax, 0xd9
jmp 0x404c6a
mov eax, 0xda
jmp 0x404c6a
mov eax, 0xdc
jmp 0x404c6a
mov eax, 0xdd
jmp 0x404c6a
mov eax, 0xd5
jmp 0x404c6a
mov eax, 0xd4
jmp 0x404c6a
mov eax, 0xd6
jmp 0x404c6a
mov eax, 0xd7
jmp 0x404c6a
mov eax, 0xd0
jmp 0x404c6a
mov eax, 0xd8
jmp 0x404c6a
cmp eax, 0x804
je 0x404c65
mov eax, 0xdb
jmp 0x404c6a
mov eax, 0xcf
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404ced
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404d93
je 0x404d8c
sub eax, 0x404
cmp eax, 0x12
ja case.0x404d31.1029
jmp dword [eax*4 + 0x404ddd]
mov eax, 0x140
jmp 0x404da6
mov eax, 0x141
jmp 0x404da6
mov eax, 0x13f
jmp 0x404da6
mov eax, 0x13a
jmp 0x404da6
mov eax, 0x13b
jmp 0x404da6
mov eax, 0x13d
jmp 0x404da6
mov eax, 0x13e
jmp 0x404da6
mov eax, 0x143
jmp 0x404da6
mov eax, 0x142
jmp 0x404da6
mov eax, 0x144
jmp 0x404da6
mov eax, 0x145
jmp 0x404da6
mov eax, 0x139
jmp 0x404da6
mov eax, 0x146
jmp 0x404da6
cmp eax, 0x804
je 0x404da1
mov eax, 0x13c
jmp 0x404da6
mov eax, 0x138
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4

Function at 0x404e29
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404ecf
je 0x404ec8
sub eax, 0x404
cmp eax, 0x12
ja case.0x404e6d.1029
jmp dword [eax*4 + 0x404f19]
mov eax, 0xe6
jmp 0x404ee2
mov eax, 0xe7
jmp 0x404ee2
mov eax, 0xe5
jmp 0x404ee2
mov eax, 0xe1
jmp 0x404ee2
mov eax, 0xe2
jmp 0x404ee2
mov eax, 0xe3
jmp 0x404ee2
mov eax, 0xe4
jmp 0x404ee2
mov eax, 0xe9
jmp 0x404ee2
mov eax, 0xe8
jmp 0x404ee2
mov eax, 0xea
jmp 0x404ee2
mov eax, 0xeb
jmp 0x404ee2
mov eax, 0xdf
jmp 0x404ee2
mov eax, 0xec
jmp 0x404ee2
cmp eax, 0x804
je 0x404edd
mov eax, 0xde
jmp 0x404ee2
mov eax, 0xe0
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404ffa
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42bb73
call fcn.004160f0
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x4050f7
mov eax, dword [esi + 0xcc]
cmp eax, dword [0x430860]
jne 0x4050ce
call fcn.00406519
push eax
lea ecx, [ebp - 0x10]
call fcn.004011d2
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401308
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405063
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401030
jmp 0x4050f7
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ad
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00403145
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00404f65
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xc8]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
mov dword [ebp - 0x24], vtable.CFileException.0
jne 0x4050bd
call fcn.00401030
lea ecx, [edi - 0x10]
jmp 0x405059
call fcn.00401030
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00401030
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4050f7
add esi, 0xc8
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.00401201
call fcn.0041618f
ret

Function at 0x4050fd
Capabilities:
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42bba7
call fcn.004160f0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xec], ebx
jne 0x40514b
cmp dword [esi + 0xe8], ebx
je 0x405146
lea eax, [ebp - 0x1c]
push eax
call fcn.00404939
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.0040cf31
cmp eax, 6
jne 0x40514b
mov byte [ebp - 0xd], bl
jmp 0x40514f
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405160
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401030
cmp byte [ebp - 0xd], bl
jne 0x4051dd
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
je 0x4051bd
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
je 0x4051bd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x4051dd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.0041618f
ret
Function at 0x405b35
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x42bd40
call fcn.004160f0
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.RequireIE
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0x104
call fcn.00401da8
push str.Startup
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00401da8
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404626
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401030
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00401030
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x405bd5
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401030
mov eax, ebx
call fcn.0041618f
ret
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov edi, str._d._d._d._d
push edi
push eax
call fcn.00416715
add esp, 0x18
call fcn.00406519
push eax
lea ecx, [ebp - 0x10]
call fcn.004011d2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405c31
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401030
jmp 0x405bc2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401308
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x14]
je 0x405c60
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405c24
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ad
cmp dword [ebp - 0x18], ebx
jbe 0x405c24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00416715
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + eax - 0x34]
mov edx, dword [ebp + eax - 0x44]
cmp ecx, edx
jb 0x405caa
ja 0x405cb7
add eax, 4
cmp eax, 0x10
jl 0x405c94
lea ecx, [edi - 0x10]
call fcn.00401030
jmp 0x405bbf
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00405491
lea ecx, [edi - 0x10]
jmp 0x405c2a
Function at 0x40c5d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c617
call fcn.00411642
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40c617
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c632
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c18e
test ebx, ebx
mov esi, eax
je 0x40c630
test edi, edi
je 0x40c630
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ee77
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40ee80
xor eax, eax
jmp 0x40eee9
cmp dword [esp + 8], 0
jne 0x40ee8c
call fcn.00406410
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004195d7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40eec7
push dword [esi + 0x10]
call fcn.0041931c
test eax, eax
pop ecx
jne 0x40eec7
mov esi, dword [esi + 0xc]
call fcn.00416adc
push esi
push dword [eax]
push 1
call fcn.0040facd
push dword [esi + 0x10]
call fcn.0041934b
test eax, eax
pop ecx
je 0x40eee6
push dword [esi + 0x10]
call fcn.00419270
push eax
call fcn.0040164c
pop ecx
pop ecx
jmp 0x40eeb5
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40eef2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x40eefc
call fcn.00406410
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041970c
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x40ef29
mov esi, dword [esi + 0xc]
call fcn.00416adc
push esi
push dword [eax]
push 1
call fcn.0040facd
pop esi
ret 8

Function at 0x416063
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438e80]
jne 0x41606d
repz ret
jmp fcn.0041ea5c