joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10132950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x10132963
mov edi, dword [edi]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x40
push eax
push 0x40
push ebx
push 0x4b9fcb
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
push 0x4b9fcb
call fcn.1013a3a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x4b9fcb
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 0x4b9fcb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10132a30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0x40
push eax
push 0x40
mov eax, dword [esi + 0xc]
add eax, 5
push eax
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0xc]
xor edi, edi
add eax, 5
test eax, eax
jle 0x10132a95
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
add eax, edi
cmp ecx, dword [esi + 0x1c]
je 0x10132a7a
mov al, byte [eax]
mov byte [ecx], al
inc dword [esi + 0x18]
jmp 0x10132a84
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.1012f0c0
mov eax, dword [esi + 0xc]
inc edi
add eax, 5
cmp edi, eax
jl 0x10132a64
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 4]
mov al, byte [esi]
mov byte [ecx], al
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, 5
mov dword [ecx + 1], eax
mov ecx, 5
mov edx, dword [esi + 0xc]
lea eax, [edx + 5]
cmp eax, ecx
jle 0x10132ad2
nop dword [eax]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0x90
inc ecx
mov edx, dword [esi + 0xc]
lea eax, [edx + 5]
cmp ecx, eax
jl 0x10132ac0
lea eax, [ebp - 4]
mov byte [esi + 0x11], 1
push eax
push dword [ebp - 4]
lea eax, [edx + 5]
push eax
push dword [esi + 4]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10132af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0x40
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, dword [esi + 0xc]
add eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0xc]
xor edx, edx
lea eax, [ecx + 5]
test eax, eax
jle 0x10132b37
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 5]
cmp edx, eax
jl 0x10132b20
lea eax, [ebp - 4]
mov byte [esi + 0x11], 0
push eax
push dword [ebp - 4]
lea eax, [ecx + 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10132c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10132e30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10132d3d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10132caa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1076e004]
ja 0x10132caa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10132c7a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1013a920
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10132ccf
jmp 0x10132d3d
cmp dword [ebp - 0x14], 0x10000
jne 0x10132d23
cmp dword [ebp - 0x18], 0x10000
jb 0x10132d23
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10132d06
mov eax, dword [ebp - 8]
jmp 0x10132d3f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10132d16
xor eax, eax
jmp 0x10132d3f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10132d38
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10132e30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10132c7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10132d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10132e60
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10132e25
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10132d95
mov eax, dword [ebp - 4]
cmp eax, dword [0x1076e004]
ja 0x10132d95
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10132d65
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1013a920
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10132dba
jmp 0x10132e25
cmp dword [ebp - 0x14], 0x10000
jne 0x10132e0e
cmp dword [ebp - 0x18], 0x10000
jb 0x10132e0e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10132df1
mov eax, dword [ebp - 8]
jmp 0x10132e27
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10132e01
xor eax, eax
jmp 0x10132e27
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10132e20
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10132e60
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10132d65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10132e90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10133280
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1078484c], 0
jne 0x10132ecd
cmp dword [0x10784848], 0
je 0x10132ecd
mov eax, dword [0x10784848]
mov dword [0x1078484c], eax
cmp dword [0x1078484c], 0
je 0x10132f4a
mov ecx, dword [0x1078484c]
cmp dword [ecx + 8], 0
je 0x10132f4a
mov edx, dword [0x1078484c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10132f4a
mov ecx, dword [0x1078484c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10132f4a
mov eax, dword [0x1078484c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10132f19
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10132f20
xor eax, eax
jmp 0x10133069
mov ecx, dword [0x1078484c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1013a920
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10133069
mov edx, dword [0x10784848]
mov dword [0x1078484c], edx
jmp 0x10132f66
mov eax, dword [0x1078484c]
mov ecx, dword [eax + 4]
mov dword [0x1078484c], ecx
cmp dword [0x1078484c], 0
je 0x10132fa6
cmp dword [0x1078484c], 0
je 0x10132fa4
mov edx, dword [0x1078484c]
cmp dword [edx + 8], 0
je 0x10132fa4
mov eax, dword [0x1078484c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10132fa4
mov edx, dword [0x1078484c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10132fa4
jmp 0x10132efe
jmp 0x10132f58
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10133070
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10133067
mov eax, dword [ebp - 0x18]
mov dword [0x1078484c], eax
mov ecx, dword [0x1078484c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1078484c]
mov dword [edx + 8], 0
mov eax, dword [0x1078484c]
mov ecx, dword [0x10784848]
mov dword [eax + 4], ecx
mov edx, dword [0x1078484c]
mov dword [0x10784848], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1078484c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10133037
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10133057
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1013302e
mov eax, dword [0x1078484c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10132efe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10133db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10784848]
mov dword [ebp - 4], eax
jmp 0x10133dc9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10133df0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10133dee
call sub.KERNEL32.dll_GetLastError
jmp 0x10133df2
jmp 0x10133dc0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10134290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10784858], eax
je 0x101342b4
mov eax, 0x10dd
jmp 0x1013445c
cmp dword [0x1078485c], 0
je 0x101342c7
mov eax, dword [0x1078485c]
jmp 0x1013445c
cmp dword [ebp + 0xc], 0
jne 0x101342d7
mov eax, 0x57
jmp 0x1013445c
cmp dword [ebp + 8], 0
jne 0x101342e7
mov eax, 6
jmp 0x1013445c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10134310
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1078485c], ecx
mov edx, dword [ebp + 8]
mov dword [0x10784860], edx
mov eax, dword [ebp - 8]
jmp 0x1013445c
push 0x18
call fcn.101387b7
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1013436b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1078485c], ecx
cmp dword [ebp - 4], 0
je 0x1013435a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10138c1b
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10784860], ecx
mov eax, dword [ebp - 8]
jmp 0x1013445c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10134270
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10134270
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x101343ab
cmp dword [ebp - 0xc], 0x1e
jbe 0x101343c7
mov dword [ebp - 8], 9
cmp dword [0x10784850], 0
je 0x101343c2
jmp 0x10134339
jmp 0x10134330
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x101343ee
mov dword [ebp - 8], 9
cmp dword [0x10784850], 0
je 0x101343e9
jmp 0x10134339
jmp 0x10134330
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10134419
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10134330
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10784868]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10784868], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10134470
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10784858], eax
je 0x1013448d
mov eax, 0x10dd
jmp 0x10134570
mov eax, dword [0x10784868]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1013450c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x101344e8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x101344e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10133310
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10138c1b
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10134495
mov dword [0x10784868], 0
call fcn.10133bf0
mov ecx, dword [0x10784864]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1013455a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10138c1b
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10134524
mov dword [0x10784864], 0
mov dword [0x10784858], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10134a50
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1078485c], 0
je 0x10134a69
mov eax, dword [0x1078485c]
jmp 0x10134b08
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10134a7a
xor eax, eax
jmp 0x10134b08
push 8
call fcn.101387b7
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10134ad2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10134abb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10138c1b
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1078485c], eax
mov dword [0x10784860], 0
mov eax, dword [ebp - 8]
jmp 0x10134b08
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10134aea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10134a9a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10784864]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10784864], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1015049e
Capabilities:
Read file on windows

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

Function at 0x101553fc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10155079
Function at 0x3080194f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x308249ec]
jne 0x30801959
repz ret
jmp fcn.3081a014

Function at 0x30807ed2
Capabilities:
Get file attributes

Disassembly:
push 0x58
mov eax, 0x3081ac18
call fcn.3081997e
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.30807c9a
pop ecx
pop ecx
test eax, eax
je 0x30807f69
push str.__
lea ecx, [ebp - 0x64]
call fcn.30813c15
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.30813c15
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.30813c15
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.30813c15
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.30813c15
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807f60
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
and bl, 1
call fcn.30813c15
mov al, bl
call fcn.308199b4
ret
Function at 0x30807f83
Capabilities:
Create directory

Disassembly:
push 0x88
mov eax, 0x3081ac6d
call fcn.3081997e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
push str.__
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], eax
call fcn.30813c15
push esi
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.30813c15
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.30813c15
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807fe2
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push 0x5c
pop esi
cmp word [eax + ecx*2 - 2], si
je 0x30807ffa
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.30813c15
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x94], esi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x90]
push 1
push dword [ebp - 0x88]
lea eax, [ebp - 0x94]
push eax
call fcn.30813c15
mov ecx, dword [ebp - 0x90]
mov esi, eax
cmp esi, edi
je 0x30808078
sub eax, dword [ebp - 0x88]
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.30813c15
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.30813c15
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.30813c15
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.30813c15
inc esi
mov dword [ebp - 0x88], esi
jmp 0x308080ac
push edi
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.30813c15
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.30813c15
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.30813c15
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x308080b8
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x308080f5
push edi
push 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.30813c15
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 5
call fcn.30813c15
lea ecx, [ebp - 0x48]
jmp 0x30808153
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x30808106
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x88], edi
jne 0x30808009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
sete byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x3080816b
push edi
push 4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.30813c15
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 6
call fcn.30813c15
lea ecx, [ebp - 0x64]
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.30813c15
cmp dword [ebp - 0x88], edi
jne 0x30808009
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.30813c15
mov al, byte [ebp - 0x81]
call fcn.308199b4
ret
Function at 0x30808ae4
Capabilities:
Enumerate process modules

Disassembly:
push 0x20
mov eax, 0x3081ae31
call fcn.30801ee1
push dword [ebp + 8]
xor edi, edi
push edi
push 0x410
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x30808b87
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call sub.psapi.dll_EnumProcessModules
test eax, eax
je 0x30808b87
push 0x20
pop esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.30813c15
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push ebx
call sub.psapi.dll_GetModuleBaseNameA
cmp eax, esi
jb 0x30808b62
push edi
add esi, esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.30813c15
cmp esi, 0x208
jbe 0x30808b3d
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
je 0x30808b7b
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.30806a0c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
call fcn.30801fc6
ret

Function at 0x30808c2f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x138
mov eax, 0x3081ae8b
call fcn.3081997e
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x138], edi
cmp ebx, edi
je 0x30808d1c
lea eax, [ebp - 0x134]
push eax
call fcn.30808b97
pop ecx
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov dword [ebp - 4], edi
jae 0x30808c76
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x13c]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x30808d0a
mov esi, 0x105
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [ebp - 0x140], 0x104
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push ebx
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x30808cfe
mov eax, dword [0x30825cd8]
push esi
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x138], eax
cmp eax, edi
je 0x30808cfe
push esi
lea ecx, [ebp - 0x118]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x134]
call fcn.30813c15
mov eax, dword [ebp - 0x138]
call fcn.308199b4
ret