joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45caa0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d304c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407260
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407260
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407260
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407260
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00407260
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00407260
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45d230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x45d2b2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x45d2b2
test ecx, ecx
je 0x45d2ae
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x45d270
xor eax, eax
jmp 0x45d2b7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x45d2c1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476b97
add esp, 0xc
ret 0xc

Function at 0x45dd00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x45dd73
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45dd4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45dd73
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
Function at 0x45e130
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x45e1a3
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e17e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45e1a3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
Function at 0x464730
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x464795
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x464770
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x464795
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00476b97
add esp, 8
ret 4
Function at 0x4648b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a61e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4648f9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x464a4b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x464a16
test eax, eax
je 0x464a16
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x464a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x46499b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46498f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46499b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4649a9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00407280
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x464a16
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x464954
jmp 0x464a19
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x464a42
test edx, edx
je 0x464a3e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x464910
mov al, 1
jmp 0x464a4d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x464a4b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46cb20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7801
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.0046d000
add esp, 4
mov dword [ebp - 4], 1
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.00407220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040e130
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00407180
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040a970
add esp, 4
movzx edx, al
test edx, edx
jne 0x46cc03
push 0x4b8270
mov ecx, dword [ebp + 8]
call fcn.00407220
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x46cd8c
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00479a50
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4b8270
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
add ecx, 2
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2b4]
mov ax, word [edx]
mov word [ebp - 0x2b6], ax
add dword [ebp - 0x2b4], 2
cmp word [ebp - 0x2b6], 0
jne 0x46cc61
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
jne 0x46ccda
push 0x4b8270
mov ecx, dword [ebp + 8]
call fcn.00407220
mov edx, dword [ebp - 0x2b0]
or edx, 1
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x46cd8c
lea eax, [ebp - 0x2ac]
push eax
call fcn.0046ca40
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00407220
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.0040e130
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.00407180
lea edx, [ebp - 0x294]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407f40
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x294]
call fcn.00407180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.00407180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x472030
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a85aa
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00470910
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.0040a970
add esp, 4
movzx eax, al
test eax, eax
jne 0x4720c5
push 0x4b8270
mov ecx, dword [ebp + 8]
call fcn.00407220
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x472138
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.00479a50
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x4b8270
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407220
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407180
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x474ed0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.00479a50
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x474f46
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x474f2f
jne 0x474f46
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x474f2f
jne 0x474f46
cmp word [esp + 0x114], 1
jb 0x474f46
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00476b97
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.00476b97
add esp, 0x120
ret
Function at 0x475d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4d304c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00479a50
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x475d5e
xor al, al
jmp 0x475db7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x475d90
cmp dword [ebp - 0x418], 0
je 0x475d8c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x475db7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00407120
cmp dword [ebp - 0x418], 0
je 0x475db5
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476b97
mov esp, ebp
pop ebp
ret

Function at 0x486f7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00486c3a
Function at 0x90f110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x67700d
lea edi, [esi - 0x27600d]
push edi
or ebp, 0xffffffff
jmp 0x90f132
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x90f139
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x90f128
mov eax, 1
add ebx, ebx
jne 0x90f14b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x90f140
jne 0x90f15c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x90f140
xor ecx, ecx
sub eax, 3
jb 0x90f170
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x90f1e2
mov ebp, eax
add ebx, ebx
jne 0x90f17b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x90f188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x90f1ac
inc ecx
add ebx, ebx
jne 0x90f198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x90f18d
jne 0x90f1a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x90f18d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x90f1cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x90f1bd
jmp 0x90f12e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x90f1cc
add edi, ecx
jmp 0x90f12e
pop esi
mov edi, esi
mov ecx, 0x18a9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x90f1ea
cmp byte [edi], 0x11
jne 0x90f1ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x90f1ef
lea edi, [esi + 0x50b000]
mov eax, dword [edi]
or eax, eax
je 0x90f25e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x517164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5171bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x90f21c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5171c4]
or eax, eax
je 0x90f258
mov dword [ebx], eax
add ebx, 4
jmp 0x90f239
call dword [esi + 0x5171c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x90f28f
cmp al, 0xef
ja 0x90f282
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x90f264
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x90f271
mov ebp, dword [esi + 0x5171c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x90f2c3
sub esp, 0xffffff80
jmp 0x40efbc
Function at 0x4033e0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4035b0
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.0046c6d0
jmp fcn.004033e0
Function at 0x40bd30
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40befb
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40bd59
mov eax, 0x7000000
jmp 0x40bd61
test eax, eax
je 0x40bed6
mov dword [esp + 0x34], eax
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x448]
mov ebx, dword [ecx + 0x44c]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x448], ebx
mov dword [ecx + 0x44c], ebp
mov dword [esp], edx
call fcn.0046da80
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x5af020]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40beee
cmp edx, 0x21
jae 0x40bee2
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00460130
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00460200
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x51d6e8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x51d758]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40beb1
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x51d7a0]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.0046db60
mov eax, edx
mov ecx, 0x21
call fcn.0046dbf0
nop
call fcn.0046c6d0
jmp fcn.0040bd30
Function at 0x4138b0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413aae
sub esp, 0x18
mov eax, dword [0x5db428]
test eax, eax
jne 0x413a97
nop
nop
lea eax, [0x5db418]
mov dword [esp], eax
call fcn.0040a380
mov eax, dword [0x5db41c]
test eax, eax
je 0x4138f8
cmp dword [eax + 8], 0xcc
jne 0x41396e
mov edx, dword [0x5db420]
test edx, edx
jne 0x413950
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x5ddb90]
mov dword [esp + 8], eax
call fcn.0040bf10
mov eax, dword [esp + 0xc]
mov dword [0x5db420], eax
mov ecx, dword [0x5db424]
mov dword [eax], ecx
mov eax, dword [0x5db420]
mov dword [0x5db424], eax
movzx eax, byte [0x5db920]
test al, al
jne 0x413950
xor eax, eax
jmp 0x413a68
mov edx, dword [0x5db420]
mov ebx, dword [edx + 4]
mov dword [0x5db420], ebx
mov ebx, dword [0x5db41c]
mov dword [edx + 4], ebx
mov dword [0x5db41c], edx
mov edx, dword [0x5db41c]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x413a47
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00472140
mov eax, dword [0x5db640]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x4139c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x413a00
call fcn.0046db40
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x18], esi
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x1c], esi
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], ebx
mov dword [edx + ecx*4 + 0x20], ebp
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4 + 0x14], eax
nop
nop
lea eax, [0x5db418]
mov dword [esp], eax
call fcn.0040a5a0
nop
lea eax, [0x5db414]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004722c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.0046db60
lea edx, [0x5ae48c]
movzx ebx, byte [edx + eax]
lea ebp, [0x5db920]
mov byte [ebp + ecx], bl
lea eax, [ecx + 1]
cmp eax, 0x80
jge 0x413950
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 5
jb 0x413a51
mov ecx, 5
call fcn.0046db50
lea eax, [0x4f70fc]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00467a40
nop
call fcn.0046c6d0
jmp fcn.004138b0
Function at 0x418890
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418919
sub esp, 0x10
mov eax, dword [esp + 0x14]
test byte [eax], al
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 1
call fcn.00471ff0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4188fe
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 6]
test cl, cl
jne 0x418902
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.00418930
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00418ee0
add esp, 0x10
ret
add esp, 0x10
ret
lea eax, [0x4f7114]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00467a40
nop
call fcn.0046c6d0
jmp fcn.00418890