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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30032155
xor eax, eax
jmp 0x3003217d
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x30032172
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x30032182
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x30032199
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x300321fe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x300321f5
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.30063125
leave
ret

Function at 0x3003233a
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [section..cdata]
push esi
push edi
mov dword [ebp + 0x3e4], eax
push 0x10
xor eax, eax
pop ecx
push dword [ebp + 0x3f0]
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.3004eb5c
cmp eax, 0x104
jle 0x3003238a
push 0x300056b8
jmp 0x300323f7
push dword [ebp + 0x3f4]
lea eax, [ebp - 0x2c]
push 0x6b
push dword [ebp + 0x3f0]
push 0x300056a0
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x300323f2
lea eax, [ebp - 0x2c]
push eax
push 0x30005690
call fcn.30022d92
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
jmp 0x300323fd
push 0x3000565c
call fcn.30022d92
pop ecx
mov ecx, dword [ebp + 0x3e4]
pop edi
pop esi
call fcn.30063125
add ebp, 0x3e8
leave
ret 8
Function at 0x30033107
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.30052fce
test eax, eax
je 0x300332a3
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 0x30033299
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x30033286
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x30033286
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x3003317a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x30033195
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 0x30033195
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x30033273
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.30032b60
test eax, eax
jne 0x3003325b
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 0x3003325b
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x3003325b
mov eax, dword [esi + 4]
sub eax, ebx
je 0x300332c1
dec eax
je 0x300332be
dec eax
je 0x300332a8
dec eax
jne 0x3003325b
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.30032a3b
test eax, eax
je 0x3003325b
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.3005424c
test eax, eax
mov dword [esi - 4], eax
je 0x3003324b
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 0x30033259
push dword [ebp + 8]
call fcn.30054161
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 0x300331a4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x30033286
cmp eax, ebx
je 0x30033286
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 0x30033156
push dword [ebp - 0xc]
call fcn.300530c9
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.30032a3b
test eax, eax
je 0x3003325b
jmp 0x300332e4
push edi
jmp 0x300332aa
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 0x3003325b
mov dword [esi - 8], edi
jmp 0x3003325b
Function at 0x30033422
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.300332ec
test eax, eax
je 0x30033493
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 0x30033493
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 0x30033489
cmp dword [ebp - 0x10], 1
je 0x30033489
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x30036416
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x30036453
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 0x30036430
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x3003646f
dec esi
je 0x30036468
dec esi
jne 0x30036474
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
pop ebp
ret 0xc
Function at 0x30037870
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
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 0x300378ba
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.300372cd
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 0x300378de
cmp byte [ebp + 0x24], 0
je 0x30037905
mov edi, ebx
call fcn.3003712b
jmp 0x30037914
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x30037907
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.30036585
push 0x4b
pop edx
call fcn.30036585
call fcn.300375f5
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x3003794e
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 0x3003fffd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x3004001c
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x14], 0
jne 0x30040033
push 0x3000660c
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 0x30040062
mov eax, 0x80070057
jmp 0x300400a6
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.3003ff4e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x300400a3
cmp dword [ebp + 0x18], 0
je 0x3004008e
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 0x300400ac
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x18], 0
jne 0x300400cb
push 0x3000660c
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 0x30040110
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 0x30040117
mov eax, 0x80070057
jmp 0x3004017a
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.3003ff4e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30040152
mov eax, dword [ebp - 4]
jmp 0x3004017a
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 0x300402e1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x30040300
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x30040317
push 0x3000660c
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 0x3004033d
mov eax, 0x80070057
jmp 0x3004037b
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.3003ff4e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x30040378
cmp dword [ebp + 0x18], 0
je 0x30040369
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 0x300403f3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x30040412
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
je 0x30040427
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.30048f90
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 0x30040470
mov eax, 0x80070057
jmp 0x3004050e
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003ff4e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x30040491
mov eax, dword [ebp - 8]
jmp 0x3004050e
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 0x300404e9
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x30006658
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 0x3004050e
cmp dword [ebp + 0x14], 0
je 0x300404f7
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 0x30040514
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x30040533
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3004054a
push 0x3000660c
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 0x30040577
mov eax, 0x80070057
jmp 0x300405b5
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.3003ff4e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x300405b2
cmp dword [ebp + 0x14], 0
je 0x300405a3
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 0x300405bb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x300405da
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x300405f1
push 0x3000660c
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 0x3004061e
mov eax, 0x80070057
jmp 0x3004065c
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.3003ff4e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x30040659
cmp dword [ebp + 0x14], 0
je 0x3004064a
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 0x30040d57
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x10], 0
jne 0x30040d76
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30040d8d
push 0x3000660c
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 0x30040da2
xor eax, eax
jmp 0x30040eb4
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.3003ff4e
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040de6
mov eax, dword [ebp - 0x2c]
jmp 0x30040eb4
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 0x30040eb2
mov eax, dword [ebp + 8]
push eax
call fcn.30045272
test eax, eax
je 0x30040e24
mov eax, 0x800704c7
jmp 0x30040eb4
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.300403f3
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040e5e
mov eax, dword [ebp - 0x2c]
jmp 0x30040eb4
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.300405bb
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040dfe
mov eax, dword [ebp - 0x2c]
jmp 0x30040eb4
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3004146c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x3004148b
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x300414a2
push 0x3000660c
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 0x30041591
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 0x300414f2
jmp 0x300414c0
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.30048f90
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 0x30041537
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 0x30041551
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 0x30041571
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x33c]
and ecx, 0x40
je 0x300414c0
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.30045549
jmp 0x300414c0
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 0x300415b4
push 0x3000660c
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