joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d67
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405d9e
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 0x405d78
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d73
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dcf
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 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db1
pop edi
not eax
pop esi
ret 0xc
Function at 0x402ba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x405708]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
push 0x56
push eax
call esi
sub dword [section..data], 0x3b3
call dword [sym.imp.GDI32.dll_GdiFlush]
mov edi, dword [esp + 0x14]
xor ebx, ebx
xor ecx, ecx
mov byte [ecx + edi], cl
mov eax, dword [section..data]
lea edx, [eax + eax*8]
lea edx, [eax + edx*8]
shl edx, 5
sub edx, eax
shl edx, 3
inc ecx
mov dword [section..data], edx
cmp ecx, 0x100
jl 0x402bcc
mov byte [edi + 0x100], bl
mov eax, dword [0x405708]
push 0x22
push eax
call esi
mov byte [edi + 0x101], bl
mov ecx, dword [0x405010]
add ecx, 0xfffff6ab
mov ebp, dword [esp + 0x1c]
mov dword [section..data], ecx
mov ecx, dword [0x405014]
lea eax, [ecx + ecx*2]
shl eax, 6
add eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*8]
shl edx, 1
mov dword [0x405010], edx
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x18]
cdq
idiv ebp
xor eax, eax
mov al, byte [edx + ecx]
xor edx, edx
mov dl, byte [esi + edi]
mov dword [0x40500c], 0x5106
add edx, ebx
lea ebx, [edx + eax]
and ebx, 0xff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov cl, byte [ebx + edi]
xor eax, eax
mov al, byte [esi + edi]
mov byte [esi + edi], cl
mov byte [ebx + edi], al
mov ecx, dword [section..data]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
inc esi
cmp esi, 0x100
mov dword [section..data], edx
jl 0x402c3b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402cb0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x405708]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
push 0x7a
push eax
call edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x405024]
mov edx, dword [0x40570c]
xor eax, eax
mov al, byte [esi + 0x101]
xor ebx, ebx
mov bl, byte [esi + 0x100]
add ecx, 0xffffab21
push 0xff
push edx
mov dword [esp + 0x18], eax
mov dword [0x405008], ecx
call edi
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x402de8
push ebp
mov ecx, dword [0x405034]
mov eax, 0x4713ee0f
imul ecx
mov ecx, dword [0x405028]
mov ebp, dword [esp + 0x14]
sar edx, 0xd
mov eax, edx
push 0x92
shr eax, 0x1f
add edx, eax
mov eax, 0x63e7063f
mov dword [0x40500c], edx
imul ecx
sar edx, 4
mov ecx, edx
inc ebx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [0x405010]
and ebx, 0xff
mov dword [0x405028], edx
xor edx, edx
mov eax, 0xe6c2b449
mov dl, byte [ebx + esi]
mov dword [0x40502c], 0x6cc3
add ebp, edx
imul ecx
add edx, ecx
and ebp, 0xff
sar edx, 6
mov eax, edx
mov dword [esp + 0x18], ebp
shr eax, 0x1f
add edx, eax
xor eax, eax
mov dword [0x405010], edx
mov cl, byte [esi + ebp]
mov al, byte [ebx + esi]
mov byte [ebx + esi], cl
mov byte [esi + ebp], al
mov edx, dword [0x405014]
imul edx, edx, 0x3eae
mov dword [0x405038], edx
mov cl, byte [ebx + esi]
add ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 0xff
mov dl, byte [ecx + esi]
mov cl, byte [edi + eax]
xor cl, dl
mov byte [edi + eax], cl
mov eax, dword [0x405714]
push eax
call dword [sym.imp.USER32.dll_GetClassLongA]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x402d10
pop ebp
mov cl, byte [esp + 0x10]
mov byte [esi + 0x101], cl
mov eax, dword [0x405008]
cdq
mov ecx, 0x3c03
idiv ecx
mov dword [0x405034], edx
mov byte [esi + 0x100], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
pop edi
pop esi
pop ebx
ret
Function at 0x401e40
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov esp, dword [eax - 0x7d]
in al, dx
adc byte [esi + 0x48], dl
jne 0x401e56
push esi
lea eax, [ebp - 0x78]
stosb byte es:[edi], al
js 0x401ea1
push esi
hlt
add byte [ebx + 0x150c084d], cl
push ds
rol byte [eax], 0x50
push ecx
or eax, edx
inc eax
push 0x60d4ac
push edx
call dword [0x40c183]
mov eax, dword [0x3602ac]
add esp, 0xffffffc4
test dword [eax + 0x68500f74], ebp
push esp
mov eax, dword [eax]
call eax
ror dword fs:[ecx], 0
add esp, 8
cmc
call dword [0x40e970]
pop esi
nop
nop
nop
nop
lodsb al, byte [esi]
pop esi
nop
popal
nop
nop
nop
nop
push ebp
mov ecx, eax
xor dword [edx + 0x10566d14], 0x75
or byte [edi - 0x75], dl
inc esi
adc al, 0x89
inc ebp
or al, ch
dec ecx
dec ebx
add byte [eax], al
mov dword [0x410ba0], eax
mov dword [0x410ba4], edx
mov ebx, eax
mov eax, dword [0xd9c08532]
cli
jne 0x401e8d
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
fst qword [esi - 0x766cffcb]
inc eax
dec dword [eax]
add byte [eax], al
mov dword [esi - 0x3ff0f7c4], edi
mov dword [esi + 0x18], 0
mov edx, dword [0x41c4ec]
mov dword [esi - 0xf], edx
pushal
add bl, byte [edx]
enter 0x7470, 0x3b
mov eax, dword [0x410270]
xor ecx, edx
sbb al, cl
mov dword [esi - 3], ecx
jmp 0x401f3a
mov edx, dword [esi + 0x18]
mov ebx, dword [0x40d093]
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x59]
add edx, ebx
push ecx
push edx
push eax
call fcn.00408ac0
test eax, eax
je 0x401f8a
cmp eax, 0xb
je 0x401f8a
cmp eax, 0xa1268
je 0x401f8a
cmp eax, 0xa0bd9
je 0x401f8a
cmp eax, 0xafd57
invalid
mov esi, dword [esi - 0x5fe29af8]
add dl, dl
add byte [edx + 0x3d], bl
movsb byte es:[edi], byte [esi]
add bl, bl
nop
add ebx, eax
adc edi, 0
xor eax, 0x4102a01d
mov word [ecx + 0x1502a43d], cs
add byte [esi + edx*2 + 0x144ebe18], dl
add edx, eax
sub ecx, eax
mov dword [esi + 0x18], edx
cli
dec esi
adc al, 0xf
test esp, ebp
invalid
Function at 0x2e026a41
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
push 2
pop edx
cmp cx, 0x22
jne 0x2e026a65
add eax, edx
movzx ecx, word [eax]
cmp cx, 0x22
je 0x2e026a7b
test cx, cx
jne 0x2e026a53
jmp 0x2e026a85
cmp cx, 0x20
jbe 0x2e026a7d
add eax, edx
cmp word [eax], 0x20
ja 0x2e026a6b
jmp 0x2e026a7d
cmp cx, 0x20
ja 0x2e026a85
add eax, edx
movzx ecx, word [eax]
test cx, cx
jne 0x2e026a75
and dword [0x2e0d16c8], 0
push eax
call fcn.2e036d13
mov ecx, eax
and ecx, 0x60
je 0x2e026a9c
mov eax, ecx
ret
test al, 8
je 0x2e026aa4
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x2e026ab2
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x2e026aca
test eax, edx
je 0x2e026aca
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x2e026adb
inc ecx
cmp ecx, 0x20
jb 0x2e026ab5
test al, 4
je 0x2e026add
test eax, 0x100
jne 0x2e026add
xor eax, eax
pop ebx
pop esi
ret

Function at 0x2e02aa3a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.2e02a658

Function at 0x2e02aa43
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x2e0d16c8]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x2e0c5adc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x2e0c5ad8], eax
cmp eax, esi
jne 0x2e02aa69
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [eax]
mov ecx, 0x9c9c
cmp ebx, ecx
je 0x2e02aa79
xor eax, eax
jmp 0x2e02aaec
mov edx, dword [eax + 4]
push edi
mov edi, 0x20001
lea esi, [edi - 1]
cmp edx, esi
je 0x2e02aa91
cmp edx, edi
jne 0x2e02aae9
cmp edx, esi
jne 0x2e02aa95
cmp ebx, ecx
jne 0x2e02aae9
cmp edx, edi
jne 0x2e02aa9d
cmp ebx, ecx
jne 0x2e02aae9
cmp edx, esi
jne 0x2e02aaa5
cmp ebx, ecx
jne 0x2e02aae9
push ecx
push eax
push 0x2e0c5ae4
call fcn.2e06e2ea
xor eax, eax
add esp, 0xc
mov dword [0x2e0c5ae8], esi
cmp dword [0x2e0c5b08], eax
je 0x2e02aae9
cmp dword [0x2e0c5afc], eax
je 0x2e02aae9
cmp dword [0x2e0c5b04], eax
je 0x2e02aae9
cmp dword [0x2e0d16d8], eax
jne 0x2e02aae4
cmp dword [0x2e0c5b0c], eax
je 0x2e02aae9
xor eax, eax
inc eax
jmp 0x2e02aaeb
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x2e02abeb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov dword [0x2e0c2b50], ebx
mov dword [0x2e0d1390], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x2cd8
push ebx
push 0x2e0c2e00
mov dword [0x2e0d1398], eax
mov dword [0x2e0d16d0], ebx
mov dword [0x2e0c2b64], ebx
call fcn.2e06e640
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x2e0c2e44
call esi
call fcn.2e02ab71
test eax, eax
jne 0x2e02ac5e
push ebx
push 0x30303030
call fcn.2e0448b0
jmp 0x2e02ae1c
push edi
push 0xa5a8
push ebx
push 0x2e0c5ad8
call fcn.2e06e640
push 0x60
push ebx
push 0x2e0d75a8
call fcn.2e06e640
push 0x224
push ebx
push 0x2e0c2bd8
call fcn.2e06e640
add esp, 0x24
push 0x2e0d75b0
call esi
push 0x2e0c2b20
call esi
push 0x2e0c2b08
call esi
push 0x2e0d7a20
call esi
mov esi, 0x800
push esi
push ebx
push 0x2e0d0b68
call fcn.2e06e640
push esi
push ebx
push 0x2e0d0368
call fcn.2e06e640
push 0x70
push ebx
push 0x2e0d02f8
call fcn.2e06e640
push 0x70
push ebx
push 0x2e0d0288
call fcn.2e06e640
add esp, 0x30
push 0x2e0cfc38
call fcn.2e03dba7
push 0x2e0cfc48
call fcn.2e03dba7
push 0x100
push 0x10
push 4
push 0x2e0c2b4c
call fcn.2e05cdcb
push ebx
push 0x2e0d136c
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0x2e002be4
call fcn.2e041201
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2e09048c], eax
cmp eax, ebx
je 0x2e02ad5e
cmp eax, 0xffffffff
je 0x2e02ad5e
push 0x2e002bd4
push eax
call esi
mov dword [0x2e0c2b48], eax
cmp eax, ebx
jne 0x2e02ad5e
push dword [0x2e09048c]
call edi
mov dword [0x2e09048c], ebx
push 0x2e002bc8
call fcn.2e041201
mov dword [0x2e090490], eax
cmp eax, ebx
je 0x2e02ade3
cmp eax, 0xffffffff
je 0x2e02ade3
push 0x2e002bb0
push eax
call esi
push 0x2e002b9c
push dword [0x2e090490]
mov dword [0x2e0c2b44], eax
call esi
push 0x2e002b8c
push dword [0x2e090490]
mov dword [0x2e0c2b40], eax
call esi
push 0x2e002b7c
push dword [0x2e090490]
mov dword [0x2e0c2b3c], eax
call esi
mov dword [0x2e0c2b38], eax
cmp dword [0x2e0c2b44], ebx
je 0x2e02add5
cmp dword [0x2e0c2b40], ebx
je 0x2e02add5
cmp dword [0x2e0c2b3c], ebx
je 0x2e02add5
cmp eax, ebx
jne 0x2e02ade3
push dword [0x2e090490]
call edi
mov dword [0x2e090490], ebx
xor eax, eax
mov esi, 0x2e0c2b58
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
pop edi
test eax, eax
je 0x2e02ae1c
lea eax, [ebp - 0x210]
push eax
push 4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2e03f658
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2e06e7f2
leave
ret
Function at 0x2e02cfc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x2e0031a8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x2e02cfec
xor eax, eax
jmp 0x2e02d020
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push 0x2e0031f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
leave
ret 4

Function at 0x2e02d082
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x2e003264
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x2e02d0b2
xor eax, eax
jmp 0x2e02d0e1
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x2e00322c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x2e02d0ae
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x2e02d783
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.2e07f207
test eax, eax
je 0x2e02d79b
xor eax, eax
inc eax
jmp 0x2e02d821
push esi
push edi
xor esi, esi
push esi
push esi
push 0x80
push 2
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.2e062071
mov edi, eax
cmp edi, 0xffffffff
jne 0x2e02d7da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.2e03e006
test eax, eax
je 0x2e02d818
push dword [ebp - 4]
push 0x2e0036ac
jmp 0x2e02d811
push ebx
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
jne 0x2e02d81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.2e03e006
test eax, eax
je 0x2e02d818
push dword [ebp - 4]
push 0x2e00368c
call fcn.2e03fce6
pop ecx
pop ecx
xor eax, eax
jmp 0x2e02d81f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x2e02d91a
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor esi, esi
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push esi
push eax
mov dword [ebp - 0x620], esi
call fcn.2e06e640
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.2e06e640
mov edi, dword [ebp + 8]
add esp, 0x18
cmp edi, esi
je 0x2e02da8b
call fcn.2e02d082
test eax, eax
je 0x2e02d9a5
cmp dword [ebp + 0xc], esi
je 0x2e02d9a5
call fcn.2e03e006
test eax, eax
je 0x2e02da96
push 0x2e003720
call fcn.2e03fc59
jmp 0x2e02da96
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x620]
push ecx
push esi
push 0x2001f
and eax, 0x10000000
push esi
neg eax
push esi
sbb eax, eax
push esi
neg eax
add eax, 0x80000001
push 0x2e003264
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x2e02d9ec
call fcn.2e03e006
test eax, eax
je 0x2e02da96
push 0x2e003700
jmp 0x2e02d99b
cmp dword [ebp + 0xc], esi
jne 0x2e02da07
push 0x2e003208
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x2e02da96
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x2e02da96
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
jne 0x2e02da1a
push 0x74
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
push 0x2e0036e4
lea eax, [ebp - 0x20c]
push eax
push 0x2e0036cc
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.2e06ea2b
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.2e025e0d
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x2e003208
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x2e02da96
push esi
push 0x30303030
call fcn.2e0448b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.2e06e7f2
leave
ret 8
Function at 0x2e02e700
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb04
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
lea ebx, [edi + 0x21c]
mov dword [ebp - 0xb00], ecx
cmp dword [ebx], ecx
jne 0x2e02e757
push 5
push 5
push 0x44c
push ebx
call fcn.2e05cdcb
test eax, eax
jne 0x2e02e776
call fcn.2e03e006
test eax, eax
je 0x2e02e750
push 0x2e00396c
call fcn.2e03fc59
xor eax, eax
jmp 0x2e02e8fa
mov eax, dword [ebx]
push dword [eax]
push ecx
push eax
call fcn.2e05c9fa
test eax, eax
jne 0x2e02e776
call fcn.2e03e006
test eax, eax
je 0x2e02e750
push 0x2e003944
jmp 0x2e02e74b
push edi
call fcn.2e02ce1d
test eax, eax
je 0x2e02e750
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
lea eax, [edi + 0xc]
push ecx
push eax
call fcn.2e0272a0
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x2e003934
call fcn.2e05e339
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xafc], eax
cmp eax, 0xffffffff
je 0x2e02e8ce
test dword [ebp - 0x8a8], 0xffffffef
je 0x2e02e897
push 0x44c
lea eax, [ebp - 0x658]
push 0
push eax
call fcn.2e06e640
add esp, 0xc
push esi
lea eax, [ebp - 0x658]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.2e0272a0
push esi
lea eax, [ebp - 0x658]
push eax
push 0x2e003740
call fcn.2e05e339
push esi
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.2e05e339
push esi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.2e02e6a7
test eax, eax
jne 0x2e02e84e
push eax
push 0x30303030
call fcn.2e0448b0
jmp 0x2e02e8c1
lea eax, [ebp - 0xaf8]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xb04], eax
cmp eax, 0xffffffff
je 0x2e02e88b
test dword [ebp - 0xaf8], 0xffffffef
je 0x2e02e88b
mov ecx, dword [ebx]
lea eax, [ebp - 0x658]
push eax
call fcn.2e025df3
test eax, eax
je 0x2e02e90a
push dword [ebp - 0xb04]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp - 0xafc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x2e02e8c1
push dword [ebp - 0xafc]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xafc], 0xffffffff
cmp dword [ebp - 0xafc], 0xffffffff
jne 0x2e02e7cc
mov dword [ebp - 0xb00], 1
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0xb00], 0
pop esi
jne 0x2e02e8f4
push edi
call fcn.2e02daa6
mov eax, dword [ebp - 0xb00]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.2e06e7f2
leave
ret 4
call fcn.2e03e006
test eax, eax
je 0x2e02e8d8
push 0x2e00390c
call fcn.2e03fc59
jmp 0x2e02e8d8
Function at 0x2e02e91f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test dword [esi], 0x10000000
push edi
mov edi, 0x104
lea ebx, [esi + 0xc]
je 0x2e02e98e
push edi
push ebx
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [ebp - 8], eax
test eax, eax
je 0x2e02e95f
cmp eax, edi
jbe 0x2e02e9bb
call fcn.2e03e006
test eax, eax
je 0x2e02e97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2e003a04
call fcn.2e03fce6
pop ecx
pop ecx
push 0
push 0x30303030
call fcn.2e0448b0
xor eax, eax
jmp 0x2e02eb0c
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], SysReAllocString
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x2e02e9bb
call fcn.2e03e006
test eax, eax
je 0x2e02e97b
push 0x2e0039dc
call fcn.2e03fc59
jmp 0x2e02e97b
push edi
push ebx
push 0x2e0245a4
call fcn.2e05e339
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x2e0031a8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x2e02ea03
call fcn.2e03e006
test eax, eax
je 0x2e02e9ff
push 0x2e0039b8
call fcn.2e03fc59
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x2e02eac5
dec eax
je 0x2e02ea81
dec eax
dec eax
je 0x2e02ea3a
call fcn.2e03e006
test eax, eax
je 0x2e02e987
mov eax, dword [esi]
and eax, 7
push eax
push 0x2e003990
call fcn.2e03fce6
pop ecx
pop ecx
jmp 0x2e02e987
push edi
push ebx
push 0x2e0245f4
call fcn.2e05e339
cmp dword [0x2e090618], 0
je 0x2e02ea59
mov eax, dword [0x2e09061c]
mov dword [esi + 4], eax
jmp 0x2e02ea60
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x2e02ea75
mov dword [esi + 0x218], 0x2e0032b4
jmp 0x2e02eaf5
mov dword [esi + 0x218], 0x2e0032d8
jmp 0x2e02eaf5
push edi
push ebx
push 0x2e0245e0
call fcn.2e05e339
cmp dword [0x2e090618], 0
je 0x2e02eaa0
mov eax, dword [0x2e09061c]
mov dword [esi + 4], eax
jmp 0x2e02eaa7
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x2e02eab9
mov dword [esi + 0x218], 0x2e0032a4
jmp 0x2e02eaf5
mov dword [esi + 0x218], 0x2e0032c4
jmp 0x2e02eaf5
push edi
push ebx
push 0x2e0245cc
call fcn.2e05e339
cmp dword [0x2e090618], 0
je 0x2e02eae4
mov eax, dword [0x2e09061c]
mov dword [esi + 4], eax
jmp 0x2e02eaeb
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x2e003294
cmp dword [ebp + 0xc], 0
je 0x2e02eb09
push esi
call fcn.2e02e700
test eax, eax
je 0x2e02e987
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x2e02f9c9
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
xor eax, eax
and edi, 7
mov dword [ebp - 4], 4
cmp dword [ebp + 0xc], eax
jne 0x2e02f9f5
push 0x2e0031d8
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x2e02fa51
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push eax
mov ebx, 0x2e0031d8
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x2e02fa29
cmp eax, 2
jne 0x2e02fa44
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.2e02f905
mov dword [ebp + 8], eax
or dword [ebp + 8], edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x2e02fa50
push 0
push 0x30303030
call fcn.2e0448b0
pop ebx
pop edi
pop esi
leave
ret 8