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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test esi, esi
js 0x54602d
shr esi, 2
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x546026
mov dword [ebp + 0x14], esp
mov ebx, ecx
test ebx, ebx
js 0x546040
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x546039
mov edx, esp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa]
push eax
push 5
mov eax, dword [ebp - 4]
call fcn.00545c0c
mov ebx, 6
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x54605e
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov edx, ebx
mov cl, byte [esi]
mov eax, dword [ebp - 4]
call fcn.00545d14
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x5460e3
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x546103
lea edx, [ebp - 0xa]
mov ecx, 5
mov eax, dword [ebp - 4]
call fcn.00545c94
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x54612f
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5540b4
Capabilities:
Read file via mapping

Disassembly:
push 0x554154
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x55b82c], eax
cmp dword [0x55b82c], 0
jne 0x554124
push 0x554154
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x55b82c], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x55b82c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x55b830], eax
cmp dword [0x55b830], 0
jne 0x554119
mov eax, dword [0x55b82c]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [0x55b830]
xor edx, edx
mov dword [eax], edx
jmp 0x554150
push 0
push 0
push 0
push 6
mov eax, dword [0x55b82c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x55b830], eax
cmp dword [0x55b830], 0
jne 0x554150
mov eax, dword [0x55b82c]
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x599268
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x59926e
ret
Function at 0x5dc008
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5dc010
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x461086
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46109c
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0057f664
lea ecx, [ebp - 0x10]
mov edx, 0x4610b0
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0057f664
lea ecx, [ebp - 0x14]
mov edx, 0x4610c8
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0057f664
lea ecx, [ebp - 0x18]
mov edx, 0x4610e4
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0057f664
lea ecx, [ebp - 0x1c]
mov edx, 0x461100
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0057f664
lea ecx, [ebp - 0x24]
mov edx, 0x461118
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00583614
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00583a08
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x461130
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x28]
call fcn.005d396c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x461140
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x2c]
call fcn.005d396c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x461158
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00583a08
inc eax
je 0x5dc1a5
lea ecx, [ebp - 0x34]
mov edx, 0x461158
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x34]
call fcn.005839cc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00584f84
fstp qword [ebp - 0x3c]
wait
call fcn.005852f4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x5dc1c0
lea ecx, [ebp - 0x40]
mov edx, 0x461158
mov eax, esi
call fcn.005d9e94
mov eax, dword [ebp - 0x40]
call fcn.005d396c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x461168
mov eax, esi
call fcn.005d9e94
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0057f664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46108d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0057f634
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0057f634
ret
Function at 0x5e2f94
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x467e72
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005e2f84
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.005d25d8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.005d21d8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e79
lea eax, [ebp - 4]
call fcn.0057f610
ret

Function at 0x5e8148
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0059abb4
cmp ebx, dword [ebp - 8]
jge 0x5e81ab
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0059aeb4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0059aeb4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0059aee0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x5e8171
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5e81b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0059abb4
cmp ebx, dword [ebp - 8]
jge 0x5e8217
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0059aeb4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0059aeb4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0059aee0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x5e81dd
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x49ad00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x290], 0
push edi
je case.default.0x49ad60
test eax, eax
je case.default.0x49ad60
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x49ad60
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x49ad60
jmp dword [edx*4 + 0x49ae7c]
mov ecx, str.Header
mov edx, str.from
jmp 0x49ad7d
mov ecx, str.Header
mov edx, 0x55f3e0
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.0049e5d0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ada0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x49adf5
mov ecx, dword [esi + 0xfc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x49ae60
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x49ae23
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x49ae60
mov eax, dword [esi + 0xf8]
push eax
push 1
push 2
push 0x55f3bc
call fcn.0052a334
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0052a334
add esp, 0x20
jmp case.default.0x49ad60
test ebx, ebx
jl 0x49ae5e
cmp ebx, 2
jg 0x49ae5e
mov eax, dword [esi + 0xf8]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x55f3bc]
push 2
push ecx
call fcn.0052a334
mov edx, dword [esi + 0xf8]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0052a334
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523c2c
add esp, 0xa4
ret

Function at 0x49b0b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x49b11f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x49b0ff
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.00490120
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0049af20
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5467c9
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x54955d
call fcn.00523ca4
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x5468db
cmp byte [esi + 0x42], bl
je 0x5468db
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x546805
xor al, al
jmp 0x5468dd
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00414e80
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x546875
dec eax
je 0x546879
dec eax
dec eax
je 0x5468d7
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a6c0
mov al, bl
jmp 0x5468dd
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x5468b9
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052a334
add esp, 0x10
cmp edi, eax
jne 0x546863
cmp byte [esi + 0x42], 0
je 0x5468d7
test edi, edi
jne 0x546813
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e3c0
jmp 0x546813
mov bl, 1
jmp 0x546865
mov al, 1
call fcn.00523d27
ret

Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10
Function at 0x401040
Capabilities:
Create process on windows
Create process suspended
Read .ini file

