joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5188
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x4f51c7
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x4f529d
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x4f5298
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x4f5217
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x4f5217
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x4f5298
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.004f5551
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x4f526a
mov dword [0x5052d2], 1
mov dword [ebp - 0x10], 0
jmp 0x4f524d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x4f5268
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x4f524a
jmp 0x4f5274
mov dword [0x5052d2], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x4f529d
jmp 0x4f51c4
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x4f52b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f53de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x4f5410
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x4f542b
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x4f540d
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x4f5475
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x4f5475
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x4f5475
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.004f5551
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4f546c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x4f5485
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x4f548a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f57ea
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004f4e8d
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004f4f15
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004f5a19
add esp, 8
cmp eax, 0xffffffff
je 0x4f584f
mov dword [ebp - 0x14], 1
jmp 0x4f5856
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x4f5886
cmp dword [ebp - 8], 0
je 0x4f5886
cmp dword [ebp - 0x14], 0
je 0x4f5886
push 0x505a80
mov eax, dword [ebp - 4]
push eax
call fcn.004f5897
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x4f5a67
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4f5b3c
cmp dword [ebp - 8], 0
jne 0x4f5b3c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.004f5551
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x4f5af4
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x4f5b16
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x4f5af1
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
jmp 0x4f5b4e
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f94e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, pe_nt_image_headers32
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x4f951a
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f9532
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], pe_nt_image_headers32
add eax, 0x646c6f47
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp - 4]
xor al, byte [esi + edi]
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x4f955c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f9579
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
jne 0x4f95a1
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x4f95d5
dec eax
je 0x4f95b5
dec eax
je 0x4f95c7
jmp 0x4f959d
cmp dword [ebp - 0x8c], ecx
jne 0x4f95c1
push 4
jmp 0x4f95d7
jbe 0x4f95c7
push 5
jmp 0x4f95d7
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x4f95da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 8]
mov byte [esi + 2], cl
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.004f9677
mov dword [esi + 8], eax
lea ecx, [eax + 0x646c6f47]
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov dx, word [eax + 2]
xor dx, cx
mov word [esi + 0xc], dx
mov edx, dword [eax + 0x12]
mov edx, dword [edx]
xor edx, ecx
mov dword [esi + 0x110], edx
mov dx, word [eax + 8]
xor dx, cx
mov word [esi + 0xe], dx
mov dl, byte [eax + 0x16]
xor dl, cl
mov byte [esi + 0x114], dl
mov dx, word [eax + 4]
test dx, dx
jbe 0x4f9673
mov edi, dword [eax + 0xe]
push ebx
movzx eax, dx
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 4
cdq
pop esi
idiv esi
mov al, byte [edx + ebp + 8]
xor al, byte [edi + ebx]
inc ebx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0xc]
jne 0x4f965a
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4f96ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
mov eax, dword [eax]
mov dx, word [eax + 6]
test dx, dx
jbe 0x4f9711
push ebx
push esi
mov esi, dword [eax + 0xa]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [eax + 7]
movzx eax, dx
mov dword [ebp + 8], eax
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx]
mov byte [esi + edi], al
inc edi
inc ecx
dec dword [ebp + 8]
jne 0x4f96f6
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f9bb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x4f9bca
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x4f9bdd
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x4010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x55ba50
test al, al
je 0x40114c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x401125
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401186
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x40116b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call fcn.0052b6c7
mov edx, dword [edi]
push edx
call fcn.0052b6c7
mov eax, dword [edi - 0x20]
push eax
call fcn.0052b6c7
mov ecx, dword [edi + 8]
push ecx
call fcn.0052b6c7
add esp, 0x10
add edi, 4
dec ebx
jne 0x40118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x4012d5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x401430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x401320
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec ebp
jne 0x40132a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x402b0b
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x549ec6
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x5c]
mov eax, dword [eax - 8]
test eax, eax
jne 0x402b58
lea ecx, [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402b4c
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x402b51
push str.127.0.0.1
mov ecx, edi
call fcn.00530070
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.EnableDelete
call fcn.0052ff55
push ecx
mov dword [esp + 0x124], 0
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Build
call fcn.0052ff55
mov dword [esp + 0x124], 0xffffffff
call fcn.00402d10
mov ecx, eax
add ecx, 0xc0
call fcn.0040df60
push str.Default
lea ecx, [esi + 0x70]
mov dword [esi + 0x64], eax
call fcn.00530070
mov ecx, esi
call fcn.0052bc4e
mov ecx, dword [esp + 0x110]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x114
ret
Function at 0x4047e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54a306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
mov ecx, dword [ebp + 0xc0]
add ecx, 0x24
call fcn.00401fd0
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc0]
add eax, 2
push eax
add ecx, 0x24
call fcn.00401fd0
push eax
lea eax, [ebp + 0x74]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0053017c
lea esi, [ebp + 0x5c]
push eax
mov ecx, esi
mov dword [esp + 0x124], 0
call fcn.00530020
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], 0xffffffff
call fcn.0052fee7
push 0
mov ecx, esi
call fcn.00530317
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4049b7
push 0
mov ecx, esi
call fcn.00530317
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4049b7
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Version
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4048cd
call eax
lea edx, [esp + 0x18]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4048c3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x461
mov ecx, ebp
call fcn.0052f3b0
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push 0x462
call fcn.0052f3b0
push 0
mov ecx, ebp
call fcn.0052e80a
mov esi, ebx
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404925
test cl, cl
je 0x404921
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404925
add eax, 2
add esi, 2
test cl, cl
jne 0x404901
xor eax, eax
jmp 0x40492a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4049ad
mov eax, dword [0x59a094]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ebx
push 0x596a50
push edx
mov dword [esp + 0x130], 1
call fcn.00528c17
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0x5969f4
push 0
call fcn.00530317
push eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x404999
mov ecx, ebp
call fcn.00404c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0052fee7
jmp 0x404a0d
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0052fee7
mov ecx, dword [ebp + 0x80]
inc ecx
push ecx
jmp 0x4049cd
push 0
push 0
push 0x596a30
call fcn.00536d5d
mov eax, dword [ebp + 0x80]
inc eax
push eax
call fcn.0052b69e
mov byte [eax], 0x46
mov ecx, dword [ebp + 0x80]
mov esi, dword [ebp + 0x7c]
mov edx, ecx
lea edi, [eax + 1]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x80]
mov edx, dword [ebp + 0xc0]
inc ecx
push ecx
mov ecx, dword [ebp + 0xc4]
push eax
push edx
call fcn.0040f130
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x404a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0xc0]
add ecx, 0x24
call fcn.00401fd0
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x68], ecx
mov ecx, esi
mov dword [esi + 0x6c], edx
call fcn.00404b70
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x60]
cmp ecx, eax
jne 0x404a93
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
cmp edx, eax
je 0x404b55
cmp dword [edi + 4], 0xffffffff
je 0x404b55
mov al, byte [esi + 0x70]
test al, al
jne 0x404b55
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
lea ecx, [esi + 0x5c]
call fcn.00530317
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404b5c
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 5
mov ecx, dword [esp + 0x18]
push 0x1ff7
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x404b46
mov ecx, dword [esi + 0xc0]
add eax, 9
push eax
push edi
push ecx
mov ecx, dword [esi + 0xc4]
call fcn.0040f130
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00404c00
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404c70
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x54a320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
lea ebp, [edi + 0x5c]
push ebp
call fcn.0052fc5c
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
mov ecx, ebp
mov dword [esp + 0x3c], 0
call fcn.00530317
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404d3c
mov eax, dword [0x59a094]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp]
lea edx, [esp + 0xc]
push ecx
push 0x596aa4
push edx
mov byte [esp + 0x2c], 1
call fcn.00528c17
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push eax
call fcn.00536d5d
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0052fee7
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], esi
call fcn.0052fee7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push esi
mov dword [edi + 0x60], ebp
mov dword [edi + 0x64], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 9
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
mov ecx, esi
push 9
push esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov byte [ecx + 8], al
mov byte [esi], 4
mov edx, dword [esp + 0x1c]
mov dword [esi + 5], ebp
mov dword [esi + 1], edx
mov eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0xc4]
push eax
call fcn.0040f130
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x405470
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x405486
mov eax, 0x80
jmp 0x405488
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x406bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a677
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0052fc5c
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0052886f
cmp eax, 0xffffffff
lea ecx, [esp + 0xc]
jne 0x406c38
mov esi, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0052fc5c
mov dword [esp + 0x14], edi
jmp 0x406cf5
lea edx, [esp + 0x10]
push eax
push edx
call fcn.005287f7
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0052886f
cmp eax, 0xffffffff
jne 0x406c69
push 0x5acc80
lea ecx, [esp + 0x10]
call fcn.00530070
jmp 0x406cd3
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005287f7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00530020
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0052fee7
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.0052877b
mov eax, dword [eax]
push 0x596b48
push eax
call fcn.00432657
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0052fee7
test bl, bl
je 0x406cd3
push 0x596b48
lea ecx, [esp + 0x10]
call fcn.005302c3
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052fc5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
mov dword [esp + 0x14], edi
call fcn.0052fee7
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0052fee7
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0052fee7
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8