joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300fc5bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300fc5ed
cmp dword [ebp - 8], 2
je 0x300fc5f9
push 0
push 0x326b656e
call fcn.3010aa60
leave
ret 4

Function at 0x300fc696
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x66c], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x20a]
push edi
push eax
xor ebx, ebx
mov word [ebp - 0x20c], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call sub.MSVCR80.dll_memset
push 0x24c
lea eax, [ebp - 0x660]
push edi
push eax
mov dword [ebp - 0x664], edi
call sub.MSVCR80.dll_memset
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.300fa721
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30002304
call fcn.30125676
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.301255f4
push esi
lea eax, [ebp - 0x414]
push eax
push 0x300027d0
call fcn.30125676
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.30123986
cmp dword [ebp - 0x668], 0xffffffff
mov dword [ebp - 0x670], eax
je 0x300fc82f
cmp word [ebp - 0x638], 0x2e
je 0x300fc812
push edi
push 0x30003eb4
lea eax, [ebp - 0x638]
push eax
call fcn.30129eb3
test eax, eax
je 0x300fc812
mov ecx, dword [ebp - 0x670]
mov edx, esi
sub edx, ecx
lea eax, [ebp + ecx*2 - 0x20c]
push edx
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.301255f4
mov eax, dword [ebp - 0x670]
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.30123986
add eax, dword [ebp - 0x670]
cmp dword [ebp - 0x66c], edi
lea ebx, [ebx + eax + 1]
je 0x300fc812
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x66c]
call fcn.30110369
test eax, eax
jne 0x300fc812
mov dword [ebp - 0x66c], edi
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300fc78f
jmp 0x300fc835
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x674]
cmp eax, edi
je 0x300fc84e
inc ebx
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0xc
Function at 0x300fc8ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
setne al
test ecx, ecx
je 0x300fc8f0
mov edx, dword [esi + 8]
test edx, edx
jbe 0x300fc8f0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push edx
push dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300fc8ea
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 8]
jne 0x300fc8ea
mov al, 1
jmp 0x300fc8ec
xor al, al
and dword [esi + 8], 0
pop esi
leave
ret

Function at 0x300fca2a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
je 0x300fcb16
cmp edi, ebx
je 0x300fcb16
cmp ecx, ebx
je 0x300fcb16
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.300fa721
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30002304
call fcn.30125676
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.30125676
mov esi, 0x80
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call fcn.3012b1b5
cmp eax, 0xffffffff
mov dword [edi], eax
pop esi
jne 0x300fcae1
push ebx
push 0x326b6572
jmp 0x300fcb1c
push eax
call fcn.300fc5bd
push 0x10
call fcn.301089da
cmp eax, ebx
je 0x300fcb05
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [eax + 4], 0x7d000
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x300fcb07
xor eax, eax
mov ecx, dword [ebp - 0x210]
cmp eax, ebx
mov dword [ecx], eax
setne al
jmp 0x300fcb23
push ebx
push 0x3634736c
call fcn.3010aa60
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0xc

Function at 0x300fd0f7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x300fd10c
call fcn.300fd0d3
test al, al
je 0x300fd16b
mov eax, dword [esi + 4]
sub eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x300fd125
mov ecx, esi
call fcn.300fc8ac
test al, al
je 0x300fd16a
cmp edi, dword [esi + 4]
jbe 0x300fd152
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300fd14e
cmp dword [ebp + 0xc], edi
jne 0x300fd14e
xor eax, eax
inc eax
jmp 0x300fd16a
xor eax, eax
jmp 0x300fd16a
mov eax, dword [esi + 8]
add eax, dword [esi + 0xc]
push edi
push dword [ebp + 8]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
pop ebp
ret 8
Function at 0x300fe0e7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push 0x300041f4
push eax
mov dword [ebp - 0x208], 0x100
call sub.msi.dll_MsiGetPropertyW
push 1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x204]
push eax
call fcn.3012b1b5
mov esi, eax
cmp esi, 0xffffffff
jne 0x300fe14c
xor eax, eax
jmp 0x300fe16c
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x300fe15f
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
shr eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 4

Function at 0x300fe1c1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x30004240
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x30004228
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push 0xc6
lea eax, [ebp - 0xfe]
push esi
push eax
mov word [ebp - 0x100], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x64
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.301255f4
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x154]
push eax
push esi
push esi
push 0x4000020
push 1
push esi
push esi
lea eax, [ebp - 0x100]
push eax
mov ebx, 0x30004210
push ebx
call edi
test eax, eax
jne 0x300fe289
push 0x3a98
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x300fe294
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x300fe294
push esi
push 0x326b667a
call fcn.3010aa60
push 0x64
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.301255f4
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x154]
push eax
push esi
push esi
push 0x4000020
push 1
push esi
push esi
lea eax, [ebp - 0x100]
push eax
push ebx
call edi
test eax, eax
jne 0x300fe2fd
push 0x3a98
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x300fe308
push dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10c]
call esi
jmp 0x300fe308
push esi
push 0x326b6730
call fcn.3010aa60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x301004e8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], esi
push esi
jne 0x30100525
push 0x3735306f
call fcn.3010aa60
jmp 0x30100653
cmp eax, esi
jne 0x30100530
push 0x37353070
jmp 0x3010051b
push esi
push esi
push esi
call fcn.301101f1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov dword [ebp - 0xd4], eax
jne 0x30100559
push esi
push 0x37353071
call fcn.3010aa60
jmp 0x3010063f
push ebx
push esi
push SysReAllocString
push esi
push esi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
cmp ebx, esi
jne 0x30100594
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee7
je 0x30100633
cmp eax, 0x8ca
je 0x30100633
push esi
push 0x37353072
jmp 0x301005fd
push 0xc6
lea eax, [ebp - 0xca]
push esi
push eax
mov word [ebp - 0xcc], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x13
mov edi, 0xc8
push ebx
mov dword [ebp - 0xd8], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x301005df
push esi
push 0x37353073
jmp 0x301005fd
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.30126c04
cmp eax, 3
je 0x30100604
push esi
push 0x37353074
call fcn.3010aa60
jmp 0x30100633
cmp dword [ebp - 0xd0], edi
jne 0x30100633
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xe0], esi
push dword [ebp - 0xdc]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x30100633
mov dword [ebp - 0xd0], esi
cmp ebx, esi
je 0x3010063e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
cmp dword [ebp - 0xd4], esi
je 0x30100653
push dword [ebp - 0xd4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xd0]
pop edi
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 0xc

Function at 0x30103fae
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x30103fed
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x30103fc8
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x30104009
dec edi
je 0x30104002
dec edi
jne 0x3010400e
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc
Function at 0x30105425
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], di
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edi
mov esi, 0x8000
jne 0x30105475
push esi
push eax
add eax, esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov word [ebx + 0x2c], di
mov dword [ebx + 0x30], edi
call fcn.30104e7f
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], edi
push 2
mov word [ebx + 0x3c], si
mov dword [ebx + 0x34], esi
add eax, esi
pop ecx
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x30105493
cmp byte [ebp + 0x24], cl
je 0x301054b9
mov edi, ebx
call fcn.30104cdc
jmp 0x301054ca
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x301054bd
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.30104122
push 0x4b
pop edx
call fcn.30104122
call fcn.301051ab
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x30105508
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x301078cb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
cmp ecx, 0x320
mov dword [ebp - 0xc9c], ecx
jb 0x30107918
xor eax, eax
jmp 0x30107af4
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.MSVCR80.dll_memset
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x30107a78
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
push ebx
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x30107977
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x301079a1
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x301079e5
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x301079cf
call fcn.30105c28
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x301079de
call fcn.30105c28
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x30107a17
movzx eax, byte [edi + eax]
jmp 0x30107a5b
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x30107a45
call fcn.30105c28
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x30107a54
call fcn.30105c28
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x30107971
pop ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0xc9c], esi
jbe 0x30107af1
movzx eax, word [ebp + esi*2 - 0xc84]
cmp ax, 0x100
movzx eax, ax
jae 0x30107a9e
movzx eax, byte [eax + 0x30005980]
jmp 0x30107aab
shr eax, 8
movzx eax, byte [eax + 0x30005980]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
cmp cx, 0x100
movzx ecx, cx
jae 0x30107ac6
movzx ecx, byte [ecx + 0x30005980]
jmp 0x30107ad3
shr ecx, 8
movzx ecx, byte [ecx + 0x30005980]
add ecx, 8
mov eax, dword [eax*4 + 0x30005938]
sub eax, dword [ecx*4 + 0x30005938]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x30107a84
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 0x14
Function at 0x30108b77
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x30108b98
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x30108b98
cmp edx, eax
jb 0x30108b98
add eax, 0x10000
cmp eax, ecx
jae 0x30108bc3
mov eax, dword [0x3022f8cc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.3010aa60
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x30109a81
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x30109a9b
mov eax, 0xa0
jmp 0x30109b8d
push ebx
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
jmp 0x30109b2b
mov eax, dword [edi]
xor ebx, ebx
cmp eax, esi
je 0x30109acf
push eax
call fcn.301269f0
mov ebx, eax
cmp ebx, esi
jne 0x30109acf
push esi
push 0x77626966
call fcn.3010aa60
mov dword [ebp - 8], 8
jmp 0x30109ae6
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x30109adb
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 8], eax
cmp ebx, esi
je 0x30109af0
push ebx
call fcn.30108bc4
push dword [ebp - 8]
call fcn.30108e03
test eax, eax
pop ecx
je 0x30109b69
push 0x796d7466
push esi
call fcn.3010aab4
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109383
cmp dword [0x302781f8], esi
mov dword [ebp + 8], esi
je 0x30109b2b
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0xb]
call fcn.301091e5
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push dword [edi + 8]
call fcn.30109475
mov ebx, eax
add esp, 0x14
cmp ebx, esi
je 0x30109aa7
cmp dword [0x302781f8], esi
je 0x30109b65
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x30109b8c
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109301
cmp dword [0x302781f8], esi
je 0x30109b89
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x30109b93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x30109bab
xor eax, eax
jmp 0x30109c98
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30109bbb
cmp dword [0x302781ec], edi
je 0x30109bcc
cmp dword [0x3027e604], edi
mov dword [ebp - 4], edi
je 0x30109bd3
test byte [ebx + 0xc], 0x10
jne 0x30109bd3
xor eax, eax
jmp 0x30109c97
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.301091e5
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x30109c51
mov eax, dword [ebx]
cmp eax, edi
je 0x30109bfe
push eax
call fcn.301269f0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x30109c0a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x30109c27
push dword [ebp - 4]
call fcn.30108bc4
push esi
call fcn.30108e03
test eax, eax
pop ecx
je 0x30109c6c
push 0x796d7468
push edi
call fcn.3010aab4
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109383
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 8]
call fcn.30109475
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x30109bef
jmp 0x30109c79
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109301
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x302781f8], edi
mov esi, eax
je 0x30109c95
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3010a03a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x3010a050
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
cmp dword [ebp - 4], ebx
mov edi, eax
jae 0x3010a082
cmp dword [ebp + 0xc], 1
je 0x3010a080
cmp dword [ebp + 0xc], ebx
jne 0x3010a082
mov edi, ebx
push edi
call fcn.30108e03
test eax, eax
pop ecx
je 0x3010a0a8
push 0x796d746b
push 0
call fcn.3010aab4
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109383
jmp 0x3010a107
test edi, edi
jne 0x3010a0fa
cmp dword [ebp + 0xc], ebx
je 0x3010a0b7
cmp dword [ebp + 0xc], 1
jne 0x3010a0c2
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3010a0cc
cmp byte [ebp + 0x1c], bl
jne 0x3010a0e5
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.30108e5a
test eax, eax
pop ecx
pop ecx
jne 0x3010a0e5
mov edi, 0xea
jmp 0x3010a0fa
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.30108e30
test eax, eax
pop ecx
pop ecx
jne 0x3010a0fa
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x30278200
call fcn.30109301
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3010a10e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
jne 0x3010a129
mov eax, 0xa0
jmp 0x3010a276
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3010a13b
push eax
call fcn.301269f0
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3010a155
cmp dword [0x302781ec], esi
je 0x3010a163
mov dword [ebp - 0x10], 2
jmp 0x3010a170
cmp dword [ebp + 8], 1
jne 0x3010a163
cmp dword [0x3027e604], esi
je 0x3010a16d
test byte [ebx + 0xc], 0x10
je 0x3010a235
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.301091e5
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3010a1d5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x3010a195
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.30108e03
test eax, eax
pop ecx
je 0x3010a1f1
push 0x796d746c
xor edi, edi
push edi
call fcn.3010aab4
push esi
mov ecx, 0x30278200
call fcn.30109383
mov dword [ebp - 8], edi
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call fcn.30109475
add esp, 0x14
test eax, eax
je 0x3010a181
jmp 0x3010a220
push esi
mov ecx, 0x30278200
call fcn.30109301
test edi, edi
jne 0x3010a220
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3010a27c
cmp dword [ebp - 0x18], 3
jne 0x3010a220
cmp dword [ebp - 4], 4
jne 0x3010a220
and al, 0xf
cmp al, 4
je 0x3010a27c
xor esi, esi
cmp dword [0x302781f8], esi
je 0x3010a235
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3010a13f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.30108ef6
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3010a26b
push dword [ebp - 0xc]
call fcn.30108bc4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x302781f8], 0
je 0x3010a25d
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3010a25d