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

Disassembly:
jmp 0x40d3a2
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [esp + 0x14], ebp
cmp dword [eax - 8], ebp
je 0x40d47d
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x40d3d0
mov edx, dword [esi + 0x1c]
sub edx, eax
sar edx, 2
jne 0x40d3ed
mov eax, dword [esi + 0x28]
cmp eax, ebp
je 0x40d3e1
mov edx, dword [esi + 0x2c]
sub edx, eax
sar edx, 2
jne 0x40d3ed
mov eax, dword [esi + 4]
cmp dword [eax - 8], ebp
je 0x40d47d
push ecx
call fcn.00402347
mov ecx, eax
call fcn.00401a14
test eax, eax
je 0x40d47d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x10], ebp
xor edi, edi
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x40d442
mov ecx, dword [esi + 0x1c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x40d442
push dword [eax + edi*4]
call ebx
test eax, eax
je 0x40d43f
mov eax, dword [esi + 0x18]
push dword [eax + edi*4]
call fcn.0040164a
cmp edx, ebp
pop ecx
jl 0x40d475
jg 0x40d43f
cmp eax, 0x500000
jb 0x40d475
inc edi
jmp 0x40d40a
xor edi, edi
mov eax, dword [esi + 0x28]
cmp eax, ebp
je 0x40d467
mov ecx, dword [esi + 0x2c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x40d467
push dword [eax + edi*4]
call ebx
test eax, eax
je 0x40d464
inc dword [esp + 0x10]
inc edi
jmp 0x40d444
cmp dword [esp + 0x10], ebp
jg 0x40d475
mov eax, dword [esi + 4]
cmp dword [eax - 8], ebp
je 0x40d47d
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40dd38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 5
jne 0x40dd6f
cmp dword [ebp - 0x10c], 0
jne 0x40dd6f
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40ddf1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
jne 0x40de28
cmp dword [ebp - 0x10c], 0
jne 0x40de28
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40de3a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 5
jne 0x40de6e
push 1
pop eax
cmp dword [ebp - 0x10c], eax
je 0x40de70
xor eax, eax
leave
ret

Function at 0x40df94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 5
jne 0x40dfcb
cmp dword [ebp - 0x10c], 2
jne 0x40dfcb
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40e150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x40e1ac
push dword [ebp - 0xc]
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 0x40e239
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
or dword [ebp - 0x28], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x10]
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x40e2a4
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
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 0x40f7ee
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x40f825
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x40f86d
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, esi
je 0x40f86d
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push 0x40f884
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x40f86d
cmp dword [ebp + 0xc], esi
je 0x40f866
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x40102d
Capabilities:
Get common file path

Disassembly:
push 0x628
mov eax, 0x435de9
call fcn.0041edd0
xor edi, edi
push 7
mov dword [ebx], edi
pop eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], edi
mov dword [ebp - 0x634], ebx
mov word [ebx + 0xc], di
lea esi, [ebx + 0x24]
mov dword [ebp - 4], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], edi
mov word [ebx + 0x44], di
push edi
mov byte [ebp - 4], 2
call fcn.0041a8f0
push eax
call fcn.0041a6b1
push 0x20a
lea eax, [ebp - 0x21a]
push edi
push eax
mov word [ebp - 0x21c], di
call fcn.0041b0d0
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x401114
push 0x410
lea eax, [ebp - 0x62e]
push edi
push eax
mov word [ebp - 0x12], di
mov word [ebp - 0x630], di
call fcn.0041b0d0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x401107
cmp eax, edi
je 0x401107
mov word [ebp + eax*2 - 0x630], di
lea eax, [ebp - 0x630]
jmp 0x40110d
lea eax, [ebp - 0x21c]
call fcn.0040185a
xor edi, edi
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x401138
lea edi, [eax - 1]
mov eax, esi
call fcn.004017f6
cmp word [eax], 0x5c
je 0x401136
push 0x43ba78
push esi
call fcn.004017d8
xor edi, edi
cmp dword [ebx + 0x38], edi
jne 0x401149
mov eax, 0x43ba7c
call fcn.0040185a
xor edi, edi
mov dword [ebx + 4], edi
mov eax, ebx
call fcn.0041ee53
ret

