joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ee80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000ee8f
pop dword [ebp - 0x4c]
mov eax, 0xf4024fa4
sub eax, 0xe4016115
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x8e6eab4e
sub dword [ebp - 0x5c], 0x401c6603
mov dword [ebp - 0x58], 0x81b91c90
add dword [ebp - 0x58], 0xb07a2fb5
mov dword [ebp - 0x54], 0x31a99a0c
add dword [ebp - 0x54], 0x1aa2aa22
mov dword [ebp - 0x50], 0xceaa3ad6
add dword [ebp - 0x50], 0x3155c52a
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x5f0e1a1
sub dword [ebp - 0x5c], 0x917e784b
mov dword [ebp - 0x58], 0x68ba2b46
add dword [ebp - 0x58], 0xd8b2362f
mov dword [ebp - 0x54], 0x3f639ea6
sub dword [ebp - 0x54], 0xdbf4323a
mov dword [ebp - 0x50], 0x362f7bd4
add dword [ebp - 0x50], 0xc9d0842c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x54cd3
push 0
call eax
mov ecx, 0x4ae6
mov edi, eax
mov edx, 0xf146e7b6
add edx, 0x1ec29e4a
add edx, dword [ebp - 0x4c]
mov esi, 0xd025eedb
xor dword [ebp - 0x40], 0x72e9defb
mov ebx, dword [edx]
add dword [ebp - 0x38], ebx
add ebx, esi
xor dword [ebp - 0x38], 0xd1c92276
mov dword [edi], ebx
add dword [ebp - 0x48], 0xbe38caf
add edi, 0x5b927dc2
sub edi, 0x5b927dbe
add edx, 0x108394e5
add edx, 0xef7c6b1f
loop 0x1000ef9b
add eax, 0x11e6b
xor ebx, ebx
add ebx, eax
add eax, 0x3e4874f1
add eax, 0xc1b78b14
mov ecx, 0x80af1bf0
add ecx, 0x8f50e410
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x10010020
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
cwde
test eax, eax
je 0x10010052
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x10010049
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033360
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033590
mov eax, 0x30
pop esi
pop ebp
ret
Function at 0x10035360
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1008ab18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
mov ebx, eax
test ebx, ebx
je 0x100354cc
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x100353ac
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x100353a8
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x100353ac
mov edi, eax
jmp 0x10035390
push 0x100
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100354c4
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x100354c4
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
jne 0x100354c4
test edi, edi
je 0x100354c4
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test esi, esi
mov dword [ebp - 0x188], eax
pop esi
je 0x100354c4
cmp eax, edi
je 0x100354c4
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10035471
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push dword [ebp - 0x188]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret
Function at 0x100354f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x1003551b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x10035544
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003555a
lea eax, [ebp - 0xc]
push eax
push 0x100355e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x100355a1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008baa8]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008ba20]
cmp eax, dword [ecx + 4]
jg 0x100355a8
jmp 0x1003557e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x1008ba1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1008ba20
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
add esp, 4
cmp dword [0x1008ba20], 0xffffffff
jne 0x1003557b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x1008ba20
mov dword [0x1008ba1c], eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
add esp, 4
jmp 0x1003557b
Function at 0x10035720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061183
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100357b8
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x1008b8f8]
test eax, eax
jne 0x100357cc
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x52], edi
mov dword [eax + 0x56], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035860
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003586f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret

Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x16605694
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x14ec33f7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x660d7610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [ebx]
mov dword [eax], 0
lea eax, [ebp - 0x28]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, edi
add eax, ebx
setne dl
test edi, edi
sete al
and dl, al
jne 0x660d777d
mov dword [ebp - 0x34], ebx
mov esi, edx
cmp ebx, 0xf
ja 0x660d7740
cmp ebx, 1
jne 0x660d7718
movzx eax, byte [edi]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [eax + ebx], 0
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 1]
lea ebx, [edx + 1]
test al, al
jne 0x660d7693
jmp 0x660d76c3
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x660d76c0
cmp al, 0x2f
jne 0x660d7688
mov byte [ebx], 0
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
je 0x660d7728
mov byte [ebx], 0x2f
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
jne 0x660d7693
nop
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], edx
call edi
sub esp, 8
mov esi, 1
test eax, eax
jne 0x660d76ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov esi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmp eax, ecx
je 0x660d7708
mov ecx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [ecx + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x28]
test ebx, ebx
je 0x660d7667
jmp 0x660d7762
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x660d76b1
jmp 0x660d76ec
lea eax, [ebp - 0x34]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.661b02e0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
sub esp, 8
mov dword [ebp - 0x28], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
jmp 0x660d7667
mov dword [esp], 0x661e0554
call fcn.661d32b0
mov ebx, eax
jmp 0x661d094a
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x661d0966
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
mov dword [esp], ebx
call fcn.66116c90
mov edx, dword [ebp - 0x48]
cmp edx, esi
je 0x661d0987
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
mov dword [esp], ebx
call fcn.66116c90
mov edx, dword [ebp - 0x30]
cmp edx, edi
je 0x661d09a8
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
Function at 0x660e5650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
sub esp, 4
cmp eax, 0xffffffff
je 0x660e5675
shr eax, 4
xor eax, 1
mov edx, eax
and edx, 1
mov eax, edx
add esp, 0x1c
ret

Function at 0x660e5ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
lea edi, [ecx + 8]
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [ecx], edi
mov ebp, dword [esp + 0x50]
mov edx, dword [ebp]
mov esi, dword [ebp + 4]
mov eax, edx
add eax, esi
je 0x660e5ad6
test edx, edx
je 0x660e5c05
mov dword [esp + 0x2c], esi
cmp esi, 0xf
ja 0x660e5bc0
cmp esi, 1
jne 0x660e5bb0
movzx eax, byte [edx]
mov byte [ebx + 8], al
mov eax, edi
mov dword [ebx + 4], esi
mov byte [eax + esi], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [esp], 0
call dword [0x662380c0]
mov dword [ebx + 0x18], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0x662381a0
mov dword [esp], eax
call dword [0x662380bc]
mov dword [esp + 4], 0x661e0fe2
mov eax, dword [ebp]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x660e5b9c
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, edi
test esi, esi
je 0x660e5af4
jmp 0x660e5bea
lea eax, [esp + 0x2c]
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call fcn.661b02e0
sub esp, 8
mov dword [ebx], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx]
jmp 0x660e5af4
mov dword [esp], 0x661e0fa0
call fcn.661d32b0
mov esi, eax
jmp 0x661d1b1c

Function at 0x660e5d30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx]
mov dword [esp + 4], 0x661e0fe5
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x660e5d76
add ebx, 0x2c
mov dword [esp + 0xc], eax
mov esi, eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x660f1f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
bswap eax
mov ebx, dword [ecx + eax + 8]
bswap ebx
cmp eax, 0xfffffffc
je 0x660f1f70
lea esi, [ecx + eax + 8]
lea edx, [ecx + 4]
mov eax, 0xffffffff
lea esi, [esi]
movzx ecx, byte [edx]
add edx, 1
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x661e22c0]
cmp edx, esi
jne 0x660f1f48
not eax
cmp ebx, eax
pop ebx
pop esi
setne al
movzx eax, al
ret
xor eax, eax
cmp ebx, eax
pop ebx
pop esi
setne al
movzx eax, al
ret

Function at 0x660f2140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ecx, 0x4d
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov ebp, dword [eax]
lea eax, [ebx + 0xc]
cmp ebp, eax
lea edi, [ebp + eax]
cmovae eax, ebp
cmp edi, eax
jb 0x660f229f
mov eax, dword [esp + 0x30]
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x660f22dd
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov dword [ecx], edi
sub edi, ebx
mov ecx, ebx
lea edi, [eax + edi - 0xc]
bswap ecx
mov dword [edi], ecx
movzx ecx, byte [edx]
mov byte [edi + 4], cl
movzx ecx, byte [edx + 1]
mov byte [edi + 5], cl
movzx ecx, byte [edx + 2]
mov byte [edi + 6], cl
movzx edx, byte [edx + 3]
mov byte [edi + 7], dl
test ebx, ebx
je 0x660f2241
lea eax, [eax + ebp + 8]
lea ecx, [esi + 1]
mov edx, eax
sub edx, ecx
cmp edx, 2
lea edx, [ebx - 1]
seta cl
cmp edx, 3
seta dl
test cl, dl
je 0x660f22c0
mov edx, esi
or edx, eax
and edx, 3
jne 0x660f22c0
mov ebp, ebx
mov edx, esi
and ebp, 0xfffffffc
add ebp, eax
lea esi, [esi]
nop
mov ecx, dword [edx]
add eax, 4
add edx, 4
mov dword [eax - 4], ecx
cmp ebp, eax
jne 0x660f2200
mov edx, ebx
and edx, 0xfffffffc
test bl, 3
je 0x660f2241
movzx eax, byte [esi + edx]
mov byte [edi + edx + 8], al
lea eax, [edx + 1]
cmp ebx, eax
je 0x660f2241
movzx eax, byte [esi + edx + 1]
mov byte [edi + edx + 9], al
lea eax, [edx + 2]
cmp ebx, eax
je 0x660f2241
movzx eax, byte [esi + edx + 2]
mov byte [edi + edx + 0xa], al
mov eax, dword [edi]
mov ecx, eax
bswap ecx
cmp eax, 0xfcffffff
je 0x660f22b0
lea edx, [edi + 4]
lea esi, [edi + ecx + 8]
mov eax, 0xffffffff
lea esi, [esi]
movzx ebx, byte [edx]
add edx, 1
xor ebx, eax
shr eax, 8
movzx ebx, bl
xor eax, dword [ebx*4 + 0x661e22c0]
cmp esi, edx
jne 0x660f2260
not eax
mov esi, eax
mov edx, eax
movzx ebx, ah
mov ebp, eax
shr esi, 0x18
shr edx, 0x10
lea ecx, [edi + ecx + 8]
mov eax, esi
mov byte [ecx], al
mov eax, ebp
mov byte [ecx + 1], dl
mov byte [ecx + 2], bl
mov byte [ecx + 3], al
xor ecx, ecx
add esp, 0x1c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
xor ebx, ebx
xor edx, edx
xor esi, esi
jmp 0x660f228a
lea edx, [edi + 8]
add ebx, esi
lea esi, [esi]
movzx eax, byte [esi]
add esi, 1
add edx, 1
mov byte [edx - 1], al
cmp ebx, esi
jne 0x660f22c8
jmp 0x660f2241
mov ecx, 0x53
jmp 0x660f229f
Function at 0x660f7d70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], 0x661e10fc
mov dword [esp], edi
call sub.msvcrt.dll_fopen
test eax, eax
je 0x660f7e85
mov dword [esp + 8], 2
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
test eax, eax
jne 0x660f7e80
call sub.msvcrt.dll_ftell
mov dword [esp], ebx
mov esi, eax
cmp eax, 0x7fffffff
je 0x660f7e80
call sub.msvcrt.dll_fclose
test esi, esi
js 0x660f7e85
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x660f7e97
mov dword [esp], edi
mov dword [esp + 4], 0x661e10fc
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x660f7e90
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp], edi
mov edi, 0x4e
mov ebp, eax
call sub.msvcrt.dll_fclose
cmp ebp, esi
jne 0x660f7e67
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.660f7720
mov edi, eax
mov dword [esp], ebx
call fcn.661273a8
add esp, 0x2c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_fclose
xor ebx, ebx
mov edi, 0x4e
jmp 0x660f7e67
mov edi, 0x4e
jmp 0x660f7e67
test esi, esi
je 0x660f7dec
mov edi, 0x53
jmp 0x660f7e67
Function at 0x660fce30
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp + 4], 0x661e10fc
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x660fcf25
mov dword [esp + 8], 2
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
test eax, eax
jne 0x660fcf38
call sub.msvcrt.dll_ftell
mov dword [esp], ebx
mov ebp, eax
cmp eax, 0x7fffffff
je 0x660fcf38
call sub.msvcrt.dll_fclose
test ebp, ebp
js 0x660fcf25
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, edx
sub ecx, eax
cmp ebp, ecx
ja 0x660fced0
jae 0x660fcee1
add eax, ebp
cmp edx, eax
je 0x660fcee1
mov dword [esi + 4], eax
test ebp, ebp
jne 0x660fcee5
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
sub eax, ecx
mov ecx, esi
mov dword [esp], eax
call fcn.661ac8a0
sub esp, 4
test ebp, ebp
je 0x660fcebc
mov esi, dword [esi]
mov dword [esp + 4], 0x661e10fc
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x660fcf25
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fread
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_fclose
cmp ebp, esi
je 0x660fcebc
add esp, 0x1c
mov eax, 0x4e
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_fclose
add esp, 0x1c
mov eax, 0x4e
pop ebx
pop esi
pop edi
pop ebp
ret