joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0240
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5fa92b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5ffc34]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0045e0a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.00460380
mov ecx, dword [eax]
push 0x638498
push ecx
call fcn.00445d7b
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0045ddc0
test edi, edi
je 0x5b02c0
push 0x638498
mov ecx, esi
call fcn.0045ea00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x5b0420
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5fa96b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5ffc34]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0045e0a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.00460380
mov ecx, dword [eax]
push 0x638498
push ecx
call fcn.00445d7b
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0045ddc0
test edi, edi
je 0x5b04a0
push 0x638498
mov ecx, esi
call fcn.0045ea00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x5b1fd2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, pe_nt_image_headers32
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push SysReAllocStringLen
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x5b2062
cmp eax, ebx
je 0x5b2062
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5b206a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5b2215
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x5b2367
xor edx, edx
cmp eax, edx
je 0x5b2367
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x5b224a
cmp eax, ecx
jb 0x5b224a
xor ecx, ecx
jmp 0x5b224f
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x5b2269
jg 0x5b2367
cmp eax, dword [esi + 8]
ja 0x5b2367
cmp ecx, edx
jne 0x5b2283
cmp eax, dword [esi + 0x42c]
ja 0x5b2283
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x5b22c8
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x5b22a3
cmp edi, edx
jb 0x5b22a3
xor edx, edx
jmp 0x5b22a8
mov edx, 1
cmp ecx, ebx
ja 0x5b22c8
cmp dword [esp + 0x14], edx
jg 0x5b22c8
jl 0x5b22b8
cmp eax, edi
ja 0x5b22c8
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.005b2380
test eax, eax
je 0x5b2367
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x5b2316
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push SysReAllocString
push ecx
call edi
cmp eax, 0xffffffff
je 0x5b2357
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x5b2357
jmp 0x5b2326
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5b2357
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b2357
cmp dword [edi], ebp
jne 0x5b2357
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x5b27b0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fabb8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x5b27e2
call fcn.0048f750
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x5b27f3
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x5b2848
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x5b282e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x5b2974
cmp dword [esp + 0x18], ebx
jne 0x5b2848
cmp dword [esp + 0x14], ebx
je 0x5b2974
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x5b2859
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.005d599c
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x5b289f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x5b289f
call fcn.0047aea0
test eax, eax
je 0x5b289f
push str.Global_
lea ecx, [esp + 0x14]
call fcn.005d5db0
push ebx
lea ecx, [esp + 0x14]
call fcn.005d603f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x5b294e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x5b28db
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x5b294e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x5b2929
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x5b292c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x5b2924
mov dword [esi + 0x10], ebx
jmp 0x5b292c
mov dword [esi + 0x10], ecx
jmp 0x5b292c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.005d5c27
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005d5c27
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5b27ca
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fabb8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x5b27e2
call fcn.0048f750
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x5b27f3
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x5b2848
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x5b282e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x5b2974
cmp dword [esp + 0x18], ebx
jne 0x5b2848
cmp dword [esp + 0x14], ebx
je 0x5b2974
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x5b2859
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.005d599c
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x5b289f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x5b289f
call fcn.0047aea0
test eax, eax
je 0x5b289f
push str.Global_
lea ecx, [esp + 0x14]
call fcn.005d5db0
push ebx
lea ecx, [esp + 0x14]
call fcn.005d603f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x5b294e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x5b28db
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x5b294e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x5b2929
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x5b292c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x5b2924
mov dword [esi + 0x10], ebx
jmp 0x5b292c
mov dword [esi + 0x10], ecx
jmp 0x5b292c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.005d5c27
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005d5c27
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5b61e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x5b62c6
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x5b6253
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x5b62aa
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x5b6266
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x5b6296
mov ebx, 0x3d
jmp 0x5b62a4
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x5b61fa
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x5d71f6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5d7226
push edi
call ebx
push eax
call fcn.005d766c
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x5d7250
test byte [ebp - 4], 1
je 0x5d7250
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5d7250
push edi
call ebx
push eax
call fcn.005d766c
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x5d72f6
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.005d7143
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x5d7282
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.005d7143
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x5d7298
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.005d7143
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5d72c2
push 0
call ebx
push eax
call fcn.005d766c
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x5d72e0
push eax
call ebx
push eax
call fcn.005d766c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5d72f4
push eax
call ebx
push eax
call fcn.005d766c
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x5d731d
test byte [ebp - 4], 1
jne 0x5d731d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5d731d
push edi
call ebx
push eax
call fcn.005d766c
pop edi
pop ebx
leave
ret 8

Function at 0x5d90a9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d90e1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005d60ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d60a6
jmp 0x5d90ed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x406c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a87c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.00406fb0
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.00406b50
cmp eax, dword [esi + 0xc]
jne 0x406cc1
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x406c8c
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
mov byte [esp + 0x24], 2
push edx
push 1
push eax
call fcn.004070d0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
test eax, eax
je 0x406ceb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406ceb
mov esi, dword [eax + 4]
mov ecx, dword [esp + 8]
cmp esi, ecx
je 0x406cef
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406ce1
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
test esi, esi
je 0x406cef
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
je 0x406d03
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 1
test ecx, ecx
mov byte [esp + 0x24], 0
je 0x406d1a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x40d6e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4bf080]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
call fcn.00433640
mov ecx, dword [0x4bf080]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x18], edx
mov eax, dword [0x4bf080]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x4bf080]
mov dword [esi + 0x20], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 0x80000002
mov eax, dword [0x4bf080]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x4bf080]
mov al, byte [esp + 0xb]
mov dword [esi + 0x30], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x34], edx
mov byte [esi + 0x38], al
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov ecx, dword [0x4bf080]
mov dword [esi + 0x48], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x4c], edx
mov eax, dword [0x4bf080]
mov dword [esi + 0x50], eax
mov ecx, dword [0x4bf080]
mov dword [esi + 0x54], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x58], edx
mov eax, dword [0x4bf080]
mov dword [esi + 0x5c], eax
mov ecx, dword [0x4bf080]
mov al, byte [esp + 0xb]
mov dword [esi + 0x60], ecx
mov edx, dword [0x4bf080]
mov dword [esi + 0x64], edx
mov byte [esi + 0x68], al
mov eax, 0x14
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], 0x3e8
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 1
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov ecx, dword [0x4bf080]
or eax, 0xffffffff
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0xb4
mov edx, dword [0x4bf080]
mov eax, 0x6400000
mov dword [esi + 0xb8], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc4], edi
mov dword [esi + 0xcc], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40e0a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov ecx, dword [0x4bf080]
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov edx, dword [0x4bf080]
mov dword [esp + 0x18], esi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], 0xb4
mov ecx, dword [0x4bf080]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], esi
mov edx, dword [0x4bf080]
mov dword [ebx + 0x50], edx
mov eax, dword [0x4bf080]
mov dword [ebx + 0x54], eax
mov cl, byte [esp + 0x20]
mov dword [ebx + 0x70], esi
mov byte [ebx + 0x6c], cl
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], esi
mov edx, dword [0x4bf080]
mov dword [ebx + 0x7c], edx
mov eax, 0x4ce72c
mov byte [esp + 0x18], 7
test eax, eax
mov dword [ebx], 0x4ae8bc
jne 0x40e14e
xor ebp, ebp
jmp 0x40e15b
push 0x4ce72c
call dword [0x4ae208]
mov ebp, eax
mov eax, dword [ebx + 0x34]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x40e16e
cmp ebp, dword [eax - 4]
jle 0x40e1d1
mov edx, dword [0x4bf084]
add eax, 0xfffffff4
cmp eax, edx
je 0x40e19e
push ecx
call dword [0x4ae20c]
test eax, eax
jg 0x40e195
mov ecx, dword [ebx + 0x34]
sub ecx, 0xc
push ecx
call fcn.0049b190
add esp, 4
mov edx, dword [0x4bf080]
mov dword [ebx + 0x34], edx
cmp ebp, esi
jne 0x40e1a9
mov eax, dword [0x4bf080]
jmp 0x40e1ce
lea ecx, [ebp + ebp + 0xe]
push ecx
call fcn.0049fec0
add esp, 4
cmp eax, esi
je 0x40e206
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], si
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0x34], eax
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x40e1f9
mov ecx, eax
push edi
mov edi, dword [ebx + 0x34]
mov edx, ecx
mov esi, 0x4ce72c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
mov ecx, dword [ebx + 0x34]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0x34]
mov word [edx + eax], si
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
pop esi
mov dword [ebx + 0x58], 1
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x414430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.00414130
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x3c]
mov ecx, dword [esi + 0x64]
mov edi, dword [ebp + 8]
push ecx
mov dword [esi + 0x5c], eax
call dword [esi + 0x30]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov edx, dword [esi + 0x88]
mov dword [edi + 8], edx
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x64]
push ecx
call dword [esi + 0x40]
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, eax
mov eax, dword [edi + 0x14]
sbb eax, edx
xor ebx, ebx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], ebx
call dword [0x4ae1e8]
mov edx, dword [esi + 0x70]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
jl 0x4144df
mov eax, 0x10624dd3
imul ecx
mov eax, edx
sar eax, 6
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
cdq
push edx
mov edx, dword [edi + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push edx
push eax
call fcn.004a0170
mov dword [esi + 0x58], eax
cmp dword [esi + 0x6c], 1
jne 0x4144ea
mov dword [edi + 0x40], ebx
jmp 0x4144f0
mov ecx, dword [esi + 0x5c]
mov dword [edi + 0x40], ecx
mov dl, byte [esi + 0x6c]
mov byte [edi + 0x45], dl
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x41454f
call dword [0x4ae1e8]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
sub eax, edx
cmp eax, ecx
jbe 0x41454f
cmp dword [esi + 0x6c], 6
jne 0x41454f
mov eax, 3
mov dword [ebp - 4], ebx
mov dword [esi + 0x6c], eax
mov byte [edi + 0x45], al
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x18]
mov ecx, dword [esi + 0x64]
add esp, 4
push ecx
call dword [esi + 0x1c]
mov edx, dword [esi + 0x64]
add esp, 4
push edx
call dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x64], ebx
jmp 0x41456a
mov esi, dword [esi + 0x6c]
cmp esi, 5
jl 0x41456a
cmp esi, 8
jle 0x414567
cmp esi, 9
jne 0x41456a
mov byte [edi + 0x45], 4
jmp 0x41456a
mov byte [edi + 0x45], bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4