joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d45
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], 0x800
push 0x20
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00405d90
add esp, 0xc
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 2
pop edx
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [str.Microsoft_Windows_Network]
xor edi, edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push eax
push ebx
inc edi
mov dword [ebp - 0x28], ebx
push edi
push edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], ecx
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x404df1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x404de9
jmp 0x404dd1
push dword [esi + 0x14]
call fcn.00403d48
pop ecx
mov dword [ebp - 8], 0x800
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x404dc1
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404eb0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0x800
push 0x20
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00405d90
add esp, 0xc
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [str.Microsoft_Windows_Network]
mov esi, eax
push 2
pop edx
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], edx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], edi
push eax
xor ebx, ebx
mov dword [ebp - 0x20], edx
push edi
inc ebx
mov dword [ebp - 0x18], edi
push ebx
push edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ecx
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x404fe2
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x404fd4
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 4], edi
lea eax, [ebp - 0x22c]
push dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push ebx
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x404fd4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [ebp - 4]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x404fd4
mov edi, dword [ebp + 8]
test edi, edi
je 0x404fac
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push dword [esi + 0x14]
call fcn.0040b5a8
add esp, 0xc
test eax, eax
jne 0x404fb5
push dword [esi + 0x14]
call fcn.00403d48
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [ebp - 4]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x404f90
cmp dword [ebp - 4], 0
je 0x404fe2
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409124
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41f1c8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x409164
cmp byte [ebx], 0xa
jne 0x409164
or byte [eax + edi + 0x28], 4
jmp 0x409169
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x409267
mov al, byte [edx]
cmp al, 0x1a
je 0x409249
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x409198
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4091bd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4091c7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40917a
jmp 0x409267
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409244
cmp dword [ebp - 0xc], 0
je 0x409244
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x41f1c8]
test byte [eax + edi + 0x28], 0x48
je 0x40921e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x409209
mov byte [esi], dl
jmp 0x40921a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41f1c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x409267
cmp byte [ebp - 1], 0xa
jne 0x40922d
cmp esi, ebx
jne 0x40922d
mov byte [esi], 0xa
jmp 0x409266
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004090c6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x409267
mov byte [esi], 0xd
jmp 0x409266
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x41f1c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x409263
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x409267
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409270
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x41f1c8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4092b3
cmp word [esi], dx
jne 0x4092b3
or byte [edi + eax + 0x28], 4
jmp 0x4092b8
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x40940b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4093eb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4092fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x409330
cmp eax, edx
jae 0x40933c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4092d2
jmp 0x40940b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4093e7
cmp dword [ebp - 0x14], 0
je 0x4093e7
mov eax, dword [ebx*4 + 0x41f1c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4093bf
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x409388
mov word [esi], cx
jmp 0x4093bb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x41f1c8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x41f1c8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x41f1c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40940b
pop ebx
cmp word [ebp - 4], bx
jne 0x4093d0
cmp esi, dword [ebp + 0xc]
jne 0x4093d0
mov word [esi], bx
jmp 0x409408
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004090c6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40940b
push 0xd
jmp 0x409404
mov ecx, dword [ebx*4 + 0x41f1c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x409402
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40940b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40d65f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415ac8
push 0x415ac0
push str.FlsAlloc
push 0x1e
call fcn.0040d55c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d693
push dword [ebp + 8]
mov ecx, esi
call dword [0x4142d8]
call esi
jmp 0x40d699
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d6dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415ad8
push 0x415ad0
push str.FlsGetValue
push 0x20
call fcn.0040d55c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d714
push dword [ebp + 8]
mov ecx, esi
call dword [0x4142d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e742
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41c048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40e78d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040e8e1
test al, al
jne 0x40e787
sub edx, 2
cmp edx, edi
jne 0x40e76d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40e7af
lea eax, [edi + 2]
cmp edx, eax
je 0x40e7af
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040e68e
add esp, 0x10
jmp 0x40e8a9
push esi
lea ecx, [ebp - 0x255]
call fcn.0040e8e1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e7f2
push dword [ebp - 0x25c]
jmp 0x40e79f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40e82f
cmp word [ebp - 0x226], 0
je 0x40e850
cmp word [ebp - 0x226], ax
jne 0x40e82f
cmp word [ebp - 0x224], 0
je 0x40e850
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040e68e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40e89c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40e809
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40e884
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40e8a9
push 0x40e4be
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00410a90
add esp, 0x10
jmp 0x40e879
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c42
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100016d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100016e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001726
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001722
nop word [eax + eax]
cmp esi, edx
jae 0x10001726
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001710
cmp esi, edx
jb 0x1000172d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10007200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007549a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.1000d831
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x100072af
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1002bb5c
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10093498
push eax
call fcn.1002bdfa
push eax
push esi
call fcn.1000dd63
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007578e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10028f8f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000dc60
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10062de9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100625ce

Function at 0x10062df4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10062809

Function at 0x1006e81f
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e5a6
Function at 0x10071380
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
push esi
push 0
mov ebx, 0x1000
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1007152b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100713b0
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 0x2c]
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.100492e2
mov edi, eax
add esp, 4
test edi, edi
je 0x10071517
push str.SYSTEMCurrentControlSetServicesEventlog_
push dword [ebp - 4]
push edi
call fcn.10048b84
push esi
push dword [ebp - 4]
push edi
call fcn.10048c5a
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov esi, eax
call fcn.1004920b
add esp, 4
test esi, esi
jne 0x10071517
push 0x1000
call fcn.100492e2
mov esi, eax
add esp, 4
test esi, esi
je 0x100714fa
mov edi, 1
nop dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0
push 9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x10071484
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
test edi, edi
mov edx, esi
cmovne eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.10071540
add esp, 0x14
test eax, eax
je 0x100714ab
xor edi, edi
jmp 0x10071440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100714a6
push dword [ebp - 8]
push esi
call fcn.100498e9
mov esi, eax
add esp, 8
test esi, esi
je 0x100714fa
mov ebx, dword [ebp - 8]
jmp 0x10071440
cmp eax, 0x26
jne 0x100714d4
push esi
mov edi, 1
call fcn.1004920b
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push esi
call fcn.1004920b
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10071d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x8000
mov ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x7ffe
call fcn.100492e2
mov esi, eax
add esp, 4
test esi, esi
je 0x10071de0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x10071dfb
cmp eax, 0xea
jne 0x10071de9
mov eax, dword [ebp - 4]
add eax, 2
push eax
push esi
call fcn.100498e9
mov esi, eax
add esp, 8
test esi, esi
jne 0x10071db0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1004920b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov ax, word [0x1008c59c]
shr ecx, 1
mov dword [ebp - 4], ecx
mov word [esi + ecx*2], ax
mov eax, dword [ebp - 4]
lea edi, [eax + eax]
lea eax, [edi + edi]
push eax
call fcn.100492e2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10071de0
push edi
push ebx
push esi
push 0
call dword [0x10098850]
test eax, eax
jne 0x10071e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10071e5e
lea edi, [edi + edi*4]
add edi, edi
lea eax, [edi + edi]
push eax
push ebx
call fcn.100498e9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10071e25
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1004920b
push ebx
call fcn.1004920b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1004920b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10072360
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 5], 0x6c6c64
push eax
xor esi, esi
mov dword [ebp - 0xc], 0x72657355
mov word [ebp - 8], 0x3233
mov byte [ebp - 6], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100723d1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x13], 0x41784577
push eax
push edi
mov dword [ebp - 0x1c], 0x646e6946
mov dword [ebp - 0x18], 0x646e6957
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100723ca
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10072460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ecx
push eax
mov ebx, edx
mov dword [ebp - 9], 0x6c6c64
xor esi, esi
mov dword [ebp - 0x10], 0x72657355
mov word [ebp - 0xc], 0x3233
mov byte [ebp - 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100724d2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x17], 0x6f646e69
push eax
push edi
mov word [ebp - 0x12], 0x41
mov dword [ebp - 0x1c], 0x646e6946
mov byte [ebp - 0x18], 0x57
mov byte [ebp - 0x13], 0x77
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100724cb
push ebx
push dword [ebp - 4]
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret