joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403571
cmp byte [ebx + 0x49], 0
je 0x403571
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403565
lea esi, [ebp - 0x2c]
call fcn.00403020
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403453
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40348c
dec eax
je 0x403490
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40356c
call fcn.00401f90
xor al, al
jmp 0x403573
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4034a0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4034cd
cmp edi, 0x10
jae 0x4034af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00405cf7
add esp, 0x10
cmp esi, eax
jne 0x40355d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403569
test esi, esi
jne 0x403447
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40358e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40358e
cmp edi, esi
jae 0x403546
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403a30
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403447
mov ecx, eax
cmp edi, 0x10
jae 0x403522
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40353d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403441
test esi, esi
jne 0x403518
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403555
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403441
lea ecx, [ebp - 0x2c]
call fcn.00401f90
xor al, al
jmp 0x403573
lea ecx, [ebp - 0x2c]
call fcn.00401f90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00404d87
int3
Function at 0x4038e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41b494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00404c4b
push 4
mov dword [ebp - 4], 0
call fcn.004054e1
mov edi, eax
add esp, 4
test edi, edi
je 0x40395c
call fcn.0040461c
mov dword [edi], eax
call fcn.004043db
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00404310
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403952
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00404338
jmp 0x40395e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404edf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b494]
jne 0x404ee9
repz ret
jmp fcn.0040932f
Function at 0x4123f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b494]
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.0040c93f
and dword [ebp - 0x14], 0
cmp dword [0x41d30c], 0
mov dword [ebp - 0x18], eax
jne 0x4124a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41254f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417ef4
push ebx
call edi
test eax, eax
je 0x41254f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41d30c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41d310], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41d314], eax
call edi
push eax
call esi
mov dword [0x41d31c], eax
test eax, eax
je 0x4124a7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41d318], eax
mov eax, dword [0x41d318]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412500
cmp dword [0x41d31c], ecx
je 0x412500
push eax
call esi
push dword [0x41d31c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412500
test ebx, ebx
je 0x412500
call edi
test eax, eax
je 0x4124f7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4124f7
test byte [ebp - 8], 1
jne 0x412500
or dword [ebp + 0x10], 0x200000
jmp 0x412533
mov eax, dword [0x41d310]
cmp eax, dword [ebp - 0x18]
je 0x412533
push eax
call esi
test eax, eax
je 0x412533
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412533
mov eax, dword [0x41d314]
cmp eax, dword [ebp - 0x18]
je 0x412533
push eax
call esi
test eax, eax
je 0x412533
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41d30c]
call esi
test eax, eax
je 0x41254f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412551
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404edf
leave
ret
Function at 0x76f3a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x10], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x9c], 0
mov esp, ebp
pop ebp
ret
Function at 0x77cd80
Capabilities:
Parse pe header

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

Function at 0x7ffe540e
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push bx
inc esp
inc esp
add al, 0
not eax
not eax
inc esi
dec esi
xor eax, ecx
xor eax, ecx
and al, 0xff
pushf
popf
push eax
pop eax
add al, 4
sub al, 4
add al, 0
xor eax, ecx
xor eax, ecx
push eax
pop eax
not eax
not eax
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push es
pop ds
push bx
inc esp
inc esp
inc esi
dec esi
add al, 4
sub al, 4
call 0x7ffe5453
pop edx
push eax
pop eax
cld
xor dx, dx
cld
add edx, 0xd5e0
xor eax, ecx
xor eax, ecx
stc
xor ecx, ecx
push edx
cdq
pop edx
mov cl, 0x1e
push es
pop ds
xor eax, ecx
xor eax, ecx
xor byte [ecx + edx], 0xd
loop 0x7ffe5473
push dword fs:[0x24]
push es
pop ds
pop dword [edx + 0xa]
cld
mov cl, 0xff
add al, 0
push edx
loop 0x7ffe548a
push bx
inc esp
inc esp
push es
pop ds
mov dword [edx + 0x11], 0xffffacbb
cld
mov ecx, dword [eax + 0x2c]
and al, 0xff
pushf
popf
mov dword [edx + 0x1b], ecx
add al, 0
push eax
pop eax
mov dword [edx + 0x100], ecx
push es
pop ds
mov dword [eax + 0x2c], esp
pushf
popf
cld
push 0
pushf
popf
push 0
push 0
inc esi
dec esi
push eax
pop eax
stc
push 0
push bx
inc esp
inc esp
stc
push 0x30
and al, 0xff
push 0x20
clc
push 0
push 0
nop
add edx, 0xffff7f33
push eax
pop eax
push eax
pop eax
push edx
push es
pop ds
push edx
add al, 4
sub al, 4
push es
pop ds
push 0
call dword [edx + 0x8210]
pushf
popf
stc
add esp, 0x3f8
cld
push es
pop ds
xor eax, eax
add al, 4
sub al, 4
push es
pop ds
inc eax
ret 0xc
Function at 0x10001f30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x100150a0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov dword [esp + 0xc], eax
push edi
add eax, 4
lea ecx, [esp + 0x15]
mov esi, 4
lea ebx, [ebx]
movzx edx, byte [eax - 4]
mov byte [ecx - 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax + 4]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 8]
mov byte [ecx + 2], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x10001f60
lea eax, [esp + 0x18]
lea ecx, [ebp + 0x2a8]
mov esi, 4
movzx edx, byte [ecx - 4]
xor byte [eax - 4], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 4]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 8]
xor byte [eax + 8], dl
inc ecx
inc eax
sub esi, 1
jne 0x10001f92
lea ebx, [esi + 9]
lea esi, [ebp + 0x298]
lea esp, [esp]
lea edi, [esp + 0x14]
call fcn.10002230
mov eax, edi
mov ecx, ebp
call fcn.100021d0
xor eax, eax
jmp 0x10001fe0
movzx ecx, byte [esi + eax - 4]
movzx edx, byte [esi + eax]
xor byte [esp + eax + 0x14], cl
xor byte [esp + eax + 0x18], dl
movzx ecx, byte [esi + eax + 4]
movzx edx, byte [esi + eax + 8]
xor byte [esp + eax + 0x1c], cl
xor byte [esp + eax + 0x20], dl
inc eax
cmp eax, 4
jl 0x10001fe0
test ebx, ebx
je 0x10002016
lea ecx, [esp + 0x14]
call fcn.100022c0
dec ebx
sub esi, 0x10
test ebx, ebx
jge 0x10001fc0
mov eax, dword [esp + 0x10]
add eax, 4
lea ecx, [esp + 0x15]
mov esi, 4
mov edi, edi
movzx edx, byte [ecx - 1]
mov byte [eax - 4], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ecx + 1]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 8], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x10002030
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005e12
add esp, 0x18
ret 8

Function at 0x100028c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, 0x10016be8
mov dword [esp + 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100028d4
sub eax, edx
sar eax, 1
jne 0x10002976
push ebx
push edi
push 1
push 0x23
push 0x10016be8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Microsoft
push 0x104
push 0x10016be8
call fcn.10006060
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push 0x10016be8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10002933
push 0
push 0x10016be8
call ebx
push str.Help
push 0x104
push 0x10016be8
call fcn.10006060
add esp, 0xc
push 0x10016be8
call edi
test eax, eax
jne 0x1000295d
push eax
push 0x10016be8
call ebx
push 0x10012d40
push 0x104
push 0x10016be8
call fcn.10006060
add esp, 0xc
pop edi
pop ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov eax, 0x10016be8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002992
sub eax, edx
sar eax, 1
call fcn.10002d40
mov eax, esi
pop esi
pop ecx
ret
Function at 0x10002af0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000ffc8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100150a0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100150a0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
call fcn.100028c0
push eax
mov ebx, str.d8762ba8db594d2f97202efcbb774bcf
lea esi, [esp + 0x3c]
mov dword [esp + 0x64], 0
call fcn.10003160
mov edi, 8
add esp, 4
cmp dword [esp + 0x34], edi
jb 0x10002b69
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10005e21
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x10002b77
lea eax, [esp + 0x3c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002c0e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x55b
push esi
mov dword [esp + 0x24], 0x10
call edi
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ebp
push esi
call ebx
push 0
push 0
push 0xabb
push esi
mov dword [esp + 0x24], 0x10
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], 8
jb 0x10002c0a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10005e21
add esp, 4
mov al, 1
jmp 0x10002c23
cmp dword [esp + 0x50], edi
jb 0x10002c21
mov edx, dword [esp + 0x3c]
push edx
call fcn.10005e21
add esp, 4
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10005e12
add esp, 0x50
ret
Function at 0x10002c50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
xor edi, edi
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002d2f
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], ebp
cmp ebp, esi
jbe 0x10002d1c
push ebp
call fcn.10004155
mov edi, eax
add esp, 4
cmp edi, esi
je 0x10002d1c
push ebp
push esi
push edi
call fcn.10006e70
add esp, 0xc
test ebp, ebp
jbe 0x10002cf4
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esi + edi]
push eax
push ebx
mov dword [esp + 0x24], 0
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002cf0
add esi, eax
cmp esi, dword [esp + 0x14]
jb 0x10002cc5
mov ebp, dword [esp + 0x14]
cmp esi, ebp
jne 0x10002d13
mov ecx, dword [esp + 0x28]
push ebx
mov dword [esp + 0x1c], esi
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
push edi
call fcn.10006055
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x10003160
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1000ff98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x100150a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.10002de0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100031b6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.10003220
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.10002de0
cmp dword [esp + 0x24], 8
jb 0x100031ff
mov edx, dword [esp + 0x10]
push edx
call fcn.10005e21
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x100036b0
Capabilities:
Modify service

Disassembly:
sub esp, 0x4c
mov eax, dword [0x100150a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x16]
push ecx
mov byte [esp + 0x13], 0
mov word [esp + 0x18], ax
call fcn.10006e70
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100037d8
call fcn.10003e70
cmp eax, 0x40
jae 0x1000370c
push 0x10012d44
push 0x20
lea edx, [esp + 0x14]
push edx
jmp 0x10003718
push str.IKEEXT
push 0x20
lea eax, [esp + 0x14]
push eax
call fcn.100062dc
add esp, 0xc
push edi
push 3
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100037d0
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push edi
mov dword [esp + 0x20], 0
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100037c8
push esi
push eax
call fcn.10004155
mov esi, eax
add esp, 4
test esi, esi
je 0x100037c7
mov eax, dword [esp + 0x14]
push eax
push 0
push esi
call fcn.10006e70
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push edi
call ebp
test eax, eax
je 0x100037be
mov eax, 2
cmp dword [esi + 4], eax
jbe 0x100037b9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push edi
mov dword [esi + 4], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x100037be
mov byte [esp + 0x13], 1
push esi
call fcn.10006055
add esp, 4
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 7]
pop ebx
xor ecx, esp
call fcn.10005e12
add esp, 0x4c
ret
Function at 0x10005e12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100150a0]
jne 0x10005e1c
repz ret
jmp fcn.1000777c

Function at 0x1000f5ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10008eba
and dword [ebp - 4], 0
cmp dword [0x10016b08], 0
mov ebx, eax
jne 0x1000f69e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000f74f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000f74f
push eax
call fcn.10008e48
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10016b08], eax
call esi
push eax
call fcn.10008e48
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10016b0c], eax
call esi
push eax
call fcn.10008e48
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10016b10], eax
call esi
push eax
call fcn.10008e48
pop ecx
mov dword [0x10016b18], eax
test eax, eax
je 0x1000f69e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10008e48
pop ecx
mov dword [0x10016b14], eax
mov eax, dword [0x10016b14]
cmp eax, ebx
je 0x1000f6f6
cmp dword [0x10016b18], ebx
je 0x1000f6f6
push eax
call fcn.10008ec3
push dword [0x10016b18]
mov esi, eax
call fcn.10008ec3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000f6f6
test edi, edi
je 0x1000f6f6
call esi
test eax, eax
je 0x1000f6ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f6ed
test byte [ebp - 0xc], 1
jne 0x1000f6f6
or dword [ebp + 0x10], 0x200000
jmp 0x1000f72f
mov eax, dword [0x10016b0c]
cmp eax, ebx
je 0x1000f72f
push eax
call fcn.10008ec3
pop ecx
test eax, eax
je 0x1000f72f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f72f
mov eax, dword [0x10016b10]
cmp eax, ebx
je 0x1000f72f
push eax
call fcn.10008ec3
pop ecx
test eax, eax
je 0x1000f72f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10016b08]
call fcn.10008ec3
pop ecx
test eax, eax
je 0x1000f74f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000f751
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e715c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e7177
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ac39c]
pop edx
test eax, eax
je 0x5e7249
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e7238
test dword [ebp - 0x2a8], 1
jne 0x5e7238
and dword [ebp - 0x2a8], 0x100
jne 0x5e7238
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2d75]
pop edx
pop esi
test eax, eax
je 0x5e71db
jmp 0x5e7238
cmp word [esi], 0x5a4d
jne 0x5e7238
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e7238
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d30ad]
pop edx
test eax, eax
je 0x5e7238
lea eax, [ebp - 0x28c]
push eax
call fcn.005e70b8
test eax, eax
jne 0x5e7231
jmp 0x5e7238
mov eax, esi
jmp 0x5e7249
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e7177
pop esi
leave
ret 4
Function at 0x401830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9cc
call fcn.00411a00
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call fcn.00405b30
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x3a9c4], ecx
nop word [eax + eax]
mov eax, ecx
mov bl, cl
shr eax, 7
add bl, bl
mov dword [ebp - 0x3a9c8], eax
mov eax, ecx
xor eax, 0x100
mov ecx, 4
shr eax, 8
and eax, 7
sub ecx, eax
mov eax, dword [ebp - 0x3a9c4]
mov edx, eax
shr eax, 6
shr edx, cl
mov cl, byte [ebp - 0x3a9c8]
add cl, bl
and cl, al
xor cl, bl
or dl, cl
mov ecx, dword [ebp - 0x3a9c4]
or dl, byte [ebp - 0x3a9c8]
mov byte [ebp + ecx - 0x3a988], dl
inc ecx
mov dword [ebp - 0x3a9c4], ecx
cmp ecx, 0x3a980
jb 0x4018c0
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404ad6
mov esp, ebp
pop ebp
ret