joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, esp
sub esp, 0x94
and esp, 0xffffffc0
lea ebx, [esp + 0x80]
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x10], eax
call fcn.004154b2

Function at 0x41f1f7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00421009
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
test eax, eax
je 0x41f2ac
push ebx
mov ebx, 0x50a514
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00432c14
lea eax, [ebp - 0x20c]
push 0x50a4c8
push eax
call fcn.00432c14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00432c14
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x41f285
lea eax, [ebp - 0x20c]
push eax
call fcn.00422010
pop ecx
cmp word [ebp - 0x20c], si
je 0x41f29d
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00418960
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e191
mov esp, ebp
pop ebp
ret 4

Function at 0x41f2be
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00421009
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
test eax, eax
je 0x41f373
push ebx
mov ebx, 0x50a514
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00432c14
lea eax, [ebp - 0x20c]
push str.WanNengZip.users
push eax
call fcn.00432c14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00432c14
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x41f34c
lea eax, [ebp - 0x20c]
push eax
call fcn.00422010
pop ecx
cmp word [ebp - 0x20c], si
je 0x41f364
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00418960
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e191
mov esp, ebp
pop ebp
ret 4
Function at 0x41f490
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x508e3b
call fcn.0044e637
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x9c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x41f4bb
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x41f599
xor esi, esi
mov dword [ebp - 0x814], 7
push esi
xor eax, eax
mov dword [ebp - 0x818], esi
push 0x5561a8
lea ecx, [ebp - 0x828]
mov word [ebp - 0x828], ax
call fcn.00418960
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.0042ce60
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x50a7cc
push eax
call fcn.004180f0
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 1], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x41f54e
call fcn.0041f39d
jmp 0x41f553
call fcn.0041f457
push eax
lea ecx, [ebp - 0x828]
call fcn.0041f10c
push esi
push 1
lea ecx, [ebp - 0x840]
call fcn.00418870
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00436235
pop ecx
push 0
push 1
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.00418870
mov eax, esi
call fcn.0044e5f2
ret 0xc

Function at 0x41f5a3
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x508e85
call fcn.0044e637
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.0042ce60
lea eax, [edi + 0x9c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41f600
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00418720
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x41f646
mov eax, dword [esi]
jmp 0x41f648
mov eax, esi
push ebx
push eax
call fcn.00435500
pop ecx
pop ecx
test eax, eax
jne 0x41f694
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x41f678
call fcn.0041f39d
jmp 0x41f67d
call fcn.0041f457
push eax
mov ecx, esi
call fcn.0041f10c
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00418870
mov eax, esi
call fcn.0044e5f2
ret 0x10
Function at 0x41f800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x41f821
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.004180f0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f859
lea eax, [ebp - 0x20c]
push eax
call fcn.00422010
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00432c14
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x41f87a
xor eax, eax
jmp 0x41f887
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x84]
call fcn.00418960
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041e191
mov esp, ebp
pop ebp
ret
Function at 0x41f8a9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0042ce60
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.00421009
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0042cad0
add esp, 0x14
test eax, eax
jne 0x41f988
mov ecx, esi
jmp 0x41faca
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0042f955
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.0042f955
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.0042f955
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x41fac4
cmp dword [ebp - 0xc38], edi
je 0x41fac4
test ecx, ecx
je 0x41fac4
push 0x50a4c8
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x50a4e0
push eax
call fcn.004180f0
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fa9b
lea eax, [ebp - 0x414]
push eax
call fcn.00422010
pop ecx
cmp word [ebp - 0x414], di
je 0x41fab3
lea eax, [ebp - 0x414]
push eax
call fcn.00432c45
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00418960
jmp 0x41fad0
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.0041f1f7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e191
mov esp, ebp
pop ebp
ret 4
Function at 0x41fae3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0042ce60
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0042ce60
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.00421009
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0042cad0
add esp, 0x14
test eax, eax
jne 0x41fbc2
mov ecx, esi
jmp 0x41fd04
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0042f955
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.0042f955
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.0042f955
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00432c14
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x41fcfe
cmp dword [ebp - 0xc38], edi
je 0x41fcfe
test ecx, ecx
je 0x41fcfe
push str.WanNengZip.users
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x50a4e0
push eax
call fcn.004180f0
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fcd5
lea eax, [ebp - 0x414]
push eax
call fcn.00422010
pop ecx
cmp word [ebp - 0x414], di
je 0x41fced
lea eax, [ebp - 0x414]
push eax
call fcn.00432c45
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00418960
jmp 0x41fd0a
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.0041f2be
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e191
mov esp, ebp
pop ebp
ret 4
Function at 0x41fdae
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.0042ce60
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x41fe05
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0xfc
push eax
mov ecx, esi
call fcn.00418960
mov edi, 0x50a514
push edi
call fcn.00432c45
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00418d20
cmp dword [esi + 0x14], 8
jb 0x41fe39
mov eax, dword [esi]
jmp 0x41fe3b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fe5b
mov edi, str.C:Program_Files_
push edi
call fcn.00432c45
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00418960
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e191
mov esp, ebp
pop ebp
ret
Function at 0x42091c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x564c60]
test al, al
jne 0x4209b5
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0042ce60
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 0x4209ac
lea eax, [ebp - 0x20c]
push eax
call fcn.00436b8a
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0042e776
pop ecx
pop ecx
test eax, eax
jne 0x4209a4
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.0042e776
pop ecx
pop ecx
test eax, eax
je 0x4209ac
mov byte [0x564c60], bl
jmp 0x4209b2
mov bl, byte [0x564c60]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e191
mov esp, ebp
pop ebp
ret
Function at 0x420dfe
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x508f22
call fcn.0044e637
mov ebx, ecx
call fcn.0041f391
lea edi, [ebx + 0xb4]
push eax
mov ecx, edi
call fcn.00418930
mov esi, str.WanNengZip.ini
push esi
call fcn.00432c45
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00418d20
push 0x50a7b0
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041f42d
and dword [ebp - 4], 0
lea esi, [ebx + 0xcc]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x420e74
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004189e0
push 0x50a7b0
mov ecx, esi
call fcn.004212d0
test eax, eax
jne 0x420ef0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042ce60
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x420ea1
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, 0x50a7b0
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x420ed2
xor eax, eax
jmp 0x420edf
lea eax, [ebp - 0x218]
push eax
call fcn.00432c45
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00418960
jmp 0x420ef5
mov edi, 0x50a7b0
push edi
mov ecx, esi
call fcn.004212d0
test eax, eax
jne 0x420fb8
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042ce60
add esp, 0xc
lea eax, [ebx + 0x54]
lea ecx, [ebp - 0x230]
push eax
call fcn.004187e0
push str.WanNengZip.ini
mov byte [ebp - 4], 1
call fcn.00432c45
pop ecx
push eax
push str.WanNengZip.ini
lea ecx, [ebp - 0x230]
call fcn.00418d20
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 0x420f89
xor eax, eax
jmp 0x420f96
lea eax, [ebp - 0x218]
push eax
call fcn.00432c45
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00418960
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00418870
push edi
mov ecx, esi
call fcn.004212d0
test eax, eax
jne 0x420ff4
push edi
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0041f5a3
push eax
mov ecx, esi
call fcn.0041f10c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00418870
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00418870
call fcn.0044e5f2
ret

Function at 0x421fab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0042ce60
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], eax
call fcn.0042344c
test eax, eax
mov ecx, 0x50abd8
cmovne ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x422009
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x422010
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.00432c45
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.0044e7c4
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0042f955
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x42208a
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x422081
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422077
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422088
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x422054
jmp 0x42208a
xor edi, edi
push esi
call fcn.0044e7cd
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42209a
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x509062
call fcn.0044e637
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.0042ce60
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.0042ce60
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x422178
cmp word [edi], dx
jne 0x422109
mov eax, edx
jmp 0x422110
push edi
call fcn.00432c45
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00418960
cmp dword [ebp - 0x30], 0
je 0x422178
mov edi, 0x50a7e8
push edi
call fcn.00432c45
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00418960
xor edi, edi
cmp word [esi], di
jne 0x422141
mov eax, edi
jmp 0x422148
push esi
call fcn.00432c45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00418d20
mov esi, 0x50ab24
push esi
call fcn.00432c45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00418d20
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00418df0
jmp 0x422194
xor edi, edi
cmp word [esi], di
jne 0x422183
mov eax, edi
jmp 0x42218a
push esi
call fcn.00432c45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00418960
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push 1
push edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4221c1
mov esi, edi
jmp 0x4221ec
cmp byte [ebp + 0x10], 0
je 0x4221d9
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00418870
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00418870
mov eax, esi
call fcn.0044e5f2
ret
Function at 0x4227c1
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x509183
call fcn.0044e637
mov eax, dword [ebp + 8]
test eax, eax
je 0x4228bd
push eax
lea ecx, [ebp - 0x40]
call fcn.00418720
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004234ee
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.0042ce60
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4228ae
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4228a3
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x42284d
mov eax, ebx
jmp 0x42285a
lea eax, [ebp - 0x248]
push eax
call fcn.00432c45
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00418960
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004234ee
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c490
test eax, eax
je 0x4228c3
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00418870
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422830
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00418870
mov eax, esi
call fcn.0044e5f2
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00418870
jmp 0x4228b0
Function at 0x422995
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x5091e3
call fcn.0044e637
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.00418720
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 0x422a26
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.0041ae10
push 0
jmp 0x422b63
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x422a53
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422a11
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x422a86
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x422a11
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 0x422ad8
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.0041ae10
jmp 0x422b62
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0042ce60
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.00432c45
pop ecx
mov ecx, edi
test eax, eax
je 0x422ac7
lea eax, [ebp - 0x810]
push eax
call fcn.00418720
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00418870
mov eax, edi
call fcn.0044e5f2
ret