joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e240
Capabilities:
Access peb ldr_data
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x51e0c3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa4], ebx
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x94], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
jae 0x40e2cd
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x30]
call fcn.00411880
lea edi, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.004122f0
push eax
mov ecx, esi
mov byte [esp + 0xa8], 1
call fcn.0040d240
add esp, 4
cmp dword [esp + 0x28], 0x10
jb 0x40e312
mov eax, dword [esp + 0x14]
push eax
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40e33c
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0042eca7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0042eb95
add esp, 0x9c
ret
Function at 0x40e370
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0x82c
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x426]
push ebx
push eax
mov word [esp + 0x42c], bx
call fcn.00435740
add esp, 0xc
xor eax, eax
jmp 0x40e3b0
movzx ecx, word [eax + 0x561700]
mov word [esp + eax + 0x420], cx
add eax, 2
cmp cx, bx
jne 0x40e3b0
lea ecx, [esp + 0x420]
push ecx
push str._sgswb.log
lea edx, [esp + 0x220]
call fcn.00410570
push 0x206
lea edx, [esp + 0x636]
push ebx
push edx
mov word [esp + 0x63c], bx
call fcn.00435740
push 0x206
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00435740
add esp, 0x20
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.0042eba4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [eax], bx
add esp, 8
lea eax, [esp + 0x218]
push eax
call esi
test eax, eax
je 0x40e57d
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e455
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40e471
push edi
lea ecx, [esp + 0x62c]
push ecx
lea edx, [esp + 0x428]
push edx
push str._s_s.txt
lea edx, [esp + 0x228]
call fcn.00410570
mov ecx, dword [esp + 0x848]
lea eax, [esp + 0x84c]
push eax
push ecx
push 0xfff
push 0x577930
call fcn.0042f7da
add esp, 0x1c
lea edx, [esp + 0x21c]
push edx
mov word [0x57992e], bx
xor edi, edi
call esi
test eax, eax
je 0x40e4e0
mov edi, 1
lea eax, [esp + 0x21c]
push 0x56173c
push eax
call fcn.0042f8bb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40e57c
cmp edi, ebx
jne 0x40e51d
push esi
push 2
lea ecx, [esp + 0x18]
push 1
push ecx
mov dword [esp + 0x20], 0xfeff
call fcn.0042fa2d
add esp, 0x10
mov eax, 0x577930
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e525
sub eax, edx
sar eax, 1
push esi
lea edx, [eax + eax]
push edx
push 1
push 0x577930
call fcn.0042fa2d
push esi
push 2
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x2c], 0xd
call fcn.0042fa2d
push esi
push 2
lea ecx, [esp + 0x34]
push 1
push ecx
mov dword [esp + 0x3c], 0xa
call fcn.0042fa2d
push esi
call fcn.0042fb21
add esp, 0x34
pop edi
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb95
add esp, 0x82c
ret
Function at 0x410ef0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x218]
xor ebp, ebp
cmp dword [esi + 0x214], edi
jbe 0x410f1f
call fcn.0042f021
mov ebx, dword [esi + 0x214]
cmp ebx, dword [esi + 0x218]
jbe 0x410f32
call fcn.0042f021
cmp ebx, edi
je 0x410f4d
push ebx
mov ebx, dword [esi + 0x218]
mov eax, edi
call fcn.004116b0
add esp, 4
mov dword [esi + 0x218], eax
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00435740
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 2
jne 0x410f83
push esi
call fcn.004107b0
jmp 0x410f9a
xor edi, edi
test ebp, ebp
jne 0x410f9a
mov ecx, esi
call fcn.00410b10
add edi, 1
cmp edi, 0xa
mov ebp, eax
jl 0x410f85
mov eax, dword [esi + 0x214]
test eax, eax
je 0x410fbd
mov esi, dword [esi + 0x218]
sub esi, eax
mov eax, 0x4bda12f7
imul esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eb95
add esp, 0x124
ret
Function at 0x410fe0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
add esi, 0x210
push edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], esi
jbe 0x411000
call fcn.0042f021
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x411017
call fcn.0042f021
test esi, esi
je 0x41101f
cmp esi, esi
je 0x411024
call fcn.0042f021
cmp dword [esp + 0x1c], edi
je 0x411139
mov ebx, dword [esp + 0x24]
add ebx, 0xa8
push ebx
call ebp
push 0x561828
call ebp
test esi, esi
jne 0x41104b
call fcn.0042f021
mov edi, dword [esp + 0x1c]
cmp edi, dword [esi + 8]
jb 0x411059
call fcn.0042f021
add edi, 0xa8
push edi
call ebp
push 0x561828
call ebp
mov esi, dword [esp + 0x24]
add esi, 0x28
push esi
call ebp
push 0x561828
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 8]
jb 0x41108c
call fcn.0042f021
mov eax, dword [esp + 0x1c]
add eax, 0x28
push eax
call ebp
push 0x561828
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 8]
jb 0x4110af
call fcn.0042f021
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4110d3
test dl, dl
je 0x4110cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4110d3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4110b3
xor eax, eax
jmp 0x4110d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [esp + 0x1c]
jne 0x41111c
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x4110ee
call fcn.0042f021
lea ecx, [edi + 0x28]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411113
test dl, dl
je 0x41110f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411113
add eax, 2
add ecx, 2
test dl, dl
jne 0x4110f3
xor eax, eax
jmp 0x411118
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411166
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x41112a
call fcn.0042f021
mov esi, dword [esp + 0x14]
add edi, 0x1b0
jmp 0x411006
mov edi, dword [esp + 0x24]
lea eax, [edi + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411146
sub eax, edx
je 0x411166
mov eax, edi
call fcn.004111a0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
Function at 0x4117f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x56182c
call ebx
test eax, eax
mov dword [esi], eax
jne 0x411806
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x41185d
pop edi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov eax, 1
pop ebx
ret

Function at 0x412870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push 0x64
push ebx
mov dword [esp + 0x18], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x4128ab
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
movzx eax, si
movzx ecx, di
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ecx
ret
push 2
push ebx
push 0x56182c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x41290a
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x412903
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x412903
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x412903
push 0x5619b0
lea edx, [esi + 6]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412903
cmp word [esi + 2], bx
jbe 0x412903
mov ebx, dword [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x415460
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x430]
push ebp
lea ecx, [esp + 4]
push ecx
xor ebp, ebp
push 9
push ebp
push 0x5615f0
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4154c4
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042eb95
add esp, 0x42c
ret 4
push esi
push 0x206
lea edx, [esp + 0x26]
push ebp
push edx
mov word [esp + 0x2c], bp
call fcn.00435740
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4155c0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [esi + 1]
jmp 0x415510
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41559e
push 0x206
lea edx, [esp + 0x236]
push ebp
push edx
mov dword [esp + 0x28], 0x104
mov word [esp + 0x23c], bp
call fcn.00435740
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push str.DisplayName
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x415593
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.0042ecac
add esp, 8
test eax, eax
je 0x415593
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
add esi, ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x415510
pop edi
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
xor ecx, esp
call fcn.0042eb95
add esp, 0x42c
ret 4
Function at 0x416b90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51e736
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor edi, edi
push 0x206
lea eax, [esp + 0x52]
push edi
push eax
mov word [esp + 0x58], di
call fcn.00435740
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push edi
push 0x19
lea ecx, [esp + 0x54]
push ecx
push edi
call ebx
test eax, eax
je 0x416ca9
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416c20
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x38]
call fcn.004021f0
push 1
push str._.
mov ecx, esi
mov dword [esp + 0x26c], edi
call fcn.00401d70
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x416c62
lea ecx, [esp + 0x34]
mov edx, ebp
call fcn.00416d90
mov esi, eax
cmp esi, edi
je 0x416c8a
cmp dword [esp + 0x48], 8
jb 0x416c83
mov eax, dword [esp + 0x34]
push eax
call fcn.0042eca7
add esp, 4
mov eax, esi
jmp 0x416d5b
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x416ca9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042eca7
add esp, 4
push edi
push 0x10
lea edx, [esp + 0x54]
push edx
push edi
call ebx
test eax, eax
je 0x416d59
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416cd4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x1c]
call fcn.004021f0
push 1
push str._.
mov ecx, esi
mov dword [esp + 0x26c], 1
call fcn.00401d70
mov ecx, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x416d1e
lea ecx, [esp + 0x18]
mov edx, ebp
call fcn.00416d90
mov esi, eax
cmp esi, edi
je 0x416d46
cmp dword [esp + 0x2c], ebx
jb 0x416c83
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042eca7
add esp, 4
mov eax, esi
jmp 0x416d5b
cmp dword [esp + 0x2c], ebx
jb 0x416d59
mov edx, dword [esp + 0x18]
push edx
call fcn.0042eca7
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042eb95
add esp, 0x254
ret 4
Function at 0x417760
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x51d4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x44a]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x450], bx
call fcn.00435740
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x44c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x444]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4177f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x448]
push edx
lea esi, [esp + 0x20]
call fcn.004021f0
push 0x3e
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov ecx, esi
mov dword [esp + 0x868], ebx
call fcn.00401d70
mov eax, edi
lea edx, [eax + 2]
jmp 0x417830
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417830
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401d70
push 4
push str..lnk
lea ecx, [esp + 0x20]
call fcn.00401d70
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x41786d
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417892
cmp dword [esp + 0x30], ebp
jb 0x41788b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042eca7
add esp, 4
xor eax, eax
jmp 0x4179b7
push 0x206
lea ecx, [esp + 0x652]
push ebx
push ecx
mov word [esp + 0x658], bx
call fcn.00435740
add esp, 0xc
push 0x206
lea edx, [esp + 0x242]
push ebx
push edx
mov word [esp + 0x248], bx
call fcn.00435740
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], ebp
jae 0x4178dc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x4178e3
lea esi, [esp + 0x23c]
lea edi, [esp + 0x64c]
call fcn.00417630
push 0x206
lea eax, [esp + 0x3a]
push ebx
push eax
mov word [esp + 0x40], bx
call fcn.00435740
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x34]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417940
sub eax, edx
sar eax, 1
jne 0x417975
xor eax, eax
jmp 0x417960
movzx ecx, word [esp + eax + 0x23c]
mov word [esp + eax + 0x34], cx
add eax, 2
cmp cx, bx
jne 0x417960
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41799f
cmp dword [esp + 0x30], ebp
jb 0x41788b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042eca7
add esp, 4
xor eax, eax
jmp 0x4179b7
cmp dword [esp + 0x30], ebp
jb 0x4179b2
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042eca7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0042eb95
add esp, 0x850
ret
Function at 0x4182c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00435740
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418354
lea edx, [esp]
push edx
call fcn.00431bbb
lea eax, [esp + 4]
push str.config_systemprofile
push eax
call fcn.0042ecac
add esp, 0xc
test eax, eax
jne 0x418338
lea ecx, [esp]
push str.cocuments_and_settingslocalService
push ecx
call fcn.0042ecac
add esp, 8
test eax, eax
je 0x418354
mov al, 1
mov byte [0x579b8d], al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042eb95
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
mov al, byte [0x579b8d]
xor ecx, esp
call fcn.0042eb95
add esp, 0x20c
ret

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

Disassembly:
mov al, byte [0x579b8d]
sub esp, 8
push ebx
xor bl, bl
test al, al
jne 0x418388
call fcn.004182c0
test al, al
je 0x4183cb
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.004183f0
test al, al
je 0x4183cb
mov ecx, dword [esp + 8]
push esi
push 1
push ecx
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4183b6
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4183de
push 0
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov al, 1
jne 0x4183e0
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x4184c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00435740
add esp, 0xc
push esi
push 0x17
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418535
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x418512
mov edx, dword [str._.]
push ebp
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [edi], edx
call fcn.00418560
jmp 0x418537
mov eax, esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042eb95
add esp, 0x214
ret 4
Function at 0x418ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x51c7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
xor edi, edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004117f0
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x418f57
lea edx, [esp + 0x14]
push edx
push eax
call ecx
cmp dword [esp + 0x14], 1
lea eax, [esp + 0x54]
push eax
jne 0x418fad
push 0xf013f
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419001
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xf013f
mov edx, dword [esp + 0x64]
push edi
push edi
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x418fd5
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419001
push 0xf003f
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419001
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xf003f
jmp 0x418f8d
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edi
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x54]
push edx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x419012
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x41901d
push eax
call esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 8