joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ef1e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x7345b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.006e98a0
lea edi, [esi + 0xc]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.006f25e0
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
xor edx, edx
test ecx, ecx
setne dl
mov word [esi + 0xa], dx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x20], ebx
mov ebx, dword [esp + 0x2c]
test ax, ax
mov byte [esp + 0x18], 1
mov dword [esi], 0x750c84
mov word [esi + 8], ax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ecx
jbe 0x6ef269
test edx, edx
je 0x6ef269
push 0xc
and eax, 0xffff
push edx
push eax
mov ecx, edi
call fcn.006ed170
mov eax, dword [0x7c562c]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [0x7c562c]
inc eax
pop edi
mov dword [0x7c562c], eax
mov word [esi + 0x30], 0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x6ef2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7345c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.006e98a0
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call fcn.006f25e0
mov dword [esi], 0x750c84
mov word [esi + 8], di
mov word [esi + 0xa], di
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov eax, dword [0x7c562c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [0x7c562c]
inc eax
mov dword [0x7c562c], eax
mov word [esi + 0x30], di
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x6fc540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x734c13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.006e98a0
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi], 0x751200
mov word [esi + 8], 0xc
mov dword [esi + 0xc], 0x3f800000
mov dword [esi + 0x10], ebx
mov eax, dword [0x7511e4]
mov byte [esp + 0x14], 1
mov dword [esi + 0x14], eax
fld dword [0x7511e4]
fchs
fstp dword [esi + 0x18]
fld dword [0x7511e4]
fchs
fstp dword [esi + 0x1c]
fld dword [0x7511e4]
fchs
fstp dword [esi + 0x20]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
je 0x6fc5cf
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x6fc5cc
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x7179e6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x7357a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.006e98a0
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi], 0x751630
mov ecx, dword [esi + 8]
cmp ecx, edi
mov byte [esp + 0x14], 1
je 0x717a20
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x717a1d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [0x7de6cc]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x7de6d0]
mov dword [esi + 0x20], edx
mov eax, dword [0x7de6d4]
mov dword [esi + 0x24], eax
mov ecx, dword [0x7de6cc]
mov dword [esi + 0x28], ecx
mov edx, dword [0x7de6d0]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], edx
mov eax, dword [0x7de6d4]
mov dword [esi + 0x30], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi], 0x7515f4
mov dword [esi + 0x14], 0x3f800000
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x735a23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.006e98a0
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi], 0x751630
mov ecx, dword [esi + 8]
cmp ecx, edi
mov byte [esp + 0x14], 1
je 0x71ae70
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x71ae6d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [0x7de6cc]
mov dword [esi + 0x28], ecx
mov edx, dword [0x7de6d0]
mov dword [esi + 0x2c], edx
mov eax, dword [0x7de6d4]
mov dword [esi + 0x30], eax
mov ecx, dword [0x7de6cc]
mov dword [esi + 0x34], ecx
mov edx, dword [0x7de6d0]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x38], edx
mov eax, dword [0x7de6d4]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], 0x75179c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x71d5b6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x735cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00726de0
lea edi, [esi + 0x30]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.006f25e0
mov eax, dword [0x7de6cc]
mov dword [esi + 0x40], eax
mov ecx, dword [0x7de6d0]
mov dword [esi + 0x44], ecx
mov edx, dword [0x7de6d4]
mov dword [esi + 0x48], edx
mov eax, dword [0x7de6cc]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x7de6d0]
mov dword [esi + 0x50], ecx
mov edx, dword [0x7de6d4]
mov dword [esi + 0x54], edx
mov eax, dword [0x7de6cc]
mov dword [esi + 0x58], eax
mov ecx, dword [0x7de6d0]
mov dword [esi + 0x5c], ecx
mov edx, dword [0x7de6d4]
mov eax, 0x3f800000
mov dword [esi + 0x60], edx
mov dword [esi], 0x7518f0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], 0
mov eax, dword [0x7de6cc]
mov dword [edi], eax
mov ecx, dword [0x7de6d0]
mov dword [edi + 4], ecx
mov edx, dword [0x7de6d4]
mov ecx, dword [esp + 0xc]
mov dword [edi + 8], edx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x737048
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x731118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], 0x74f28c
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x54]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x4c]
lea edi, [esi + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x50]
sub esp, 0xc
mov dword [edi], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x60]
mov dword [edi + 8], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
lea ecx, [esp + 0x44]
fmul dword [edi]
mov dword [esp + 0x2c], 0
fstp dword [esp + 0x38]
fld dword [esp + 0x60]
fmul dword [edi + 4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x60]
fmul dword [edi + 8]
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fmul dword [esi + 0x20]
fstp dword [esp + 8]
fld dword [esp + 0x50]
fmul dword [esi + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x50]
fmul dword [esi + 0x18]
fstp dword [esp]
call fcn.004057e0
fld dword [esi + 0x14]
fsub dword [esp + 0x40]
sub esp, 0xc
lea ecx, [esp + 0x54]
fstp dword [esp + 8]
fld dword [esi + 0x10]
fsub dword [esp + 0x48]
fstp dword [esp + 4]
fld dword [esi + 0xc]
fsub dword [esp + 0x44]
fstp dword [esp]
call fcn.004057e0
fld dword [esp + 0x50]
fsub dword [esp + 0x34]
sub esp, 0xc
lea ecx, [esp + 0x18]
fstp dword [esp + 8]
fld dword [esp + 0x58]
fsub dword [esp + 0x3c]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fsub dword [esp + 0x38]
fstp dword [esp]
call fcn.004057e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
sub esp, 0xc
fld dword [esi + 4]
fld st(0)
fmul dword [esi + 0x20]
lea ecx, [esp + 0x38]
fstp dword [esp + 8]
fld st(0)
fmul dword [esi + 0x1c]
fstp dword [esp + 4]
fmul dword [esi + 0x18]
fstp dword [esp]
call fcn.004057e0
fld dword [esp + 0x34]
fadd st(0), st(0)
sub esp, 0xc
lea ecx, [esp + 0x44]
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fadd st(0), st(0)
fstp dword [esp + 4]
fld dword [esp + 0x38]
fadd st(0), st(0)
fstp dword [esp]
call fcn.004057e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push 0x40000000
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, edi
call fcn.004521a0
mov ecx, eax
call fcn.004521a0
mov ecx, dword [eax]
pop edi
mov dword [esi + 0x48], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x4c], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x50], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x30
Function at 0x507f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb3000]
push edi
jmp 0x507f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x507f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f60
mov eax, 1
add ebx, ebx
jne 0x507f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x507f94
jne 0x507fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fb3
dec eax
add ebx, ebx
jne 0x507fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x507f78
add ebx, ebx
jne 0x507faf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x508005
xor ecx, ecx
sub eax, 3
jb 0x507fcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50803a
sar eax, 1
mov ebp, eax
jmp 0x507fd6
add ebx, ebx
jne 0x507fd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fa4
inc ecx
add ebx, ebx
jne 0x507fe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fa4
add ebx, ebx
jne 0x507ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x507fe6
jne 0x508002
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x507fe6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x508024
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x508016
jmp 0x507f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x508024
add edi, ecx
jmp 0x507f66
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x508042
cmp byte [edi], 0x11
jne 0x508042
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 0x508047
lea edi, [esi + 0x100000]
mov eax, dword [edi]
or eax, eax
je 0x5080bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x137a14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x137b90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508074
mov ecx, edi
jns 0x5080a3
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 + 0x137b94]
or eax, eax
je 0x5080b9
mov dword [ebx], eax
add ebx, 4
jmp 0x508091
call dword [esi + 0x137ba4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5080f0
cmp al, 0xef
ja 0x5080e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5080c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5080d2
mov ebp, dword [esi + 0x137b98]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x508124
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40698e
Capabilities:
Create process on windows

Disassembly:
push 0x401730
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x403010
call dword [sym.imp.ADVAPI32.DLL_CreateProcessAsUserA]
ret

Function at 0x4069ae
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], sym.imp.MSVBVM60.DLL___vbaExitProc
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 1
call dword [0x401050]
mov eax, dword [0x403010]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push esi
push 1
push eax
call dword [ecx + 0x80]
fnclex
cmp eax, esi
jge 0x406a2f
push 0x80
push 0x401720
mov ecx, dword [0x403010]
push ecx
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push 0x401740
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseBstr]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.DLL_CreateProcessAsUserA]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x3c]
fnclex
cmp eax, esi
jge 0x406a77
push 0x3c
push 0x401740
mov ecx, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push 0
call dword [0x401050]
call dword [sym.imp.ADVAPI32.DLL_DuplicateTokenEx]
push 0x401c7b
jmp 0x406a96
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
ret
Function at 0x406abe
Capabilities:
Connect pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], sym.imp.MSVBVM60.DLL_rtcMidCharBstr
mov edx, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.DLL_SetSecurityDescriptorDacl]
push 0x401754
push eax
call edi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaRaiseEvent]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
mov eax, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x24]
push ebx
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaEnd]
push eax
call dword [sym.imp.USER32.DLL_GetUserObjectInformationA]
mov edx, dword [ebp - 0x24]
mov esi, eax
lea eax, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
xor ecx, ecx
cmp esi, ebx
setne cl
neg ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
push 0x401d84
jmp 0x406ba1
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x20]
call esi
ret
Function at 0x40b1f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x170
push esi
xor esi, esi
push edi
lea eax, [esp + 0x28]
push esi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], esi
call dword [fcn.00405030]
test eax, eax
jne 0x40b23f
pop edi
pop esi
add esp, 0x170
ret 4
mov eax, dword [esp + 8]
push esi
push 1
push eax
call dword [fcn.0040502c]
test eax, eax
jne 0x40b25c
pop edi
pop esi
add esp, 0x170
ret 4
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x2c]
or eax, 0x101
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x184]
push esi
push esi
push esi
push 1
push ecx
push edx
push eax
push esi
mov word [esp + 0x8c], si
call dword [fcn.00405028]
test eax, eax
jne 0x40b2f1
mov ecx, dword [esp + 0xc]
mov esi, dword [fcn.0040501c]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x170
ret 4
mov eax, dword [esp + 0x18]
push ebx
push ebp
push 0x64
push eax
call dword [fcn.004050e8]
mov ecx, dword [esp + 0x14]
push ecx
call dword [fcn.0040501c]
mov edi, dword [0x4064d4]
mov ebx, dword [0x405024]
mov ecx, 0x80000
xor eax, eax
rep stosd dword es:[edi], eax
xor ebp, ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x80]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x88]
push 0xff
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebx
mov edx, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
jbe 0x40b39e
add ebp, eax
cmp ebp, 0x200000
mov dword [esp + 0x1c], ebp
jae 0x40b39e
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x4064d4]
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp edx, esi
jne 0x40b322
mov edx, dword [0x4064d4]
push edx
call fcn.0040b164
mov edi, dword [fcn.0040501c]
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x170
ret 4
Function at 0x41369a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4011e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], sym.imp.MSVBVM60.DLL___vbaAryConstruct2
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov ebx, eax
cmp ebx, esi
je 0x413719
mov eax, dword [ebp - 0x1c]
push 0x10000
push eax
push ebx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov edi, eax
cmp edi, esi
je 0x413712
push edi
call dword [sym.imp.ADVAPI32.DLL_StartServiceCtrlDispatcherW]
mov esi, eax
push edi
neg esi
sbb esi, esi
neg esi
neg esi
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
push ebx
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
mov dword [ebp - 0x24], esi
push 0x402871
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
ret

Function at 0x41374a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4011e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], sym.imp.MSVBVM60.DLL___vbaRedimPreserve
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov ebx, eax
cmp ebx, esi
je 0x4137c8
mov eax, dword [ebp - 0x1c]
push 0x10
push eax
push ebx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov edi, eax
cmp edi, esi
je 0x4137c1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov esi, eax
push edi
neg esi
sbb esi, esi
neg esi
neg esi
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
push ebx
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
mov dword [ebp - 0x20], esi
push 0x402920
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
ret
Function at 0x4137fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4011e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], sym.imp.MSVBVM60.DLL_EVENT_SINK_Release
mov edx, dword [ebp + 8]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov ebx, eax
cmp ebx, esi
je 0x413888
mov eax, dword [ebp - 0x38]
push 0x20
push eax
push ebx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov edi, eax
cmp edi, esi
je 0x413881
lea ecx, [ebp - 0x30]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
mov esi, eax
push edi
neg esi
sbb esi, esi
neg esi
neg esi
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
push ebx
call dword [sym.imp.ADVAPI32.DLL_SetServiceStatus]
mov dword [ebp - 0x40], esi
push 0x4029e0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
ret

Function at 0x4138ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4011e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], sym.imp.MSVBVM60.DLL__CIsqrt
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x401d40
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x41391b
push eax
push 0x404020
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413a5a
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov ecx, 5
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov word [esp + 0x10], ax
call dword [sym.imp.MSVBVM60.DLL_EVENT_SINK_GetIDsOfNames]
lea ecx, [esp + 4]
mov byte [esp + 0x11], al
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
mov ecx, 2
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
lea edx, [esp + 0x30]
push eax
push edx
call dword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
test eax, eax
je 0x413ade
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.DLL_InitializeSecurityDescriptor]
test eax, eax
je 0x413ad3
mov ecx, dword [esp + 8]
xor edx, edx
cmp ecx, esi
setne dl
neg edx
mov esi, edx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_SetSecurityDescriptorDacl]
mov ax, si
pop esi
add esp, 0x10
ret
Function at 0x417ed0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push 0x403610
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x417f29
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push 0x403684
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add esp, 8
ret