joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433160
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x4331a0
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl ecx, 4
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x4331c4
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x437660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4d30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._commandSetSimpleVersionConfig
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0041c970
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push dword [0x515430]
push str.__SimpleVersion_ld
push eax
call fcn.00438580
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x10
push str.__FromInstaller
call fcn.0041c490
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4376ca
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c970
push 0xf
push str.QQPCSoftCmd.exe
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041c490
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437728
push str.5958793A_5C0C_4a22_812A_72065C3D975D
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x14]
mov edi, eax
mov ecx, dword [ebp - 0x10]
push 0
push 0
push 0x7530
call fcn.0048fc00
add esp, 0xc
mov esi, eax
test edi, edi
je 0x437728
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [0x515430]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.CVersionChecker::RunExe_Path_s__strParam_s__dwSimpleVersion_lu__bRet_d
push 0x515488
call fcn.0048d1f0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
add esp, 0x18
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437768
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x437787
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4377a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3828
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4377eb
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004af37c
add esp, 8
cmp eax, 0xffffffff
je 0x43792a
call dword [sym.imp.KERNEL32.dll_GetVersion]
lea ecx, [ebp - 0x10]
cmp al, 5
jbe 0x437897
push 0x24
push str.advfirewall_firewall_add_rule_name_
call fcn.0041ccd0
mov edx, dword [ebp + 8]
test edx, edx
jne 0x437835
xor ecx, ecx
jmp 0x43784f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437840
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0041c490
push 0x13
push str.___dirin_program_
lea ecx, [ebp - 0x10]
call fcn.0041c490
test edi, edi
jne 0x437870
xor ecx, ecx
jmp 0x437884
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437875
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0041c490
push 0xe
push str.__actionallow
jmp 0x437910
push 0x25
push str.firewall_add_allowedprogram_program_
call fcn.0041ccd0
test edi, edi
jne 0x4378ab
xor ecx, ecx
jmp 0x4378bf
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4378b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0041c490
push 8
push str.__name_
lea ecx, [ebp - 0x10]
call fcn.0041c490
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4378e3
xor ecx, ecx
jmp 0x4378ff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4378f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0041c490
push 0x19
push str.__modeENABLE_profileALL
lea ecx, [ebp - 0x10]
call fcn.0041c490
push 2
push 0x4eec9c
lea ecx, [ebp - 0x10]
call fcn.0041c490
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [ebx], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x437951
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439410
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x43941e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x439443
xor eax, eax
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
test eax, eax
je 0x43943f
push 0
push 0
push 0
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x18], eax
test eax, eax
je 0x43943f
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
je 0x43943f
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret

Function at 0x439ae0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
jne 0x439af9
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
movzx ecx, word [esi + 0x18]
xor edx, edx
mov eax, edi
div ecx
mov ecx, 1
movzx eax, dx
cmp eax, ecx
push ebx
movzx ebx, word [esi + 0xc]
cmovb eax, ecx
test edi, edi
je 0x439b6f
movzx ecx, ax
mov eax, ebx
mov ebx, dword [ebp + 8]
sub dword [ebp + 0x10], ebx
mov dword [ebp - 4], ecx
add eax, ecx
xor edx, edx
movzx ecx, word [esi + 0x18]
div ecx
mov eax, dword [esi + 0x1c]
movzx ecx, dx
mov dword [ebp + 8], ecx
mov al, byte [ecx + eax]
mov ecx, esi
xor al, byte [ebx]
mov byte [ebp + 0xc], al
movzx eax, byte [esi + 9]
push eax
push dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
call eax
xor al, byte [ebp + 0x14]
lea ebx, [ebx + 1]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + ebx - 1], al
mov al, byte [ebx - 1]
mov ecx, dword [ebp - 4]
mov byte [ebp + 0x14], al
mov eax, dword [ebp + 8]
sub edi, 1
jne 0x439b27
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43a3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
lea eax, [ebp - 0x210]
mov dword [0x515cd4], 0x4eeec0
push 0
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0x208
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPC2Mgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43a486
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
mov dword [0x515cd8], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x43a486
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 0x515cd4
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x43b3d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d50a8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0041c970
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x43b41e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0041ca90
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x44]
push ecx
push esi
push dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp + 8]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.004ab819
mov edx, eax
add esp, 8
test edx, edx
js 0x43b49a
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x43b49a
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov word [eax + edx*2], cx
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43b486
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.0041cdf0
int3
Function at 0x43bc20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d51ab
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xec]
mov ebx, dword [ebp + 0x10]
push 0x42
push 0
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0xa4], 0x740068
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xa0], 0x700074
mov dword [ebp - 0x9c], 0x3a0073
mov dword [ebp - 0x98], 0x2f002f
mov dword [ebp - 0x94], 0x2e0063
mov dword [ebp - 0x90], 0x6a0067
mov dword [ebp - 0x8c], 0x71002e
mov dword [ebp - 0x88], 0x2e0071
mov dword [ebp - 0x84], 0x6f0063
mov dword [ebp - 0x80], 0x2f006d
mov dword [ebp - 0x7c], 0x610070
mov dword [ebp - 0x78], 0x6b0063
mov dword [ebp - 0x74], 0x6f0063
mov dword [ebp - 0x70], 0x66006e
mov dword [ebp - 0x6c], 0x670069
mov dword [ebp - 0x68], 0x73003f
mov dword [ebp - 0x64], 0x720065
mov dword [ebp - 0x60], 0x690076
mov dword [ebp - 0x5c], 0x650063
mov dword [ebp - 0x58], 0x640069
mov dword [ebp - 0x54], 0x25003d
mov dword [ebp - 0x50], 0x260064
mov dword [ebp - 0x4c], 0x6c0063
mov dword [ebp - 0x48], 0x650069
mov dword [ebp - 0x44], 0x74006e
mov dword [ebp - 0x40], 0x650076
mov dword [ebp - 0x3c], 0x3d0072
mov dword [ebp - 0x38], 0x490025
mov dword [ebp - 0x34], 0x340036
mov dword [ebp - 0x30], 0x260064
mov dword [ebp - 0x2c], 0x6a0067
mov dword [ebp - 0x28], 0x750067
mov dword [ebp - 0x24], 0x640069
mov dword [ebp - 0x20], 0x25003d
mov dword [ebp - 0x1c], 0x73
call fcn.0046bed0
xor eax, eax
mov dword [ebp - 0xf0], 7
mov dword [ebp - 0xf4], 0
mov word [ebp - 0x104], ax
cmp word [esi], ax
je 0x43bdbf
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43bdb0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x104]
call fcn.00439160
mov dword [ebp - 4], 0
call fcn.0047eb10
lea eax, [ebp - 0x104]
push eax
call fcn.0047e9f0
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0xf0]
mov esi, edx
cmp ecx, 8
jb 0x43be0d
inc ecx
push ecx
push dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0xf0], 7
mov dword [ebp - 0xf4], 0
mov word [ebp - 0x104], ax
test edi, edi
jne 0x43be3c
test esi, esi
jne 0x43be3c
mov edi, 0x49af00d1
mov esi, 0xc0006
lea eax, [ebp - 0xec]
push eax
push esi
push edi
push 0x6a7
lea eax, [ebp - 0xa4]
push eax
push ebx
call fcn.00421db0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5296
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1cc], ebx
push 0
push dword [ebx + 0xc]
call fcn.004af37c
add esp, 8
cmp eax, 0xffffffff
jne 0x43c43f
xor eax, eax
jmp 0x43c5bc
push 0x4ef0d0
push dword [ebx + 0xc]
lea eax, [ebp - 0x1bc]
xor esi, esi
push eax
mov dword [ebp - 0x1bc], esi
call fcn.004b10ba
mov eax, dword [ebp - 0x1bc]
add esp, 0xc
test eax, eax
je 0x43c5ba
push 2
push esi
push eax
call fcn.004b13ed
add esp, 0xc
push dword [ebp - 0x1bc]
call fcn.004b19e6
mov edi, eax
add esp, 4
cmp edi, 0x2800
jge 0x43c5ba
cmp edi, 0xffffffff
je 0x43c5ba
push edi
call fcn.004a5807
add esp, 4
lea esi, [edi + 0x40]
mov ebx, eax
mov dword [ebp - 0x1c0], esi
push esi
call fcn.004a5807
add esp, 4
mov dword [ebp - 0x1c8], eax
push edi
push 0
push ebx
call fcn.004a83c0
add esp, 0xc
push esi
mov esi, dword [ebp - 0x1c8]
push 0
push esi
call fcn.004a83c0
add esp, 0xc
push 0
push 0
push dword [ebp - 0x1bc]
call fcn.004b13ed
add esp, 0xc
push dword [ebp - 0x1bc]
push edi
push 1
push ebx
call fcn.004b1bbd
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x20], 0x910f032
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0xb5dc7989
push esi
push eax
mov edx, edi
mov dword [ebp - 0x18], 0x715d2fc0
mov ecx, ebx
mov dword [ebp - 0x14], 0x884a6cee
call fcn.00433230
add esp, 0x1c
test al, al
je 0x43c5a0
push esi
lea ecx, [ebp - 0x1b8]
call fcn.0043c7d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
push dword [eax + 0x10c]
call fcn.0043f130
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 2
call fcn.0043c790
push ecx
mov esi, esp
mov dword [ebp - 0x1c0], esi
mov ecx, dword [ebp - 0x1c4]
lea ecx, [ecx - 0x10]
call fcn.0043ed80
mov ecx, dword [ebp - 0x1cc]
add eax, 0x10
mov dword [esi], eax
call fcn.0043be80
lea ecx, [ebp - 0x1c4]
mov esi, eax
call fcn.0041cdd0
jmp 0x43c5a2
xor esi, esi
push ebx
call fcn.004a5802
mov eax, dword [ebp - 0x1c8]
add esp, 4
push eax
call fcn.004a5802
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x43f5e0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Drivers_
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004b0d1a
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004af454
add esp, 0x18
lea eax, [ebp - 0x20c]
cmp dword [ebp + 0xc], 0
je 0x43f645
push str.FileMonx64_
jmp 0x43f64a
push str.FileMoni386_
push 0x104
push eax
call fcn.004b0d1a
add esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
push dword [esi + 0x511ce8]
lea eax, [ebp - 0x20c]
push eax
push 0x4ed424
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004385e0
push dword [esi + 0x511ce8]
lea eax, [ebp - 0x414]
push eax
push 0x4ed424
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004385e0
add esp, 0x28
lea eax, [ebp - 0x61c]
push 0
push eax
lea eax, [ebp - 0x824]
push eax
call edi
test eax, eax
je 0x43f6d0
add esi, 0x24
cmp esi, 0x24
jb 0x43f662
mov esi, 1
jmp 0x43f6d2
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43f6ed
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x43f710
Capabilities:
Check for time delay via gettickcount
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x43f84f
push esi
push edi
push 0xf01ff
push str.TSysSC
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x43f84a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x43f847
push str.QueryServiceStatusEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x43f84d
lea ecx, [ebp - 0x30]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x43f847
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp ecx, 2
jne 0x43f839
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x43f7e1
mov edx, 0x3e8
jmp 0x43f7ea
cmp edx, 0x2710
cmova edx, ecx
mov eax, dword [0x5153f0]
test eax, eax
je 0x43f7ff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43f836
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [ebp - 0x34]
test eax, eax
je 0x43f836
cmp dword [ebp - 0x14], ebx
jbe 0x43f822
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x43f82c
call edi
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x43f836
mov ecx, dword [ebp - 0x24]
cmp ecx, 2
je 0x43f7c2
jmp 0x43f839
mov ecx, dword [ebp - 0x24]
cmp ecx, 4
jne 0x43f84d
mov ebx, dword [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x43fda0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x43fde4
nop
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 0
je 0x43fdde
mov edx, dword [eax + 4]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x43fdde
add ecx, 0xffffffff
js 0x43fdea
mov eax, edx
cmp ecx, dword [eax - 0xc]
jg 0x43fdea
cmp word [eax + ecx*2], 0x30
jne 0x43fdde
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x43fdb0
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0x80070057
call fcn.0041cdf0
int3
Function at 0x440780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx]
test eax, eax
je 0x44081e
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x44081e
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0041ca30
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x440828
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4407e3
push edx
mov ecx, esi
call fcn.0041cb60
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44081d
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp + 0xc]
shr eax, 1
push ecx
mov word [ecx + eax*2], dx
mov ecx, esi
call fcn.00421f40
mov edi, 1
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.0041cdf0
int3

Function at 0x440870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x4408b6
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440883
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
pop ebx
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4409f0
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x14], 8
jb 0x440a00
mov eax, dword [esi]
jmp 0x440a02
mov eax, esi
push 0
push eax
call fcn.004af37c
add esp, 8
cmp eax, 0xffffffff
je 0x440a52
cmp dword [edi + 0x14], 8
jb 0x440a1c
mov ecx, dword [edi]
jmp 0x440a1e
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x440a28
mov eax, dword [esi]
jmp 0x440a2a
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x440a52
cmp dword [edi + 0x14], 8
jb 0x440a40
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x440a48
mov esi, dword [esi]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov eax, 1
pop esi
ret