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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x642cdf58
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x642ce0fa
cmp edi, dword [ebp + 0x10]
jb 0x642ce0fa
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.642cda22
inc edi
jmp 0x642cdfe1
jmp 0x642cdfee
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642cda22
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642cda22
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x642ce042
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x642ce026
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.642ce070
add dword [eax], 0x39
jle 0x642ce04c
sub al, 0xf5
mov ch, al
call fcn.642ce085
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x642cfd5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x642cfd73
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x642cfd84
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.642cfdc5
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x642d2131
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x642d207a
add ebx, 0
push ecx
call 0x642d208f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x721490cd
sub ebx, dword [0x7216890c]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x721688fc
call fcn.642cdb59
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.642cd067
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x642d21ed
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x642d21ed
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x642d21a4
mov eax, 1
lock xchg dword [0x72168908], eax
push 0x3dd1fc71
call 0x642d2131
push esi
add esp, 8
cmp eax, 0
jne 0x642d211a
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x642d2140
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x642d2155
cmp ecx, edx
cmp eax, 0
je 0x642d217a
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x642d2164
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.642d2193
dec eax
loope 0x642d2196
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72168908], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x642d21ca
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x642d21df
jmp 0x642d21ea
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x642d20d8
Function at 0x642d9252
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x642d9528
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x72155580
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7214c546
push 0xffffffffffffffff
call fcn.642d0452
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x642d92bc
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.642d92d4
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x642d951c
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x642d94f0
Function at 0x642e8d22
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e8d44
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8d44
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8d44
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8d44
test word [ebx + 0x16], 2
je 0x642e8d44
test word [ebx + 0x16], 0x100
je 0x642e8d44
cmp word [ebx + 0x18], 0x10b
jne 0x642e8d44
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8d44
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8dd0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8d64
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cfcaf
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8d44
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x642e8dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e8d44
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8d44
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8d44
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8d44
test word [ebx + 0x16], 2
je 0x642e8d44
test word [ebx + 0x16], 0x100
je 0x642e8d44
cmp word [ebx + 0x18], 0x10b
jne 0x642e8d44
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8d44
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8dd0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8d64
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cfcaf
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8d44
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x642e8e87
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8ee0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e8e87
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e8e96
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646eeb39
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e8ee7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cfd5d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e8f86
add edi, 4
add eax, 2
dec ecx
jne 0x642e8ecc
call 0x642e8f33
loope 0x642e8f29
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8f83
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e8f94
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e8f47
cmp eax, ecx
ja 0x642e8f47
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e8fd1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e8fc7
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642d023c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e8e96
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8ee0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e8e87
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e8e96
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646eeb39
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e8ee7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cfd5d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e8f86
add edi, 4
add eax, 2
dec ecx
jne 0x642e8ecc
call 0x642e8f33
loope 0x642e8f29
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8f83
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e8f94
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e8f47
cmp eax, ecx
ja 0x642e8f47
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e8fd1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e8fc7
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642d023c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4188aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437c20]
jne 0x4188b4
repz ret
jmp fcn.0041d16b

Function at 0x427c7f
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.0041d440
and dword [ebp - 4], 0
cmp dword [0x43babc], 0
mov ebx, eax
jne 0x427d30
push 0x42f6dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427de1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f6d0
push edi
call esi
test eax, eax
je 0x427de1
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6c0
push edi
mov dword [0x43babc], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6ac
push edi
mov dword [0x43bac0], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f690
push edi
mov dword [0x43bac4], eax
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bacc], eax
test eax, eax
je 0x427d30
push 0x42f678
push edi
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bac8], eax
mov eax, dword [0x43bac8]
cmp eax, ebx
je 0x427d88
cmp dword [0x43bacc], ebx
je 0x427d88
push eax
call fcn.0041d449
push dword [0x43bacc]
mov esi, eax
call fcn.0041d449
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x427d88
test edi, edi
je 0x427d88
call esi
test eax, eax
je 0x427d7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427d7f
test byte [ebp - 0xc], 1
jne 0x427d88
or dword [ebp + 0x10], 0x200000
jmp 0x427dc1
mov eax, dword [0x43bac0]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427dc1
mov eax, dword [0x43bac4]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43babc]
call fcn.0041d449
pop ecx
test eax, eax
je 0x427de1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427de3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40104d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x401054
push eax
push str.CreateService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor al, al
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
ret

Function at 0x401130
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401164
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor al, al
pop esi
ret
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40117e
push esi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor bl, bl
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
ret

Function at 0x4011a0
Capabilities:
Start service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4011d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor al, al
pop esi
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401202
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x401209
push eax
push str.StartService_failure__Error___d__n
call fcn.004019f0
add esp, 8
xor al, al
pop esi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop esi
ret

Function at 0x401210
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40124a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor al, al
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push ebx
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40126e
push esi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___Error___d__n
call fcn.004019f0
add esp, 8
xor bl, bl
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x1c
ret
Function at 0x4012a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
xor ecx, ecx
push ebx
push ebp
push esi
push edi
test eax, eax
jbe 0x4012f8
mov eax, dword [esp + 0x21c]
mov edx, dword [eax]
mov bp, word [eax + 0xc]
cmp edx, dword [esp + 0x224]
mov bx, word [eax + 0xe]
mov di, word [eax + 0x3a]
mov si, word [eax + 0x38]
jne 0x4012e2
mov edx, dword [esp + 0x228]
cmp dword [eax + 4], edx
je 0x401305
mov edx, dword [esp + 0x220]
add ecx, 0x10c
add eax, 0x10c
cmp ecx, edx
jb 0x4012bb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x22c]
and esi, 0xffff
and edi, 0xffff
and ebx, 0xffff
push esi
and ebp, 0xffff
push edi
push ebx
push ebp
push str._X__X__X__X
push eax
call fcn.00401a21
add esp, 0x18
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARE3ComPCI_DATA
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40139f
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x14]
push 0x10
push str.Ring_0_Access_Error_filename__Pci_Fix.sys_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
lea edx, [esp + 0x1c]
push 0x4071a4
push edx
call fcn.00401a21
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x18]
push 4
push eax
push 1
push 0
push str.VendorID
push ecx
call ebp
push ebx
lea edx, [esp + 0x1c]
push 0x4071a4
push edx
call fcn.00401a21
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push 4
push eax
push 1
push 0
push str.DeviceID
push ecx
call ebp
push edi
lea edx, [esp + 0x1c]
push 0x4071a4
push edx
call fcn.00401a21
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push 4
push eax
push 1
push 0
push str.SubSystemID
push ecx
call ebp
push esi
lea edx, [esp + 0x1c]
push 0x4071a4
push edx
call fcn.00401a21
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push 4
push eax
push 1
push 0
push str.SubVendorID
push ecx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x403f39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407ae0
cmp edx, dword [eax]
je 0x403f5b
add eax, 8
inc ecx
cmp eax, 0x407b70
jl 0x403f4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407ae0]
jne 0x404089
mov eax, dword [0x407edc]
cmp eax, 1
je 0x404063
test eax, eax
jne 0x403f8c
cmp dword [0x407594], 1
je 0x404063
cmp edx, 0xfc
je 0x404089
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403fc3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004051f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404006
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406444
push edi
call fcn.004056a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004051f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405200
lea eax, [ebp - 0xa0]
push 0x406424
push eax
call fcn.00405200
push dword [esi + 0x407ae4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405615
add esp, 0x2c
pop edi
jmp 0x404089
lea eax, [ebp + 8]
lea esi, [esi + 0x407ae4]
push 0
push eax
push dword [esi]
call fcn.004041c0
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 0x403820
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
imul ebx
not ebx
rcr eax, 0x98
sbb ebx, 0xc2
add edi, 0x6c
bswap eax
add esi, 0x94
rcr eax, 0x55
imul eax
ror edx, 0x7d
imul edi
imul esi
dec eax
sub ebx, 0xc5
rcr esi, 0x2c
imul edi
inc edi
dec edx
mov ebx, 0x4c
bswap edi
dec esi
not edx
dec edi
mov eax, 0x14
inc esi
dec edx
not edx
ror ebx, 0xa0
not edx
sbb eax, 0xb5
inc edx
rcr eax, 0x8f
imul ebx
and eax, 0x4f
not ebx
bswap ebx
bswap esi
imul edi
bswap esi
mov eax, 0x78
rcl edi, 0x55
imul eax
sbb ebx, 0x78
neg ebx
and esi, 0x3e
rcr edx, 0x94
neg edx
inc esi
add eax, 0x7f
or eax, 0xe9
xor ecx, ecx
xor edi, edi
dec esi
and edx, 0xbe
add esi, 0x52
imul edx
mov edx, 0xe5
dec eax
inc eax
or esi, 0x9b
dec edx
add ebx, 0xe6
or edi, 0xea
rol eax, 0xb4
dec ebx
add edi, 0xcf
or esi, 0xa6
rcr edi, 0x98
sbb edi, 0x2d
neg edx
rcl ebx, 0xf7
ror esi, 0x10
rcl eax, 0x22
neg esi
sbb edi, 5
and eax, 0x37
rcl eax, 0x7d
sbb esi, 0x9b
imul eax
dec edi
bswap edi
rcr eax, 0x80
rol ebx, 0xe9
mov eax, 0xb6
rcl edx, 0xb6
rcl edx, 0x53
sub edx, 0x96
bswap eax
bswap eax
sbb ebx, 0xec
bswap eax
rol edx, 0x44
inc eax
bswap eax
sbb edx, 0x14
dec edi
bswap edi
rcr ebx, 0xb1
mov eax, 0x99
not edi
sub edx, 0xe
imul ebx
mov ecx, dword [ebp + 0xc]
imul esi
bswap edi
ror edx, 0x30
sub edi, 0xd8
bswap edi
mov esi, 0x53
neg ebx
bswap edx
rol eax, 0xed
add ebx, 0x83
not esi
rcl esi, 0x17
bswap ebx
inc edi
neg ebx
inc edx
dec esi
sbb edi, 0xf1
inc esi
not edi
sub ebx, 0x75
rcr edi, 0x30
not eax
bswap eax
add edx, 0xce
imul ebx
inc edx
and edx, 0xaf
sub edx, 0xf9
imul edx
sub edx, 0xc9
sbb ebx, 0x56
rol ebx, 0xe5
imul esi
sbb edi, 0x73
inc edx
add ebx, 0x28
dec esi
neg esi
imul edi
imul eax
or ebx, 0x8b
neg eax
sbb eax, 8
and esi, 0x6f
and edi, 0xb1
and eax, 0xca
mov ebx, 0x17
or edi, 0xe4
rol eax, 0x7f
mov edi, dword [ebp + 8]
xor ebx, esi
mov eax, esi
xor eax, eax
mov eax, ebx
mov ebx, esi
mov ebx, esi
xor ebx, eax
mov esi, esi
mov ebx, esi
xor ebx, ebx
xor ebx, eax
mov esi, ebx
not byte [edi]
mov esi, eax
mov esi, esi
mov esi, esi
xor eax, eax
xor ebx, eax
mov ebx, esi
xor esi, esi
mov eax, ebx
xor esi, esi
sub byte [edi], 0x98
mov eax, ebx
mov esi, eax
mov esi, esi
xor eax, esi
xor esi, eax
mov eax, ebx
xor ebx, ebx
mov esi, ebx
xor esi, esi
add byte [edi], 0x53
mov eax, eax
mov esi, eax
xor esi, ebx
mov eax, eax
xor esi, esi
mov ebx, ebx
xor esi, eax
mov ebx, esi
mov esi, ebx
imul byte [edi]
inc edi
loop 0x4039f4
pop esi
pop edi
pop ebx
pop ebp
ret