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

Disassembly:
push 0x438a14
pop edi
inc esi
call fcn.00438cb0
or ebx, esi
and ebx, ebx
mov ebx, 0x859b661a
xor dword [ecx], edi
inc ebx
and ebx, esi
inc ecx
push ebx
pop ebx
inc esi
cmp ecx, edx
jne fcn.00438c7b
or ebx, esi
add esi, 0x3169ff99
ret
Function at 0x5733a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x112000]
push edi
or ebp, 0xffffffff
jmp 0x5733c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5733c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5733b8
mov eax, 1
add ebx, ebx
jne 0x5733db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5733ec
jne 0x57340b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57340b
dec eax
add ebx, ebx
jne 0x5733f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5733d0
add ebx, ebx
jne 0x573407
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57345d
xor ecx, ecx
sub eax, 3
jb 0x573423
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x573492
sar eax, 1
mov ebp, eax
jmp 0x57342e
add ebx, ebx
jne 0x57342e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5733fc
inc ecx
add ebx, ebx
jne 0x57343c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5733fc
add ebx, ebx
jne 0x573449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57343e
jne 0x57345a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57343e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57347c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57346e
jmp 0x5733be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57347c
add edi, ecx
jmp 0x5733be
pop esi
mov edi, esi
mov ecx, 0x50
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57349a
cmp byte [edi], 0xa
jne 0x57349a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57349f
lea edi, [esi + 0x171000]
mov eax, dword [edi]
or eax, eax
je 0x573517
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x176754]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x176790]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5734cc
mov ecx, edi
jns 0x5734fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x176794]
or eax, eax
je 0x573511
mov dword [ebx], eax
add ebx, 4
jmp 0x5734e9
call dword [esi + 0x1767a4]
mov ebp, dword [esi + 0x176798]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57354b
sub esp, 0xffffff80
jmp 0x4013b0
Function at 0x10001280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100012a7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x100012b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10004eb8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004ef7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004ef7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004ef7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004ef7
cmp dword [ecx + 0x74], 0xe
jbe 0x10004ef7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007aa9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007b46
push ebx
push esi
call fcn.10007a72
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10007a06
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007af3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b45
push edi
push eax
call fcn.100063a7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007b13
call fcn.1000654e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b44
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007a06
add esp, 0x20
test eax, eax
jne 0x10007b32
push edi
call fcn.1000654e
jmp 0x10007b3a
push ebx
call fcn.1000654e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007db3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa00
push 0x1000f9f8
push str.FlsAlloc
push 0x1f
call fcn.10007ccf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007de7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e110]
call esi
jmp 0x10007ded
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007e31
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa10
push 0x1000fa08
push str.FlsGetValue
push 0x21
call fcn.10007ccf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007e68
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007e70
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa18
push 0x1000fa10
push str.FlsSetValue
push 0x22
call fcn.10007ccf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007eaa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d3c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d3ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d3ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402810
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.http:__www.dopdf.com_uninstall_reason.php
push 0x41f5b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x402900
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0xc6
mov esi, ecx
push eax
lea ecx, [ebp - 0xca]
push ecx
mov dword [ebp - 0x4d0], 0
mov word [ebp - 0xcc], ax
call fcn.0040ae90
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x4ca]
push eax
mov word [ebp - 0x4cc], dx
call fcn.0040ae90
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esi, 0xa0
push esi
push str.SoftwareSoftland_
lea ecx, [ebp - 0x4cc]
push 0x41f7bc
push ecx
call edi
add esp, 0x28
push 0
lea edx, [ebp - 0x4d0]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4029e5
push 0x41f7b8
lea ecx, [ebp - 0xcc]
push str.Language_s
push ecx
call edi
mov eax, dword [ebp - 0x4d0]
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x4d0]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402a02
call fcn.004065d0
test eax, eax
je 0x402a02
push esi
push str.PdfsInstaller.DeleteNovaLanguage__cannot_delete_key__error___d
call fcn.004065d0
push eax
call fcn.004063d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret

Function at 0x402a20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0xc6
mov esi, ecx
push eax
lea ecx, [ebp - 0xca]
push ecx
mov dword [ebp - 0x4d0], 0
mov word [ebp - 0xcc], ax
call fcn.0040ae90
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x4ca]
push eax
mov word [ebp - 0x4cc], dx
call fcn.0040ae90
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esi, 0xa0
push esi
push str.SoftwareSoftland_
lea ecx, [ebp - 0x4cc]
push 0x41f7bc
push ecx
call edi
add esp, 0x28
push 0
lea edx, [ebp - 0x4d0]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x402b05
push 0x41f7b8
lea ecx, [ebp - 0xcc]
push str.RegionalSettingLanguage_s
push ecx
call edi
mov eax, dword [ebp - 0x4d0]
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x4d0]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402b22
call fcn.004065d0
test eax, eax
je 0x402b22
push esi
push str.PdfsInstaller.DeleteLanguageRegSetting__cannot_delete_key__error___d
call fcn.004065d0
push eax
call fcn.004063d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret
Function at 0x402b40
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov dword [ebp - 0x608], eax
mov word [ebp - 0x604], cx
call fcn.0040ae90
xor eax, eax
push 0x1fc
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.0040ae90
add esp, 0x18
push 1
push 0x1a
lea edx, [ebp - 0x604]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x604]
add edi, 0xfffffffe
jmp 0x402bc0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402bc0
mov ecx, 9
mov esi, str.Softland_novaPDF
lea eax, [ebp - 0x60c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x60c], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, dword [ebp - 0x608]
push ebx
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x604]
push eax
push str._s_nova__s__s.nvl
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret 8
Function at 0x402cc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov dword [ebp - 0xa08], 0
mov dword [ebp - 0xa10], 0x400
mov word [ebp - 0x804], ax
call fcn.0040ae90
add esp, 0xc
xor eax, eax
jmp 0x402d10
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment]
mov word [ebp + eax - 0xa04], cx
add eax, 2
test cx, cx
jne 0x402d10
lea edx, [ebp - 0xa08]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xa04]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e6d
lea ecx, [ebp - 0xa10]
push ecx
mov ecx, dword [ebp - 0xa08]
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0xa0c]
push eax
push 0
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e6d
lea edx, [ebp - 0x804]
push esi
push edx
call fcn.0040b3d3
lea eax, [ebp - 0x804]
push str.SYSTEM32WBEM
push eax
call fcn.0040af0a
add esp, 0xc
test eax, eax
je 0x402de8
mov esi, eax
add eax, 2
push str.SYSTEM32WBEM
push eax
call fcn.0040af0a
add esp, 8
test eax, eax
jne 0x402da5
test esi, esi
je 0x402de8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402dc5
sub eax, edx
sar eax, 1
cmp eax, 0xd
jbe 0x402e6c
cmp word [esi + 0x1a], 0x3b
je 0x402e6c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402df1
sub eax, edx
sar eax, 1
add eax, 0x19
cmp eax, 0x400
ja 0x402e6c
push edi
lea edi, [ebp - 0x804]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402e14
mov ecx, 0xe
mov esi, str.__SystemRoot_SYSTEM32WBEM
lea eax, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
pop edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e36
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0xa0c]
push ecx
mov ecx, dword [ebp - 0xa08]
lea edx, [ebp - 0x804]
push edx
push eax
push 0
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
mov eax, dword [ebp - 0xa08]
test eax, eax
je 0x402e7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0xfa0
push 1
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x60a]
push ecx
mov dword [ebp - 0x610], 0
mov word [ebp - 0x60c], ax
call fcn.0040ae90
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push 0x420520
lea edx, [ebp - 0x60c]
push str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy07C9EF18_AAB1_43EF_8617_74434E4FA1_s
push edx
call ebx
add esp, 0x18
push 0
lea eax, [ebp - 0x610]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x60c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x4038ae
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [ebp - 0x614]
push edx
push 4
push eax
mov eax, dword [ebp - 0x610]
push str.Policy
push eax
mov dword [ebp - 0x614], 3
call edi
mov ecx, dword [ebp - 0x610]
push 0x1a
push 0x41e8e8
push 1
push 0
push str.AppName
push ecx
call edi
cmp dword [esi + 0x354], 8
jb 0x40381f
mov esi, dword [esi + 0x340]
jmp 0x403825
add esi, 0x340
push esi
lea edx, [ebp - 0x20c]
push 0x420424
push edx
call ebx
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403840
sub eax, edx
mov edx, dword [ebp - 0x610]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push str.AppPath
push edx
call edi
call fcn.004065d0
test eax, eax
je 0x403890
lea eax, [ebp - 0x60c]
push eax
push str.PdfsInstaller.WriteRegClientElavation__elavation_key___s
call fcn.004065d0
push eax
call fcn.004063d0
add esp, 0xc
mov ecx, dword [ebp - 0x610]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret
call fcn.004065d0
test eax, eax
je 0x4038cb
push edi
push str.PdfsInstaller.WriteRegClientElavation__cannot_open_key__error___d
call fcn.004065d0
push eax
call fcn.004063d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040b450
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0xffffffff
je 0x406476
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x1004]
push edx
call fcn.0040c34c
lea eax, [ebp - 0x1004]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406414
mov ecx, dword [0x422278]
mov dx, word [0x42227c]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406440
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [esi]
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret
Function at 0x4068d0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push 0
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x406901
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
sete al
pop esi
mov esp, ebp
pop ebp
ret
push str.Service_start_pending._n
call fcn.0040c4a4
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x406a0f
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 2
mov ebx, dword [ebp - 0xc]
mov esi, eax
jne 0x4069a0
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x40695a
mov edx, 0x3e8
jmp 0x406967
cmp edx, 0x2710
jbe 0x406967
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x20]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4069a0
cmp dword [ebp - 0xc], ebx
jbe 0x406991
call edi
mov ebx, dword [ebp - 0xc]
mov esi, eax
jmp 0x40699a
call edi
sub eax, esi
cmp eax, dword [ebp - 8]
ja 0x4069a0
cmp dword [ebp - 0x1c], 2
je 0x406940
cmp dword [ebp - 0x1c], 4
pop edi
pop ebx
jne 0x4069bc
push str.StartService_SUCCESS._n
call fcn.0040c4a4
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push str._nService_not_started.__n
call fcn.0040c4a4
mov eax, dword [ebp - 0x1c]
push eax
push str.__Current_State:__d_n
call fcn.0040c4a4
mov ecx, dword [ebp - 0x14]
push ecx
push str.__Exit_Code:__d_n
call fcn.0040c4a4
mov edx, dword [ebp - 0x10]
push edx
push str.__Service_Specific_Exit_Code:__d_n
call fcn.0040c4a4
mov eax, dword [ebp - 0xc]
push eax
push str.__Check_Point:__d_n
call fcn.0040c4a4
mov ecx, dword [ebp - 8]
push ecx
push str.__Wait_Hint:__d_n
call fcn.0040c4a4
add esp, 0x2c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406aa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor dl, dl
xor eax, eax
push edi
add esi, 2
mov byte [esi + eax], al
inc eax
cmp eax, 0x100
jb 0x406ab1
xor ecx, ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 0xc]
mov bl, byte [esi]
movzx edx, dl
movzx eax, byte [edx + eax]
movzx edi, bl
add eax, ecx
add eax, edi
and eax, 0x800000ff
jns 0x406ae6
dec eax
or eax, 0xffffff00
inc eax
mov edi, dword [ebp + 8]
movzx ecx, al
mov al, byte [ecx + edi + 2]
mov byte [esi], al
lea eax, [edx + 1]
xor edx, edx
div dword [ebp + 0x10]
inc esi
sub dword [ebp - 4], 1
mov byte [ecx + edi + 2], bl
jne 0x406ac5
mov byte [edi + 1], 0
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jbe 0x406bcb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
sub ebx, edi
mov dword [ebp + 0x14], ecx
nop
movzx ecx, byte [eax]
inc ecx
and ecx, 0x800000ff
jns 0x406b54
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [eax], cl
movzx ecx, cl
movzx edx, byte [ecx + eax + 2]
lea esi, [ecx + eax + 2]
movzx ecx, byte [eax + 1]
add ecx, edx
and ecx, 0x800000ff
jns 0x406b78
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [eax + 1], cl
mov dl, byte [esi]
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
mov byte [esi], cl
movzx ecx, byte [eax + 1]
mov byte [ecx + eax + 2], dl
movzx edx, byte [eax + 1]
movzx ecx, byte [edx + eax + 2]
movzx edx, byte [eax]
movzx edx, byte [edx + eax + 2]
add ecx, edx
and ecx, 0x800000ff
jns 0x406bb2
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, byte [ecx + eax + 2]
xor cl, byte [ebx + edi]
inc edi
sub dword [ebp + 0x14], 1
mov byte [edi - 1], cl
jne 0x406b40
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406bd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x427120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov al, 0x38
mov byte [ebp - 0x13], al
mov byte [ebp - 9], al
push 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebp - 0x14], 0xb
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0x2b
mov byte [ebp - 0x10], 0xa5
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x4c
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x57
mov byte [ebp - 0xb], 0x29
mov byte [ebp - 0xa], 3
mov byte [ebp - 8], 0x4e
mov byte [ebp - 7], 0x1d
mov byte [ebp - 6], 0x5f
mov byte [ebp - 5], 0x65
call fcn.00406aa0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edx
push esi
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00406b20
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
pop esi
call fcn.0040ae4c
mov esp, ebp
pop ebp
ret

Function at 0x406c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.00408690
mov edi, eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push 1
push edi
call fcn.0040c9ed
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
mov ebx, eax
call fcn.00406bd0
push edi
call fcn.004086b0
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push edx
push eax
call fcn.00406a40
add esp, 0x30
pop edi
mov dword [esi], eax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x406cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push 0x422434
push eax
mov dword [ebp - 8], 0
call fcn.0040cbc3
mov esi, eax
add esp, 8
test esi, esi
je 0x406d74
push ebx
push edi
push 1
mov byte [ebp - 1], 7
call fcn.00408690
mov edi, eax
push 1
lea ecx, [ebp - 1]
push edi
push ecx
call fcn.00406bd0
push esi
push 1
push 1
push edi
call fcn.0040c6cb
push edi
call fcn.004086b0
mov eax, dword [ebp - 8]
push 1
lea edx, [ebp - 1]
push edx
push eax
call fcn.00406a40
push 0x1d78
mov dword [ebp - 8], eax
call fcn.00408690
mov ebx, dword [ebp + 0xc]
mov edi, eax
push 0x1d78
push edi
push ebx
call fcn.00406bd0
add esp, 0x40
push esi
push 0x1d78
push 1
push edi
call fcn.0040c6cb
push edi
call fcn.004086b0
mov ecx, dword [ebp - 8]
push 0x1d78
push ebx
push ecx
call fcn.00406a40
push esi
push 1
lea edx, [ebp - 8]
push 4
push edx
mov dword [ebp - 8], eax
call fcn.0040c6cb
push esi
call fcn.0040ca81
add esp, 0x34
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
push 0x42243c
push eax
mov ebx, 1
call fcn.0040cbc3
mov esi, eax
add esp, 8
test esi, esi
je 0x406e2c
push edi
push ebx
call fcn.00408690
push esi
push ebx
mov edi, eax
push ebx
push edi
call fcn.0040c9ed
push ebx
lea ecx, [ebp - 1]
push ecx
push edi
call fcn.00406bd0
push edi
call fcn.004086b0
push ebx
lea edx, [ebp - 1]
push edx
push 0
call fcn.00406a40
add esp, 0x30
cmp byte [ebp - 1], 7
mov dword [ebp - 8], eax
pop edi
ja 0x406dfc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
push 0x1d78
push ecx
call fcn.00406c60
add esp, 0x10
jmp 0x406dfe
xor ebx, ebx
push esi
push 1
lea edx, [ebp - 0xc]
push 4
push edx
call fcn.0040c9ed
push esi
call fcn.0040ca81
add esp, 0x14
test ebx, ebx
je 0x406e2c
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jne 0x406e2c
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret