joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e10
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x402fe6
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx edi, si
shr esi, 0x10
test ebx, ebx
je 0x402fdf
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ecx, eax
jmp 0x402eab
add ebp, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov eax, edi
mov ecx, 0x80078071
mul ecx
shr edx, 0xf
imul ecx, edx, 0xfff1
mov eax, esi
mov edx, 0x80078071
mul edx
sub edi, ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov eax, ebx
not eax
mov ecx, dword [esp + 8]
and eax, ecx
not ecx
and ebx, ecx
mov ecx, 0x15b0
sub ebx, eax
je 0x402fdf
xor eax, eax
cmp ecx, 8
mov dword [esp + 4], ebx
jb 0x402f38
mov eax, ecx
and eax, 0x1ff8
mov dword [esp], eax
mov edx, 7
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp + edx - 7]
add eax, edi
mov ebx, ecx
movzx ecx, byte [ebp + edx - 6]
mov edi, eax
xor edi, ecx
and ecx, eax
lea edi, [edi + ecx*2]
add eax, esi
movzx ecx, byte [ebp + edx - 5]
add ecx, edi
add eax, edi
movzx esi, byte [ebp + edx - 4]
add esi, ecx
add eax, ecx
movzx ecx, byte [ebp + edx - 3]
add ecx, esi
add eax, esi
movzx esi, byte [ebp + edx - 2]
add esi, ecx
add eax, ecx
movzx ecx, byte [ebp + edx - 1]
add ecx, esi
add eax, esi
movzx edi, byte [ebp + edx]
add edi, ecx
add eax, ecx
mov ecx, ebx
mov esi, eax
add esi, edi
add edx, 8
cmp edx, ebx
jb 0x402ed0
add ebp, edx
add ebp, 0xfffffff9
mov ebx, dword [esp + 4]
mov eax, dword [esp]
mov edx, ecx
sub edx, eax
mov dword [esp + 8], ecx
jbe 0x402e68
mov dword [esp + 0x10], edx
mov dword [esp], eax
not eax
add eax, ecx
mov edx, ecx
and edx, 3
je 0x402f91
mov dword [esp + 0xc], eax
neg edx
xor eax, eax
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx]
inc ebx
add edi, ecx
add esi, edi
dec eax
cmp edx, eax
jne 0x402f70
mov ecx, dword [esp]
sub ecx, eax
mov eax, dword [esp + 0xc]
cmp eax, 3
jb 0x402e60
jmp 0x402f9f
mov ebx, ebp
mov ecx, dword [esp]
cmp eax, 3
jb 0x402e60
mov eax, dword [esp + 8]
sub eax, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + edx]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [ebx + edx + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 3]
add edi, ecx
add esi, edi
add edx, 4
cmp eax, edx
jne 0x402fb0
jmp 0x402e60
shl esi, 0x10
or esi, edi
jmp 0x402feb
mov esi, 1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x422bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ebp, 0xffffffff
mov eax, 0xfffffffe
mov edx, 0xfffffffd
nop
nop
nop
nop
nop
nop
add eax, 2
add edx, 3
cmp byte [esi + ebp + 1], 0
lea ebp, [ebp + 1]
jne 0x422c10
shr edx, 2
mov dword [esp], ebp
mov ecx, dword [esp]
xor ecx, 0xfffffffe
and eax, 0xfffffffc
add eax, ecx
mov ecx, dword [esp]
cmp byte [esi + eax + 1], 0x3d
je 0x422c42
cmp byte [esi + ecx - 1], 0x2e
jne 0x422c43
dec edx
movzx eax, byte [esi + ecx - 2]
cmp eax, 0x3d
je 0x422c52
cmp eax, 0x2e
jne 0x422c53
dec edx
mov dword [esp + 8], edx
mov edx, 0
test ecx, ecx
je 0x422d47
xor ebp, ebp
mov edi, 2
jmp 0x422c82
lea eax, [edi + 4]
add edi, 2
mov ebp, edx
cmp edi, ecx
mov edi, eax
jae 0x422d47
mov esi, dword [esp + 0x40]
movzx eax, byte [esi + edi - 2]
push eax
call fcn.00428550
add esp, 4
mov ebx, eax
movzx eax, byte [esi + edi - 1]
push eax
call fcn.00428550
add esp, 4
mov bh, al
shl bl, 2
shr al, 4
and al, 3
or al, bl
lea edx, [ebp + 1]
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp], al
mov ecx, dword [esp]
cmp edi, ecx
jae 0x422c70
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edi]
push eax
mov dword [esp + 8], edx
call fcn.00428550
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
add esp, 4
cmp al, 0x40
je 0x422c70
mov bl, al
shl bh, 4
shr al, 2
and al, 0xf
or al, bh
lea edx, [ebp + 2]
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp + 1], al
mov ecx, dword [esp]
lea eax, [edi + 1]
cmp eax, ecx
jae 0x422c70
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edi + 1]
push eax
mov dword [esp + 8], edx
call fcn.00428550
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
add esp, 4
cmp al, 0x40
je 0x422c70
shl bl, 6
add al, bl
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp + 2], al
mov ecx, dword [esp]
add ebp, 3
mov edx, ebp
jmp 0x422c70
mov eax, edx
mov edx, dword [esp + 8]
cmp eax, edx
mov eax, 0
jne 0x422dd7
mov eax, edx
or eax, 0xffffffdf
mov esi, edx
and esi, 0xffffffdf
add esi, eax
lea edi, [esp + 0xc]
mov ebp, dword [esp + 0x44]
mov eax, ebp
mov ecx, 8
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
inc eax
je 0x422dd2
mov ecx, edx
and ecx, 1
xor edi, edi
cmp edx, 0x21
je 0x422dbc
mov edx, eax
sub edx, ecx
xor edi, edi
mov esi, edi
and esi, 0x1e
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + edi + 0x20]
mov byte [ebp + edi], bl
lea esi, [edi + 1]
and esi, 0x1f
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + edi + 0x21]
mov byte [ebp + edi + 1], bl
add edi, 2
cmp edx, edi
jne 0x422d90
test ecx, ecx
je 0x422dd2
mov ecx, edi
and ecx, 0x1f
movzx ecx, byte [esp + ecx + 0xc]
xor cl, byte [ebp + edi + 0x20]
mov byte [ebp + edi], cl
mov byte [ebp + eax], 0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100015b5
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x1004d330]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x44
mov eax, 0x1003c255
call fcn.100265e1
and dword [ebp - 0x18], 0
mov esi, edx
cmp dword [esi + 0x14], 0xc8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
jbe 0x10001603
push 0x10041984
mov esi, edi
call fcn.10003889
mov eax, edi
jmp 0x100016f2
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.10028410
add esp, 0xc
push 0x208
lea eax, [ebp + 0x1c]
mov edi, str.cachekvstore
push eax
mov ebx, edi
xor ecx, ecx
call fcn.10014530
push esi
lea ecx, [ebp - 0x34]
call fcn.100012c1
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10001647
mov eax, dword [eax + 4]
jmp 0x1000164a
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push 0
push 1
lea esi, [ebp - 0x34]
call fcn.100041a3
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100016e4
lea eax, [ebp]
push eax
call fcn.10001599
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x14], esi
je 0x100016d4
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10001691
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp + 0x1c]
push eax
call ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.100012c1
cmp dword [eax + 0x18], 8
pop ecx
jb 0x100016bf
mov eax, dword [eax + 4]
jmp 0x100016c2
add eax, 4
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push esi
push 1
lea esi, [ebp - 0x50]
call fcn.100041a3
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp]
call fcn.100041a3
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.10003889
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.100251b7
add ebp, 0x430
leave
ret
Function at 0x1000272f
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x1003ce6a
call fcn.100265e1
mov edi, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov ebx, dword [edi + 0xd0]
add edi, 0xc4
lea esi, [ebp - 0x24]
mov dword [ebp - 0x14], edi
call fcn.1000bb4c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x10002793
lea esi, [ebp - 0x1c]
call fcn.10007137
cmp dword [eax + 0x18], 8
jb 0x1000277a
mov eax, dword [eax + 4]
jmp 0x1000277d
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [ebp - 0x1c]
test eax, eax
jne 0x100027ba
call fcn.1000b915
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x24]
call fcn.1000bb4c
mov edi, esi
lea esi, [ebp - 0x1c]
call fcn.10003a6e
test al, al
jne 0x10002767
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x100027f7
mov eax, dword [eax + 4]
jmp 0x100027fa
call fcn.10007137
cmp dword [eax + 0x18], 8
jb 0x100027ca
mov eax, dword [eax + 4]
jmp 0x100027cd
add eax, 4
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.1001423f
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.100012c1
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.10003fff
mov eax, dword [ebp + 0xc]
jmp 0x10002816
add eax, 4
push eax
push str.getSoftwareVersion_failed:_s
call fcn.100139b1
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
push 0x10041984
call fcn.10003889
mov eax, esi
call fcn.100266b9
ret 8

Function at 0x1000764f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1004d330]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10028410
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
mov ecx, dword [ebp + 0x94]
seta al
xor ecx, ebp
call fcn.100251b7
add ebp, 0x98
leave
ret

Function at 0x100076aa
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.1000764f
test al, al
jne 0x100076bd
inc al
leave
ret
push ebx
lea eax, [ebp - 8]
push eax
push 0x1004225c
xor ebx, ebx
push 1
push ebx
push 0x1004224c
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10007724
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x10007731
lea edx, [ebp - 0xc]
push edx
push 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x10007724
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 4
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x10007724
cmp word [ebp - 0xc], bx
jne 0x10007720
mov byte [ebp - 1], bl
cmp word [ebp - 0x10], bx
je 0x10007724
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x10007731
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x10007737
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1000764f
test al, al
jne 0x1000774a
inc al
leave
ret
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 0x1004225c
push 1
push 0
push 0x1004224c
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x100077e9
mov eax, dword [ebp - 4]
test eax, eax
je 0x100077e9
mov ecx, dword [eax]
push esi
lea edx, [ebp - 8]
push edx
push 2
push eax
call dword [ecx + 0x20]
lea edx, [ebp - 0xc]
push edx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
push eax
push esi
push str.h1:_d__0x_08x_h2:_d_0x_08x
call fcn.10023941
or dword [ebp - 8], 0xffffffff
push str.open_firewall1
call fcn.10023941
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 8]
push 2
push eax
call dword [ecx + 0x24]
pop esi
test eax, eax
jl 0x100077c4
inc bl
or dword [ebp - 0xc], 0xffffffff
push str.open_firewall2
call fcn.10023941
mov eax, dword [ebp - 4]
pop ecx
push dword [ebp - 0xc]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100077f4
mov bl, 1
jmp 0x100077f4
push str.CoCreateInstance_err
call fcn.10023941
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007801
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret
Function at 0x100079fd
Capabilities:
List tcp connections and listeners

Disassembly:
push 0xb4
mov eax, 0x1003b250
call fcn.1002664a
mov eax, 0x4000
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], vtable.MemoryHolder_char_.0
mov dword [ebp - 0x74], edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x70], eax
call fcn.100251ac
pop ecx
push edi
push 5
push 2
mov esi, eax
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x74], esi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x10007a5b
cmp esi, edi
je 0x10007a54
push esi
call fcn.10025a0f
pop ecx
xor eax, eax
jmp 0x10007b55
mov dword [ebp - 0x68], edi
cmp dword [esi], edi
jbe 0x10007b49
add esi, 4
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x6c]
push 6
pop ecx
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x5c]
call fcn.100037f6
lea esi, [ebp - 0x3c]
call fcn.100037f6
mov byte [ebp - 4], 1
push dword [ebp - 0x90]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.10003f91
push dword [ebp - 0x8c]
mov edi, dword [sym.imp.WS2_32.dll_htons]
call edi
push dword [ebp - 0x88]
movzx eax, ax
mov dword [ebp - 0x40], eax
call esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.10003f91
push dword [ebp - 0x84]
call edi
mov esi, dword [ebx + 0x14]
movzx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 0x64], 0
push dword [esi + 4]
push esi
call fcn.10008581
mov ecx, dword [ebx + 0x18]
mov edx, 0x35e50d7
sub edx, ecx
cmp edx, 1
jb 0x10007b5b
inc ecx
mov dword [ebx + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push 0
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.10003fff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10003fff
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
add dword [ebp - 0x6c], 0x18
cmp ecx, dword [eax]
jb 0x10007a6c
mov esi, eax
mov ebx, dword [ebx + 0x18]
push esi
call fcn.10025a0f
pop ecx
mov eax, ebx
call fcn.100266cd
ret
push str.list_T__too_long
lea ecx, [ebp - 0x98]
call fcn.10003809
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.10001169
push 0x100463e4
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], vtable.std::length_error.0
call fcn.10026116
int3
Function at 0x10008e17
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1004d330]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20c], 0
push esi
xor eax, eax
push edi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push eax
push 0x100
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esi + 0x8c], 8
jb 0x10008e5e
mov esi, dword [esi + 0x78]
jmp 0x10008e61
add esi, 0x78
push esi
push str.popatch_ls
lea ecx, [ebp - 0x228]
call fcn.10015739
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x10008e7f
mov eax, dword [eax + 4]
jmp 0x10008e82
add eax, 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea esi, [ebp - 0x228]
call fcn.100041a3
lea edi, [ebp - 0x208]
call fcn.100140d5
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
mov esi, ebx
call fcn.10003889
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.100251b7
leave
ret
Function at 0x10009030
Capabilities:
Delete file

Disassembly:
push 0xc8
mov eax, 0x1003ce3a
call fcn.1002664a
mov eax, dword [ebp + 8]
and dword [ebp - 0x5c], 0
mov ebx, ecx
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x74]
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x60], ebx
call fcn.100038a9
and dword [ebp - 4], 0
lea eax, [ebp - 0x78]
mov ecx, esi
call fcn.10009ccf
mov esi, eax
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.10009cef
mov edi, eax
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x30]
call fcn.10009ccf
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x80]
push eax
call fcn.1000a99c
add esp, 0x1c
lea edi, [ebp - 0xb8]
call fcn.100233e9
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x100090b8
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x18], 0x10
jb 0x100090c3
mov eax, dword [eax + 4]
jmp 0x100090c6
add eax, 4
push ecx
push 0x32e3
push eax
push str.https:___hs:_d_globalSmallFile_patch_installer__ls
lea esi, [ebp - 0x4c]
call fcn.10015797
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.10003fff
and dword [ebp - 0x58], 0
mov ecx, ebx
lea ebx, [ebp - 0xd4]
call fcn.10008e17
mov edi, dword [ebp - 0x54]
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 4
call fcn.1000404a
push ebx
push 1
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 3
call fcn.100041a3
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
jb 0x10009131
mov esi, dword [ebx]
jmp 0x10009133
mov esi, ebx
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x1000913f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [0x10051210]
test eax, eax
jne 0x10009165
push str.E2FE52CB
call fcn.100135f5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10051210], eax
test eax, eax
je 0x100091a8
lea ecx, [ebp - 0x58]
push ecx
push esi
push dword [ebp - 0x54]
call eax
test eax, eax
je 0x100091a8
cmp dword [edi + 0x18], 8
jb 0x1000917d
mov eax, dword [ebx]
jmp 0x1000917f
mov eax, ebx
push eax
lea esi, [ebp - 0x9c]
call fcn.10003889
push dword [ebp - 0x60]
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x5c], 1
call fcn.10008ecd
mov byte [ebp - 0x4d], 1
test al, al
jne 0x100091ac
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 3
test byte [ebp - 0x5c], 1
je 0x100091c8
push 0
push 1
lea esi, [ebp - 0x9c]
call fcn.100041a3
cmp byte [ebp - 0x4d], 0
je 0x10009207
cmp dword [edi + 0x18], 8
jb 0x100091d6
mov ebx, dword [ebx]
push ebx
push str.download_success:_ls
call fcn.10023941
pop ecx
pop ecx
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.10003fff
push 0
push 1
lea esi, [ebp - 0x30]
call fcn.100041a3
mov al, bl
call fcn.100266cd
ret 4
push dword [ebp - 0x58]
push str.download_error:_d
call fcn.10023941
cmp dword [edi + 0x18], 8
pop ecx
pop ecx
jb 0x1000921e
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x100091e5
Function at 0x10009229
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0x64
mov eax, 0x1003d126
call fcn.1002664a
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.10009030
test al, al
jne 0x1000927b
push str.download_patch_err
call fcn.10023941
pop ecx
mov byte [ebp - 0x2d], bl
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.100041a3
mov al, byte [ebp - 0x2d]
call fcn.100266cd
ret
cmp dword [esi + 0xe4], 8
jb 0x1000928c
mov eax, dword [esi + 0xd0]
jmp 0x10009292
lea eax, [esi + 0xd0]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x1000929e
lea ecx, [ebp - 0x28]
push eax
push ecx
push str.install_patch_file:_ls__argv:_ls
call fcn.10023941
add esp, 0xc
push 0x38
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.10028410
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
jae 0x100092dc
lea eax, [ebp - 0x28]
cmp dword [esi + 0xe4], 8
mov dword [ebp - 0x5c], eax
jb 0x100092f3
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0x58], eax
jmp 0x100092fc
add esi, 0xd0
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x34], ebx
je 0x10009334
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ShellExecuteW_success
call fcn.10023941
jmp 0x10009346
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteW_Err:_d
call fcn.10023941
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10009353
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x2d], 1
jmp 0x10009267
Function at 0x10009ad3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003e2ea
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
mov eax, dword [0x1004d330]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10009913
and dword [esp + 0x90], 0
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [esp + 0x2c], eax
sete al
mov dword [ecx], eax
lea eax, [esp + 0x30]
push eax
call fcn.100089af
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x10009b58
cmp eax, dword [esp + 0x14]
je 0x10009b5d
call fcn.10025982
cmp dword [esp + 0x10], esi
je 0x10009b80
lea esi, [esp + 0xc]
call fcn.10003e8d
add eax, 0x1c
push eax
lea eax, [esp + 0x34]
call fcn.10009e5b
call fcn.100111ee
jmp 0x10009b46
push 0x100426c0
lea esi, [esp + 0x50]
call fcn.10003889
mov eax, esi
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 2
call fcn.100078af
push 0xffffffffffffffff
push dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x98], 3
call fcn.1000404a
push ebx
push 1
lea esi, [esp + 0x70]
call fcn.100041a3
push ebx
push 1
lea esi, [esp + 0x54]
call fcn.100041a3
lea eax, [esp + 0x30]
call fcn.10007f7b
lea esi, [esp + 0x14]
call fcn.1000a2db
push dword [esp + 0x14]
call fcn.100251f0
pop ecx
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10009c07
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003e2af
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x1004d330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.10009913
and dword [esp + 0x38], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10009c65
cmp eax, dword [esp + 0x10]
je 0x10009c6a
call fcn.10025982
cmp dword [esp + 0xc], esi
je 0x10009c87
lea esi, [esp + 8]
call fcn.10003e8d
mov ecx, eax
call fcn.10009229
call fcn.100111ee
jmp 0x10009c53
lea esi, [esp + 0x10]
call fcn.1000a2db
push dword [esp + 0x10]
call fcn.100251f0
pop ecx
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4