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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov ebp, edi
shr edi, 3
and ebp, 7
test edi, edi
je 0x5d33be
nop dword [eax]
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
push esi
push dword [esp + 0x18]
call fcn.005d30e0
mov ebx, esi
add esi, 8
sub edi, 1
jne 0x5d33a0
test ebp, ebp
je 0x5d33e5
mov edx, ebx
sub esi, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [esi + edx - 1]
mov byte [esi + edx - 1], al
xor byte [edx - 1], cl
sub ebp, 1
jne 0x5d33c6
push ebx
push dword [esp + 0x18]
call fcn.005d30e0
push 8
push ebx
push dword [esp + 0x20]
call fcn.0060a150
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x5d3900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3cc
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
mov ebx, dword [esp + 0x3d4]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x3e0]
push esi
push edi
mov edi, dword [esp + 0x3e4]
mov esi, ecx
push 0x90
push eax
push 1
mov eax, dword [esi + 0x24]
push ebx
call eax
add esp, 0x10
cmp eax, 0x90
je 0x5d3958
push ebx
mov ecx, esi
call fcn.005d4250
jmp 0x5d3a59
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
or ecx, dword [esp + 0x38]
or eax, dword [esp + 0x1c]
jne 0x5d3974
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x20]
or ecx, eax
mov dword [esi + 0x54], ecx
cmp dword [ebp], 0
jne 0x5d3993
movzx eax, byte [esp + 0x10]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x11]
or ecx, eax
mov dword [ebp], ecx
mov ax, word [esp + 0x12]
mov ecx, dword [esp + 0x98]
or ecx, dword [esp + 0x78]
mov word [edi + 4], ax
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x7c]
or eax, dword [esp + 0x5c]
jne 0x5d39c5
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x60]
or ecx, eax
or dword [esi + 0x54], ecx
cmp dword [edi + 0x40], 0
jne 0x5d3a57
push 0x220
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esi + 0x24]
push 0x37
push ebx
call eax
add esp, 0x10
cmp eax, 0x220
jne 0x5d3a24
mov cx, word [esp + 0xa4]
mov al, cl
shr al, 3
test al, 1
je 0x5d3a0b
lea eax, [esp + 0x140]
jmp 0x5d3a4e
shr cl, 2
lea eax, [esp + 0x120]
test cl, 1
lea ecx, [esp + 0x1c0]
cmove eax, ecx
jmp 0x5d3a4e
push 0x118
lea eax, [esp + 0x2c4]
push eax
mov eax, dword [esi + 0x24]
push 0xa
push ebx
call eax
add esp, 0x10
cmp eax, 0x118
jne 0x5d394b
lea eax, [esp + 0x2d8]
push eax
lea ecx, [edi + 0x2c]
call fcn.00524ac0
xor eax, eax
mov ecx, dword [esp + 0x3d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x3cc
ret 0xc
Function at 0x5dd780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6316a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1d8], esi
mov ecx, dword [esi + 0x78]
push 0
push dword [esi + 0x24]
mov edi, dword [ecx + 0x2fc]
call fcn.005d63d0
test eax, eax
je 0x5dd993
mov eax, dword [esi]
mov ecx, esi
shr eax, 1
and al, 1
mov byte [ebp - 0x1dc], al
lea eax, [ebp - 0x34]
push dword [ebp - 0x1dc]
push eax
call fcn.005de090
or dword [esi], 8
lea ecx, [ebp - 0x30]
mov dword [esi + 0x54], eax
or eax, 1
mov esi, dword [ebp + 8]
push esi
push dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.005ddb60
push esi
mov esi, dword [ebp - 0x1d8]
mov byte [ebp - 0x1d1], al
push dword [esi + 0x24]
mov ecx, dword [esi + 0x78]
call fcn.005dc120
test al, al
je 0x5dd892
mov esi, dword [esi + 0x24]
mov ecx, edi
call fcn.005de530
xor ecx, ecx
test esi, esi
jle 0x5dd841
mov eax, dword [edi + 0x20]
movzx ecx, word [eax + esi*2 - 2]
mov eax, dword [edi + 0x20]
movzx esi, word [eax + esi*2]
cmp ecx, esi
jae 0x5dd88c
mov edx, ecx
shl edx, 4
sub edx, ecx
shl edx, 2
sub esi, ecx
mov eax, dword [edi + 0x14]
add eax, edx
mov ecx, dword [eax + 0x34]
and ecx, 0x30000000
cmp ecx, 0x20000000
je 0x5dd884
or ecx, 0x20000000
cmp dword [eax + 4], 3
mov dword [eax + 0x34], ecx
jne 0x5dd884
mov dword [eax + 4], 1
add edx, 0x3c
sub esi, 1
jne 0x5dd858
mov esi, dword [ebp - 0x1d8]
cmp byte [ebp - 0x1d1], 0
je 0x5dd993
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
add esi, 0x58
movlpd qword [ebp - 0x18], xmm0
movups xmm0, xmmword [ebp - 0x30]
push 0x128
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1cc]
push 0
push eax
movups xmmword [esi], xmm0
mov byte [ebp - 0x1d0], 0
call fcn.0060a6d0
xor eax, eax
cmp byte [ebp - 0x1d0], al
setne al
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00535af0
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
cmp byte [ebp - 0x1d0], al
setne al
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.005364a0
lea eax, [ebp - 0x1cc]
push eax
call fcn.005365e0
push esi
lea eax, [ebp - 0x1cc]
push esi
push eax
call fcn.00535c00
add esp, 0x38
cmp byte [ebp + 0xc], 0
jne 0x5dd979
push 0x70
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0060a6d0
lea eax, [ebp - 0xa4]
push eax
call fcn.00537300
push 0x10
lea eax, [ebp - 0xa4]
push esi
push eax
call fcn.00537340
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.00537210
add esp, 0x24
lea eax, [ebp - 0x1cc]
mov dword [ebp - 4], 1
push eax
call fcn.00536010
add esp, 4
mov al, 1
jmp 0x5dd995
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret 8
Function at 0x5e3ba0
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
cmp eax, ecx
je 0x5e3bbe
nop word [eax + eax]
mov edx, dword [eax]
cmp byte [edx], 0xcc
je 0x5e3bc1
add eax, 4
cmp eax, ecx
jne 0x5e3bb0
xor al, al
ret
call fcn.004c4d70
mov dword [eax], 0xb
mov al, 1
ret

Function at 0x5e82e0
Capabilities:
Parse pe header

Disassembly:
jmp 0x5e8380
sub esp, 0x10
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x5e852d
cmp esi, 0xffffffff
je 0x5e852d
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5e8512
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5e8512
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x5e8512
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
push edi
cmp dx, cx
jne 0x5e83f5
mov ecx, 0x78
lea edi, [ecx + eax]
jmp 0x5e840b
mov edx, 0x20b
cmp dx, cx
jne 0x5e8409
mov ecx, 0x88
lea edi, [ecx + eax]
jmp 0x5e840b
xor edi, edi
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x5e84f5
cmp dword [edi + 4], 0
je 0x5e84f5
mov eax, dword [esi + ebp + 0x1c]
add eax, esi
mov dword [esp + 0x14], eax
test ebx, 0xffff0000
jne 0x5e843c
sub bx, word [esi + ebp + 0x10]
movzx ecx, bx
jmp 0x5e84a0
mov eax, dword [esi + ebp + 0x20]
push esi
push 0x5e8060
push 4
push dword [esi + ebp + 0x18]
add eax, esi
push eax
push ebx
mov dword [esp + 0x28], eax
call fcn.0061a4c9
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x5e848a
mov eax, dword [esi + ebp + 0x18]
push esi
push 0x5e8060
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x20]
push ebx
call fcn.0061a598
mov ecx, eax
add esp, 0x18
test ecx, ecx
je 0x5e84f5
sub ecx, dword [esp + 0x10]
mov eax, dword [esi + ebp + 0x24]
shr ecx, 2
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [esp + 0x14]
movzx ecx, cx
cmp ecx, dword [esi + ebp + 0x14]
jae 0x5e84f5
mov ecx, dword [eax + ecx*4]
mov edx, dword [edi]
cmp ecx, edx
jb 0x5e84df
mov eax, dword [edi + 4]
add eax, edx
cmp ecx, eax
jae 0x5e84df
lea eax, [ecx + esi]
push eax
push esi
call fcn.005e80c0
add esp, 8
test eax, eax
je 0x5e84f5
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
pop ebp
pop edi
lea eax, [ecx + esi]
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
Function at 0x5e8380
Capabilities:
Parse pe header

Disassembly:
jmp 0x5e8380
sub esp, 0x10
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x5e852d
cmp esi, 0xffffffff
je 0x5e852d
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5e8512
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5e8512
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x5e8512
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
push edi
cmp dx, cx
jne 0x5e83f5
mov ecx, 0x78
lea edi, [ecx + eax]
jmp 0x5e840b
mov edx, 0x20b
cmp dx, cx
jne 0x5e8409
mov ecx, 0x88
lea edi, [ecx + eax]
jmp 0x5e840b
xor edi, edi
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x5e84f5
cmp dword [edi + 4], 0
je 0x5e84f5
mov eax, dword [esi + ebp + 0x1c]
add eax, esi
mov dword [esp + 0x14], eax
test ebx, 0xffff0000
jne 0x5e843c
sub bx, word [esi + ebp + 0x10]
movzx ecx, bx
jmp 0x5e84a0
mov eax, dword [esi + ebp + 0x20]
push esi
push 0x5e8060
push 4
push dword [esi + ebp + 0x18]
add eax, esi
push eax
push ebx
mov dword [esp + 0x28], eax
call fcn.0061a4c9
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x5e848a
mov eax, dword [esi + ebp + 0x18]
push esi
push 0x5e8060
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x20]
push ebx
call fcn.0061a598
mov ecx, eax
add esp, 0x18
test ecx, ecx
je 0x5e84f5
sub ecx, dword [esp + 0x10]
mov eax, dword [esi + ebp + 0x24]
shr ecx, 2
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [esp + 0x14]
movzx ecx, cx
cmp ecx, dword [esi + ebp + 0x14]
jae 0x5e84f5
mov ecx, dword [eax + ecx*4]
mov edx, dword [edi]
cmp ecx, edx
jb 0x5e84df
mov eax, dword [edi + 4]
add eax, edx
cmp ecx, eax
jae 0x5e84df
lea eax, [ecx + esi]
push eax
push esi
call fcn.005e80c0
add esp, 8
test eax, eax
je 0x5e84f5
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
pop ebp
pop edi
lea eax, [ecx + esi]
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x10
ret
Function at 0x5ee2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x7c
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
push 1
push 0x323b2322
push 0x3a1f0727
push 0x361e0f23
mov byte [esp + 0x1f], 0
call fcn.005ed550
test eax, eax
jne 0x5ee3e2
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0xa
push 0
movaps xmmword [esp + 0x1c], xmm0
call fcn.005f2b84
cmp eax, 1
jne 0x5ee358
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
cmp eax, 0xffffffff
jne 0x5ee3e2
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
push 0x11
push 0
movaps xmmword [esp + 0x2c], xmm0
call fcn.005f2b84
cmp eax, 1
jne 0x5ee384
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
cmp eax, 0xffffffff
jne 0x5ee3e2
movaps xmm0, xmmword [0x4ad530]
lea eax, [esp + 0x38]
push 7
push eax
mov dword [esp + 0x40], 0x79784f42
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x54], 0x6b693c1b
mov dword [esp + 0x58], 0x180f6162
call fcn.005ed040
lea eax, [esp + 0x38]
push eax
push 0
push 0x100000
call fcn.005f3500
push 0x40
mov esi, eax
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0060a6d0
add esp, 0xc
test esi, esi
je 0x5ee3f4
push esi
call fcn.005ed010
mov al, 1
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
call fcn.005edf10
test al, 1
jne 0x5ee3e2
push 1
call fcn.005edbb0
test al, 1
mov ecx, 1
movzx eax, byte [esp + 0xf]
cmovne eax, ecx
mov ecx, dword [esp + 0x7c]
pop esi
xor ecx, esp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
Function at 0x6147a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x61486c
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x61486b
push edi
mov edi, dword [esp + 0x14]
xor ecx, ecx
test edi, edi
je 0x614866
push esi
cmp edi, 0x40
jb 0x61484b
lea eax, [edi - 1]
lea esi, [edi - 1]
add eax, edx
add esi, ebx
cmp ebx, eax
ja 0x6147e0
cmp esi, edx
jae 0x61484b
movaps xmm1, xmmword [0x4b0910]
lea esi, [edx + 0x30]
mov eax, edi
mov edi, edx
and eax, 0xffffffc0
sub edi, ebx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
push ebp
nop dword [eax + eax]
movups xmm0, xmmword [esi - 0x30]
add ecx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
mov ebp, ecx
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [esi - 0x50]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [esi - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp ecx, dword [esp + 0x14]
jb 0x614800
mov edi, dword [esp + 0x1c]
cmp ebp, edi
pop ebp
jae 0x614865
mov esi, edi
lea eax, [ecx + ebx]
sub edx, ebx
sub esi, ecx
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor cl, 0x67
mov byte [eax - 1], cl
sub esi, 1
jne 0x614854
pop esi
mov byte [ebx + edi], 0
pop edi
pop ebx
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x701370
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 0x70138e
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 0x72a074
push ecx
mov edi, eax
call fcn.00715198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7013cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0071502e
push esi
call fcn.00714fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x704850
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 0x7048ae
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 0x72f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7048ba
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.007151e1
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 0x7048ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x72f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x70492a
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.00716082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x704957
mov word [eax], si
add eax, 2
push eax
call fcn.00716030
add esp, 4
jmp 0x704959
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 0x7048ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7048b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x704ff0
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 0x705080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7050c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x72a458
push ecx
call fcn.007151e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007151e1
add esp, 0x10
jmp 0x7050d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0071520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00714dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00705050
mov eax, dword [0x72f728]
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], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x70513b
push esi
call fcn.00704fb0
add esp, 4
mov dword [0x72f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x70514c
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.00704ff0
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 0x708440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7084b7
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 0x70848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x708471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x70847e
add edx, ecx
cmp ebx, edx
jb 0x70848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x708467
xor ecx, ecx
jmp 0x7084a2
test eax, eax
jne 0x708492
xor ecx, ecx
jmp 0x7084a2
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.007083c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7088f0
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 0x708921
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 0x708946
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 0x70896e
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], 0x5a4d
jne 0x708993
push ecx
push esi
call fcn.007084c0
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 0x709c00
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 0x709c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x709c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x709c38
add edx, eax
cmp ebx, edx
jb 0x709c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x709c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x709c50
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 0x709c70
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 0x709cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x709c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x709ca8
add edx, ecx
cmp ebx, edx
jb 0x709cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x709c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x709f60
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.00716145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x709ffb
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 0x709fdd
lea eax, [esp + 0x18]
push eax
jmp 0x709fe2
push 0x72f720
call fcn.00715fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x709fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x709f40
push 4
push ecx
push eax
call fcn.0071643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret