joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e288
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call fcn.004177a0
lea eax, [edi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e2c1
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x53c6dc
push eax
call fcn.00402b60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e2f9
lea eax, [ebp - 0x20c]
push eax
call fcn.0040edef
pop ecx
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004177a0
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x53c65c
push eax
call fcn.00402b60
add esp, 0x1c
cmp word [ebp - 0x414], si
jne 0x40e338
mov eax, esi
jmp 0x40e345
lea eax, [ebp - 0x414]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x8c]
call fcn.004014e0
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004177a0
push str.Cache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x53c65c
push eax
call fcn.00402b60
add esp, 0x1c
cmp word [ebp - 0x61c], si
jne 0x40e397
mov eax, esi
jmp 0x40e3a4
lea eax, [ebp - 0x61c]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [edi + 0xa4]
call fcn.004014e0
push 0x208
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004177a0
lea eax, [ebp - 0xa44]
push 0x53c7b8
push eax
call fcn.0040f112
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x40e3e5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x595a00
push eax
call fcn.00402b60
add esp, 0xc
lea ecx, [ebp - 0xa44]
push esi
push 1
call fcn.00401420
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e426
lea eax, [ebp - 0x824]
push eax
call fcn.0040edef
pop ecx
push 0x208
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004177a0
push str.Cache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push 0x53c65c
push eax
call fcn.00402b60
add esp, 0x1c
cmp word [ebp - 0xa2c], si
je 0x40e470
lea eax, [ebp - 0xa2c]
push eax
call fcn.0041af11
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0xbc]
call fcn.004014e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
Function at 0x40e8d1
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x53b271
call fcn.0040c217
mov ebx, ecx
call fcn.0040d48b
lea edi, [ebx + 0xd4]
push eax
mov ecx, edi
call fcn.00401490
mov esi, str.LanShanIMEInfo.ini
push esi
call fcn.0041af11
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00401dd0
push str.guanf
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040d527
and dword [ebp - 4], 0
lea esi, [ebx + 0xec]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x40e947
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401700
push str.guanf
mov ecx, esi
call fcn.00402b2a
test eax, eax
jne 0x40e9c3
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004177a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40e974
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.guanf
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x40e9a5
xor eax, eax
jmp 0x40e9b2
lea eax, [ebp - 0x218]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004014e0
jmp 0x40e9c8
mov edi, str.guanf
push edi
mov ecx, esi
call fcn.00402b2a
test eax, eax
jne 0x40ea8b
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004177a0
add esp, 0xc
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x230]
push eax
call fcn.00401ba0
push str.LanShanIMEInfo.ini
mov byte [ebp - 4], 1
call fcn.0041af11
pop ecx
push eax
push str.LanShanIMEInfo.ini
lea ecx, [ebp - 0x230]
call fcn.00401dd0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x40ea5c
xor eax, eax
jmp 0x40ea69
lea eax, [ebp - 0x218]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004014e0
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00401420
push edi
mov ecx, esi
call fcn.00402b2a
test eax, eax
jne 0x40eac7
push edi
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0040d57b
push eax
mov ecx, esi
call fcn.00401b20
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401420
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401420
call fcn.0040c1c1
ret
Function at 0x40edef
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0041af11
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040abc5
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0041dfc6
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x40ee69
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x40ee60
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ee56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ee67
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x40ee33
jmp 0x40ee69
xor edi, edi
push esi
call fcn.0040ac19
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ee79
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.0040f38a
lea eax, [ebp - 0x20c]
push eax
call fcn.0041af11
add esp, 0x14
test eax, eax
je 0x40ef31
lea eax, [ebp - 0x20c]
push 0x5959fc
push eax
call fcn.00423cea
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00423cea
lea eax, [ebp - 0x20c]
push 0x5959fc
push eax
call fcn.00423cea
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ef0a
lea eax, [ebp - 0x20c]
push eax
call fcn.0040edef
pop ecx
cmp word [ebp - 0x20c], si
je 0x40ef22
lea eax, [ebp - 0x20c]
push eax
call fcn.0041af11
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004014e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c19b
mov esp, ebp
pop ebp
ret

Function at 0x40f06b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x5a7d6c]
test al, al
jne 0x40f104
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004177a0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f0fb
lea eax, [ebp - 0x20c]
push eax
call fcn.004240c5
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004170d4
pop ecx
pop ecx
test eax, eax
jne 0x40f0f3
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.004170d4
pop ecx
pop ecx
test eax, eax
je 0x40f0fb
mov byte [0x5a7d6c], bl
jmp 0x40f101
mov bl, byte [0x5a7d6c]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
Function at 0x40f112
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x53b2a4
call fcn.0040c217
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004177a0
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.004177a0
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.0040f38a
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x218]
push eax
call fcn.0041af11
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0041912d
add esp, 0x24
test eax, eax
jne 0x40f216
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0040ee79
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00402110
push esi
push 1
jmp 0x40f377
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.00423cea
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.00423cea
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0041dfc6
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.00423cea
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x40f354
cmp dword [ebp - 0xc5c], 0
je 0x40f354
test ecx, ecx
je 0x40f354
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00402b60
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f324
lea eax, [ebp - 0x420]
push eax
call fcn.0040edef
pop ecx
cmp word [ebp - 0x420], 0
jne 0x40f332
xor eax, eax
jmp 0x40f33f
lea eax, [ebp - 0x420]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004014e0
jmp 0x40f363
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0040ee79
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00402110
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.00401420
mov eax, edi
call fcn.0040c1c1
ret
Function at 0x40f5ce
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x53b30c
call fcn.0040c217
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x40f724
push eax
lea ecx, [ebp - 0x40]
call fcn.004013b0
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00410839
mov edi, 0x22c
lea eax, [ebp - 0x284]
push edi
push 0
push eax
call fcn.004177a0
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40f714
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f705
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x40f670
lea eax, [ebp - 0x260]
push eax
call fcn.0041af11
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00410839
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402afa
test eax, eax
je 0x40f6c4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004103a3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00402afa
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x40f6cb
mov byte [ebp - 0x285], 1
test bl, 1
je 0x40f6df
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00401420
cmp byte [ebp - 0x285], 0
jne 0x40f72a
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401420
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f649
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
mov eax, esi
call fcn.0040c1c1
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00401420
jmp 0x40f716
Function at 0x40f848
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x53b33f
call fcn.0040c217
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x848], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.004013b0
xor ecx, ecx
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x40f8d9
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00402110
push 0
jmp 0x40fa16
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x40f906
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f8c4
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x40f939
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x40f8c4
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x40f98b
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00402110
jmp 0x40fa15
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004177a0
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0041af11
pop ecx
mov ecx, edi
test eax, eax
je 0x40f97a
lea eax, [ebp - 0x810]
push eax
call fcn.004013b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401420
mov eax, edi
call fcn.0040c1c1
ret
Function at 0x40fa2b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x53b372
call fcn.0040c217
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x844], esi
call fcn.004013b0
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], esi
push eax
push 0x20119
push esi
push str.SoftWare
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40fab6
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00402110
push 0
jmp 0x40fba5
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x40fadf
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40faa1
lea eax, [ebp - 0x82c]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x40fb26
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00402110
jmp 0x40fba4
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004177a0
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0041af11
pop ecx
mov ecx, edi
test eax, eax
je 0x40fb18
lea eax, [ebp - 0x810]
push eax
call fcn.004013b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401420
mov eax, edi
call fcn.0040c1c1
ret
Function at 0x40fbba
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x53b3a5
call fcn.0040c217
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004013b0
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40fc3e
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00402110
push 0
jmp 0x40fd3c
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x40fc72
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fc29
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x40fcad
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x40fc29
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004177a0
add esp, 0xc
mov dword [ebp - 0x838], 0x400
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0041af11
pop ecx
mov ecx, edi
test eax, eax
jne 0x40fd2f
lea eax, [ebp - 0x828]
push eax
call fcn.00402110
jmp 0x40fd3b
lea eax, [ebp - 0x810]
push eax
call fcn.004013b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401420
mov eax, edi
call fcn.0040c1c1
ret
Function at 0x40fd51
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fe0e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x40fdaf
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fe0d
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x40fdd5
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x40fe0b
push dword [ebp + 0x14]
call fcn.0041af11
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ffd2
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x53b498
call fcn.0040c217
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x5959d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004014e0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041333d
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410146
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410070
push 0x5959d0
mov ecx, esi
call fcn.004013b0
jmp 0x410151
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0040abc5
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4100af
push 0x5959d0
mov ecx, esi
call fcn.004013b0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401420
push ebx
jmp 0x41015d
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004177a0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.00413cf8
push ebx
call fcn.0040ac19
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00413546
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00410799
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402ca2
cmp dword [ebp - 0x30], ebx
jbe 0x41013b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401700
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402110
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401420
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401420
mov eax, esi
call fcn.0040c1c1
ret