joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1d1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041f618
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041f618
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42b248
cmp word [ecx], dx
je 0x42b248
mov eax, dword [0x438004]
push edi
dec eax
push eax
push 0x437ef0
call fcn.0042b16a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42b2bb
cmp word [eax], dx
je 0x42b2bb
mov eax, dword [edi]
test eax, eax
je 0x42b26c
cmp word [eax], dx
je 0x42b26c
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab50
jmp 0x42b275
lea eax, [ebp - 0x10]
push eax
call fcn.0042abeb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42b2e5
mov eax, dword [0x437eec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x437be0
call fcn.0042b16a
add esp, 0xc
test al, al
je 0x42b2e5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42b2b0
cmp word [eax], di
je 0x42b2b0
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab50
pop ecx
jmp 0x42b2e7
lea eax, [ebp - 0x10]
push eax
call fcn.0042abeb
jmp 0x42b2ad
mov eax, dword [edi]
test eax, eax
je 0x42b2d2
cmp word [eax], dx
je 0x42b2d2
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab05
pop ecx
jmp 0x42b2e5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42b3b0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042afef
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42b3b0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42b3b0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42b3b0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42b33d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042147a
test ebx, ebx
je 0x42b3ab
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042147a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b3b0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b3b0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042f6d9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42b3b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041101a
leave
ret
Function at 0x42fd6b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042fce7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42feda
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42feda
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42fe8f
jg 0x42fdc7
test eax, eax
je 0x42fe85
push 1
push 0x1000
call fcn.0041f790
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42fdea
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42fe7c
push 0x8000
push ebx
call fcn.0041cd46
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42fe13
jg 0x42fe0e
cmp ecx, 0x1000
jb 0x42fe13
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004226b8
add esp, 0x10
cmp eax, 0xffffffff
je 0x42fe58
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42fe0e
jl 0x42fe3f
test ecx, ecx
jne 0x42fe00
push dword [ebp - 0xc]
push ebx
call fcn.0041cd46
push esi
call fcn.0041f7f0
add esp, 0xc
xor ebx, ebx
jmp 0x42fee8
cmp byte [edi + 0x24], 0
je 0x42fe6f
cmp dword [edi + 0x20], 5
jne 0x42fe6f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42fe7a
mov ebx, dword [edi + 0x18]
jmp 0x42fe7c
xor ebx, ebx
push esi
call fcn.0041f7f0
pop ecx
jmp 0x42fee8
test ecx, ecx
jg 0x42fe51
jl 0x42fe8f
test eax, eax
jae 0x42fe51
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042427c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42feaf
cmp byte [edi + 0x1c], 0
je 0x42fe51
jmp 0x42fee0
push ebx
call fcn.004290fc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42fe51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42fee8
cmp byte [edi + 0x1c], 0
je 0x42fee5
mov ebx, dword [edi + 0x18]
jmp 0x42fee8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042427c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43115d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43115d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402970
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x714
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x710], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x219]
push ebx
push eax
mov byte [esp + 0x220], bl
call fcn.004f1960
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.004f1960
push 0x103
lea edx, [esp + 0x12d]
push ebx
push edx
mov byte [esp + 0x134], bl
call fcn.004f1960
add esp, 0x24
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uninsep.bat
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea edx, [esp + 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x214]
push 0x5c
push edx
call fcn.004e89d0
add esp, 8
cmp eax, ebx
je 0x402a36
mov byte [eax + 1], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402ae6
push 0x3ff
lea ecx, [esp + 0x31d]
push ebx
push ecx
mov byte [esp + 0x324], bl
call fcn.004f1960
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x124]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x334]
push str.:Repeat_r_ndel__Q___s__r_nif_exist___s__goto_Repeat_r_nCD_..__rmdir__s__q___s___r_ndel___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x320]
push edx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x324]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x51a428
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x718]
pop esi
pop ebx
xor ecx, esp
call fcn.004e7d6f
add esp, 0x714
ret
Function at 0x4044b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x511bbc
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf4]
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov dword [esp + 0xec], ebx
mov edi, dword [ebp + 4]
lea ecx, [esp + 0x34]
call fcn.0042ba00
test al, al
je 0x4046d2
cmp dword [esp + 0x48], ebx
je 0x4046d2
push 0x73
lea eax, [ebp + 0x24]
call fcn.00481420
mov edi, eax
cmp edi, ebx
je 0x404594
lea eax, [ebp + 0x27c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043b740
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0xf8], 1
call fcn.00401610
mov byte [esp + 0xec], bl
cmp dword [esp + 0x30], 8
jb 0x404583
mov edx, dword [esp + 0x1c]
push edx
call fcn.004e7d7e
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax + 0x170]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xd4], bl
push 3
xor ecx, ecx
lea esi, [esp + 0x54]
lea edx, [esp + 0x38]
mov byte [esp + 0xf0], 2
call fcn.00406be0
mov byte [esp + 0xec], 3
mov eax, dword [esp + 0x54]
mov edi, 8
cmp dword [esp + 0x68], edi
jae 0x404631
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404677
cmp dword [esp + 0x68], edi
jb 0x404650
mov eax, dword [esp + 0x54]
push eax
call fcn.004e7d7e
add esp, 4
lea esi, [esp + 0x6c]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.0043db50
cmp dword [esp + 0x4c], edi
jb 0x4046e6
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4046de
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x54]
call fcn.0043eeb0
add esp, 4
test al, al
jne 0x4046a9
lea esi, [esp + 0x50]
call fcn.00481d30
lea esi, [esp + 0x6c]
call fcn.0043db50
lea esi, [esp + 0x34]
call fcn.00481d30
jmp 0x4046e6
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
push eax
push ecx
mov edi, ebp
call fcn.00404710
lea esi, [esp + 0x50]
call fcn.00481d30
lea esi, [esp + 0x6c]
call fcn.0043db50
cmp dword [esp + 0x4c], 8
jb 0x4046e6
mov edx, dword [esp + 0x38]
push edx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004e7d6f
add esp, 0xdc
ret 4
Function at 0x4068c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1020
call fcn.004fc7a0
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x102c]
push esi
xor ebx, ebx
cmp dword [ebp + 0x238], ebx
push edi
mov edi, ecx
jbe 0x406a23
mov ecx, dword [ebp + 0x234]
xor edx, edx
add ecx, dword [ebp + 0x240]
push ebx
adc edx, dword [ebp + 0x244]
add ecx, 0x1c
adc edx, ebx
push edx
lea eax, [ebp + 0x248]
push ecx
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0043ec40
test al, al
je 0x406958
push 0x80
push 2
push ebx
push 0x40000000
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043eb10
test al, al
jne 0x40695f
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x406958
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x406a25
mov ebp, dword [ebp + 0x238]
push 0xfff
lea eax, [esp + 0x2d]
push ebx
push eax
xor edi, edi
mov byte [esp + 0x34], bl
call fcn.004f1960
add esp, 0xc
mov edi, edi
cmp edi, ebx
mov dword [esp + 0x18], ebx
ja 0x40699a
jb 0x406992
cmp ebp, 0x1000
jae 0x40699a
mov ecx, ebp
mov dword [esp + 0x24], edi
jmp 0x4069a3
mov ecx, 0x1000
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x406a40
push ebx
lea edx, [esp + 0x1c]
push edx
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406a40
mov eax, dword [esp + 0x18]
cmp eax, ebx
seta cl
cmp cl, bl
je 0x406a40
sub ebp, eax
sbb edi, ebx
cmp eax, ebx
je 0x406a40
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
mov esi, eax
je 0x406a40
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406a40
cmp esi, dword [esp + 0x18]
jne 0x406a40
cmp edi, ebx
ja 0x406980
cmp ebp, ebx
ja 0x406980
lea esi, [esp + 0x14]
call fcn.0043eaf0
mov al, 1
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e7d6f
add esp, 0x1020
ret 4
lea esi, [esp + 0x14]
call fcn.0043eaf0
xor al, al
jmp 0x406a25
Function at 0x407690
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x50c538
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401610
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4076f0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00407230
push 0xffffffffffffffff
push edi
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov eax, esi
mov word [esi + 4], di
call fcn.00401610
cmp dword [esp + 0x28], 8
jb 0x407737
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x40b1c0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50fe08
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x898]
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x274]
push ecx
push ebx
mov dword [esp + 0x8a0], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40b243
cmp dword [esp + 0x8b4], 8
jb 0x40b23c
mov edx, dword [esp + 0x8a0]
push edx
call fcn.004e7d7e
add esp, 4
xor eax, eax
jmp 0x40b3a0
cmp esi, ebx
je 0x40b28c
mov eax, esi
mov edx, esi
jmp 0x40b250
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b250
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b270
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40b270
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
push str._s.
push ecx
call fcn.004e89fd
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b2e8
cmp dword [esp + 0x8b4], 8
jb 0x40b23c
mov ecx, dword [esp + 0x8a0]
push ecx
call fcn.004e7d7e
add esp, 4
xor eax, eax
jmp 0x40b3a0
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, 7
cmp dword [esp + 0x1c], 0x10
je 0x40b371
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x684]
push 0x51adb4
push ecx
call fcn.004e89fd
lea edx, [esp + 0x58]
push 0x2e
push edx
call fcn.004e8deb
add esp, 0x18
cmp eax, ebx
je 0x40b371
push 0x51a628
push eax
call fcn.004e8d5a
add esp, 8
test eax, eax
jne 0x40b371
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x8c0]
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], bx
call fcn.00401610
lea edx, [esp + 0x698]
push edx
call fcn.0040ae40
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
push edi
call ebp
test eax, eax
jne 0x40b2f3
cmp dword [esp + 0x8b4], 8
jb 0x40b39b
mov ecx, dword [esp + 0x8a0]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x880
ret
Function at 0x40d4e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50fd59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x30]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
cmp ecx, 7
mov dword [esp + 0xc], 1
jne 0x40d584
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x34]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e7a0
add esp, 0x14
push eax
mov eax, edi
mov dword [esp + 0x2c], 1
call fcn.0041da50
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40d6fd
push eax
call fcn.004e7d7e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 4
jne 0x40d5d7
mov edx, dword [esp + 0x34]
add eax, 0x5c
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0040ddc0
add esp, 8
push eax
mov eax, edi
mov dword [esp + 0x2c], 2
call fcn.0041da50
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40d6fd
push eax
call fcn.004e7d7e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 6
jne 0x40d62d
push 1
add eax, 0x20
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ea20
add esp, 0x10
push eax
mov eax, edi
mov dword [esp + 0x2c], 3
call fcn.0041da50
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40d6fd
push eax
call fcn.004e7d7e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp ecx, 5
jne 0x40d655
mov edx, dword [esp + 0x34]
add eax, 0x4c
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040d910
add esp, 0xc
mov dword [esp + 0x28], 4
jmp 0x40d6ec
cmp ecx, 3
jne 0x40d67a
mov ecx, dword [esp + 0x34]
add eax, 0x3c
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040d720
add esp, 0xc
mov dword [esp + 0x28], 5
jmp 0x40d6ec
cmp ecx, 1
jne 0x40d6a4
fld qword [eax + 8]
mov eax, dword [esp + 0x34]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e390
add esp, 0x10
mov dword [esp + 0x28], 6
jmp 0x40d6ec
cmp ecx, 2
jne 0x40d6c9
mov edx, dword [esp + 0x34]
add eax, 0x18
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040e690
add esp, 0xc
mov dword [esp + 0x28], 7
jmp 0x40d6ec
cmp ecx, esi
jne 0x40d6fd
movzx ecx, byte [eax + 4]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040e5d0
add esp, 0xc
mov dword [esp + 0x28], 8
push eax
mov eax, edi
call fcn.0041da50
lea esi, [esp + 0x10]
call fcn.00444e50
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x40e5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50dd99
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x20], eax
cmp byte [esp + 0x30], al
mov dword [esp + 0x14], 1
mov esi, edi
je 0x40e628
lea eax, [esp + 0x30]
mov byte [esp + 0x30], 9
push eax
jmp 0x40e632
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], 8
push ecx
call fcn.0041dc80
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x30], eax
jbe 0x40e648
call fcn.004e89bf
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x40e655
call fcn.004e89bf
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi + 0x14]
add esi, 0x10
cmp ebx, dword [esi + 8]
jbe 0x40e669
call fcn.004e89bf
mov edx, dword [esp + 0x30]
push edx
push edi
push ebp
push edi
push ebx
push esi
call fcn.00421a80
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40e690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50dd61
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
fild qword [eax]
push ebx
sub esp, 8
lea ecx, [esp + 0x24]
fsub qword [0x52ca68]
mov esi, 1
mov dword [esp + 0x20], esi
fstp qword [esp]
push ecx
call fcn.004113a0
add esp, 0x10
push eax
mov eax, edi
mov dword [esp + 0x34], esi
call fcn.0041da50
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40e718
push eax
call fcn.004e7d7e
add esp, 4
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
mov byte [esp + 0x40], 0x33
jbe 0x40e72a
call fcn.004e89bf
lea edx, [esp + 0x40]
push edx
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.0041dcf0
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x40e74a
call fcn.004e89bf
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x40], eax
jbe 0x40e75b
call fcn.004e89bf
mov esi, dword [esp + 0x3c]
mov ebx, dword [esi + 0x14]
add esi, 0x10
cmp ebx, dword [esi + 8]
jbe 0x40e76f
call fcn.004e89bf
mov ecx, dword [esp + 0x40]
push ebp
push edi
push ecx
push edi
push ebx
push esi
call fcn.00421a80
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret