joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4192f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x423080]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004012e0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
xor esi, esi
cmp eax, esi
je 0x401c01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x401c42
lea ecx, [esp + 8]
mov dword [esp + 8], esi
call fcn.00401300
xor eax, eax
jmp 0x401cc2
cmp eax, esi
jne 0x401c53
lea ecx, [esp + 8]
call fcn.00401300
xor eax, eax
jmp 0x401cc2
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x10], esi
ja 0x401c76
jb 0x401c46
cmp dword [esp + 0xc], 0x14
jb 0x401c46
mov eax, dword [esp + 8]
cmp eax, esi
je 0x401c46
push esi
lea edx, [esp + 0x10]
push edx
push 0x10
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c46
cmp dword [esp + 0xc], 0x10
jb 0x401c46
push 0x10
lea edx, [esp + 0x18]
push edx
push 0x41ff38
call fcn.004164d0
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
call fcn.00401300
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040839e
add esp, 0x30
ret
Function at 0x401fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push str.FANCYRES
lea ecx, [esp + 0xc]
call fcn.00401000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401fff
pop esi
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40201a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40201f
pop ebx
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
push ebx
push eax
call fcn.00415530
pop ebx
mov eax, 1
pop esi
ret

Function at 0x402040
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x40205f.5
movzx edx, byte [eax + 0x4020a0]
jmp dword [edx*4 + 0x40208c]
mov eax, 1
ret
xor eax, eax
cmp ecx, 0x804
setne al
add eax, 2
ret
mov eax, 4
ret
mov eax, 5
ret
xor eax, eax
ret

Function at 0x402130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x804], eax
xor eax, eax
push eax
push 0x1c
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00401040
mov ecx, dword [esp + 0x804]
xor ecx, esp
mov eax, esi
call fcn.0040839e
add esp, 0x808
ret
Function at 0x402190
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x85c
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
mov ebx, dword [esp + 0x86c]
push ebp
push esi
xor eax, eax
push edi
push 0x40
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0x44
call fcn.004091d0
add esp, 0xc
push 0
lea ecx, [esp + 0x874]
mov dword [esp + 0x54], 0x80
call fcn.00401000
push eax
lea ecx, [esp + 0x470]
push 0x400
push ecx
call fcn.00417f40
add esp, 0x10
push 0
lea ecx, [esp + 0x878]
call fcn.00401000
push eax
lea edx, [esp + 0x70]
push 0x400
push edx
call fcn.00417f40
movsx edx, byte [esp + 0x78]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
neg edx
lea ecx, [esp + 0x28]
push ecx
sbb edx, edx
lea eax, [esp + 0x70]
and edx, eax
push edx
push 0
push 0x400
push 0
push 0
push 0
lea ecx, [esp + 0x488]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4022b5
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x402287
cmp eax, 0xffffffff
je 0x402287
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push 0
push esi
mov dword [esi], 0
call ebp
push eax
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test edi, edi
je 0x4022c0
cmp edi, 0xffffffff
je 0x4022c0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x4022c6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x402302
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4022dc
cmp eax, 0xffffffff
je 0x4022dc
push eax
call edi
push 2
push 0
push 0
push ebx
mov dword [ebx], 0
call ebp
push eax
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test esi, esi
je 0x402309
cmp esi, 0xffffffff
je 0x402309
push esi
jmp 0x402307
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x868]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040839e
add esp, 0x85c
ret
Function at 0x402340
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x419238
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x423080]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esi]
test eax, eax
je 0x402370
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], 0
call fcn.00414ff0
mov dword [esp + 0x28], 0
mov eax, dword [eax]
push eax
call fcn.00401a70
add esp, 0x10
lea ecx, [esp + 8]
call fcn.004010a0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
mov dword [esp + 4], edx
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4023d4
and eax, 0xfffffffe
push eax
lea ecx, [esp + 8]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x3c]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x402403
mov dword [esi], 0
xor eax, eax
cmp dword [esi], eax
setne al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret 4

Function at 0x402420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ecx
mov eax, dword [esi]
test eax, eax
je 0x40242e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
lea ecx, [esp]
mov dword [esi], 0
mov dword [esp], eax
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402463
and eax, 0xfffffffe
push eax
lea ecx, [esp + 4]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x20]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x402492
mov dword [esi], 0
xor eax, eax
cmp dword [esi], eax
setne al
pop ecx
ret 4

Function at 0x4024a0
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x402535
push 1
lea esi, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ecx, ecx
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x4024f4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
push eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x4024fe
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret 8
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4024f4
mov edi, dword [edi]
test edi, edi
je 0x4024f4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push ecx
push edi
call esi
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
test eax, eax
je 0x4024f4
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
cmp dword [edi], 0
push ebx
mov ebx, dword [esp + 8]
jne 0x402580
xor eax, eax
pop ebx
ret 4
test esi, esi
jne 0x40258b
lea eax, [esi + 1]
pop ebx
ret 4
test ebx, ebx
jne 0x4025a6
push 0x1b2
push str.....SourcePlatformFile.cpp
push str.buffer____null
call fcn.00417dd0
add esp, 0xc
mov ecx, dword [edi]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40257a
cmp dword [esp + 8], esi
pop ebx
sbb eax, eax
inc eax
ret 4

Function at 0x4025d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, dword [ebx]
test eax, eax
jne 0x4025e9
pop edi
pop ebx
add esp, 8
ret 4
push esi
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x10], 0
ja 0x402619
mov esi, dword [esp + 0xc]
cmp esi, 0x7fffffff
jbe 0x402624
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 4
push esi
mov ecx, edi
call fcn.004153f0
mov ecx, edi
call fcn.004012c0
cmp dword [ebx], 0
mov edi, eax
je 0x402619
test esi, esi
jne 0x40264a
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
add esp, 8
ret 4
test edi, edi
jne 0x402665
push 0x18d
push str.....SourcePlatformFile.cpp
push str.buffer____null
call fcn.00417dd0
add esp, 0xc
mov eax, dword [ebx]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402619
cmp dword [esp + 0x18], esi
pop esi
sbb eax, eax
pop edi
inc eax
pop ebx
add esp, 8
ret 4

Function at 0x4027a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push 0
lea ecx, [esp + 0x18]
call fcn.00401000
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x40839e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423080]
jne 0x4083a8
repz ret
jmp fcn.004095b6

Function at 0x40e4ad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a7e3
and dword [ebp - 4], 0
cmp dword [0x424d24], 0
mov ebx, eax
jne 0x40e55e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e60f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e60f
push eax
call fcn.0040a771
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424d24], eax
call esi
push eax
call fcn.0040a771
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424d28], eax
call esi
push eax
call fcn.0040a771
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424d2c], eax
call esi
push eax
call fcn.0040a771
pop ecx
mov dword [0x424d34], eax
test eax, eax
je 0x40e55e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a771
pop ecx
mov dword [0x424d30], eax
mov eax, dword [0x424d30]
cmp eax, ebx
je 0x40e5b6
cmp dword [0x424d34], ebx
je 0x40e5b6
push eax
call fcn.0040a7ec
push dword [0x424d34]
mov esi, eax
call fcn.0040a7ec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e5b6
test edi, edi
je 0x40e5b6
call esi
test eax, eax
je 0x40e5ad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e5ad
test byte [ebp - 0xc], 1
jne 0x40e5b6
or dword [ebp + 0x10], 0x200000
jmp 0x40e5ef
mov eax, dword [0x424d28]
cmp eax, ebx
je 0x40e5ef
push eax
call fcn.0040a7ec
pop ecx
test eax, eax
je 0x40e5ef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e5ef
mov eax, dword [0x424d2c]
cmp eax, ebx
je 0x40e5ef
push eax
call fcn.0040a7ec
pop ecx
test eax, eax
je 0x40e5ef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424d24]
call fcn.0040a7ec
pop ecx
test eax, eax
je 0x40e60f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e611
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417d40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400c
call fcn.00412010
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x2000
lea edx, [ebp - 0x4008]
push edx
lea eax, [ebp - 0x400c]
push eax
call fcn.00414f70
add esp, 0x14
mov ecx, dword [0x4242b4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [0x4242b4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
jne 0x417db0
lea edx, [ebp - 0x4008]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x4242b0], 0
je 0x417dae
push 0x41f460
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x417dc7
mov eax, dword [0x4242b0]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x4008]
push edx
call dword [ebp - 4]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x40bc70
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4e7e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x10]
call fcn.004be9a0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov ecx, edi
call fcn.004bee30
add al, 2
lea ecx, [esp + 0xc]
push eax
call fcn.004bee10
push 0x73
lea ecx, [esp + 0x10]
call fcn.004bee10
mov ecx, edi
xor esi, esi
call fcn.004bee30
test ax, ax
jle 0x40bce8
push esi
mov ecx, edi
call fcn.004bec90
push eax
lea ecx, [esp + 0x10]
call fcn.004bee10
mov ecx, edi
inc esi
call fcn.004bee30
cmp si, ax
jl 0x40bcc9
lea ecx, [esp + 0xc]
xor esi, esi
call fcn.004bee30
test ax, ax
jle 0x40bd17
push esi
lea ecx, [esp + 0x10]
call fcn.004bec90
movzx ax, al
xor ebx, eax
lea ecx, [esp + 0xc]
inc esi
call fcn.004bee30
cmp si, ax
jl 0x40bcf8
cmp word [esp + 0x20], 1
jne 0x40bd21
not bl
push ebx
lea ecx, [esp + 0x10]
call fcn.004bee10
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004be980
mov ecx, edi
call fcn.004beca0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004beab0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x419700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e8c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004be970
mov edi, dword [esp + 0x28]
xor ebp, ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebp
mov al, byte [edi]
inc al
push eax
call fcn.004bee10
xor ecx, ecx
mov cl, byte [esi + 0x45]
push ecx
lea ecx, [esp + 0x10]
call fcn.004bee10
mov dl, byte [esi + 0x44]
lea ecx, [esp + 0xc]
push edx
call fcn.004bee10
mov al, byte [esi + 0x47]
mov cl, al
or cl, 0x10
inc al
push ecx
lea ecx, [esp + 0x10]
mov byte [esi + 0x47], al
call fcn.004bee10
cmp byte [esi + 0x47], 0x10
jb 0x41977b
mov byte [esi + 0x47], 0
cmp byte [edi], 0
jle 0x41979b
movsx eax, bp
mov cl, byte [eax + edi + 1]
push ecx
lea ecx, [esp + 0x10]
call fcn.004bee10
movsx dx, byte [edi]
inc ebp
cmp bp, dx
jl 0x419780
lea ecx, [esp + 0x10]
call fcn.004be970
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.004be970
mov edi, dword [esp + 0x2c]
push 0
push 0x520168
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004bef10
push 4
push 0x50fd2c
lea ecx, [esp + 0x18]
call fcn.004bef10
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [esi + 0x45]
push eax
push 1
call fcn.004bedb0
mov cl, byte [esi + 0x44]
push ecx
push 2
lea ecx, [esp + 0x18]
call fcn.004bedb0
mov ecx, 0x5201c8
call fcn.004c7000
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004be980
call fcn.0047c9f0
mov ecx, dword [esp + 0x38]
add esp, 8
lea edx, [esp + 0xc]
push ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004be980
mov ecx, esi
call fcn.00418430
mov ecx, 0x5201c8
mov esi, eax
call fcn.004c7040
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.004beab0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
mov ecx, dword [esp + 0x18]
mov ax, si
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 0xc
Function at 0x41fe40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e95a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004be970
xor ebx, ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb6c
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], bl
call fcn.004cb760
push 3
mov ecx, esi
call fcn.00419890
mov edi, eax
call fcn.004cd4a0
test al, al
je 0x41fee2
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
mov ax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
cmp di, bx
jge 0x41ff0b
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x41ff71
jne 0x41ff34
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x420052
lea eax, [esp + 0xc]
push 0xfe
push eax
push 0x50fdc0
mov ecx, esi
call fcn.00419700
test ax, ax
jg 0x41ffb2
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f978
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], bl
call fcn.004cb760
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
or ax, 0xffff
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0xc]
call fcn.004bee30
cmp ax, 3
jl 0x420030
push 2
lea ecx, [esp + 0x10]
call fcn.004bec90
cmp al, 0x71
jne 0x420030
lea ecx, [esp + 0xc]
push 0xfe
push ecx
push 0x50fdc8
mov ecx, esi
call fcn.00419700
test ax, ax
jle 0x420030
lea ecx, [esp + 0xc]
call fcn.004bee30
cmp ax, 6
jl 0x420030
push 6
lea ecx, [esp + 0x10]
call fcn.004bec90
cmp al, 0x81
jne 0x420030
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
mov ax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50fa6c
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], bl
call fcn.004cb760
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x421360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e97a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push 6
push 0x5101d4
lea ecx, [esp + 0x14]
call fcn.004bea10
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0
call fcn.004be970
push 1
push 5
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.004bedb0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00420950
test ax, ax
jge 0x4213f9
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.004beab0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
or ax, 0xffff
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x1c
ret
call fcn.004cd4a0
test al, al
jne 0x4215d2
push 1
lea ecx, [esp + 0xc]
call fcn.004bec90
cmp al, 5
jb 0x4215d2
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x5101cc
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], 1
call fcn.004cb760
xor ebx, ebx
mov dl, bl
lea ecx, [esp + 0xc]
add dl, 2
push edx
push 5
call fcn.004bedb0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00420950
test ax, ax
jl 0x4213c5
inc ebx
cmp bx, 2
jl 0x421459
push 1
lea ecx, [esp + 0xc]
call fcn.004bec90
cmp al, 5
jb 0x4215d2
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x5101c4
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], 1
call fcn.004cb760
xor ebx, ebx
mov dl, bl
lea ecx, [esp + 0xc]
add dl, 2
push edx
push 5
call fcn.004bedb0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00420950
test ax, ax
jl 0x4213c5
inc ebx
cmp bx, 2
jl 0x4214de
push 1
lea ecx, [esp + 0xc]
call fcn.004bec90
cmp al, 5
jb 0x4215d2
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x5101bc
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], 1
call fcn.004cb760
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x30], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x5101b4
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x30], 1
call fcn.004cb760
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.004beab0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
xor ax, ax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.004beab0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004beab0
mov ecx, dword [esp + 0x18]
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret