joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4daa40
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x54dbb4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x4daabb
test edx, edx
mov esi, dword [0xa6a8c8]
jne 0x4daa95
mov ecx, dword [ebx + 0xc]
mov eax, ebx
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov edx, esi
test ecx, ecx
jne 0x4daa85
call fcn.004da3b0
cmp eax, 7
je 0x4daa8c
nop
lea esi, [esi]
call sub.msvcrt.dll_abort
call fcn.004da6a0
jmp 0x4daa76
mov eax, esi
nop
call fcn.004da550
mov esi, dword [0xa6a8c4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x4daa5e
call fcn.004da490
mov edx, dword [0x54dbb4]
jmp 0x4daa54

Function at 0x4daad0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4dab02
mov dword [esp], ebx
call fcn.004da890
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x54dbb4]
test edx, edx
js 0x4dab70
test edx, edx
mov esi, dword [0xa6a8c8]
jne 0x4dab40
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], esi
call fcn.004da6a0
cmp eax, 7
je 0x4dab30
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004da550
lea esi, [esi]
mov esi, dword [0xa6a8c4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4dab16
call fcn.004da490
mov edx, dword [0x54dbb4]
jmp 0x4dab0c

Function at 0x4db0c0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x4db100
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4db125
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x447abc
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x447af7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x447ade
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x447aef
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x447af9
inc edi
add eax, 0x28
shr byte [eax], 0x3b
invalid
jb 0x447ad4
xor eax, eax
pop edi
pop esi
ret

Function at 0x447d16
Capabilities:
Contain obfuscated stackstrings

Disassembly:
enter 0x45c6, 0xffffffffffffffb9
cmpsd dword [esi], dword es:[edi]
call fcn.00447a7c
xchg esp, eax
call 0x45d2304b
test al, 0x50
call fcn.00447a8c
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00447a41
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x447d6a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00447a7c
mov al, 0x21
retf 0x8d0e
Function at 0x447e2b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.00447a41
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00447a8c
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00447a41
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00447a8c
push eax
push esi
push dword [ebp + 8]
call fcn.00447a41
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00447a7c
insb byte es:[edi], dx
xlatb
xlatb
jecxz 0x447e87
popfd
jl 0x447f01
invalid
invalid

Function at 0x448ed9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aas
adc byte [eax - 0x72b5b], al
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00447a7c
invalid
Function at 0x473468
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, ebx
mov edx, 2
call fcn.00404cd0
push 0
mov eax, ebx
call fcn.00404b9c
push eax
lea eax, [esp + 8]
push eax
push 0
movzx edi, si
push edi
call sub.user32.dll_MapVirtualKeyA
push eax
push edi
call sub.user32.dll_ToAscii
sub eax, 1
jb 0x4734b4
je 0x4734bd
dec eax
je 0x4734d2
jmp 0x4734cb
mov eax, ebx
call fcn.00404684
jmp 0x4734d2
mov eax, ebx
mov edx, 1
call fcn.00404cd0
jmp 0x4734d2
mov eax, ebx
call fcn.00404684
add esp, 0x100
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d3d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408a8b
mov dword [ebp - 0x14], eax
cmp dword [0x812f64], esi
jne 0x40d4cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x812f64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x812f68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x812f6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812f74], eax
test eax, eax
je 0x40d4c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812f70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d505
push 4
pop eax
jmp 0x40d5ad
cmp dword [ebp - 0x14], esi
je 0x40d505
push dword [0x812f64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ea
mov eax, dword [0x812f70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d563
cmp dword [0x812f74], edi
je 0x40d563
push eax
call ebx
push dword [0x812f74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d563
test eax, eax
je 0x40d563
call ecx
test eax, eax
je 0x40d558
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d558
test byte [ebp - 8], 1
jne 0x40d563
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d593
mov eax, dword [0x812f68]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
call eax
mov esi, eax
test esi, esi
je 0x40d590
mov eax, dword [0x812f6c]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x812f64]
call ebx
test eax, eax
je 0x40d5ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f8b
mov esp, ebp
pop ebp
ret
Function at 0x401e20
Capabilities:
Check if file exists
Create directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e460
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x401e5b
mov eax, dword [esi]
jmp 0x401e5d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401e89
cmp dword [esi + 0x14], 8
jb 0x401e73
mov eax, dword [esi]
jmp 0x401e75
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e89
xor al, al
jmp 0x401f6e
push 0x473538
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004012d0
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ec9
xor bl, bl
jmp 0x401f57
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test byte [ebp - 0x2a8], 0x10
jne 0x401f40
push 0x473540
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004012d0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401270
mov eax, dword [ebp - 0x44]
add esp, 0x18
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x401f19
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004044c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401f40
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004044c0
lea eax, [ebp - 0x2a8]
push eax
push edi
call ebx
test eax, eax
jne 0x401ed0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x401f6c
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004044c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439740
mov esp, ebp
pop ebp
ret
Function at 0x4025c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 9
xor eax, eax
mov dword [ebp - 0x14], 7
push str.BASHelper
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404290
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00401230
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 8
jb 0x40263d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004044c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402668
mov bl, 1
jmp 0x40266a
xor bl, bl
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x40267f
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004044c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439740
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x4074ac
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4074bf
test al, 0x10
jne 0x4074bf
mov al, 1
ret
xor al, al
ret

Function at 0x4086d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ee82
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x40879f
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00406970
cmp dword [eax + 0x14], 8
jb 0x40873b
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x408764
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004044c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x40879f
cmp byte [ebp - 0x2c], 0
je 0x40879f
push eax
call sub.libcef.dll_cef_string_utf16_clear
push 0xc
push dword [ebp - 0x30]
call fcn.004394ca
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
test eax, eax
je 0x4087ba
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
test eax, eax
je 0x4087d5
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 6
test eax, eax
je 0x4087f3
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439740
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a8b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [ecx + 0x14], 8
jb 0x40a8b9
mov ecx, dword [ecx]
push ebx
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a8de
xor al, al
pop ebx
pop ecx
ret 4
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov byte [esp + 0xf], 1
cmp dword [edi + 0x10], esi
jbe 0x40a951
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call ebp
cmp eax, 0xffffffff
je 0x40a94b
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
sub eax, esi
mov dword [esp + 0x20], 0
push eax
mov ecx, edi
call fcn.0040ca10
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a94b
add esi, dword [esp + 0x18]
cmp esi, dword [edi + 0x10]
jb 0x40a8f7
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov byte [esp + 0x13], 0
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40ae00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40ae08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ae1b
test al, 0x10
jne 0x40ae1b
mov al, 1
ret
xor al, al
ret
Function at 0x40b170
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f418
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
jb 0x40b1b0
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
je 0x40b1e7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b1fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
jmp 0x40b2af
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x40b223
mov dword [ebp - 0x18], ebx
mov byte [ebp + ebx - 0x28], bl
jmp 0x40b22e
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.004073f0
xor esi, esi
test ebx, ebx
je 0x40b275
mov edi, dword [ebp - 0x30]
nop word [eax + eax]
mov ecx, ebx
mov dword [ebp - 0x2c], 0
sub ecx, esi
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push edx
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b272
add esi, dword [ebp - 0x2c]
cmp esi, ebx
jb 0x40b240
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.00403480
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40b2af
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439740
mov esp, ebp
pop ebp
ret 4