joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30031f67
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 0x30031f95
xor eax, eax
jmp 0x30031fbd
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 0x30031fb2
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x30031fc2
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 0x30031fd9
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 0x3003203e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x30032035
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.30062f67
leave
ret

Function at 0x3003217a
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.3004e99c
cmp eax, 0x104
jle 0x300321ca
push 0x300056b8
jmp 0x30032237
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 0x30032232
lea eax, [ebp - 0x2c]
push eax
push 0x30005690
call fcn.30022d69
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 0x3003223d
push 0x3000565c
call fcn.30022d69
pop ecx
mov ecx, dword [ebp + 0x3e4]
pop edi
pop esi
call fcn.30062f67
add ebp, 0x3e8
leave
ret 8
Function at 0x30032f47
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.30052e0e
test eax, eax
je 0x300330e3
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 0x300330d9
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x300330c6
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x300330c6
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x30032fba
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x30032fd5
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 0x30032fd5
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x300330b3
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.300329a0
test eax, eax
jne 0x3003309b
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 0x3003309b
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x3003309b
mov eax, dword [esi + 4]
sub eax, ebx
je 0x30033101
dec eax
je 0x300330fe
dec eax
je 0x300330e8
dec eax
jne 0x3003309b
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.3003287b
test eax, eax
je 0x3003309b
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.3005408c
test eax, eax
mov dword [esi - 4], eax
je 0x3003308b
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 0x30033099
push dword [ebp + 8]
call fcn.30053fa1
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 0x30032fe4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x300330c6
cmp eax, ebx
je 0x300330c6
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 0x30032f96
push dword [ebp - 0xc]
call fcn.30052f09
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.3003287b
test eax, eax
je 0x3003309b
jmp 0x30033124
push edi
jmp 0x300330ea
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 0x3003309b
mov dword [esi - 8], edi
jmp 0x3003309b
Function at 0x30033262
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.3003312c
test eax, eax
je 0x300332d3
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 0x300332d3
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 0x300332c9
cmp dword [ebp - 0x10], 1
je 0x300332c9
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x30036256
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 0x30036293
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 0x30036270
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x300362af
dec esi
je 0x300362a8
dec esi
jne 0x300362b4
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 0x300376b0
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 0x300376fa
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.3003710d
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 0x3003771e
cmp byte [ebp + 0x24], 0
je 0x30037745
mov edi, ebx
call fcn.30036f6b
jmp 0x30037754
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x30037747
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.300363c5
push 0x4b
pop edx
call fcn.300363c5
call fcn.30037435
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x3003778e
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 0x3003fe3d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x3003fe5c
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x14], 0
jne 0x3003fe73
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 0x3003fea2
mov eax, 0x80070057
jmp 0x3003fee6
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.3003fd8e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3003fee3
cmp dword [ebp + 0x18], 0
je 0x3003fece
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 0x3003feec
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x18], 0
jne 0x3003ff0b
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 0x3003ff50
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 0x3003ff57
mov eax, 0x80070057
jmp 0x3003ffba
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.3003fd8e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3003ff92
mov eax, dword [ebp - 4]
jmp 0x3003ffba
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 0x30040121
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x30040140
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x30040157
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 0x3004017d
mov eax, 0x80070057
jmp 0x300401bb
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.3003fd8e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x300401b8
cmp dword [ebp + 0x18], 0
je 0x300401a9
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 0x30040233
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x30040252
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
je 0x30040267
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.30048dd0
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 0x300402b0
mov eax, 0x80070057
jmp 0x3004034e
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003fd8e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x300402d1
mov eax, dword [ebp - 8]
jmp 0x3004034e
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 0x30040329
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 0x3004034e
cmp dword [ebp + 0x14], 0
je 0x30040337
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 0x30040354
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x30040373
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3004038a
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 0x300403b7
mov eax, 0x80070057
jmp 0x300403f5
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.3003fd8e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x300403f2
cmp dword [ebp + 0x14], 0
je 0x300403e3
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 0x300403fb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x3004041a
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x30040431
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 0x3004045e
mov eax, 0x80070057
jmp 0x3004049c
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.3003fd8e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x30040499
cmp dword [ebp + 0x14], 0
je 0x3004048a
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 0x30040b97
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x10], 0
jne 0x30040bb6
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30040bcd
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 0x30040be2
xor eax, eax
jmp 0x30040cf4
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.3003fd8e
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040c26
mov eax, dword [ebp - 0x2c]
jmp 0x30040cf4
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 0x30040cf2
mov eax, dword [ebp + 8]
push eax
call fcn.300450b2
test eax, eax
je 0x30040c64
mov eax, 0x800704c7
jmp 0x30040cf4
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.30040233
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040c9e
mov eax, dword [ebp - 0x2c]
jmp 0x30040cf4
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.300403fb
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x30040c3e
mov eax, dword [ebp - 0x2c]
jmp 0x30040cf4
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x300412ac
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x300412cb
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x300412e2
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 0x300413d1
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 0x30041332
jmp 0x30041300
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.30048dd0
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 0x30041377
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 0x30041391
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 0x300413b1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x33c]
and ecx, 0x40
je 0x30041300
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.30045389
jmp 0x30041300
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 0x300413f4
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