joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405916
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405937
mov ecx, dword [0x42e3fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42ec58]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42dbc0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405959
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
je 0x405b14
jmp 0x40596b
mov cl, byte [ebp + 0xf]
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405b14
inc ebx
cmp cl, 0xfc
jbe 0x405afa
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, ecx
mov dword [ebp - 0xc], eax
or ch, 0x80
or ah, 0x80
inc ebx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x405aa5
cmp dword [0x42eca4], 0
push 2
pop esi
je 0x4059ca
push 4
pop esi
test dl, dl
jns 0x405a05
mov eax, edx
and edx, 0x3f
add edx, dword [0x42ec58]
and eax, 0x40
push eax
push edi
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004057db
cmp byte [edi], 0
jne 0x405a8c
push dword [ebp - 0xc]
push edi
call fcn.00405916
jmp 0x405a87
cmp edx, 0x25
jne 0x405a18
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405a87
cmp edx, 0x24
jne 0x405a83
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405a83
mov eax, dword [0x42ec24]
dec esi
test eax, eax
je 0x405a4c
push edi
push 0
push 0
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec28]
call eax
test eax, eax
je 0x405a87
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec28]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a80
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405a87
and byte [edi], 0
test esi, esi
jne 0x405a2d
cmp byte [edi], 0
je 0x405a9d
cmp dword [ebp - 0xc], 0x1a
jne 0x405a9d
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405b2d
jmp 0x405aeb
cmp byte [ebp + 0xf], 0xfd
jne 0x405ad9
cmp esi, 0x1d
jne 0x405abe
push dword [0x42ec28]
push edi
call fcn.00405852
jmp 0x405acf
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004058f4
add esi, 0xffffffeb
cmp esi, 7
jae 0x405aeb
jmp 0x405a9d
cmp byte [ebp + 0xf], 0xff
jne 0x405aeb
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405916
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42dbc0
jmp 0x405b07
jne 0x405b04
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405b07
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405968
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b29
push eax
push dword [ebp + 8]
call fcn.004058f4
leave
ret 8
Function at 0x405c59
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c624], 0
push esi
jne 0x405c90
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c6a
mov dword [ecx*4 + 0x42c620], eax
inc ecx
cmp ecx, 0x100
jl 0x405c65
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cc1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c620]
xor eax, esi
inc ecx
dec edx
jne 0x405ca3
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401410
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x4014a1
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x4014a1
cmp byte [ebx], 0
je 0x4014a1
cmp dword [esp + 0x18], ebp
je 0x4014a1
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4014a1
push edi
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401489
mov ecx, dword [esp + 0x18]
inc edi
push edi
push esi
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401489
mov ebp, 1
mov eax, dword [esp + 0x18]
pop edi
test eax, eax
je 0x401499
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x401b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
mov byte [ebp - 0x428], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x428]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x14]
push edx
call fcn.00417e1c
push str.md5.txt
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004180fd
mov esi, dword [ebp + 8]
push str.defaultuuid
mov ecx, esi
call fcn.00417eeb
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401c72
lea ecx, [ebp + 8]
push ecx
mov ecx, ebx
call fcn.00401d40
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00417e9b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00417dae
lea ecx, [ebp - 0x28]
call fcn.00418221
mov edx, dword [ebp - 0x14]
push 0
push 0x1001
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00418296
mov esi, dword [esi]
lea ecx, [ebp - 0x28]
push esi
call fcn.00418409
lea ecx, [ebp - 0x28]
call fcn.004185c6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
jmp 0x401cde
lea ecx, [ebp - 0x28]
call fcn.00418221
mov eax, dword [ebp - 0x14]
push 0
push 2
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00418296
push esi
lea ecx, [ebp - 0x28]
call fcn.00418479
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp eax, 5
jge 0x401ccf
lea edx, [ebp + 8]
mov ecx, ebx
push edx
call fcn.00401d40
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00417e9b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00417dae
mov esi, dword [esi]
lea ecx, [ebp - 0x28]
push esi
call fcn.00418409
lea ecx, [ebp - 0x28]
call fcn.004185c6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00418253
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dae
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
mov eax, dword [ecx + 0xc]
add ecx, 8
push ebx
push esi
mov edx, dword [eax]
push edi
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0x48]
push edx
push eax
mov dword [ebp - 0x30], ecx
call fcn.00402700
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x44c]
push 0x400
xor edi, edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x44c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x44c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00417e1c
push str._fintask.txt
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004180fd
mov ecx, dword [0x4267bc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401f51
lea ecx, [ebp - 0x44]
call fcn.00418221
mov eax, dword [ebp - 0x14]
push edi
push 0x1001
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00418296
lea ecx, [ebp - 0x44]
call fcn.004185c6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
jmp 0x40202f
lea ecx, [ebp - 0x44]
call fcn.00418221
mov ecx, dword [ebp - 0x14]
push edi
push edi
push ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00418296
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x44]
push edx
call fcn.00418479
cmp eax, edi
je 0x402020
push edi
lea ecx, [ebp - 0x18]
call fcn.0041813c
mov esi, eax
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00402940
test al, al
je 0x401fd3
mov edi, dword [ebp - 0x28]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], ebx
mov byte [eax + ebx], 0
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
mov byte [ebp - 4], 5
call fcn.00402450
mov ecx, dword [ebp - 0x28]
xor esi, esi
cmp ecx, esi
mov byte [ebp - 4], 4
je 0x402010
mov al, byte [ecx - 1]
test al, al
je 0x402006
cmp al, 0xff
je 0x402006
dec al
mov byte [ecx - 1], al
jmp 0x402010
dec ecx
push ecx
call fcn.00418216
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
xor edi, edi
jmp 0x401f6b
lea ecx, [ebp - 0x44]
call fcn.004185c6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00418253
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00417dae
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dae
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push edi
push ebx
call fcn.0041813c
mov edx, eax
mov al, byte [esp + 0x30]
mov byte [esp + 0x10], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004028a0
mov edi, dword [esi + 0xc]
lea ecx, [esp + 0x10]
add esi, 8
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.004032a0
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
cmp eax, ecx
je 0x40235e
add eax, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00403730
test eax, eax
jl 0x40235e
lea eax, [esp + 0x30]
jmp 0x402369
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [eax]
cmp ecx, edi
mov ecx, dword [esp + 0x14]
je 0x4023c3
cmp ecx, ebx
je 0x4023aa
mov al, byte [ecx - 1]
cmp al, bl
je 0x4023a0
cmp al, 0xff
je 0x4023a0
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
dec ecx
push ecx
call fcn.00418216
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
cmp ecx, ebx
je 0x4023e3
mov al, byte [ecx - 1]
cmp al, bl
je 0x4023d9
cmp al, 0xff
je 0x4023d9
dec al
mov byte [ecx - 1], al
jmp 0x4023e3
dec ecx
push ecx
call fcn.00418216
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x406400
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
ret 4

Function at 0x4064a0
Capabilities:
Check mutex on windows

Disassembly:
push str.SURARLIVEUPDATE
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
ret

Function at 0x4064d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
call fcn.004064a0
test eax, eax
jne 0x4064e1
mov eax, 1
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push ebp
push esi
push edi
xor edi, edi
push str.SURARLIVEUPDATE
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x406520
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jge 0x40651c
push 0x64
call ebp
push str.SURARLIVEUPDATE
push 0
call ebx
mov esi, eax
inc edi
test esi, esi
je 0x406501
jmp 0x406520
test esi, esi
je 0x406549
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x14]
call fcn.00417e1c
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [esp + 0x10]
call fcn.00417dae
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x407760
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x60]
xor edx, edx
test eax, eax
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jbe 0x4077f3
mov eax, dword [ecx + 0x5c]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4077f3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov eax, dword [ebx + 8]
cmp byte [eax + 0x20], 0
je 0x4077d5
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x40779c
mov eax, 0x420454
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x4077da
mov esi, 0x2000
mov ebx, dword [ebx]
mov eax, dword [ecx + 0x5c]
add edx, esi
cmp ebx, eax
mov dword [esp + 0x10], edx
jne 0x407787
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret
mov eax, edx
pop ebx
add esp, 8
ret
Function at 0x407fe0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0xc]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
jne 0x408028
lea eax, [ebp - 0x1c]
push 0x423510
push eax
mov dword [ebp - 0x1c], str.connection_failed...
call fcn.004098dd
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4080e5
lea edx, [ebp - 0x20]
push 0x423510
push edx
mov dword [ebp - 0x20], str.response_failed...
call fcn.004098dd
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0x44]
cmp eax, edx
jne 0x408076
mov eax, 0x420454
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jne 0x408082
mov ecx, 0x420454
mov edx, dword [ebp - 0x24]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x54]
push eax
push edx
push ecx
call fcn.00406640
add esp, 0x14
mov eax, 0x4080e5
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408376
Capabilities:
Shutdown system

Disassembly:
cmp dword [esi + 0x2c], edi
je 0x4083f8
push 0x104

Function at 0x408380
Capabilities:
Shutdown system

Disassembly:
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.004082dd
inc dword [ebx + 0x36a0cc4]
pop eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
mov word [ebp - 0x21c], ax
mov eax, dword [esi + 0x2c]
lea edx, [ebp - 0x20c]
push edx
mov dword [esi + 0x24], 7
mov dword [ebp - 0x214], edi
mov ecx, dword [eax]
push eax

Function at 0x4083be
Capabilities:
Shutdown system

Disassembly:
call dword [ecx + 0x2c]
test byte [esi + 0x24], 2
jne 0x4083f4
push 0xfffffffffffffff4
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esi + 0x44]
and eax, 0xffff
push ecx
or eax, 0x30000
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
and dword [esi + 0x24], 0xfffffffb
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416037
leave
ret 4

Function at 0x40a5db
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x20
push 1
push eax
push eax
push 0x4314c8
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40b70e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 4]
call fcn.0040b283
cmp eax, 0xffffffff
jne 0x40b734
xor esi, esi
jmp 0x40b743
test eax, eax
js 0x40b752
cmp eax, dword [esi + 0xc]
jge 0x40b752
mov ecx, dword [esi + 8]
mov esi, dword [ecx + eax*4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
int3

Function at 0x413506
Capabilities:
Hide graphical window

Disassembly:
adc byte [ecx - 0x3f7a17bb], cl
je 0x413528
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x43fc3c
call fcn.0040a081
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
push 0x43fc38
call dword [eax]
mov ecx, dword [ebx + 0x25c]
test ecx, ecx
jne 0x413537
mov eax, dword [ebx + 0x24]
jmp 0x413544
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CRect::constructor_void_]
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push closesocket
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____char_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____]
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x413584
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x41357f
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416025
leave
ret 0x14

Function at 0x414013
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43fce8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp + 8]
push esi
or eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416025
leave
ret