Function at 0x401154
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp dword [edi + 0x54], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x401174
cmp dword [edi + 0x58], 8
jb 0x40116e
mov eax, dword [edi + 0x44]
jmp 0x401171
lea eax, [edi + 0x44]
push eax
call esi
cmp dword [edi + 0x1c], ebx
je 0x40118a
cmp dword [edi + 0x20], 8
jb 0x401184
mov eax, dword [edi + 0xc]
jmp 0x401187
lea eax, [edi + 0xc]
push eax
call esi
push ebx
push 1
lea esi, [edi + 0x40]
call fcn.0040193c
push ebx
push 1
lea esi, [edi + 0x24]
call fcn.0040193c
push ebx
push 1
lea esi, [edi + 8]
call fcn.0040193c
pop esi
pop ebx
ret
Function at 0x4021eb
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax + 4]
test eax, eax
je 0x402221
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x20000005
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x402221
mov eax, dword [ebp - 4]
jmp 0x402223
xor eax, eax
xor edx, edx
leave
ret

Function at 0x402572
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x648], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x64c], eax
jne 0x4025bb
xor al, al
jmp 0x402711
lea eax, [ebp - 0x648]
push eax
push dword [ebp - 0x64c]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4026eb
mov ebx, 0x104
mov eax, dword [ebp - 0x650]
cmp dword [ebp - 0x640], eax
je 0x4026d1
and word [ebp - 0x418], 0
mov edi, 0x206
push edi
lea eax, [ebp - 0x416]
push 0
push eax
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.0041a931
and word [ebp - 0x210], 0
add esp, 0xc
push edi
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.0041b0d0
add esp, 0xc
push str.2345Explorer.exe
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041a931
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call fcn.0042fe2c
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0042fe2c
pop ecx
push eax
call fcn.0041a99d
test eax, eax
pop ecx
pop ecx
jne 0x4026d1
mov edx, dword [esi + 4]
test edx, edx
jne 0x402683
xor ecx, ecx
jmp 0x40268b
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x4026ae
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4026ae
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x640]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x4026d1
mov edi, dword [esi + 8]
cmp edx, edi
jbe 0x4026ba
call fcn.0041a865
push edi
push esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x658]
push eax
mov eax, esi
call fcn.00402ab5
lea eax, [ebp - 0x648]
push eax
push dword [ebp - 0x64c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4025da
push dword [ebp - 0x64c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
jne 0x402702
xor esi, esi
jmp 0x40270a
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a6a2
leave
ret
Function at 0x402720
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x4365aa
call fcn.0041ed67
xor edi, edi
push edi
push 0x43baf8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00402572
test al, al
je 0x4028cd
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402834
push 0xdf7f
push 0x4dac
push 0x845
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
jbe 0x402797
call fcn.0041a865
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jbe 0x4027a4
call fcn.0041a865
cmp edi, ebx
je 0x4027e0
cmp edi, dword [ebp - 0x18]
jb 0x4027b2
call fcn.0041a865
push dword [edi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4027d1
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x30]
call fcn.00402961
cmp edi, dword [ebp - 0x18]
jb 0x4027db
call fcn.0041a865
add edi, 4
jmp 0x4027a4
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x402820
mov ecx, dword [ebp - 0x28]
mov eax, ecx
sub eax, dword [ebp - 0x2c]
sar eax, 2
je 0x402820
cmp eax, esi
ja 0x402800
call fcn.0041a865
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], esi
jne 0x402809
xor ecx, ecx
jmp 0x40280f
sub ecx, dword [ebp - 0x2c]
sar ecx, 2
push 0x1388
push 1
push dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], esi
je 0x402832
push dword [ebp - 0x2c]
call fcn.0041a92c
pop ecx
xor edi, edi
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
jbe 0x402841
call fcn.0041a865
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
jbe 0x40284e
call fcn.0041a865
cmp esi, ebx
je 0x402877
mov ecx, dword [ebp - 0x18]
sub ecx, ebx
sar ecx, 2
mov eax, ecx
shl eax, 2
test ecx, ecx
lea edi, [eax + esi]
jle 0x402872
push eax
push ebx
push eax
push esi
call fcn.0041a6e0
add esp, 0x10
mov dword [ebp - 0x18], edi
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.00402572
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
jbe 0x40288c
call fcn.0041a865
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
jbe 0x402899
call fcn.0041a865
cmp esi, ebx
je 0x4028cd
cmp esi, dword [ebp - 0x18]
jb 0x4028a7
call fcn.0041a865
push dword [esi]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
je 0x4028be
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, dword [ebp - 0x18]
jb 0x4028c8
call fcn.0041a865
add esi, 4
jmp 0x402899
cmp dword [ebp - 0x1c], edi
je 0x4028db
push dword [ebp - 0x1c]
call fcn.0041a92c
pop ecx
call fcn.0041ee3f
ret
Function at 0x4035a5
Capabilities:
Create thread

Disassembly:
push 0x64
mov eax, 0x437840
call fcn.0041edd0
mov edi, ecx
xor ebx, ebx
mov byte [edi + 0x2a], bl
mov dword [ebp - 0x34], edi
add edi, 4
push edi
xor eax, eax
call fcn.0040322e
push ebx
push 0x64
push 0xfa1
push dword [edi]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x416
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x402
push eax
mov dword [ebp - 0x30], eax
call esi
push 0x640000
push ebx
push 0x401
push dword [ebp - 0x30]
call esi
push 0x6b
push dword [0x446c6c]
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x403634
push eax
push 1
push 0x80
push dword [edi]
call esi
push dword [ebp - 0x30]
push ebx
push 0x80
push dword [edi]
call esi
mov eax, dword [ebp - 0x34]
add eax, 0x60
lea esi, [ebp - 0x2c]
call fcn.0040231d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
jne 0x403706
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
mov ecx, esi
add eax, 0x7c
push ecx
xor ebx, ebx
call fcn.00401a1b
mov esi, 0x43bb5c
push esi
call fcn.0041a647
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
jbe 0x4036cf
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x4036cf
cmp eax, 0xffffffff
jbe 0x403684
or eax, 0xffffffff
jmp 0x403685
dec eax
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x403691
lea ecx, [ebp - 0x28]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x30]
movzx edx, word [ecx]
mov ebx, esi
cmp word [ebx], dx
je 0x4036a8
inc ebx
inc ebx
dec eax
jne 0x40369c
xor ebx, ebx
test ebx, ebx
mov eax, dword [ebp - 0x28]
jne 0x4036c0
cmp dword [ebp - 0x14], 8
jae 0x4036b8
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4036cf
dec ecx
dec ecx
jmp 0x403694
cmp dword [ebp - 0x14], 8
jae 0x4036c9
lea eax, [ebp - 0x28]
sub ecx, eax
sar ecx, 1
jmp 0x4036d2
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x403704
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
lea ebx, [ecx + 1]
push eax
lea esi, [ebp - 0x70]
call fcn.00401831
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401a1b
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040193c
xor ebx, ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x403712
lea eax, [ebp - 0x28]
push eax
push 0x415
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, 0x43baa8
lea ecx, [ebp - 0x54]
call fcn.004017b2
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x54]
call fcn.00403c7e
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.0040193c
push 0x5c
call fcn.0041a5dd
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x403761
mov ebx, eax
call fcn.0040102d
xor ebx, ebx
jmp 0x403763
xor eax, eax
mov esi, dword [ebp - 0x34]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
push 0x403bdc
push ebx
push ebx
mov dword [ebp - 0x38], ebx
call fcn.0041ab7f
add esp, 0x18
push ebx
mov dword [esi + 0x24], eax
push 1
lea esi, [ebp - 0x2c]
call fcn.0040193c
xor eax, eax
inc eax
call fcn.0041ee53
ret
Function at 0x404397
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4043fa
cmp dword [ebp + 0xc], 1
je 0x4043d3
cmp dword [ebp + 0xc], 2
je 0x4043d3
push 0xd
pop eax
jmp 0x4043fa
test edi, edi
mov eax, dword [ebp - 4]
je 0x4043f4
test eax, eax
je 0x4043f0
test al, 1
jne 0x4043ce
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4043f4
jmp 0x4043ce
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40459b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4045ee
xor al, al
jmp 0x404627
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40460f
cmp dword [ebp - 0x80], edi
je 0x4045ea
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4045ea
lea eax, [ebp - 0x7c]
call fcn.0040185a
cmp dword [ebp - 0x80], edi
je 0x404625
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a6a2
add ebp, 0x398
leave
ret
Function at 0x40599a
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push str.http:__jifen.2345.com_
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret
Function at 0x406a34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, eax
push 0x413
push dword [edi + 4]
call esi
push 0x414
push dword [edi + 4]
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
mov edi, eax
call esi
cmp dword [esp + 0x10], 0
jne 0x406a6d
push 0
jmp 0x406a6f
push 5
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x406b25
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436d2c
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4442c4]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x4442c4]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
xor ebx, ebx
push 0x410
lea eax, [esp + 0x72]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x78], bx
call fcn.0041b0d0
add esp, 0xc
push 0x41a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea ecx, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x50]
call fcn.004017b2
mov dword [esp + 0x498], ebx
push 7
xor eax, eax
cmp dword [esp + 0x6c], 8
pop ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], 0x61
mov dword [esp + 0x20], 0x43bf84
mov dword [esp + 0x28], 0x406b04
jae 0x406bee
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
je 0x406c7c
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406c7c
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x34]
call fcn.004017b2
mov byte [esp + 0x498], 1
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x406c4f
lea edi, [eax - 1]
lea eax, [esp + 0x34]
call fcn.004017f6
cmp word [eax], 0x5c
je 0x406c4f
push 0x43ba78
lea eax, [esp + 0x38]
push eax
call fcn.004017d8
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x406c5e
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, esi
call fcn.00406cae
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.0040193c
push ebx
push 1
lea esi, [esp + 0x58]
call fcn.0040193c
xor eax, eax
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0041a6a2
mov esp, ebp
pop ebp
ret
Function at 0x406cae
Capabilities:
Get disk size
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4442c4]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push esi
mov eax, dword [0x4442c4]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
push 0x41a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push 0x208
mov esi, eax
lea eax, [esp + 0xa2]
push ebx
push eax
mov word [esp + 0xa8], bx
call fcn.0041b0d0
add esp, 0xc
push 0x104
lea eax, [esp + 0xa0]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xac]
push eax
mov word [esp + 0xb6], bx
mov dword [esp + 0x30], ebx
xor esi, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x406d8f
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edx
push eax
call fcn.0042a920
mov dword [esp + 0x1c], eax
mov esi, edx
mov eax, 0x43bf98
lea ecx, [esp + 0x80]
call fcn.004017b2
cmp esi, ebx
mov dword [esp + 0x2c0], ebx
ja 0x406db1
cmp dword [esp + 0x1c], ebx
jbe 0x406def
push esi
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
call fcn.0040463e
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push ecx
xor ebx, ebx
mov byte [esp + 0x2c8], 1
call fcn.00401a1b
push ebx
push 1
lea esi, [esp + 0x34]
mov byte [esp + 0x2c8], bl
call fcn.0040193c
mov eax, 0x43bd10
lea ecx, [esp + 0x64]
call fcn.004017b2
mov eax, edi
mov byte [esp + 0x2c0], 2
call fcn.00406f07
cmp edx, ebx
ja 0x406e14
cmp eax, ebx
jbe 0x406e45
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040463e
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
push ecx
xor ebx, ebx
mov byte [esp + 0x2c8], 3
call fcn.00401a1b
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.0040193c
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov byte [esp + 0x2c0], 4
cmp dword [esp + 0x98], 8
mov ecx, dword [esp + 0x84]
jae 0x406e76
lea ecx, [esp + 0x84]
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x406e85
lea eax, [esp + 0x68]
push ecx
push eax
push 0x43bfa0
lea ecx, [esp + 0x54]
call fcn.0040d75f
add esp, 0xc
push 0x41c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0x60], 8
mov ecx, dword [esp + 0x4c]
jae 0x406eb5
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 1
lea esi, [esp + 0x50]
call fcn.0040193c
push ebx
push 1
lea esi, [esp + 0x6c]
call fcn.0040193c
push ebx
push 1
lea esi, [esp + 0x88]
call fcn.0040193c
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.0041a6a2
mov esp, ebp
pop ebp
ret