joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78b2b67f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x78b54610]
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 sym.MSVCR100.dll__encoded_null
and dword [ebp - 0x14], 0
cmp dword [0x78b58530], 0
mov dword [ebp - 0x18], eax
jne 0x78b2b732
push 0x78ae31d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78b2b7da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78b2b808
push ebx
call edi
test eax, eax
je 0x78b2b7da
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x78ae31c4
push ebx
mov dword [0x78b58530], eax
call edi
push eax
call esi
push 0x78ae31b0
push ebx
mov dword [0x78b58534], eax
call edi
push eax
call esi
push 0x78b2b7ec
push ebx
mov dword [0x78b58538], eax
call edi
push eax
call esi
mov dword [0x78b58540], eax
test eax, eax
je 0x78b2b732
push 0x78ae3198
push ebx
call edi
push eax
call esi
mov dword [0x78b5853c], eax
mov eax, dword [0x78b5853c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x78b2b78b
cmp dword [0x78b58540], ecx
je 0x78b2b78b
push eax
call esi
push dword [0x78b58540]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x78b2b78b
test ebx, ebx
je 0x78b2b78b
call edi
test eax, eax
je 0x78b2b782
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x78b2b782
test byte [ebp - 8], 1
jne 0x78b2b78b
or dword [ebp + 0x10], 0x200000
jmp 0x78b2b7be
mov eax, dword [0x78b58534]
cmp eax, dword [ebp - 0x18]
je 0x78b2b7be
push eax
call esi
test eax, eax
je 0x78b2b7be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x78b2b7be
mov eax, dword [0x78b58538]
cmp eax, dword [ebp - 0x18]
je 0x78b2b7be
push eax
call esi
test eax, eax
je 0x78b2b7be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x78b58530]
call esi
test eax, eax
je 0x78b2b7da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x78b2b7dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x78b2f46a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x78b54610]
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 sym.MSVCR100.dll__encoded_null
and dword [ebp - 0x14], 0
cmp dword [0x78b5886c], 0
mov dword [ebp - 0x18], eax
jne 0x78b2f51d
push 0x78ae31d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78b2f5c5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78b2f5f4
push ebx
call edi
test eax, eax
je 0x78b2f5c5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x78ae31c4
push ebx
mov dword [0x78b5886c], eax
call edi
push eax
call esi
push 0x78ae31b0
push ebx
mov dword [0x78b58870], eax
call edi
push eax
call esi
push 0x78b2f5d8
push ebx
mov dword [0x78b58874], eax
call edi
push eax
call esi
mov dword [0x78b5887c], eax
test eax, eax
je 0x78b2f51d
push 0x78ae3198
push ebx
call edi
push eax
call esi
mov dword [0x78b58878], eax
mov eax, dword [0x78b58878]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x78b2f576
cmp dword [0x78b5887c], ecx
je 0x78b2f576
push eax
call esi
push dword [0x78b5887c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x78b2f576
test ebx, ebx
je 0x78b2f576
call edi
test eax, eax
je 0x78b2f56d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x78b2f56d
test byte [ebp - 8], 1
jne 0x78b2f576
or dword [ebp + 0x10], 0x200000
jmp 0x78b2f5a9
mov eax, dword [0x78b58870]
cmp eax, dword [ebp - 0x18]
je 0x78b2f5a9
push eax
call esi
test eax, eax
je 0x78b2f5a9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x78b2f5a9
mov eax, dword [0x78b58874]
cmp eax, dword [ebp - 0x18]
je 0x78b2f5a9
push eax
call esi
test eax, eax
je 0x78b2f5a9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x78b5886c]
call esi
test eax, eax
je 0x78b2f5c5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x78b2f5c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
Function at 0x41f573
Capabilities:
Parse pe header

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

Function at 0x431790
Capabilities:
Parse pe header

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

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
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 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
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 + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c
Function at 0x402220
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push ecx
push str.main_installer.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x42f0c4], 0
jbe 0x402255
cmp dword [0x42f0c8], 0xf
mov ecx, 0x42f0b4
cmova ecx, dword [0x42f0b4]
jmp fcn.0040e6c0
ret
Function at 0x404b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x421f60
movzx eax, cx
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404c24
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c24
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x404c11
push dword [ebp - 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404c11
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x404c0a
push dword [ebp - 8]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x404c03
mov ebx, dword [ebp - 8]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x404bf8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x404c03
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x404c01
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
Function at 0x405520
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d340
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.openUrl
push str._s_enter_
push str.antivirus_detector
mov dword [ebp - 4], 0
call fcn.00401ed0
mov ecx, dword [ebx + 0x18]
mov eax, SysReAllocString
sub eax, ecx
add esp, 0xc
cmp eax, 9
jb 0x4056cd
cmp dword [ebx + 0x1c], 7
lea eax, [ebx + 8]
push ecx
cmova eax, dword [ebx + 8]
push eax
push 9
push str._c_start
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.004063c0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00405910
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str.cmd.exe
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004020e0
xor ecx, ecx
mov byte [ebp - 4], 1
call fcn.0040a620
add esp, 0x30
test eax, eax
je 0x405606
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405628
cmp dword [ebx + 0x1c], 7
lea eax, [ebx + 8]
push 1
cmova eax, dword [ebx + 8]
push 0
push eax
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.openUrl
push str._s_exit_
push str.antivirus_detector
call fcn.00401ed0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
cmp ecx, 7
jbe 0x405675
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40566b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056a1
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x4056b1
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4056a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401e90
int3
Function at 0x40c7e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
jne 0x40c80e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x54], 0x44
xorps xmm0, xmm0
mov word [ebp - 0x12], ax
push 1
mov word [ebp - 0x24], ax
lea edi, [eax + 0x20]
mov dword [ebp - 0x58], eax
push esi
lea eax, [ebp - 0x58]
movlpd qword [ebp - 0x50], xmm0
push eax
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
mov dword [ebp - 0x28], 1
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40c871
mov eax, dword [ebp - 0x58]
mov edi, 0x420
jmp 0x40c876
xor eax, eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push eax
push edi
push 0
push 0
push 0
push ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [ebp - 0x58]
mov edi, eax
test ecx, ecx
je 0x40c8a2
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, 0xffffffff
je 0x40c8b3
push ecx
call esi
mov eax, dword [ebp - 0x64]
cmp eax, 0xffffffff
je 0x40c8be
push eax
call esi
mov ecx, dword [ebp - 8]
test edi, edi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0041bed2
mov esp, ebp
pop ebp
ret

Function at 0x40e430
Capabilities:
Delete file
Move file

Disassembly:
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov esi, eax
add esp, 4
test esi, esi
je 0x40e458
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40e458
pop edi
mov eax, esi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x40e520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40e52e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x40e580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40e58e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc
Function at 0x40fd20
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dc63
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x42f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebx + 8]
call fcn.00405910
push dword [ebx + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00405910
push dword [ebx + 0x10]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00405910
push dword [ebx + 0x14]
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.00405910
mov eax, dword [ebx + 0x18]
xorps xmm0, xmm0
mov dword [esi + 0x60], eax
movups xmmword [esi + 0x70], xmm0
movq qword [esi + 0x80], xmm0
mov dword [esi + 0x88], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x64], 2
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov dword [esi + 0xa0], eax
mov eax, esi
mov dword [esi + 0xa4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
Function at 0x4157a0
Capabilities:
Query service status

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e46d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
push eax
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], eax
call fcn.0040fe30
add esp, 8
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x41593d
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0
push 0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 1
mov byte [ebp - 4], 1
test eax, eax
jne 0x415854
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.invalid_manager:__d
push str.service_func
call fcn.00401ea0
add esp, 0xc
mov byte [ebp - 4], 0
jmp 0x415902
cmp dword [esi + 0x14], 7
jbe 0x41585c
mov esi, dword [esi]
push 4
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov byte [ebp - 0x58], 1
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x4158a1
push edi
push str.open_err:__d
push str.service_func
call fcn.00401ed0
add esp, 0xc
mov byte [ebp - 4], 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x415902
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
push eax
push 0x24
lea eax, [ebp - 0x38]
mov dword [ebp - 0x40], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4158ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.query_error:__d
push str.service_func
call fcn.00401ea0
add esp, 0xc
jmp 0x4158f0
xor edi, edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov byte [ebp - 4], 0
push dword [ebp - 0x4c]
call esi
push edi
push edi
push dword [ebp - 0x34]
push dword [ebp - 0x44]
push str.status:__d___d__err:__d___08X_
push str.stealth_manager
call fcn.00401ed0
add esp, 0x18
test edi, edi
jne 0x415929
cmp dword [ebp - 0x34], 1
sete cl
jmp 0x41593f
cmp edi, 0x424
je 0x41593d
cmp edi, 0x430
je 0x41593d
xor cl, cl
jmp 0x41593f
mov cl, 1
mov esi, dword [ebp - 0x50]
mov byte [ebp - 0x39], cl
test esi, esi
je 0x41596f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41596f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41596a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp - 0x39]
jmp 0x415971
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x417d20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x417d51
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00417950
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x417e5c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x417de1
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x417e52
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x417e1b
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x417e13
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x417e4f
cmp edi, edx
je 0x417e2c
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x417e65
cmp edi, edx
jne 0x417e20
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x417d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x417e4f