Disassembly:
sub esp, 0xa98
push ebx
push esi
push edi
mov edi, dword [esp + 0xaa8]
push edi
lea eax, [esp + 0xd0]
xor esi, esi
push 0x4080b0
push eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x4097f4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 1
mov word [esp + 0x48], si
mov word [esp + 0x4a], si
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.00401cb3
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x4bc]
lea edx, [esp + 0xcc]
push 0x408fec
push 0x1f4
push ecx
push 0x4097f4
push 0x4080a4
push edx
call ebx
push 0x408fec
lea eax, [esp + 0x6b8]
push 0x1f4
push eax
push 0x4080a0
lea ecx, [esp + 0xdc]
push 0x408090
push ecx
call ebx
mov al, byte [esp + 0x6b4]
cmp al, 0x79
je 0x401123
cmp al, 0x59
je 0x401123
cmp al, 0x31
jne 0x401130
mov word [esp + 0x3c], 5
mov dword [esp + 0x14], esi
jmp 0x40113d
mov word [esp + 0x3c], si
mov dword [esp + 0x14], 0x4097f4
push 0x408fec
lea edx, [esp + 0x2c8]
push 0x1f4
push edx
push 0x4097f4
lea eax, [esp + 0xdc]
push 0x408084
push eax
call ebx
mov edx, dword [0x4097f0]
lea ecx, [esp + 0xc]
shl edi, 4
add edi, edx
xor eax, eax
push edi
push ecx
lea edi, [esp + 0x2cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x2cc]
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x4c4]
and ecx, edx
push ecx
push esi
push 0x20
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4011f9
push 0x408fec
lea ecx, [esp + 0x8b0]
push 0x1f4
push ecx
push 0x408080
lea edx, [esp + 0xdc]
push 0x408074
push edx
call ebx
lea eax, [esp + 0x8ac]
push eax
call fcn.00401ca8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xa98
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4bc]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x408044
push edx
call fcn.00401cb3
lea eax, [esp + 0x60]
push eax
push 0x4095f0
call fcn.00401000
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xa98
ret
Function at 0x4015a0
Capabilities:
Delete service

Disassembly:
sub esp, 0x7c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4015e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push 0x4080f0
push eax
call fcn.00401cb3
lea ecx, [esp + 0x10]
push ecx
push 0x4095f0
call fcn.00401000
add esp, 0x14
pop edi
add esp, 0x7c
ret
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x40163c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push 0x4080c8
push edx
call fcn.00401cb3
lea eax, [esp + 0x1c]
push eax
push 0x4095f0
call fcn.00401000
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push ebx
jne 0x40165e
lea ecx, [esp + 0x14]
push 0x4081a4
push ecx
call fcn.00401cb3
lea edx, [esp + 0x1c]
push edx
jmp 0x401672
lea eax, [esp + 0x14]
push 0x408190
push eax
call fcn.00401cb3
lea ecx, [esp + 0x1c]
push ecx
push 0x4095f0
call fcn.00401000
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret

Function at 0x401690
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x7c
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4016d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push 0x4080f0
push eax
call fcn.00401cb3
lea ecx, [esp + 0x10]
push ecx
push 0x4095f0
call fcn.00401000
add esp, 0x14
pop ebx
add esp, 0x7c
ret
mov edx, dword [esp + 0x84]
push ebp
push esi
push edi
push 0
mov esi, dword [esp + 0x98]
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x401746
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x18]
push 0x4081dc
push eax
call fcn.00401cb3
lea ecx, [esp + 0x20]
push ecx
push 0x4095f0
call fcn.00401000
add esp, 0x18
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push esi
lea edx, [esp + 0x14]
push 0x4081c4
push edx
call fcn.00401cb3
lea eax, [esp + 0x1c]
push eax
push 0x4095f0
call fcn.00401000
add esp, 0x14
push edi
call ebp
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x4018f0
Capabilities:
Create thread
Read .ini file

Disassembly:
sub esp, 0x46c
push esi
push edi
push 0x4093e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x84]
push 0x1f4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [esp + 0x47c]
lea esi, [esp + eax + 0x84]
cmp eax, 4
mov byte [esi], 0
jbe 0x401975
cmp byte [esi - 4], 0x2e
jne 0x401975
lea ecx, [esp + 0x84]
push ecx
push 0x408334
push 0x4093f8
call fcn.00401cb3
lea edx, [esp + 0x90]
mov byte [esi - 4], 0
push edx
push 0x40832c
push 0x408fec
call fcn.00401cb3
lea eax, [esp + 0x9c]
push eax
push 0x408324
jmp 0x4019a5
mov ecx, dword [edi]
push ecx
push 0x408334
push 0x4093f8
call fcn.00401cb3
push 0x408314
push 0x408334
push 0x408fec
call fcn.00401cb3
push 0x408304
push 0x408334
push 0x4095f0
call fcn.00401cb3
add esp, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x408fec
push 0x1f4
push 0x4091e4
push 0x4082f8
push 0x4082ec
push 0x40825c
call esi
push 0x408fec
lea edx, [esp + 0x280]
push 0x1f4
push edx
push 0x4097f4
push 0x4082e0
push 0x40825c
call esi
lea eax, [esp + 0x27c]
push eax
call fcn.00401ca8
add esp, 4
mov dword [0x4097ec], eax
test eax, eax
jle 0x401a25
shl eax, 4
push eax
call fcn.00401f30
add esp, 4
mov dword [0x4097f0], eax
cmp dword [esp + 0x478], 2
jne 0x401a7f
mov ecx, dword [edi + 4]
push ecx
push 0x4082dc
call fcn.00401e60
add esp, 8
test eax, eax
jne 0x401a56
push 0x4091e4
call fcn.004015a0
add esp, 4
jmp 0x401af2
mov edx, dword [edi + 4]
push edx
push 0x4082d8
call fcn.00401e60
add esp, 8
test eax, eax
jne 0x401a7f
push 0x4091e4
push 0x4093f8
call fcn.00401690
add esp, 8
jmp 0x401af2
push 0
push 0
push 0x401780
call fcn.00401d10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401abf
call esi
push eax
lea eax, [esp + 0xc]
push 0x4082b0
push eax
call fcn.00401cb3
lea ecx, [esp + 0x14]
push ecx
push 0x4095f0
call fcn.00401000
add esp, 0x14
push 0x408030
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x401af2
call esi
push eax
lea edx, [esp + 0xc]
push 0x40827c
push edx
call fcn.00401cb3
lea eax, [esp + 0x14]
push eax
push 0x4095f0
call fcn.00401000
add esp, 0x14
mov ecx, dword [0x4097f0]
push ecx
call fcn.00401d05
add esp, 4
push 0x4093e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
add esp, 0x46c
ret
Function at 0x404063
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408bf0
cmp edx, dword [eax]
je 0x404085
add eax, 8
inc ecx
cmp eax, 0x408c80
jl 0x404076
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408bf0]
jne 0x4041b3
mov eax, dword [0x409800]
cmp eax, 1
je 0x40418d
test eax, eax
jne 0x4040b6
cmp dword [0x408344], 1
je 0x40418d
cmp edx, 0xfc
je 0x4041b3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4040ed
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405a40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405010
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404130
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405010
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40748c
push edi
call fcn.00405880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405a40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405a50
lea eax, [ebp - 0xa0]
push 0x40746c
push eax
call fcn.00405a50
push dword [esi + 0x408bf4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405a50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004064a8
add esp, 0x2c
pop edi
jmp 0x4041b3
lea eax, [ebp + 8]
lea esi, [esi + 0x408bf4]
push 0
push eax
push dword [esi]
call fcn.00405010
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x11c0261
Capabilities:
Encode data using xor

Disassembly:
call 0x1473ad8
pushfd
sub ecx, ebx
shrd si, ax, cl
rol esi, cl
neg si
lea esi, [esp + 4]
bt bp, 7
call fcn.011b4951
lea eax, [edx + 0x6125f6e2]
movsx ax, bl
mov eax, dword [esp + 0x24]
push ebp
jmp 0x11b2639
xor al, al
jmp 0x11be5ca
cmc
bt edx, 0x1a
repne scasb al, byte es:[edi]
pushal
mov word [esp], cx
lea esp, [esp + 0x20]
jne fcn.0147095e
sub si, di
neg ch
mov ecx, edi
jmp 0x11b3204
pushal
lea esp, [esp + 0x2c]
jae 0x11bf918
and cx, bx
bswap ebx
xadd bh, cl
sal bx, cl
mov ebx, eax
neg cx
rcl cl, cl
shl di, cl
neg ch
mov edi, eax
jae 0x145a97c
movzx cx, dl
mov ecx, 0x104
cmc
cmc
test al, 0x5f
jmp 0x11b645f
btr cx, 5
stc
mov ecx, 0x104
pushfd
bt ax, 1
pushfd
xor al, al
mov byte [esp + 4], ah
mov byte [esp + 4], 0x8e
repne scasb al, byte es:[edi]
pushal
lea esp, [esp + 0x28]
jne fcn.0147095e
bsf si, ax
rcr cl, 7
test dl, 0xee
mov ecx, edi
push edi
sub ecx, ebx
shl si, 0xa
pop esi
movzx si, cl
mov esi, 0xdd5149b1
mov esi, esp
stc
sub edi, 4
push 0xac19577e
push dword [edi]
pop dword [esp]
bt ecx, 0x1a
cmp edi, ebx
push esp
call fcn.011b74c6
dec edx
push es
sahf
cmovns ebp, ebx
push ecx
stosd dword es:[edi], eax
mov esp, 0xb670ff67
add ecx, ebp
fisttp qword [ebx]
wait
xchg byte [ecx - 0x14], ah
invalid