joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c517ed2
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 0x5c517ee8
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 0x5c517ef9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.5c517f3a
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 0x5c51a2a6
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 0x5c51a1ef
add ebx, 0
push ecx
call 0x5c51a204
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, 0x6c7e72aa
sub ebx, dword [0x6c806ae9]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c806ad9
call fcn.5c515cce
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.5c5151dc
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x5c51a362
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x5c51a362
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 0x5c51a319
mov eax, 1
lock xchg dword [0x6c806ae5], eax
push 0x3dd1fc71
call 0x5c51a2a6
push esi
add esp, 8
cmp eax, 0
jne 0x5c51a28f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x5c51a2b5
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x5c51a2ca
cmp ecx, edx
cmp eax, 0
je 0x5c51a2ef
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 0x5c51a2d9
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.5c51a308
dec eax
loope 0x5c51a30b
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c806ae5], 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 0x5c51a33f
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x5c51a354
jmp 0x5c51a35f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x5c51a24d
Function at 0x5c5213c7
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 0x5c52169d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c7f375d
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c7ea723
push 0xffffffffffffffff
call fcn.5c5185c7
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 0x5c521431
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.5c521449
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 0x5c521691
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x5c521665
Function at 0x5c530e97
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 0x5c530eb9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530eb9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530eb9
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530eb9
test word [ebx + 0x16], 2
je 0x5c530eb9
test word [ebx + 0x16], 0x100
je 0x5c530eb9
cmp word [ebx + 0x18], 0x10b
jne 0x5c530eb9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530eb9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530f45
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530ed9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517e24
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530eb9
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 0x5c530f45
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 0x5c530eb9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530eb9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530eb9
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530eb9
test word [ebx + 0x16], 2
je 0x5c530eb9
test word [ebx + 0x16], 0x100
je 0x5c530eb9
cmp word [ebx + 0x18], 0x10b
jne 0x5c530eb9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530eb9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530f45
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530ed9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517e24
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530eb9
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 0x5c530ffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c531055
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c530ffc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c53100b
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 0x5c936cae
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 0x5c53105c
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.5c517ed2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c5310fb
add edi, 4
add eax, 2
dec ecx
jne 0x5c531041
call 0x5c5310a8
loope 0x5c53109e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c5310f8
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 0x5c531109
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 0x5c5310bc
cmp eax, ecx
ja 0x5c5310bc
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c531146
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c53113c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c5183b1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5c53100b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c531055
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c530ffc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c53100b
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 0x5c936cae
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 0x5c53105c
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.5c517ed2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c5310fb
add edi, 4
add eax, 2
dec ecx
jne 0x5c531041
call 0x5c5310a8
loope 0x5c53109e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c5310f8
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 0x5c531109
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 0x5c5310bc
cmp eax, ecx
ja 0x5c5310bc
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c531146
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c53113c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c5183b1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4016c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4018d0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4016e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x4016f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407b6b
push eax
mov eax, 0x122c
mov dword fs:[0], esp
call fcn.00407880
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x30]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax], 0
mov edi, 0x40a088
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x238]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
push str._s_02d_02d_02d.log
lea edx, [esp + 0x148]
push 0x103
push edx
call esi
add esp, 0x1c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::CFile
push 0
lea eax, [esp + 0x138]
push 0xb041
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x124c], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x401894
mov edx, dword [esp + 0x2a]
mov ecx, dword [esp + 0x1248]
mov eax, dword [esp + 0x28]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
push edx
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str._02d:_02d:_02d__03d__s_r_n
lea eax, [esp + 0x250]
push 0xfff
push eax
call esi
mov edx, dword [esp + 0x2c]
add esp, 0x20
lea ecx, [esp + 0xc]
push 2
push 0
call dword [edx + 0x30]
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x238]
push ecx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov dword [esp + 0x1240], 0xffffffff
call fcn.004077f8
mov ecx, dword [esp + 0x1238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1238
ret 4
Function at 0x404b10
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x404b32
mov ecx, esi
call fcn.00404b60
xor al, al
pop esi
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x404b51
mov ecx, esi
call fcn.00404b60
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x404b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x400
mov edx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 4]
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x400
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
pop edi
je 0x404bfc
mov eax, dword [esp + 0x404]
mov cl, byte [esp]
mov dl, byte [eax]
cmp dl, cl
jne 0x404bfc
mov cl, byte [eax + 1]
mov dl, byte [esp + 1]
cmp cl, dl
jne 0x404bfc
mov dl, byte [eax + 2]
mov al, byte [esp + 2]
cmp dl, al
jne 0x404bfc
mov al, 1
add esp, 0x400
ret 4
xor al, al
add esp, 0x400
ret 4
Function at 0x10023380
Capabilities:
Encode data using xor

Disassembly:
add byte [ecx + edx + 0x36], 0xad
jo 0x1002338d
inc ebx
jo 0x10023374
outsb dx, byte [esi]
outsb dx, byte [esi]
inc byte [edi]
pop ecx
pushal
sbb dh, byte [edi + 0x75adfa52]
jmp 0xeb2aea8a
jmp 0xcd67b8b6
mov ebp, 0x4d885c99
jg 0x1002337f
aad 2
add byte [ebx - 5], bh
sti
jnp 0x1002337c
pop dword [edi - 0x402fb795]
and edx, dword [ebx]
jle 0x10023352
or dword [eax], esi
shl dword [edx], 1
push eax
push ecx
faddp st(0)
push 0x21
pop esi
fsub st(6), st(0)
pop edx
inc ebx
and dl, bh
lodsd eax, dword [esi]
nop
xchg esi, eax
sub dh, byte [ebx]
push ss
push cs
jmp 0x10023371

Function at 0x1dae724
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1dae72e
pushal
call 0x1dae734
pop ebp
sub ebp, 0x10
sub ebp, 0x19ae724
jmp 0x1dae74a
mov eax, 0x19ae724
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0xe6ae0b27
xor byte [eax], dl
inc eax
dec ecx
jne 0x1dae761
jmp 0x1dae774
lodsb al, byte [esi]
ljmp 0x2727
Function at 0x403bfb
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x5b7e7d
call fcn.0058f985
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004039d7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004020c6
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0040395c
push 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401f0b
push 0x5d4a88
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401ba2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401019
push ebx
push str.MSIEXEC
lea ecx, [ebp - 0x14]
call fcn.00401d2f
mov edi, dword [ebp + 0xc]
test eax, eax
jl 0x403d0d
mov dword [ebp - 0x20], ebx
call fcn.00409c76
test al, al
je 0x403cbe
push str.___Another_instance_of_Windows_Installer_Service_is_running_and_wont_stop._Aborting_setup
call fcn.004437b6
pop ecx
mov ebx, 0x652
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov eax, ebx
call fcn.0058fa5d
ret
push 1
call fcn.00453786
pop ecx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 8]
push 0x40aba3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp esi, ebx
setne cl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp esi, ebx
jne 0x403cfc
push eax
push str.____RunWindowsInstallerCommand_failed_with_error_code__d
jmp 0x403d6b
cmp edi, ebx
je 0x403d04
mov dword [edi], esi
jmp 0x403d7f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d7f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jne 0x403d36
lea eax, [ebp - 0x10]
push str.___Empty_command_line_in_action__skipping_execution
push eax
call fcn.00401518
push dword [ebp - 0x10]
call fcn.004437b6
add esp, 0xc
cmp edi, ebx
je 0x403d8e
mov dword [edi], ebx
jmp 0x403d88
cmp byte [ebp + 0x10], bl
je 0x403d43
push 8
call fcn.00453786
pop ecx
push edi
push ebx
push dword [ebp + 8]
call fcn.00403a1b
add esp, 0xc
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], ebx
jne 0x403ca0
push eax
push str.___CreateShellProcess_failed_with_error_code__d
lea eax, [ebp - 0x10]
push eax
call fcn.00401518
push dword [ebp - 0x10]
call fcn.004437b6
add esp, 0x10
cmp dword [ebp - 0x18], ebx
jne 0x403ca0
cmp edi, ebx
je 0x403d8e
mov dword [edi], ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x403ca0
Function at 0x404cda
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x5b7fea
call fcn.0058f985
mov dword [ebp - 0x14], ecx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401287
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00403913
cmp eax, ebx
jle 0x404d9b
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f0b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040227d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401019
mov edi, dword [ebp - 0x10]
mov esi, dword [edi - 0xc]
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.00403913
dec esi
cmp eax, esi
je 0x404d8f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x404d77
lea ecx, [edi - 0x10]
call fcn.00401019
xor eax, eax
inc eax
call fcn.0058fa5d
ret 4
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00404cda
test eax, eax
je 0x404d8f
push ebx
push edi
call esi
test eax, eax
je 0x404d8f
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.00401019
mov eax, ebx
jmp 0x404d6f
mov edi, dword [ebp - 0x10]
jmp 0x404d8f
Function at 0x409c76
Capabilities:
Check mutex on windows
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor eax, eax
mov dword [esp + 0x14], 0xc
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], bl
xor ebp, ebp
cmp byte [esp + 0x13], bl
jne 0x409db3
push str._MSIExecute
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
je 0x409cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409cce
mov byte [esp + 0x12], bl
jmp 0x409cde
push str.___Another_instance_of_Windows_Installer_service_is_running.
mov byte [esp + 0x16], 1
call fcn.004437b6
pop ecx
cmp esi, ebx
je 0x409ce9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x12], bl
je 0x409db3
push 0xf003f
push ebx
push ebx
inc ebp
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x409d74
push 0x24
push str.MSIServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x409d6d
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x409d66
cmp dword [esp + 0x24], 1
je 0x409d7f
cmp dword [esp + 0x24], 3
je 0x409d7f
test byte [esp + 0x28], 1
je 0x409d7f
push str.___Attempting_to_stop_Windows_Installer_service.
call fcn.004437b6
pop ecx
lea eax, [esp + 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x409d7f
push str.___Failed_to_stop_Windows_Installer_service.
jmp 0x409d79
push str.___Unable_to_query_service_status_for_Windows_Installer_service.
jmp 0x409d79
push str.___Failed_accessing_Windows_Installer_service.
jmp 0x409d79
push 0x5d7f38
call fcn.004437b6
pop ecx
cmp edi, ebx
je 0x409d8a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, ebx
je 0x409d95
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebp, 0xc
jle 0x409c9a
mov byte [esp + 0x13], 1
jmp 0x409c9a
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40a4a0
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x30
mov eax, 0x5b88de
call fcn.0058f9b8
mov eax, dword [ebp + 0x218]
mov ebx, dword [ebp + 0x21c]
mov esi, dword [ebp + 0x214]
xor edi, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], edi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040141e
mov dword [ebp - 4], edi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x24]
call fcn.0040141e
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040116b
cmp esi, edi
jne 0x40a532
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401019
xor bl, bl
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401019
mov al, bl
jmp 0x40a68b
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x1c]
push str._s_s
push eax
call fcn.00401518
add esp, 0x10
call fcn.00446344
cmp eax, edi
je 0x40a562
mov dword [ebp - 0x2c], 0x20119
mov dword [ebp - 0x28], 0x20219
jmp 0x40a56d
or dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x2c], 0x20019
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
push dword [ebp - 0x1c]
push ebx
call esi
test eax, eax
je 0x40a5ed
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x1c]
lea edi, [ebx - 1]
push edi
call esi
test eax, eax
je 0x40a5eb
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40a5b7
mov byte [ebp - 0x1e], 0
push 0x63947c
lea eax, [ebp - 0x1e]
push eax
call fcn.005902bc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x1c]
push ebx
call esi
test eax, eax
je 0x40a5eb
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x1c]
push edi
call esi
test eax, eax
je 0x40a5eb
mov byte [ebp - 0x1d], 0
push 0x63947c
lea eax, [ebp - 0x1d]
jmp 0x40a5b1
xor edi, edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push edi
push edi
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], 0x208
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a61e
mov ecx, dword [ebp - 0x38]
lea eax, [ebp]
push eax
call fcn.00401287
mov byte [ebp - 0x11], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x18], edi
call fcn.00401019
mov bl, byte [ebp - 0x11]
jmp 0x40a520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret