joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053c1
Capabilities:
Set registry value

Disassembly:
push 0x48
mov eax, 0x435995
call fcn.0041e3a7
mov esi, ecx
xor ebx, ebx
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopesB8E20CD7_BAC2_4820_9AA6_1060B3AF25E2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
call fcn.0040102d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4053f6
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push 0x2001f
push ebx
push 0x43aa80
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4054c3
mov eax, str.http:__www.baidu.com_s_wdsearchTermsieinputEncodingoeoutputEncodingtn21076068_adr
lea ecx, [ebp - 0x2c]
call fcn.0040102d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add eax, eax
cmp dword [ebp - 0x14], 8
jae 0x405443
lea ecx, [ebp - 0x28]
push eax
push ecx
push 1
push ebx
push 0x43afb0
push dword [ebp - 0x4c]
call edi
mov eax, str.http:__www.baidu.com_favicon.ico
lea esi, [ebp - 0x2c]
call fcn.004010b5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add eax, eax
cmp dword [ebp - 0x14], 8
jae 0x405470
lea ecx, [ebp - 0x28]
push eax
push ecx
push 1
push ebx
push str.FaviconURL
push dword [ebp - 0x4c]
call edi
mov eax, 0x43b014
lea esi, [ebp - 0x2c]
call fcn.004010b5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add eax, eax
cmp dword [ebp - 0x14], 8
jae 0x40549d
lea ecx, [ebp - 0x28]
push eax
push ecx
push 1
push ebx
push str.DisplayName
push dword [ebp - 0x4c]
call edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401197
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
lea esi, [ebp - 0x48]
call fcn.004010b5
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4054dc
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push 0x2001f
push ebx
push 0x43aa80
push ebx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405540
mov eax, str.B8E20CD7_BAC2_4820_9AA6_1060B3AF25E2
lea ecx, [ebp - 0x2c]
call fcn.0040102d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add eax, eax
cmp dword [ebp - 0x14], 8
jae 0x40551d
lea ecx, [ebp - 0x28]
push eax
push ecx
push 1
push ebx
push str.DefaultScope
push dword [ebp - 0x4c]
call edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00401197
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00401197
call fcn.0041e42a
ret
Function at 0x405c66
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 0x405c9f
push 0
jmp 0x405ca1
push 5
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x405d57
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4361fd
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4432c4]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x4432c4]
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.0041a5f0
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.0040102d
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], 0x43b1a4
mov dword [esp + 0x28], 0x405d36
jae 0x405e20
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 0x405eae
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x405eae
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x34]
call fcn.0040102d
mov byte [esp + 0x498], 1
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x405e81
lea edi, [eax - 1]
lea eax, [esp + 0x34]
call fcn.0040cdb9
cmp word [eax], 0x5c
je 0x405e81
push 0x43aa78
lea eax, [esp + 0x38]
push eax
call fcn.00401053
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x405e90
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, esi
call fcn.00405ee0
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.00401197
push ebx
push 1
lea esi, [esp + 0x58]
call fcn.00401197
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.00419c60
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Get disk size
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4361b9
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4432c4]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push esi
mov eax, dword [0x4432c4]
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.0041a5f0
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 0x405fc1
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edx
push eax
call fcn.00429fb0
mov dword [esp + 0x1c], eax
mov esi, edx
mov eax, 0x43b1b8
lea ecx, [esp + 0x80]
call fcn.0040102d
cmp esi, ebx
mov dword [esp + 0x2c0], ebx
ja 0x405fe3
cmp dword [esp + 0x1c], ebx
jbe 0x406021
push esi
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
call fcn.00403332
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push ecx
xor ebx, ebx
mov byte [esp + 0x2c8], 1
call fcn.00401276
push ebx
push 1
lea esi, [esp + 0x34]
mov byte [esp + 0x2c8], bl
call fcn.00401197
mov eax, 0x43ac2c
lea ecx, [esp + 0x64]
call fcn.0040102d
mov eax, edi
mov byte [esp + 0x2c0], 2
call fcn.00406139
cmp edx, ebx
ja 0x406046
cmp eax, ebx
jbe 0x406077
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00403332
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
push ecx
xor ebx, ebx
mov byte [esp + 0x2c8], 3
call fcn.00401276
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.00401197
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 0x4060a8
lea ecx, [esp + 0x84]
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x4060b7
lea eax, [esp + 0x68]
push ecx
push eax
push 0x43b1c0
lea ecx, [esp + 0x54]
call fcn.0040cc09
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 0x4060e7
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.00401197
push ebx
push 1
lea esi, [esp + 0x6c]
call fcn.00401197
push ebx
push 1
lea esi, [esp + 0x88]
call fcn.00401197
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.00419c60
mov esp, ebp
pop ebp
ret
Function at 0x406c33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
mov esi, dword [0x445bcc]
push 0xf0
push 0x86
push esi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406dc5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406dc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406dc5
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
test ax, ax
je 0x406dc3
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
add esi, 4
cmp ax, 0x403
mov dword [ebp - 0xa0], ecx
jne 0x406d33
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], eax
call dword [0x4441a0]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00407697
push dword [ebp - 0x94]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x406d13
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x406db0
push dword [ebp - 0x94]
call fcn.0041a6b0
pop ecx
jmp 0x406db0
cmp ax, 0x1234
jne 0x406db0
or dword [ebp - 0xc0], 0xffffffff
lea eax, [ebp - 0x90]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call dword [0x4441a0]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00407697
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
mov dword [ebp - 0xbc], eax
je 0x406d87
push eax
call fcn.0041a6b0
pop ecx
lea eax, [ebp - 0xc4]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x406db0
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x406ca4
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.00419c60
add ebp, 0x74
leave
ret 4
Function at 0x406e48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x406e92
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x406eb9
shr eax, 2
test al, 1
je 0x406ec2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406ef5
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x406ef4
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x4095aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x437240
call fcn.0041e33e
movzx eax, word [ebp + 8]
push 0x43b820
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x409689
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x409689
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x409673
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x40960c
mov eax, dword [eax + 4]
jmp 0x40960f
add eax, 4
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040a761
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], ebx
call fcn.0040a315
lea esi, [ebp - 0x94]
call fcn.0040b2ba
test eax, eax
jne 0x409656
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
push ebx
lea ecx, [ebp + ecx - 0x98]
push 2
call fcn.0040a456
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040a856
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], vtable.std::ios_base.0
call fcn.00419826
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040e2cd
xor ecx, ecx
cmp eax, edi
jne 0x409689
cmp edx, ecx
jne 0x409689
mov al, 1
jmp 0x40968b
xor al, al
call fcn.0041e416
ret 8
Function at 0x409f82
Capabilities:
Get graphical window text

Disassembly:
push 0x244
mov eax, 0x4358a2
call fcn.0041e3a7
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
push eax
mov dword [ebp - 0x23c], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0x234], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a0d0
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a0d0
mov eax, dword [0x445c6c]
mov dword [ebp - 0x240], eax
lea ebx, [ebp - 0x234]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x244], 0x445c68
call fcn.0040a700
lea edi, [ebp - 0x244]
mov esi, eax
call fcn.0040af92
test al, al
je 0x40a0d0
xor ebx, ebx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], bx
push 0x1fe
lea eax, [ebp - 0x20e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0041a5f0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x210]
lea esi, [ebp - 0x22c]
call fcn.004010b5
push ebx
push dword [ebp - 0x23c]
mov eax, esi
push eax
call fcn.00406520
cmp eax, 0xffffffff
jne 0x40a09f
mov byte [ebp - 0x22d], bl
push ebx
push 1
lea esi, [ebp - 0x22c]
call fcn.00401197
mov al, byte [ebp - 0x22d]
jmp 0x40a0d2
lea eax, [ebp - 0x234]
push eax
lea edi, [ebp - 0x250]
call fcn.0040a662
push ebx
push ebx
push 0xf5
push dword [ebp + 0xc]
push dword [ebp - 0x238]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov byte [ebp - 0x22d], 1
jmp 0x40a089
xor al, al
call fcn.0041e42a
ret 8
Function at 0x40a0da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x44c
lea ebp, [esp - 4]
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x44c], eax
push 0x1c
mov eax, 0x43586f
call fcn.0041e33e
mov eax, dword [ebp + 0x458]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x45c]
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
mov dword [ebp - 4], ebx
mov eax, str.Software_
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.0040102d
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00401315
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40a158
lea eax, [ebp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x40a1b2
mov eax, str.SoftwareWow6432Node_
lea esi, [ebp + 0x1c]
call fcn.004010b5
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call fcn.00401315
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40a198
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40a275
cmp dword [ebp - 0x18], ebx
je 0x40a275
push 0x410
lea eax, [ebp + 0x3a]
push ebx
push eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], ebx
mov word [ebp + 0x38], bx
call fcn.0041a5f0
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40a1ee
mov eax, dword [esi]
jmp 0x40a1f0
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a238
cmp dword [ebp - 0x20], 0x208
jae 0x40a238
cmp dword [edi + 0x18], 8
jb 0x40a219
mov esi, dword [esi]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a238
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], bl
je 0x40a275
lea eax, [ebp + 0x38]
lea esi, [ebp]
call fcn.004010b5
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x40a275
lea edi, [eax - 1]
mov eax, esi
call fcn.0040cdb9
cmp word [eax], 0x5c
je 0x40a275
push 0x43aa78
mov eax, esi
push eax
call fcn.00401053
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
call fcn.00401a93
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00401197
push ebx
push 1
lea esi, [ebp]
call fcn.00401197
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x44c]
xor ecx, ebp
call fcn.00419c60
add ebp, 0x450
leave
ret 8
Function at 0x40a2be
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push str.http:__wangpai.2345.cn_forumdisplay.php_fid12
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret
Function at 0x40b347
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x435241
call fcn.0041e3a7
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
je 0x40b457
cmp byte [edi + 0x41], 0
je 0x40b457
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40b37f
xor al, al
jmp 0x40b459
lea esi, [ebp - 0x30]
call fcn.0040b04c
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0040b0c8
mov esi, eax
call fcn.0040b8d0
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.0040b0c8
mov esi, eax
call fcn.0040b8d0
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x40b3ef
dec eax
je 0x40b3f3
dec eax
dec eax
je 0x40b453
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004021ab
mov al, bl
jmp 0x40b459
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.0040b0c8
mov esi, eax
call fcn.0040b8d0
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x40b431
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.0040b0c8
mov esi, eax
call fcn.0040b8d0
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.0041b32a
add esp, 0x10
cmp ebx, eax
jne 0x40b3dd
cmp byte [edi + 0x41], 0
je 0x40b453
test ebx, ebx
jne 0x40b391
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.0040b084
mov edi, dword [ebp - 0x38]
jmp 0x40b391
mov bl, 1
jmp 0x40b3df
mov al, 1
call fcn.0041e42a
ret

Function at 0x40d58b
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x435f0a
call fcn.0041e33e
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40d5a9
xor al, al
jmp 0x40d63c
lea edi, [eax + 0x20]
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x40d5ba
mov eax, edi
call fcn.0040c644
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x40d5d2
cmp edi, ebx
je 0x40d5a2
mov eax, edi
call fcn.0040c652
jmp 0x40d5a2
mov eax, esi
call fcn.0040d581
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x40d354
push ebx
push ebx
call fcn.0041a13f
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40d60f
call fcn.0040d586
mov esi, dword [esi + 8]
call fcn.0040d43a
jmp 0x40d5c5
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
call fcn.0040f222
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40d600
cmp edi, ebx
je 0x40d63a
mov eax, edi
call fcn.0040c652
mov al, 1
call fcn.0041e416
ret
Function at 0x40ddf5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40de22
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40de22
xor al, al
jmp 0x40de3d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00429fb0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x40e037
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x4c
mov eax, 0x4371d2
call fcn.0041e3a7
push 0x43bd9c
mov esi, ecx
call fcn.00419c05
pop ecx
push eax
mov eax, esi
call fcn.0040e0fd
cmp eax, 0xffffffff
jne 0x40e07e
cmp dword [esi + 0x18], 8
jb 0x40e068
mov esi, dword [esi + 4]
jmp 0x40e06b
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40e09f
lea eax, [ebp - 0x58]
call fcn.0040f893
and dword [ebp - 4], 0
push eax
push esi
call fcn.0040fac3
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x58]
call fcn.0040f8c1
mov al, bl
call fcn.0041e42a
ret

Function at 0x40e1ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x435e7b
call fcn.0041e3a7
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401a93
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040daac
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40e1ed
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e20f
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401197
mov al, bl
call fcn.0041e42a
ret
xor bl, bl
jmp 0x40e1fb

Function at 0x40e213
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x435e7b
call fcn.0041e3a7
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401a93
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040daac
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40e246
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e26c
test al, 0x10
jne 0x40e26c
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401197
mov al, bl
call fcn.0041e42a
ret
xor bl, bl
jmp 0x40e258

Function at 0x40e270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x435e7b
call fcn.0041e3a7
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401a93
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040daac
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40e2a3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e2c9
test al, 0x10
je 0x40e2c9
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401197
mov al, bl
call fcn.0041e42a
ret
xor bl, bl
jmp 0x40e2b5