joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427444
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x427464
cmp dword [edi + 0x54], 0
jne 0x427464
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004316a9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042740b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42ae16
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42ae4f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00409d64
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405539
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42c36d
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x45c10c
mov ecx, edi
call fcn.0040165e
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42c3c0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42c3d3
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00409d64
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00405539
jmp 0x42c3d3
mov ecx, esi
call fcn.0042750f
test eax, eax
je 0x42c3d3
push edi
mov ecx, eax
call fcn.0042ae16
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42c8b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42c8f4
call fcn.004316a9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42c8f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42c90f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042c46b
test ebx, ebx
mov esi, eax
je 0x42c90d
test edi, edi
je 0x42c90d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x433419
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x46fd08]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4334b7
push 0x45912c
push 4
push eax
call fcn.00438e3f
push eax
call fcn.0040160a
add esp, 0x10
push ebx
push edi
call fcn.0043d486
mov edi, dword [eax]
call fcn.0043d486
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043d42c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043d486
cmp dword [eax], ebx
je 0x4334ce
call fcn.0043d486
push dword [eax]
call fcn.004195a0
pop ecx
jmp 0x4334d5
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x433468
jmp 0x433547
call fcn.0043d486
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x433543
cmp dword [ebp - 0x40], esi
jae 0x433543
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00437bf0
add esp, 0xc
push 0x458750
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x433535
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x433535
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x433535
push ebx
push ebx
push esi
jmp 0x43353b
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x433545
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00437b68
add ebp, 0x1f4
leave
ret
Function at 0x437b68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46fd08]
jne 0x437b72
repz ret
jmp fcn.00442072
Function at 0x43c40a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43c447
cmp dword [ebp + 0x14], edi
je 0x43c447
cmp ecx, edi
jne 0x43c44e
call fcn.0043d486
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043faa9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43c462
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43c483
cmp ebx, 0xffffffff
je 0x43c472
push ebx
push edi
push ecx
call fcn.00437bf0
add esp, 0xc
cmp esi, edi
je 0x43c42f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43c42f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43c49f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43c4a6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43c597
test word [esi + 0xc], 0x10c
je 0x43c4fa
mov eax, dword [esi + 4]
test eax, eax
je 0x43c4fa
jl 0x43c5f8
cmp ebx, eax
mov edi, ebx
jb 0x43c4cb
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43c59f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00437aed
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43c58f
cmp ebx, dword [ebp - 0xc]
jb 0x43c567
cmp dword [ebp - 0xc], 0
je 0x43c524
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43c519
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43c520
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43c52f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43c52f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43c5cb
push eax
push dword [ebp - 8]
push esi
call fcn.0043d9aa
pop ecx
push eax
call fcn.00447ed2
add esp, 0xc
test eax, eax
je 0x43c60a
cmp eax, 0xffffffff
je 0x43c5f8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43c58f
push esi
call fcn.00446060
cmp eax, 0xffffffff
pop ecx
je 0x43c5fc
cmp dword [ebp - 4], 0
je 0x43c5cb
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43c4ae
mov eax, dword [ebp + 0x14]
jmp 0x43c449
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c5b6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00437bf0
add esp, 0xc
call fcn.0043d486
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43c43f
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c5e1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00437bf0
add esp, 0xc
call fcn.0043d486
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43c43f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43c449
or dword [esi + 0xc], 0x10
jmp 0x43c5fc
Function at 0x43e717
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46fe90]
je 0x43e732
inc edi
cmp edi, 0x17
jb 0x43e723
cmp edi, 0x17
jae 0x43e8b2
push ebp
push 3
call fcn.0044ae4f
cmp eax, 1
pop ecx
je 0x43e87e
push 3
call fcn.0044ae4f
test eax, eax
pop ecx
jne 0x43e766
cmp dword [0x46f9d8], 1
je 0x43e87e
cmp ebx, 0xfc
je 0x43e8b1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x473e40
push ebp
call fcn.0044adea
add esp, 0xc
test eax, eax
je 0x43e79c
push esi
push esi
push esi
push esi
push esi
call fcn.0043f9ad
add esp, 0x14
push 0x104
mov esi, 0x473e59
push esi
push 0
mov byte [0x473f5d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43e7e0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044adea
add esp, 0xc
test eax, eax
je 0x43e7e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043f9ad
add esp, 0x14
push esi
call fcn.00438b70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43e825
push esi
call fcn.00438b70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x474154
push 0x45a59c
sub ecx, eax
push ecx
push eax
call fcn.0044ad37
add esp, 0x14
test eax, eax
je 0x43e825
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043f9ad
add esp, 0x14
jmp 0x43e827
xor esi, esi
push 0x45a598
push ebx
push ebp
call fcn.0044acc6
add esp, 0xc
test eax, eax
je 0x43e847
push esi
push esi
push esi
push esi
push esi
call fcn.0043f9ad
add esp, 0x14
push dword [edi*8 + 0x46fe94]
push ebx
push ebp
call fcn.0044acc6
add esp, 0xc
test eax, eax
je 0x43e869
push esi
push esi
push esi
push esi
push esi
call fcn.0043f9ad
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044ab09
add esp, 0xc
jmp 0x43e8b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43e8b1
cmp ebp, 0xffffffff
je 0x43e8b1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46fe94]
push dword [esi]
call fcn.00438b70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44ab09
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043f2db
xor ebx, ebx
cmp dword [0x47494c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44abdf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44acbf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44acbf
push eax
call fcn.0043f26d
mov dword [esp], 0x45a9f8
push edi
mov dword [0x47494c], eax
call esi
push eax
call fcn.0043f26d
mov dword [esp], 0x45a9e4
push edi
mov dword [0x474950], eax
call esi
push eax
call fcn.0043f26d
mov dword [0x474954], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043abfc
test eax, eax
pop ecx
pop ecx
je 0x44abad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f9ad
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44abdf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043f26d
cmp eax, ebx
pop ecx
mov dword [0x47495c], eax
je 0x44abdf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043f26d
pop ecx
mov dword [0x474958], eax
mov eax, dword [0x474958]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44ac64
cmp dword [0x47495c], ecx
je 0x44ac64
push eax
call fcn.0043f2e4
push dword [0x47495c]
mov esi, eax
call fcn.0043f2e4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44ac64
cmp edi, ebx
je 0x44ac64
call esi
cmp eax, ebx
je 0x44ac31
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ac31
test byte [ebp - 0x18], 1
jne 0x44ac64
lea eax, [ebp - 0x10]
push eax
call fcn.0043ac33
test eax, eax
pop ecx
je 0x44ac4c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f9ad
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44ac5b
or dword [ebp + 0x10], 0x200000
jmp 0x44ac9f
or dword [ebp + 0x10], 0x40000
jmp 0x44ac9f
mov eax, dword [0x474950]
cmp eax, dword [ebp - 8]
je 0x44ac9f
push eax
call fcn.0043f2e4
cmp eax, ebx
pop ecx
je 0x44ac9f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44ac9f
mov eax, dword [0x474954]
cmp eax, dword [ebp - 8]
je 0x44ac9f
push eax
call fcn.0043f2e4
cmp eax, ebx
pop ecx
je 0x44ac9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47494c]
call fcn.0043f2e4
cmp eax, ebx
pop ecx
je 0x44acbf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44acc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401158
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x401169
xor al, al
jmp 0x4011be
and dword [edi + 8], 0
push ebx
lea ebx, [edi + 8]
push esi
push 0xc
call fcn.0040568a
pop ecx
mov esi, eax
push dword [ebp + 8]
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00405550
pop ecx
mov dword [esi], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push esi
push 0x4011c3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi + 4], eax
pop esi
pop ebx
setne al
pop edi
leave
ret 4
Function at 0x401929
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80018
call fcn.00405790
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x40196d
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.00402e19
mov esi, 0x410fb4
push esi
call fcn.004057c0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402e55
mov eax, edi
jmp 0x401ab0
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.00402e19
mov al, byte [0x410fb4]
mov ecx, 0x1ffff
mov byte [ebp - 0x80018], al
xor eax, eax
lea edi, [ebp - 0x80017]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
jmp 0x4019a3
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x4019cd
mov edi, 0x40e184
push edi
call fcn.004057c0
pop ecx
push eax
lea ecx, [esi + 4]
push dword [ebp - 8]
push edi
call fcn.00402c16
mov ebx, eax
cmp ebx, dword [0x40c2d0]
jne 0x401a11
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4019d7
add dword [ebp - 8], eax
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x80018]
push 0x80000
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a5c
cmp dword [ebp - 4], ebx
je 0x401a82
push dword [ebp - 4]
lea eax, [ebp - 0x80018]
lea ecx, [esi + 4]
push eax
call fcn.00402a8a
jmp 0x4019a3
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x401a20
mov eax, 0x40c28c
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.00402a8a
add ebx, 2
mov ecx, edi
push ebx
push 0
call fcn.00402ae1
cmp dword [ebp - 0x10], 0
je 0x4019a1
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x18]
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00402e19
push dword [0x40c2d0]
push 0
jmp 0x401a99
cmp dword [esi + 0xc], ebx
je 0x401a82
push dword [0x40c2d0]
add esi, 4
lea ecx, [ebp - 0x18]
push ebx
push esi
call fcn.00402b48
push dword [0x40c2d0]
mov ecx, esi
push ebx
call fcn.00402ae1
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x18]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00402e19
push dword [0x40c2d0]
push ebx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00402b48
push 1
lea ecx, [ebp - 0x18]
call fcn.00402e19
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401c1a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x401c72
push dword [ebp + 8]
call fcn.004057c0
test eax, eax
pop ecx
je 0x401c72
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c72
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c72
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x401c74
xor al, al
pop esi
leave
ret 0x14
Function at 0x401d81
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
je 0x401de3
push edi
call fcn.004057c0
test eax, eax
pop ecx
je 0x401de3
push edi
mov ecx, esi
call fcn.00401deb
test al, al
je 0x401de3
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401de3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401de3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x401de5
xor al, al
pop edi
pop esi
leave
ret 0x14

Function at 0x40202f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov al, byte [ebp + 0xb]
push esi
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x10], al
call fcn.00402e19
push 0x44
lea eax, [ebp - 0x64]
pop esi
push esi
push edi
push eax
call fcn.00405840
push dword [ebp + 8]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
call fcn.004057c0
add esp, 0x10
lea ecx, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.00402e55
mov esi, str.__S__v_qn
push esi
call fcn.004057c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402a8a
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4020a2
mov eax, 0x40c28c
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push 0x10
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4020d4
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
call fcn.00401398
pop ecx
push 1
pop edi
push 1
lea ecx, [ebp - 0x10]
call fcn.00402e19
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4022e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
mov al, byte [0x410fb4]
push ebx
push esi
mov ebx, ecx
push edi
mov byte [ebp - 0x800], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x7ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x800]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x800]
lea esi, [ebx + 0xf4]
push eax
call fcn.004057c0
pop ecx
push eax
lea eax, [ebp - 0x800]
push eax
mov ecx, esi
call fcn.00402e55
mov edi, str.dddsetup.exe
push edi
call fcn.004057c0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00402a8a
mov eax, dword [esi + 4]
test eax, eax
jne 0x402365
mov eax, 0x40c28c
lea edi, [ebx + 0xe0]
push 4
push eax
mov ecx, edi
call fcn.00401ab7
test al, al
jne 0x402391
mov esi, dword [esi + 4]
test esi, esi
jne 0x402385
mov esi, 0x40c28c
push 1
push esi
mov ecx, edi
call fcn.00401ab7
jmp 0x4023a4
mov eax, dword [edi]
test eax, eax
je 0x4023a4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401ff0
push eax
push 0x410fb4
push str.http:__ddddl.dudu.com_update_dddsetup.exe
mov ecx, ebx
call fcn.004023e1
test al, al
jne 0x4023d8
push 0
push 1
push 0x111
push dword [ebx + 0xa8]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4024f6
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov esi, str.SAGEWINDOWCLASS
lea edi, [ebp - 0x48]
push 6
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.SYSTEM_AGENT_COM_WINDOW
lea edi, [ebp - 0x60]
lea eax, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
mov esi, str.mstask.exe
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.Schedule
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x138], 0x94
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x128], 1
jne 0x4025e7
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x402645
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0xa4]
push esi
push ebx
push eax
call fcn.00405840
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0xa4], esi
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4025b0
xor al, al
jmp 0x402647
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push 0x210
push ebx
push ebx
push ebx
lea eax, [ebp - 0x23c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4025a9
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
jmp 0x402643
xor ebx, ebx
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x4025a9
lea eax, [ebp - 0x10]
push 0x14
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
cmp edi, ebx
je 0x4025a9
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40262b
push edi
call esi
mov al, bl
jmp 0x402647
cmp dword [ebp - 0x34], 4
jne 0x402635
mov bl, 1
jmp 0x402624
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402624
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret