joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466566
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x493008]
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 0x4665b1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046697c
test al, al
jne 0x4665ab
sub edx, 2
cmp edx, edi
jne 0x466591
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4665d3
lea eax, [edi + 2]
cmp edx, eax
je 0x4665d3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046622d
add esp, 0x10
jmp 0x4666cd
push esi
lea ecx, [ebp - 0x255]
call fcn.0046697c
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 0x466616
push dword [ebp - 0x25c]
jmp 0x4665c3
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 0x466653
cmp word [ebp - 0x226], 0
je 0x466674
cmp word [ebp - 0x226], ax
jne 0x466653
cmp word [ebp - 0x224], 0
je 0x466674
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046622d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4666c0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46662d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4666a8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4666cd
push 0x465c7d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00472920
add esp, 0x10
jmp 0x46669d
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.00422d0c
leave
ret
Function at 0x46805f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4680fc
push ebx
push esi
call fcn.0046801b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00467f0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4680a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4680fb
push edi
push eax
call fcn.00460253
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4680c9
call fcn.00460219
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4680fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00467f0a
add esp, 0x20
test eax, eax
jne 0x4680e8
push edi
call fcn.00460219
jmp 0x4680f0
push ebx
call fcn.00460219
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4680ff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x468110
pop esi
ret
push ebx
push edi
push esi
call fcn.0046801b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00460253
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x468138
push ebx
push esi
push edi
call fcn.004253d0
add esp, 0xc
push 0
call fcn.00460219
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x468a19
Capabilities:
Set environment variable

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

Function at 0x469b7d
Capabilities:
Print debug messages

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

Function at 0x4727e5
Capabilities:
Read file on windows

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

Function at 0x4727f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047255b
Function at 0x475958
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 + 0x55fa80]
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 0x475998
cmp byte [ebx], 0xa
jne 0x475998
or byte [eax + edi + 0x28], 4
jmp 0x47599d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x475a9b
mov al, byte [edx]
cmp al, 0x1a
je 0x475a7d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4759cc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4759f1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4759fb
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 0x4759ae
jmp 0x475a9b
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 0x475a78
cmp dword [ebp - 0xc], 0
je 0x475a78
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x55fa80]
test byte [eax + edi + 0x28], 0x48
je 0x475a52
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x475a3d
mov byte [esi], dl
jmp 0x475a4e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x55fa80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x475a9b
cmp byte [ebp - 1], 0xa
jne 0x475a61
cmp esi, ebx
jne 0x475a61
mov byte [esi], 0xa
jmp 0x475a9a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004758fa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x475a9b
mov byte [esi], 0xd
jmp 0x475a9a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x55fa80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x475a97
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x475a9b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x475aa4
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 + 0x55fa80]
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 0x475ae7
cmp word [esi], dx
jne 0x475ae7
or byte [edi + eax + 0x28], 4
jmp 0x475aec
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 0x475c3f
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 0x475c1f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x475b2e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x475b64
cmp eax, edx
jae 0x475b70
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 0x475b06
jmp 0x475c3f
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 0x475c1b
cmp dword [ebp - 0x14], 0
je 0x475c1b
mov eax, dword [ebx*4 + 0x55fa80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x475bf3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x475bbc
mov word [esi], cx
jmp 0x475bef
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x55fa80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x55fa80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x55fa80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x475c3f
pop ebx
cmp word [ebp - 4], bx
jne 0x475c04
cmp esi, dword [ebp + 0xc]
jne 0x475c04
mov word [esi], bx
jmp 0x475c3c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004758fa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x475c3f
push 0xd
jmp 0x475c38
mov ecx, dword [ebx*4 + 0x55fa80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x475c36
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x475c3f
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 0x479a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x479a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x479a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c8b3c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [edx]
or edx, edx
jmp 0x4ead6f
add esi, 4
inc ecx
jmp 0x499dd0
jg 0x4a92de
add al, 0x20
jmp 0x4a92de
call fcn.004df07a
xor eax, dword [ebp + 0x10]
jmp 0x50907c
push edx
push edi
jmp 0x529117
xor eax, dword [ebp + 0xc]
cld
jne 0x4c0ee1
jmp 0x4d3b3f
stosb byte es:[edi], al
inc ebx
jmp 0x552f49
jmp 0x4d3b42
mov ecx, dword fs:[0x30]
jmp 0x55bcef
je 0x4a95c3
cld
mov edi, dword [ebp + 8]
jmp 0x4a95be
ret 0xc
xor eax, eax
jmp 0x4dbad6
jmp 0x4b6d2b
sub ecx, 1
nop
jmp 0x50ef6d
mov ecx, dword [ecx]
lea edi, [ebp - 0x104]
jmp 0x50dc73
add esi, edi
xor ecx, ecx
jmp 0x52c3cf
push ebp
jmp 0x551cc5
mov edi, dword [ecx + 0x18]
mov ebx, edi
jmp 0x538624
push ebx
push ecx
jmp 0x49fbc9
jmp 0x51044c
mov eax, dword [eax]
nop
add eax, edi
jmp 0x51044c
add eax, dword [ebx + 0x24]
add eax, edi
jmp 0x4fe10b
jmp 0x4d3b42
xor ebx, ebx
jmp 0x55a5a7
jne 0x4e84a6
mov edi, dword [ebp + 0xc]
jmp 0x4e84a1
pop eax
call fcn.004df07a
jmp 0x4a4e4c
jl 0x4a92de
cmp al, 0x5b
jmp 0x498329
movzx eax, word [eax]
shl eax, 2
jmp 0x51f931
test eax, eax
je 0x4bff26
jmp 0x552df3
add ebx, edi
push dword [ebx + 0x18]
jmp 0x51a877
push edi
lea edx, [ecx + 0x30]
jmp 0x496126
mov eax, ecx
cld
shl eax, 1
jmp 0x4ded67
pop esi
pop edi
jmp 0x5217d3
pop dword [ebp - 0x108]
mov esi, dword [ebx + 0x20]
jmp 0x4c42cc
add eax, dword [ebx + 0x1c]
add eax, edi
jmp 0x4dbec6
pop edx
pop ecx
jmp 0x55646c
push esi
cld
cmp dword [ebp + 8], 0
jmp 0x4b6ce8
jmp 0x552df3
mov eax, dword [esi]
jmp 0x53bd31
add ebx, dword [ebx + 0x3c]
lea ebx, [ebx + 0x78]
jmp 0x559a10
or eax, eax
jne 0x559e2f
jmp 0x559e2a
mov ebp, esp
add esp, 0xfffffef8
jmp 0x4d6bd7
cmp dword [ebp - 0x108], ecx
jne 0x52c3d4
jmp 0x4bff21
test ax, ax
nop
jne 0x55a5a7
jmp 0x4fd5c4
pop ebx
nop
leave
jmp 0x4b6d28
mov eax, dword [ebx + 8]
mov ebx, dword [ebx]
nop
jmp 0x50a5e3
jmp 0x4b6d2b
add eax, edi
jmp 0x497e7e
mov ax, word [edx + ebx*2]
cmp al, 0x40
jmp 0x4fe0e8
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
jmp 0x4c0ee1
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x50dc2cab
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x144065e0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x30116f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
push 4
push dword [ebp + 0x10]
add eax, edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, edi
mov dword [ebp + 0xc], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x30121c
push ebx
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [esi + 0x10]
mov edx, eax
mov eax, dword [esi]
add ebx, edi
mov dword [ebp - 0xc], edx
mov edi, ebx
test eax, eax
je 0x3011c3
mov edi, dword [ebp - 4]
add edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x30120b
mov esi, dword [ebp - 4]
jns 0x3011ea
mov eax, dword [edx + 0x3c]
movzx ecx, cx
mov eax, dword [eax + edx + 0x78]
sub ecx, dword [eax + edx + 0x10]
mov eax, dword [eax + edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x3011fa
lea eax, [esi + 2]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0xc]
add edi, 4
mov dword [ebx], eax
add ebx, 4
mov ecx, dword [edi]
test ecx, ecx
jne 0x3011cc
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
add esi, 0x14
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], esi
test eax, eax
jne 0x3011a3
pop ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x301235
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 8]
add ebx, ecx
add ebx, dword [ebp + 8]
cmp dword [eax + 0x10], edi
cmovb edi, dword [eax + 0x10]
sub edi, dword [ebp + 8]
cmp edi, 1
jbe 0x301284
lea eax, [ebp + 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [0x301024]
mov edx, edi
mov ecx, ebx
call fcn.00301048
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret
Function at 0x301288
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor edx, edx
mov ecx, edi
mov ebx, dword [edi + 0x3c]
add ebx, edi
mov dword [ebp - 4], ebx
movzx esi, word [ebx + 0x14]
add esi, 0x18
add esi, ebx
sub eax, dword [0x30101c]
mov dword [ebp - 0x10], eax
sbb edx, edx
mov dword [ebp - 0x14], esi
neg eax
mov dword [ebp - 0xc], edx
adc edx, 0
neg edx
push edx
mov edx, dword [ebx + 0xa0]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [0x301028]
push eax
push dword [ebx + 0xa4]
call fcn.003010ab
push esi
push dword [0x301028]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esp, 0x18
add esi, 0x28
cmp eax, 1
jbe 0x30131b
push esi
push dword [0x30102c]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 2
jbe 0x301338
push esi
push dword [0x301030]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 3
jbe 0x301355
push esi
push dword [0x301034]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 4
jbe 0x301372
push esi
push dword [0x301038]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 5
jbe 0x30138f
push esi
push dword [0x30103c]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 6
jbe 0x3013ac
push esi
push dword [0x301040]
mov ecx, edi
call fcn.00301235
mov eax, dword [0x301020]
add esi, 0x28
pop ecx
pop ecx
cmp eax, 7
jbe 0x3013c1
push esi
push dword [0x301044]
mov ecx, edi
call fcn.00301235
pop ecx
pop ecx
cmp dword [0x301014], 0
je 0x30140a
add ebx, 0x88
cmp dword [ebx], 0
je 0x301407
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 4
push 8
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x301014]
mov dword [ebx], eax
mov eax, dword [0x301018]
mov dword [ecx + 0x8c], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 8
push ebx
call esi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0xc]
mov edx, dword [ebx + 0xa0]
push dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [0x301028]
push eax
push dword [ebx + 0xa4]
call fcn.003010ab
mov edx, dword [0x301004]
add esp, 0x10
push dword [0x301010]
push dword [0x30100c]
push ecx
mov ecx, edi
call fcn.0030116f
mov eax, dword [section..text]
add esp, 0xc
add eax, edi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x302577
Capabilities:
Encode data using xor

Disassembly:
test byte [0x3c2e20], 1
mov ecx, 0x8315
jne 0x3025fe
or dword [0x3c2e20], 1
lea eax, [ecx + 0x1b]
mov edx, eax
add eax, 0x19
mov word [0x3bc9d4], ax
mov word [0x3bc9c8], dx
add edx, 0x11
lea eax, [ecx + 0x5c]
mov word [0x3bc9d6], ax
add eax, 0xffffffef
mov word [0x3bc9d8], ax
mov word [0x3bc9ca], dx
lea edx, [ecx + 0x3b]
lea eax, [ecx + 0x63]
mov word [0x3bc9da], ax
mov word [0x3bc9cc], dx
add edx, 8
add eax, 0xffffffed
mov word [0x3bc9dc], ax
lea eax, [ecx + 0x35]
mov word [0x3bc9de], ax
mov eax, ecx
mov word [0x3bc9ce], dx
mov dword [0x3bc9d0], 0x83308345
mov word [0x3bc9e0], ax
xor eax, eax
mov edx, ecx
xor dx, word [eax + 0x3bc9c8]
add eax, 2
mov word [eax + 0x3bd072], dx
cmp eax, 0x1a
jb 0x302600
mov eax, 0x3bd074
ret

Function at 0x30261e
Capabilities:
Encode data using xor

Disassembly:
test byte [0x3c2e18], 1
jne 0x30264c
or dword [0x3c2e18], 1
mov dword [0x3bc9f0], 0x717a7829
mov dword [0x3bc9f4], 0x2a707960
mov dword [0x3bc9f8], 0x152b2a2a
xor eax, eax
mov cl, byte [eax + 0x3bc9f0]
xor cl, 0x15
mov byte [eax + 0x3bd09c], cl
inc eax
cmp eax, 0xc
jb 0x30264e
mov eax, 0x3bd09c
ret

Function at 0x302669
Capabilities:
Encode data using xor

Disassembly:
test byte [0x3c2e14], 1
mov edx, 0x8315
jne 0x302729
push esi
lea ecx, [edx + 0x22]
mov eax, ecx
mov word [0x3bc9fc], ax
add eax, 0xfffffffe
or dword [0x3c2e14], 1
mov word [0x3bc9fe], ax
lea eax, [edx + 0x23]
mov esi, eax
mov word [0x3bca00], si
mov word [0x3bca02], ax
add eax, 0x3e
mov word [0x3bca04], ax
lea eax, [edx + 0x52]
mov esi, eax
mov word [0x3bca06], si
add esi, 0xd
mov word [0x3bca08], si
lea esi, [edx + 0x51]
mov word [0x3bca0a], si
add esi, 0x17
mov word [0x3bca0c], si
lea esi, [edx + 0x35]
mov word [0x3bca0e], si
mov esi, eax
mov word [0x3bca10], si
add esi, 9
add eax, 0xfffffffa
mov word [0x3bca12], si
lea esi, [edx + 0x50]
mov word [0x3bca1a], ax
mov eax, edx
mov word [0x3bca14], si
mov dword [0x3bca16], 0x8367837a
mov dword [0x3bca1c], 0x83378328
mov word [0x3bca20], ax
pop esi
xor eax, eax
mov ecx, edx
xor cx, word [eax + 0x3bc9fc]
add eax, 2
mov word [eax + 0x3bd0a6], cx
cmp eax, 0x26
jb 0x30272b
mov eax, 0x3bd0a8
ret
Function at 0x30280c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
test byte [0x3c2e10], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 0x8315
jne 0x30284a
or dword [0x3c2e10], 1
lea eax, [ecx + 0x4d]
mov word [0x3bca24], ax
add eax, 0x15
mov word [0x3bca26], ax
mov eax, ecx
mov word [0x3bca28], ax
xor esi, esi
xor eax, eax
mov edx, ecx
xor dx, word [eax + 0x3bca24]
add eax, 2
mov word [eax + 0x3bd0ce], dx
cmp eax, 6
jb 0x30284e
lea eax, [ebx + 0xc]
cmp dword [eax + 0x14], 8
jb 0x302871
mov eax, dword [eax]
push 0x3bd0d0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00363867
add esp, 0xc
test eax, eax
jne 0x30293c
push dword [esp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.003035a1
push dword [esp + 0x10]
call fcn.00302945
push eax
call fcn.00363dc1
push dword [esp + 0x18]
call fcn.0036434c
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00366f20
add esp, 0xc
mov dword [esp + 0x40], edi
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x28]
push esi
push eax
push esi
call dword [0x39208c]
test eax, eax
jne 0x30292a
call dword [0x3920a8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0032a8dc
cmp dword [eax + 0x14], 0x10
pop ecx
pop ecx
jb 0x30290e
mov eax, dword [eax]
push eax
call fcn.00302985
push eax
call fcn.00364090
pop ecx
pop ecx
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.00304cea
jmp 0x30293c
push dword [esp + 0x18]
mov esi, dword [0x3920bc]
call esi
push dword [esp + 0x14]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x302945
Capabilities:
Encode data using xor

Disassembly:
test byte [0x3c2e0c], 1
jne 0x302968
or dword [0x3c2e0c], 1
mov dword [0x3bca2c], 0x5b501f18
mov word [0x3bca30], 0x1551
xor eax, eax
mov cl, byte [eax + 0x3bca2c]
xor cl, 0x15
mov byte [eax + 0x3bd0d8], cl
inc eax
cmp eax, 6
jb 0x30296a
mov eax, 0x3bd0d8
ret

Function at 0x302985
Capabilities:
Encode data using xor

Disassembly:
test byte [0x3c2e08], 1
jne 0x302a0a
or dword [0x3c2e08], 1
mov dword [0x3bca34], 0x797c7453
mov dword [0x3bca38], 0x61357170
mov dword [0x3bca3c], 0x6776357a
mov dword [0x3bca40], 0x70617470
mov dword [0x3bca44], 0x74677635
mov dword [0x3bca48], 0x67357d66
mov dword [0x3bca4c], 0x677a6570
mov dword [0x3bca50], 0x35677061
mov dword [0x3bca54], 0x767a6765
mov dword [0x3bca58], 0x2f666670
mov dword [0x3bca5c], 0x1f663035
mov byte [0x3bca60], 0x15
xor eax, eax
mov cl, byte [eax + 0x3bca34]
xor cl, 0x15
mov byte [eax + 0x3bd0e0], cl
inc eax
cmp eax, 0x2d
jb 0x302a0c
mov eax, 0x3bd0e0
ret