joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007122d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007122d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b8e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e80
mov eax, 1
add ebx, ebx
jne 0x4b8ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8eb4
jne 0x4b8ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ed3
dec eax
add ebx, ebx
jne 0x4b8ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8e98
add ebx, ebx
jne 0x4b8ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f25
xor ecx, ecx
sub eax, 3
jb 0x4b8eeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f5a
sar eax, 1
mov ebp, eax
jmp 0x4b8ef6
add ebx, ebx
jne 0x4b8ef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
inc ecx
add ebx, ebx
jne 0x4b8f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
add ebx, ebx
jne 0x4b8f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8f06
jne 0x4b8f22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8f06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f36
jmp 0x4b8e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f44
add edi, ecx
jmp 0x4b8e86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f62
cmp byte [edi], 0x13
jne 0x4b8f62
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 0x4b8f67
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8fdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc018c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8f94
mov ecx, edi
jns 0x4b8fc3
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 + 0xc0190]
or eax, eax
je 0x4b8fd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fb1
call dword [esi + 0xc01a0]
mov ebp, dword [esi + 0xc0194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4b9013
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240713182422875666255612
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240713182422875666255612]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240713182422875666255612
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240713182422875666255612]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x100973a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 0x400
push esi
mov dword [ebp - 4], 1
call fcn.010096ae
test eax, eax
je 0x1009780
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 4]
call fcn.010096f8
test eax, eax
mov eax, dword [ebp + 8]
je 0x100977d
or dword [eax], 0x20
jmp 0x1009780
or dword [eax], 0x10
pop esi
leave
ret 4

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x77dc7a0f
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, str.MbQ
nop
mov ebx, 0x42f314
mov ecx, 0x62e1154d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x401dc2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x403038]
test eax, eax
je 0x401e01
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e01
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e01
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e01
cmp dword [ecx + 0x74], 0xe
jbe 0x401e01
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4051a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4420a0]
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 edi, ecx
cmp dword [edi + 0x40], 0
je 0x4052cd
cmp byte [edi + 0x45], 0
je 0x4052cd
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4051f4
xor al, al
jmp 0x4052cf
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x48]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmp ebx, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x405261
dec eax
je 0x405265
sub eax, 2
je 0x4052b6
xor bl, bl
jmp 0x4052b8
mov byte [edi + 0x45], 0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp ebx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x405298
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40525d
cmp byte [edi + 0x45], 0
je 0x4052b6
test esi, esi
lea esi, [edi + 0x48]
jne 0x405227
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004062f0
jmp 0x405224
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4052c9
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x4052cf
mov al, 1
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.004308d0
mov esp, ebp
pop ebp
ret
Function at 0x414680
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, 0x1000
push ebx
push esi
push edi
test eax, eax
mov edi, eax
cmove edi, ecx
push edi
call dword [sym.imp.MSVCR120.dll_malloc]
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 8], ebx
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 0x10]
xor esi, esi
add esp, 0x10
mov dword [ebp - 0xc], esi
test eax, eax
je 0x4146c0
mov dword [eax], esi
mov edi, edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x414774
mov eax, dword [ebp - 4]
test eax, eax
je 0x414758
lea ebx, [eax + esi]
cmp ebx, edi
jbe 0x414718
cmp dword [ebp + 0xc], 0
ja 0x414718
push ebx
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebp - 8]
test edi, edi
je 0x414761
push esi
push eax
push edi
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], edi
mov edi, ebx
jmp 0x41471f
mov eax, edi
sub eax, esi
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41474e
add esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414744
mov dword [eax], esi
cmp esi, edi
jb 0x41474e
cmp dword [ebp + 0xc], 0
jbe 0x414758
cmp dword [ebp - 4], 0
ja 0x4146c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.MSVCR120.dll__beginthread]
push edi
push 0
push 0
push 0x4270b0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x425fe7
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.Start_socket_server_thread_failed__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0xc
push eax
call fcn.00423ea0
push 0
push 0
push 0x427370
call esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x42603d
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.Start_pipe_send_thread_failed__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0xc
push eax
call fcn.00423ea0
push 0
push 0
push 0x4268c0
call esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x426060
mov ecx, dword [0x44381c]
push str.OnlineMonitor_thread_failed
call fcn.00423ea0
push 0
push 0
push 0x4263a0
call esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x426083
mov ecx, dword [0x44381c]
push str.GetMMOnlineNum_thread_failed
call fcn.00423ea0
push 0
push 0
push 0x4270e0
call esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4260a6
mov ecx, dword [0x44381c]
push str.Start_mmpipe_failed
call fcn.00423ea0
push 0
push 0
push 0x427570
call esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4260fc
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.Start_pop_ad_thread_failed__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0xc
push eax
call fcn.00423ea0
push 0x442058
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x42614c
push 0x7f
push eax
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x83]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.SERVICE:StartServiceCtrlDispatcher_failed__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0xc
push eax
call fcn.00423ea0
push 0x4437f4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004308d0
mov esp, ebp
pop ebp
ret
Function at 0x426170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x426218
push edi
mov edi, dword [ebp + 8]
mov edi, edi
mov eax, edi
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4261d8
test dl, dl
je 0x4261d4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4261d8
add ecx, 2
add eax, 2
test dl, dl
jne 0x4261b8
xor eax, eax
jmp 0x4261dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x426202
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4261b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004308d0
mov esp, ebp
pop ebp
ret

Function at 0x426230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20b]
push 0x103
push 0
push eax
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x22c], 0x104
mov byte [ebp - 0x20c], 0
call sub.MSVCR120.dll_memset
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea eax, [ebp - 0x228]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsDroid4X.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4262ef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x426300
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x108], 0
jne 0x42630d
xor ecx, ecx
jmp 0x42631f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426316
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00406720
push 1
push 0xffffffffffffffff
push 0x438bd4
mov ecx, esi
call fcn.00414c10
cmp eax, 0xffffffff
je 0x426374
inc eax
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.00414cf0
push eax
mov ecx, esi
call fcn.00404460
cmp dword [ebp - 0x210], 0x10
jb 0x426374
push dword [ebp - 0x224]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004308d0
mov esp, ebp
pop ebp
ret
Function at 0x426520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], esi
test esi, esi
jne 0x42655b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
push edi
push 0x124
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x42659e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x426645
mov ebx, dword [sym.imp.MSVCR120.dll__strupr]
push esi
call ebx
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call ebx
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4265f5
test cl, cl
je 0x4265f1
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4265f5
add eax, 2
add esi, 2
test cl, cl
jne 0x4265d5
xor eax, eax
jmp 0x4265fa
sbb eax, eax
or eax, 1
test eax, eax
je 0x42661c
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
mov esi, dword [ebp - 0x134]
test eax, eax
jne 0x4265c4
mov esi, 1
jmp 0x426647
push dword [ebp - 0x124]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x130]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x426647
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004308d0
mov esp, ebp
pop ebp
ret
Function at 0x426670
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4266f4
push 0x7f
push eax
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x83]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x84]
push str.SERVICE:OpenSCManager_failed__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0xc
push eax
call fcn.00423ea0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x110
push 0xf01ff
push 0x443000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
push 0x7f
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x83]
push 0
mov byte [ebp - 0x84], 0
push eax
jne 0x426786
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x84]
push str.Failed_to_create_service__s__error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0x10
push eax
call fcn.00423ea0
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
call sub.MSVCR120.dll_memset
push edi
lea eax, [ebp - 0x84]
push str.SERVICR:Service__s_installed_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x84]
add esp, 0x18
push eax
call fcn.00423ea0
push dword [ebp - 0x88]
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004308d0
mov esp, ebp
pop ebp
ret