joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5370e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c2e5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x364
call fcn.00547430
movzx eax, al
test eax, eax
je 0x537125
jmp 0x53720b
lea ecx, [ebp - 0x30]
push ecx
call fcn.004e3d10
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0x364
mov dword [ebp - 0x34], edx
push 4
lea ecx, [ebp - 0x14]
call fcn.0051c210
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00547180
push 4
lea ecx, [ebp - 0x18]
call fcn.0051c210
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.005474b0
jmp 0x53717a
lea ecx, [ebp - 0x14]
call fcn.00545a60
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00545850
movzx eax, al
test eax, eax
je 0x5371fc
lea ecx, [ebp - 0x14]
call fcn.005458f0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x18
call fcn.004e9240
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004e1a10
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.00541e70
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.004e9c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.004e9960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.004e9960
jmp 0x537172
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004e9960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x537a30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x537a98
mov dword [ebp - 0x28], 1
jmp 0x537b01
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x537ac2
mov dword [ebp - 0x28], 2
jmp 0x537b01
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov byte [ebp - 0x21], al
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
jne 0x537ae4
mov dword [ebp - 0x28], 3
jmp 0x537b01
cmp dword [ebp - 0x1c], 1
je 0x537af0
cmp dword [ebp - 0x1c], 3
jne 0x537af9
mov dword [ebp - 0x28], 4
jmp 0x537b01
xor edx, edx
jne 0x537a77
cmp dword [ebp - 0x30], 0
je 0x537b11
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x2c], 0
je 0x537b21
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
lea ecx, [ebp + 8]
call fcn.004e9960
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret 0x18
Function at 0x56d225
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0055a412
mov dword [ebp - 0x14], eax
cmp dword [0x5f0174], esi
jne 0x56d318
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x56d2a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x56d3f8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x56d3f8
push 0x5cdc94
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56d3f8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5f0174], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5f0178], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5cdcc4
push edi
mov dword [0x5f017c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f0184], eax
test eax, eax
je 0x56d315
push 0x5cdce0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f0180], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x56d33d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x56d330
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x56d352
push 4
pop eax
jmp 0x56d3fa
cmp dword [ebp - 0x14], esi
je 0x56d352
push dword [0x5f0174]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x56d337
mov eax, dword [0x5f0180]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x56d3b0
cmp dword [0x5f0184], edi
je 0x56d3b0
push eax
call ebx
push dword [0x5f0184]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x56d3b0
test eax, eax
je 0x56d3b0
call ecx
test eax, eax
je 0x56d3a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x56d3a5
test byte [ebp - 8], 1
jne 0x56d3b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x56d3e0
mov eax, dword [0x5f0178]
cmp eax, edi
je 0x56d3dd
push eax
call ebx
test eax, eax
je 0x56d3dd
call eax
mov esi, eax
test esi, esi
je 0x56d3dd
mov eax, dword [0x5f017c]
cmp eax, edi
je 0x56d3dd
push eax
call ebx
test eax, eax
je 0x56d3dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5f0174]
call ebx
test eax, eax
je 0x56d3f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x56d3fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x40bad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40baf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40baf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bae8
mov eax, 1
add ebx, ebx
jne 0x40bb0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bb00
jne 0x40bb1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bb00
xor ecx, ecx
sub eax, 3
jb 0x40bb30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bba2
mov ebp, eax
add ebx, ebx
jne 0x40bb3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bb48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bb6c
inc ecx
add ebx, ebx
jne 0x40bb58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bb4d
jne 0x40bb69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bb4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bb8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bb7d
jmp 0x40baee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bb8c
add edi, ecx
jmp 0x40baee
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bbaa
cmp byte [edi], 0
jne 0x40bbaa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40bbaf
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bc1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd2ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd338]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bbdc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd33c]
or eax, eax
je 0x40bc18
mov dword [ebx], eax
add ebx, 4
jmp 0x40bbf9
call dword [esi + 0xd34c]
mov ebp, dword [esi + 0xd340]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40bc52
sub esp, 0xffffff80
jmp 0x4014c8
Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
inc edx
call fcn.00408955
sub edx, 0x3a3994a5
sub edx, edx
xor dword [ebx], ecx
add edi, 0x8098b2e2
or edi, edx
inc ebx
cmp ebx, eax
jne fcn.0040892e
ret
Function at 0xbbfb30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x563000]
push edi
jmp 0xbbfb4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbbfb51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbfb40
mov eax, 1
add ebx, ebx
jne 0xbbfb63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbbfb74
jne 0xbbfb93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbfb93
dec eax
add ebx, ebx
jne 0xbbfb80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbbfb58
add ebx, ebx
jne 0xbbfb8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbbfbe5
xor ecx, ecx
sub eax, 3
jb 0xbbfbab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbbfc1a
sar eax, 1
mov ebp, eax
jmp 0xbbfbb6
add ebx, ebx
jne 0xbbfbb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbfb84
inc ecx
add ebx, ebx
jne 0xbbfbc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbfb84
add ebx, ebx
jne 0xbbfbd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbbfbc6
jne 0xbbfbe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbbfbc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbbfc04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbbfbf6
jmp 0xbbfb46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbbfc04
add edi, ecx
jmp 0xbbfb46
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbbfc22
cmp byte [edi], 2
jne 0xbbfc22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xbbfc27
lea edi, [esi + 0x7bc000]
mov eax, dword [edi]
or eax, eax
je 0xbbfc9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa9d62c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa9d758]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbbfc54
mov ecx, edi
jns 0xbbfc83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa9d75c]
or eax, eax
je 0xbbfc99
mov dword [ebx], eax
add ebx, 4
jmp 0xbbfc71
call dword [esi + 0xa9d76c]
mov ebp, dword [esi + 0xa9d760]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xbbfcd3
sub esp, 0xffffff80
jmp 0x519c8c
Function at 0x4179b7
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [0x401094]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x422f00], ebx
jne 0x417a18
mov dword [0x422f00], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x4179fe
shr eax, 1
xor eax, 0xedb88320
jmp 0x417a00
shr eax, 1
dec edi
test edi, edi
jg 0x4179f1
mov dword [ecx*4 + 0x422b00], eax
inc ecx
cmp ecx, 0xff
jle 0x4179ec
mov ecx, dword [ebp + 8]
test esi, esi
je 0x417a34
movzx eax, byte [ecx]
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x422b00]
inc ecx
dec esi
jne 0x417a1c
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
xor edx, edx
div dword [ecx + 0xc]
mov dword [ebp - 8], ebx
mov edi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x417a7d
lea eax, [ecx + 8]
mov dword [ebp - 0xc], eax
mov esi, edi
imul esi, esi, 0xc
add esi, dword [eax]
cmp dword [ebp + 0xc], ebx
je 0x417a89
cmp dword [esi + 4], ebx
je 0x417a79
push dword [ebp + 8]
push dword [esi + 4]
call dword [fcn.00401090]
test eax, eax
je 0x417abb
mov ecx, dword [ebp - 4]
cmp dword [esi + 4], ebx
jne 0x417aa1
cmp dword [esi], ebx
jne 0x417aa1
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp dword [esi + 4], ebx
je 0x417abb
push dword [ebp + 8]
push dword [esi + 4]
call dword [fcn.00401090]
test eax, eax
je 0x417abb
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0xc]
jb 0x417aaa
sub edi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x417a50
jmp 0x417a7d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x417a80
Function at 0x871370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x87138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x89a074
push ecx
mov edi, eax
call fcn.00885198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8713cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0088502e
push esi
call fcn.00884fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x874850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8748ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x89f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8748ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008851e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8748ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x89f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x87492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00886082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x874957
mov word [eax], si
add eax, 2
push eax
call fcn.00886030
add esp, 4
jmp 0x874959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8748ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8748b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x874ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x875080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8750c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x89a458
push ecx
call fcn.008851e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008851e1
add esp, 0x10
jmp 0x8750d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0088520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00884dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00875050
mov eax, dword [0x89f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x87513b
push esi
call fcn.00874fb0
add esp, 4
mov dword [0x89f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x87514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00874ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x878440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8784b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x87848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x878471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x87847e
add edx, ecx
cmp ebx, edx
jb 0x87848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x878467
xor ecx, ecx
jmp 0x8784a2
test eax, eax
jne 0x878492
xor ecx, ecx
jmp 0x8784a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008783c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8788f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x878921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x878946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x87896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.wtsapi32.dll_WTSQueryUserToken
jne 0x878993
push ecx
push esi
call fcn.008784c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x879c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x879c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x879c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x879c38
add edx, eax
cmp ebx, edx
jb 0x879c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x879c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x879c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x879c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x879cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x879c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x879ca8
add edx, ecx
cmp ebx, edx
jb 0x879cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x879c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x879f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00886145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x879ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x879fdd
lea eax, [esp + 0x18]
push eax
jmp 0x879fe2
push 0x89f720
call fcn.00885fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x879fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x879f40
push 4
push ecx
push eax
call fcn.0088643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x87a310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00886145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x87a3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x87a38d
lea eax, [esp + 0x18]
push eax
jmp 0x87a392
push 0x89f720
call fcn.00885fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x87a360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x879f40
push 4
push ecx
push eax
call fcn.0088643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret