joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011a220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10188a60], 0
mov byte [0x10188a64], 0
mov esi, dword [0x10188a58]
add esi, 0xfffff6be
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x10188a54], ecx
mov dword [0x10188a5c], 0
mov dword [ebp - 0x20], eax
jmp 0x1011a286
xor eax, eax
mov dword [0x10188a5c], 0
mov dword [ebp - 0x24], eax
jmp 0x1011a2b8
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10188a58], 0x1057
mov eax, dword [0x10188a5c]
add eax, 1
mov dword [0x10188a5c], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x1011a286
jmp 0x1011a275
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x10188a68], 0
mov dword [0x10188a58], 0x526
mov edx, dword [0x10188a60]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10188a68], edi
mov dword [0x10188a58], 0x253a
mov eax, edi
cdq
idiv ecx
mov dword [0x10188a60], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x10188a64], cl
mov dword [0x10188a54], 0x179b
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x10188a54]
add ecx, 0xffffe180
mov dword [0x10188a54], ecx
mov cl, byte [0x10188a64]
mov edx, dword [0x10188a60]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x10188a5c]
add edx, 1
mov dword [0x10188a5c], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x1011a2b8
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1011a850
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x38
mov dword [ebp - 8], 0
mov dword [0x10188a54], 0x114c
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x10188a58], 0x255
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1011a927
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], cl
mov eax, 0x1b2b
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], esi
jne 0x1011a927
jmp 0x1011a8f8
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x1fb
mov dword [0x10188a54], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x34], eax
je 0x1011a9b4
mov eax, dword [ebp - 0x34]
add esp, 0x38
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [0x10188a54], ecx
mov dword [0x10188a58], 0x1c19
mov esi, dword [ebp - 0x10]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], edx
je 0x1011a94a
jmp 0x1011a8ef
mov eax, dword [ebp - 0x14]
mov ecx, 0x17ef
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x1011a8f8
jmp 0x1011a894
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x34], eax
jne 0x1011a8ef
xor eax, eax
mov dword [0x10188a58], 0xb65
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x34], eax
jne 0x1011a8ef
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffdd9
mov dword [0x10188a54], eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff6
mov dword [ebp - 0x38], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2], 0x64
mov dword [ebp - 0x34], eax
je 0x1011a8c8
jmp 0x1011a8ef
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x3c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x3c]
cmp word [ecx], 0x6c
mov dword [ebp - 0x34], eax
jne 0x1011a8ef
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
jne 0x1011a8ef
mov dword [0x10188a54], 0xff8
mov eax, 1
mov dword [ebp - 0x34], eax
jmp 0x1011a8ef
Function at 0x1011aa10
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x10188a58]
add edx, 0xfffff095
mov dword [0x10188a54], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1011a3a0
lea ecx, [0x1011ad90]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x8c], 0x12b600
mov edx, dword [0x10188a40]
mov dword [esp + 0x64], edx
mov edx, dword [0x10188a44]
mov dword [esp + 0x40], edx
mov edx, dword [0x10188a48]
mov dword [esp + 0x48], edx
mov edx, dword [0x10188a4c]
mov dword [esp + 0x44], edx
mov edx, dword [0x10188a50]
mov dword [esp + 0x78], edx
mov dword [0x10188a58], 0x207b
mov dword [0x10188a54], 0x202a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1011aaef
mov eax, dword [esp + 0x18]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
je 0x1011ab00
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x10188a58], 0x1067
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1011aaab
jmp 0x1011aad3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov dword [0x10188a58], 0x336
mov dword [0x10188a54], 0xa55
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x60], eax
call fcn.1011a850
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1011ab6e
lea eax, [esp + 0x38]
mov dword [0x10188a54], 0x1bcd
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1011b110
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x1011ac10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10188a5c], 0
mov dword [0x10188a60], 0
mov dword [0x10188a6c], 0
mov edi, dword [0x10188a58]
add edi, 0xfffff42c
mov dword [0x10188a54], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1011ad7f
jmp 0x1011ac8c
jmp 0x1011ad7f
mov eax, dword [0x10188a5c]
mov ecx, dword [0x10188a60]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jmp 0x1011ac9d
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1011ac9d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10188a5c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10188a60], edx
mov dword [0x10188a58], 0xc7e
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10188a64], cl
mov dword [0x10188a54], 0xffffeec8
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10188a64]
mov edx, dword [0x10188a60]
mov byte [edi + edx], cl
mov dword [0x10188a54], 0x13fb
mov edx, dword [0x10188a5c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10188a60]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10188a6c], ebx
mov dword [0x10188a54], 0xffffe559
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x10188a58], 0xd2
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x20], ebx
je 0x1011ac6e
jmp 0x1011ac73
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1011af00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x10188a54], 0x2410
mov dword [ebp - 0x10], eax
call fcn.10119c50
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov dword [0x10188a58], 0x336
mov dword [0x10188a54], 0xa55
mov edx, dword [eax + edx + 0x78]
mov dword [0x10188a54], 0x1f57
mov esi, ecx
add esi, dword [eax + edx + 0x20]
mov dword [0x10188a58], 0x1824
mov eax, edx
add eax, 0x18
mov edi, ecx
add edi, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1011b095
jmp 0x1011afb7
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [ebp - 0x30]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
mov byte [ebp - 0x37], bl
je 0x1011b029
jmp 0x1011aff7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
jmp 0x1011afd1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + ecx*4]
mov dword [0x10188a54], 0x2410
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
jmp 0x1011af87
mov eax, dword [ebp - 0x34]
add eax, 1
mov cl, byte [ebp - 0x35]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x36]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x36]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x37], dl
jne 0x1011af87
mov al, byte [ebp - 0x37]
test al, 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
jne 0x1011b05f
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
add eax, 1
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
jb 0x1011afd1
jmp 0x1011b08e
mov eax, dword [ebp - 0x50]
movzx eax, word [eax]
mov dword [0x10188a54], 0x1488
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add ecx, dword [ecx + edx + 0x1c]
mov dword [0x10188a58], 0x1415
mov esi, dword [ebp - 0x18]
add esi, dword [ecx + eax*4]
mov dword [ebp - 0x28], esi
jmp 0x1011b095
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x1011b095
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401870
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x288
mov dword [ebp - 0x274], eax
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ecx, ecx
sub esp, 4
mov edi, eax
mov word [ebp - 0x214], cx
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
jne 0x4018cc
test byte [section..data], 2
jne 0x401a74
xor edx, edx
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x264]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x268], 0x28
mov word [ebp - 0x264], dx
call sub.msi.dll_MsiGetFileVersionW
sub esp, 0x14
test eax, eax
je 0x40191f
test byte [section..data], 2
jne 0x401a47
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x26c]
mov dword [esp + 4], 0xa
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [ebp - 0x27c], edx
call edx
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
sub esp, 0x10
mov dword [ebp - 0x268], eax
add eax, 1
lea ebx, [eax + eax]
mov dword [ebp - 0x270], eax
mov dword [esp], ebx
add ebx, 0x50
mov dword [ebp - 0x278], ecx
call ecx
mov dword [esp], ebx
mov ecx, dword [ebp - 0x278]
mov esi, eax
mov dword [ebp - 0x26c], eax
call ecx
mov ebx, eax
test eax, eax
je 0x401a22
test esi, esi
je 0x401a22
xor eax, eax
mov edx, dword [ebp - 0x27c]
mov word [esi], ax
mov eax, dword [ebp - 0x270]
mov dword [esp + 8], esi
mov dword [esp + 4], 0xa
mov dword [esp], edi
mov dword [esp + 0xc], eax
call edx
lea eax, [ebp - 0x264]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x268]
add eax, 0x29
mov dword [esp + 4], eax
call fcn.004012e0
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov dword [esp + 0x14], 0
movzx eax, ax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.msi.dll_MsiMessageBoxW
sub esp, 0x18
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.MsiGetFileVersion_failed_with__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401810
jmp 0x40191f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.GetModuleFileName_failed:__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 4], 0x406000
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00401810
jmp 0x4018cc
Function at 0x401bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 6]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x401c21
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x401bf0
mov eax, dword [ebx]
mov dword [ecx], 0
test eax, eax
je 0x401c18
lea esi, [esi]
mov ebx, eax
mov eax, dword [eax]
test eax, eax
jne 0x401c10
mov dword [ebx], ecx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [section..data], 2
jne 0x401c37
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.StringListAppend
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401810
jmp 0x401c2a

Function at 0x401d30
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
sub esp, 0x81c
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x804]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov eax, dword [0x408004]
test eax, eax
je 0x401d98
mov dword [esp + 4], ebx
mov dword [esp], 0x40707e
call fcn.004017f0
mov ebx, dword [ebp - 4]
leave
ret
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov dword [esp + 4], ebx
movzx eax, ax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.MsiExec
mov dword [esp], 0
call sub.msi.dll_MsiMessageBoxA
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
Function at 0x401de0
Capabilities:
Create service
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x254
mov dword [esp + 8], 2
mov dword [esp + 4], str.ServicesActive
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x401f20
lea esi, [ebp - 0x22c]
mov ebx, eax
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea ecx, [esi + eax*2]
sub esp, 8
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.msiexec__V]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x401e38
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x10000000
mov dword [esp + 8], 0x4070ee
mov dword [esp + 4], 0x4070ee
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x401ee0
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [esp], eax
call esi
sub esp, 4
xor edi, edi
mov dword [esp], ebx
call esi
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x431
jne 0x401f00
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x401ec5
mov dword [esp], str.Failed_to_create_MSI_service_n
mov edi, 1
call fcn.00401d30
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x401ec7
mov dword [esp], str.Failed_to_open_the_service_control_manager._n
mov edi, 1
call fcn.00401d30
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401f40
Capabilities:
Accept command line arguments
Delete service
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x401f8d
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x401fb1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.00401cc0
mov dword [esp], str.Unable_to_load_dll__s_n
mov dword [esp + 4], eax
call fcn.00401d30
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call fcn.00401cc0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], str.Dll__s_does_not_implement_function__s_n
call fcn.00401d30
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push eax
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4051f0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x405260
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x405240
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004052b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x4052b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call fcn.004052a0
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40530e
xor ecx, ecx
xor edx, edx
jmp 0x4052ee
cmp al, 0x5c
jne 0x405360
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x405303
cmp al, 9
je 0x4052f6
cmp al, 0x20
jne 0x4052d8
test ecx, ecx
je 0x405303
xor edx, edx
jmp 0x4052e3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x405300
cmp al, 0x20
je 0x405300
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x405329
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401ff0
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x4052fa
and edx, 1
jne 0x4052fa
xor ecx, 1
jmp 0x4052e3
Function at 0x10005e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xe60974], 0
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x10006010
movd xmm0, edi
lea eax, [esi + 0x1e]
cvtdq2pd xmm0, xmm0
mov dword [0xe61e58], edi
mov dword [0xe61e5c], esi
push 0x116
push eax
push edi
push 0
divsd xmm0, qword [0x10034990]
push 0
push 0
push dword [0xe8c578]
cvtpd2ps xmm0, xmm0
movss dword [0xe7c3d4], xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x10034978]
cvtpd2ps xmm0, xmm0
movss dword [0xe7c3d8], xmm0
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, 0x630bc0
call eax
mov eax, 0x596ac0
mov ecx, 1
call eax
mov eax, 0x482b70
call eax
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], esi
mov eax, 0x407b20
call eax
mov dword [eax + 0x28], edi
mov edi, 0x861110
mov dword [eax + 0x2c], esi
call edi
mov esi, eax
mov eax, 0x785870
push 0x17e
push 0
push dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push dword [esi]
call eax
call edi
mov edx, 0x861ac0
mov ecx, eax
call edx
mov edx, 0x7f0d40
mov ecx, eax
call edx
mov ecx, dword [esi + 0x138]
mov eax, 0x7f0c80
push 0
push 0x1c2
push dword [esi]
call eax
push 1
mov dword [0x81c0380], 0xa
mov eax, 0x830b70
mov ecx, dword [esi + 0xb4]
push 1
push dword [esi]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0xd2c848
mov dword [ebp - 8], 0x44fa0000
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005fca
mov eax, dword [ebp - 8]
mov ecx, 0xd2c848
mov dword [ecx], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0
push 4
push ecx
call esi
test eax, eax
jne 0x10005fcc
call edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x447a0000
push eax
push 0x40
push 4
push 0xd2c898
mov dword [ebp - 4], 0
call esi
test eax, eax
je 0x1000600e
mov eax, dword [ebp - 0xc]
mov ecx, 0xd2c898
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 4
push ecx
call esi
test eax, eax
jne 0x10006010
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret