joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30032def
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.300521be
test eax, eax
je 0x30032f8b
mov ecx, esi
mov edx, ecx
push ebx
shr ecx, 2
push edi
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
rep stosb byte es:[edi], al
mov dword [ebp - 0x14], esi
jle 0x30032f81
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x30032f6e
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x30032f6e
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x30032e62
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x30032e7d
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30032e7d
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x30032f5b
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.30032848
test eax, eax
jne 0x30032f43
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor edi, edi
inc edi
mov dword [eax + ecx*4], edi
cmp dword [esi - 8], ebx
jne 0x30032f43
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x30032f43
mov eax, dword [esi + 4]
sub eax, ebx
je 0x30032fa9
dec eax
je 0x30032fa6
dec eax
je 0x30032f90
dec eax
jne 0x30032f43
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
mov dword [ebp + 8], ebx
push ecx
call fcn.30032723
test eax, eax
je 0x30032f43
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
push 0x106
lea edi, [ebx + ebx]
push edi
call fcn.3005343f
test eax, eax
mov dword [esi - 4], eax
je 0x30032f33
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esi], edi
mov dword [esi - 8], 1
cmp dword [ebp + 8], 0
je 0x30032f41
push dword [ebp + 8]
call fcn.30053354
xor ebx, ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
add esi, 0x18
cmp eax, dword [ebp + 0xc]
jl 0x30032e8c
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x30032f6e
cmp eax, ebx
je 0x30032f6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add edi, 0x18
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jl 0x30032e3e
push dword [ebp - 0xc]
call fcn.300522bc
pop edi
pop ebx
pop esi
leave
ret 0xc
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.30032723
test eax, eax
je 0x30032f43
jmp 0x30032fcc
push edi
jmp 0x30032f92
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30032f43
mov dword [esi - 8], edi
jmp 0x30032f43
Function at 0x3003310a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.30032fd4
test eax, eax
je 0x3003317b
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3003317b
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x30005c24
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30033171
cmp dword [ebp - 0x10], 1
je 0x30033171
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x30035c49
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x30035c84
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x30035c61
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x30035ca0
dec esi
je 0x30035c99
dec esi
jne 0x30035ca5
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x30037037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
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]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x3003707f
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.30036ab6
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x300370a3
cmp byte [ebp + 0x24], 0
je 0x300370ca
mov edi, ebx
call fcn.30036918
jmp 0x300370d9
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x300370cc
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.30035d9d
push 0x4b
pop edx
call fcn.30035d9d
call fcn.30036ddb
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x30037113
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
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 0x3003f200
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x3003f21f
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x14], 0
jne 0x3003f236
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x90]
cmp edx, ecx
jbe 0x3003f265
mov eax, 0x80070057
jmp 0x3003f2a9
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3003f2a6
cmp dword [ebp + 0x18], 0
je 0x3003f291
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x94]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x94], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x3003f2af
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x18], 0
jne 0x3003f2ce
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x6c]
cmp ecx, eax
ja 0x3003f313
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
mov ecx, dword [ebp + 0xc]
add edx, dword [ecx + 0x78]
cmp eax, edx
jbe 0x3003f31a
mov eax, 0x80070057
jmp 0x3003f37d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003f151
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3003f355
mov eax, dword [ebp - 4]
jmp 0x3003f37d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x70]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x7c]
add edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x7c], edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x3003f4e4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x3003f503
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3003f51a
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x30]
cmp edx, ecx
jbe 0x3003f540
mov eax, 0x80070057
jmp 0x3003f57e
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3003f57b
cmp dword [ebp + 0x18], 0
je 0x3003f56c
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x3003f5f6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x3003f615
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
je 0x3003f62a
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.30048194
shl eax, 1
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 6
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x80]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x84]
cmp edx, ecx
jbe 0x3003f673
mov eax, 0x80070057
jmp 0x3003f711
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003f151
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3003f694
mov eax, dword [ebp - 8]
jmp 0x3003f711
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3003f6ec
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x3000653c
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 4]
call edx
add esp, 0x14
mov eax, dword [ebp - 8]
jmp 0x3003f711
cmp dword [ebp + 0x14], 0
je 0x3003f6fa
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x88], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3003f717
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x3003f736
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3003f74d
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 4], 0x6c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x4c]
cmp edx, ecx
jbe 0x3003f77a
mov eax, 0x80070057
jmp 0x3003f7b8
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x3003f7b5
cmp dword [ebp + 0x14], 0
je 0x3003f7a6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x3003f7be
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x3003f7dd
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3003f7f4
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 4], 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x58]
cmp edx, ecx
jbe 0x3003f821
mov eax, 0x80070057
jmp 0x3003f85f
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x3003f85c
cmp dword [ebp + 0x14], 0
je 0x3003f84d
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5c]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3003ff5a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x10], 0
jne 0x3003ff79
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3003ff90
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x10]
add eax, 0x5c
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x5c], eax
jne 0x3003ffa5
xor eax, eax
jmp 0x300400b7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
push 0xc
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3003f151
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x3003ffe9
mov eax, dword [ebp - 0x2c]
jmp 0x300400b7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x5c]
add ecx, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x5c
cmp dword [ebp - 0x1c], edx
je 0x300400b5
mov eax, dword [ebp + 8]
push eax
call fcn.30044475
test eax, eax
je 0x30040027
mov eax, 0x800704c7
jmp 0x300400b7
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x2e4
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 0x14
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f5f6
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040061
mov eax, dword [ebp - 0x2c]
jmp 0x300400b7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3003f7be
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040001
mov eax, dword [ebp - 0x2c]
jmp 0x300400b7
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3004066f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x3004068e
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x300406a5
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x54
cmp dword [ebp - 0xc], edx
je 0x30040794
mov eax, dword [ebp - 0xc]
sub eax, 0x340
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x33c]
and ecx, 1
jne 0x300406f5
jmp 0x300406c3
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x338]
push ecx
call fcn.30048194
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x33c]
and eax, 8
je 0x3004073a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x54]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x33c]
and ecx, 4
je 0x30040754
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x5c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x33c]
and edx, 2
jne 0x30040774
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x33c]
and ecx, 0x40
je 0x300406c3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x33c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3004474c
jmp 0x300406c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x4c], 0
je 0x300407b7
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x4c]
add edx, 4
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x4c], edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x6c
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x4c]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x4c], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x84]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x84], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x90]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x90], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x30040856
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x30040875
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3004088c
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 0x5c
cmp dword [ebp - 8], edx
je 0x300408db
mov eax, dword [ebp - 8]
sub eax, 0x2e4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.30048194
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x3004089c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x58], 0
je 0x300408f5
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
add eax, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
imul eax, eax, 0x18
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x58]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x58], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x84]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x84], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x30040936
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x30040955
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3004096c
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x64
cmp dword [ebp - 4], edx
je 0x300409b7
mov eax, dword [ebp - 4]
sub eax, 0x24
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x18]
imul edx, dword [eax + 0x64]
add edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x28]
mov dword [ebp - 8], eax
jmp 0x3004097c
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x64], 0
je 0x300409d1
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x64]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x64], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc