joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b480
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor esi, esi
push 0
push 0
push 0
mov eax, ebx
sub eax, esi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], eax
lea ecx, [esi + ebp]
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b4c8
add esi, dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, ebx
jge 0x40b4ee
cmp edi, 0xffffffff
jne 0x40b491
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40b4f8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret

Function at 0x40b510
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
cmp edi, 1
mov dword [esp + 8], esi
jge 0x40b52d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push 0
push 0
lea eax, [esi + ebx]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov ecx, edi
sub ecx, esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ecx
push 1
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40b57e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40b590
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b537
add esi, dword [esp + 0x28]
cmp edi, esi
jg 0x40b537
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x40b9d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x433cc1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call fcn.0040c030
mov eax, dword [edi + 4]
cmp eax, ebx
mov ebp, 1
mov dword [esp + 0x40], ebp
jne 0x40ba2d
mov esi, dword [esp + 0x48]
push 0x43653f
mov ecx, esi
call fcn.0040c060
jmp 0x40baeb
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x40bab7
mov eax, dword [esp + 0x14]
add eax, 0x64
push eax
call fcn.0041beca
mov ecx, dword [esp + 0x18]
add ecx, 0x64
push ecx
mov esi, eax
push ebx
push esi
call fcn.0041a540
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
add edx, 0x63
push ebx
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
push esi
je 0x40bac9
call fcn.0041b986
add esp, 4
mov esi, dword [esp + 0x48]
push 0x43653f
mov ecx, esi
call fcn.0040c060
jmp 0x40baeb
lea ecx, [esp + 0x30]
call fcn.0040c3c0
push esi
call fcn.0041b986
mov esi, dword [esp + 0x4c]
add esp, 4
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0040c500
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x40], bl
call fcn.0040c0f0
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8

Function at 0x40bb20
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x40bb30
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40bb30
mov ecx, dword [ecx + 4]
sub eax, edi
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 8
Function at 0x40bb60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x40bb7a
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
push ebx
push ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40bb70
mov eax, dword [esp + 8]
add eax, 0x64
push esi
push eax
call fcn.0041beca
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, eax
mov eax, dword [esp + 0x28]
push esi
push ebx
add ecx, 0x64
push ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x40bc01
call fcn.0041b986
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
call fcn.0041b986
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x40bc20
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 8

Function at 0x40bc50
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x433d01
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 8], 0
call fcn.0040c030
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], eax
call fcn.0040c140
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00419120
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov esi, dword [esp + 0x34]
jne 0x40bce0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040c500
jmp 0x40bcec
push 0x43653f
mov ecx, esi
call fcn.0040c060
lea ecx, [esp + 0x18]
mov dword [esp + 8], 1
mov byte [esp + 0x2c], 0
call fcn.0040c0f0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc

Function at 0x40bd20
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40bd55
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
add eax, 1
pop ecx
ret
Function at 0x40c930
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0041a540
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40c997
or eax, 0xffffffff
add esp, 0x58
ret
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40c990
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 4]
pop esi
add esp, 0x58
ret

Function at 0x40c9e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041a540
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ca43
add esp, 0x54
ret
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x40ca70
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0x63
je 0x40cbd0
sub ecx, 1
je 0x40cb84
sub ecx, 1
jne 0x40cbd0
mov ecx, dword [esp + 4]
cmp ecx, 4
jae 0x40cadd
mov eax, 0x5b
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
jne 0x40cb04
cmp dword [esp + 8], 0
jne 0x40cbd0
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 5
jne 0x40cb67
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40cb29
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 1
jne 0x40cb46
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 2
jne 0x40cbd0
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 6
jne 0x40cbd0
lea eax, [ecx + 3]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x40cbd0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40cbab
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 0xa
jne 0x40cbc8
lea eax, [ecx - 7]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x40cbd0
lea eax, [ecx - 0x56]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x98
ret

Function at 0x40cd80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433d92
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x12c]
xor ebx, ebx
push 0x43653f
mov ecx, esi
mov dword [esp + 0x128], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call fcn.0040c060
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov dword [esp + 0x130], ebx
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], bl
call fcn.0041a540
add esp, 0xc
cmp dword [esp + 0x130], ebx
je 0x40ce32
call fcn.0040cce0
test eax, eax
je 0x40ce32
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.0040cd30
add esp, 8
test eax, eax
je 0x40ce52
lea edx, [esp + 0x14]
push edx
jmp 0x40ce4b
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40ce52
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040c3c0
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x11c
ret
Function at 0x40ce80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433de2
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov esi, dword [esp + 0x124]
push 0x43653f
mov ecx, esi
mov dword [esp + 0x120], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.0040c060
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x128], 0
mov dword [esp + 0x14], 1
call fcn.0041a540
add esp, 0xc
push 0x100
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40cf29
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0040c3c0
mov eax, esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x118
ret

Function at 0x40d1c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433ea9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.0040c030
push 0x103
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.0040c140
push 0x104
mov ecx, esi
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x40d4f0
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x433f18
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0
sub esp, 0xc
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 0
call fcn.0040c500
call fcn.0040d3d0
add esp, 0x10
cmp eax, 1
je 0x40d565
test eax, eax
je 0x40d58a
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0040c0f0
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
push 0x80
lea ecx, [esp + 0x1c]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x18]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x1c]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40d53f
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0040c0f0
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x40d5d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d675
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 8], edi
ja 0x40d66e
add eax, 0xfffe4fcc
cmp eax, 0xe4fcc
ja 0x40d66e
push edi
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x1b034
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d66e
cmp dword [esp + 0xc], 0x1b034
jne 0x40d66e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1b034
push edi
push 0x354e
call fcn.0040d110
push edi
call fcn.0040cf50
add esp, 0x10
pop edi
mov eax, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x40e4b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebp
push esi
push edi
push 0x100
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.004197c1
mov ebp, eax
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 1
jne 0x40e52a
lea eax, [esp + 0x14]
push eax
call fcn.004108c0
mov edx, dword [esi + 8]
mov eax, edx
add esp, 4
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e500
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00410aa0
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.00410b40
add esp, 0x14
jmp 0x40e5de
cmp eax, 2
jne 0x40e65f
mov eax, dword [esi + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e540
sub eax, edx
cmp eax, 1
jb 0x40e668
lea eax, [esp + 0x14]
push eax
call fcn.004108c0
mov ecx, dword [esi + 8]
push 0x4377a4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0041aab2
add esp, 0x10
test eax, eax
jne 0x40e65f
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe8]
push eax
push 0x80000
push 1
push ecx
call fcn.0041e4a8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e5b6
mov edx, dword [esi + 0xe8]
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00410aa0
add esp, 0xc
cmp edi, 0x80000
je 0x40e580
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041a972
lea edx, [esp + 0x18]
push ebp
push edx
mov dword [esp + 0x1c], 0
call fcn.00410b40
add esp, 0xc
xor edi, edi
add esi, 0x20
movzx ecx, byte [edi + ebp]
push 0x10
push 3
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041e1e4
lea eax, [esp + 0x1c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e600
sub eax, edx
cmp eax, 1
jne 0x40e621
mov dl, byte [esp + 0xc]
mov byte [esp + 0xd], dl
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xe], cl
lea eax, [esp + 0xc]
push eax
push 0xc8
push esi
call fcn.0041b848
add edi, 1
add esp, 0xc
cmp edi, 0x20
jl 0x40e5e3
push ebp
call fcn.0041b0d0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x90
ret
push ebp
call fcn.0041b0d0
add esp, 4
mov ecx, dword [esp + 0x98]
pop edi
lea eax, [esi + 0x20]
pop esi
pop ebp
xor ecx, esp
call fcn.0041a1b8
add esp, 0x90
ret
Function at 0x40e690
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4340f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
push 0x100
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.004197c1
add esp, 4
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.00410e70
mov eax, dword [esi + 0x18]
cmp eax, 1
mov dword [esp + 0x80], ebx
jne 0x40e71d
lea ecx, [esp + 0x1c]
call fcn.00410c80
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e702
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00410cc0
jmp 0x40e7b6
cmp eax, 2
jne 0x40e83a
mov eax, dword [esi + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e730
sub eax, edx
cmp eax, 1
lea ecx, [esp + 0x1c]
jb 0x40e847
call fcn.00410c80
mov eax, dword [esi + 8]
push 0x4377a4
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041aab2
add esp, 0xc
test eax, eax
jne 0x40e83a
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xe8]
push edx
push 0x80000
push 1
push eax
call fcn.0041e4a8
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x40e79d
mov ecx, dword [esi + 0xe8]
push edi
push ecx
lea ecx, [esp + 0x24]
call fcn.00410cc0
cmp edi, 0x80000
je 0x40e76b
mov edx, dword [esp + 0x18]
push edx
call fcn.0041a972
add esp, 4
mov dword [esp + 0x18], ebx
push 0x10
push ebp
lea ecx, [esp + 0x24]
call fcn.00410df0
xor edi, edi
add esi, 0x20
mov bl, 0x30
lea esp, [esp]
movzx eax, byte [edi + ebp]
push 0x10
push 3
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0041e1e4
lea eax, [esp + 0x24]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e7f0
sub eax, edx
cmp eax, 1
jne 0x40e810
mov dl, byte [esp + 0x14]
mov byte [esp + 0x15], dl
mov byte [esp + 0x14], bl
mov byte [esp + 0x16], cl
lea eax, [esp + 0x14]
push eax
push 0xc8
push esi
call fcn.0041b848
add edi, 1
add esp, 0xc
cmp edi, 0x10
jl 0x40e7d0
push ebp
call fcn.0041b0d0
add esp, 4
lea ecx, [esp + 0x1c]
jmp 0x40e84a
push ebp
call fcn.0041b0d0
lea ecx, [esp + 0x20]
add esp, 4
add esi, 0x20
mov dword [esp + 0x80], 0xffffffff
call fcn.00410e90
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x70
ret
Function at 0x40e880
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
push esi
push edi
push 0x100
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.004197c1
mov ebp, eax
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 1
jne 0x40e8f1
lea eax, [esp + 0x14]
push eax
call fcn.00410ec0
mov edx, dword [esi + 8]
mov eax, edx
add esp, 4
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e8c7
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00411400
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.004114b0
add esp, 0x14
jmp 0x40e99e
cmp eax, 2
jne 0x40ea19
mov eax, dword [esi + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e900
sub eax, edx
cmp eax, 1
jb 0x40ea22
lea eax, [esp + 0x14]
push eax
call fcn.00410ec0
mov ecx, dword [esi + 8]
push 0x4377a4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0041aab2
add esp, 0x10
test eax, eax
jne 0x40ea19
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe8]
push eax
push 0x80000
push 1
push ecx
call fcn.0041e4a8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e976
mov edx, dword [esi + 0xe8]
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00411400
add esp, 0xc
cmp edi, 0x80000
je 0x40e940
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041a972
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x1c], 0
call fcn.004114b0
add esp, 0xc
xor edi, edi
add esi, 0x20
movzx ecx, byte [edi + ebp]
push 0x10
push 3
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041e1e4
lea eax, [esp + 0x1c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e9c0
sub eax, edx
cmp eax, 1
jne 0x40e9e1
mov dl, byte [esp + 0xc]
mov byte [esp + 0xd], dl
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xe], cl
lea eax, [esp + 0xc]
push eax
push 0xc8
push esi
call fcn.0041b848
add edi, 1
add esp, 0xc
cmp edi, 0x10
jl 0x40e9a3
push ebp
call fcn.0041b0d0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x64
ret
push ebp
call fcn.0041b0d0
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
lea eax, [esi + 0x20]
pop esi
pop ebp
xor ecx, esp
call fcn.0041a1b8
add esp, 0x64
ret