joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b28f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc0]
lea ebx, [esi + 0xc0]
cmp dword [ebp + 0xc], eax
jne 0x46b389
lea edi, [esi + 4]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0xcc]
xor eax, eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0x110c
mov dword [ebx], eax
push dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x20], eax
call ebx
test byte [ebp - 0x20], 0x20
jne 0x46b40a
push dword [esi + 0xcc]
mov ecx, edi
call fcn.0046b8b7
test eax, eax
je 0x46b40a
mov eax, dword [esi + 0xcc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], eax
xor eax, eax
push ecx
push eax
push 0x110d
mov dword [ebp - 0x28], 8
push dword [edi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 4], eax
call ebx
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
push 1
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
lea eax, [eax + 4]
mov dword [ebp + 0xc], eax
call fcn.0047a90b
push dword [esi + 0xcc]
push 2
push 0x1102
push dword [edi]
call ebx
mov eax, dword [ebp + 0xc]
push 0
mov ecx, dword [eax]
call fcn.0047a90b
jmp 0x46b40a
mov eax, dword [esi + 0xc4]
lea edi, [esi + 0xc4]
cmp dword [ebp + 0xc], eax
jne 0x46b3dd
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [edi], 0
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x46b40a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
and ax, 0x8000
push 0
neg ax
sbb eax, eax
neg eax
add eax, 0x8009
push eax
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x46b40a
mov eax, dword [esi + 0xc8]
lea edi, [esi + 0xc8]
cmp dword [ebp + 0xc], eax
jne 0x46b404
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [edi], 0
push 0
push 0x8027
jmp 0x46b3cd
mov eax, dword [ebp + 0x14]
and dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x46b55e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
and dword [ebp - 4], 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ebx, ecx
push 9
push 0x110a
push dword [ebx + 4]
call edi
mov esi, eax
test esi, esi
je 0x46b6a2
mov eax, dword [0x4cfce8]
cmp word [ebp + 0xc], 0x808d
mov dword [ebp - 8], eax
jne 0x46b5d0
push 0x28000
lea ecx, [ebp - 8]
call fcn.0040303d
lea ecx, [ebp - 8]
call fcn.00402c68
mov eax, dword [ebp - 8]
push 0
push esi
mov ecx, ebx
and dword [eax - 8], 0
mov eax, dword [ebp - 8]
and byte [eax], 0
lea eax, [ebp - 8]
push eax
call fcn.0046b6ab
jmp 0x46b668
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], esi
push eax
push 0
push 0x110c
mov dword [ebp - 0x34], 4
push dword [ebx + 4]
call edi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov esi, dword [eax]
test esi, esi
je 0x46b668
test byte [esi + 0x27], 0x40
je 0x46b60c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
jmp 0x46b60e
xor eax, eax
test eax, eax
je 0x46b62d
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.00450029
push eax
call fcn.00402b8d
pop ecx
jmp 0x46b63f
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call dword [eax + 8]
push eax
lea ecx, [ebp - 8]
call fcn.00402dbe
test byte [ebp - 4], 2
je 0x46b65a
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp + 0xc]
call fcn.004010b4
test byte [ebp - 4], 1
je 0x46b668
lea ecx, [ebp - 0xc]
call fcn.004010b4
push dword [ebp - 8]
call fcn.00472d56
neg eax
pop ecx
sbb eax, eax
mov ecx, 0x2716
and eax, 0x4d1
xor edx, edx
add eax, ecx
cmp eax, ecx
sete dl
push edx
push eax
mov eax, dword [ebx + 0x108]
push 0x8002
push dword [eax + 4]
call edi
lea ecx, [ebp - 8]
call fcn.004010b4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x46bfa7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x46bfbd
xor eax, eax
jmp 0x46c0bf
push esi
call fcn.0041429c
cmp eax, 2
pop ecx
jne 0x46bfd1
push 4
pop eax
jmp 0x46c0bf
test eax, eax
je 0x46bfe1
push 0xffffffffffffffff
push esi
call fcn.004142d1
pop ecx
mov esi, eax
pop ecx
mov bl, byte [esi]
cmp bl, 0x5c
mov byte [ebp + 8], bl
je 0x46bfc9
cmp bl, 0x3a
je 0x46bfb6
test bl, bl
je 0x46bfb6
push 0x4d1488
push esi
call dword [sym.imp.MSVCRT.dll__mbsstr]
pop ecx
test eax, eax
pop ecx
jne 0x46bfc9
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x46c04f
mov ecx, dword [eax + 0x77c]
add eax, 0x77c
cmp dword [ecx - 8], 0
je 0x46c04f
cmp bl, 0x61
jl 0x46c03b
add bl, 0xe0
mov byte [ebp + 8], bl
push 0
mov ecx, eax
push dword [ebp + 8]
call fcn.004030cc
test eax, eax
jge 0x46bfc9
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
mov dword [ebp + 8], eax
mov eax, dword [0x4d5468]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
mov esi, dword [ebp - 8]
cmp esi, 4
jne 0x46c0aa
mov edi, dword [edi + 4]
test edi, edi
je 0x46c0bd
cmp bl, 0x61
jl 0x46c096
add bl, 0xe0
lea eax, [ebp + 0xb]
lea ecx, [edi + 0x77c]
push eax
push 1
mov byte [ebp + 0xb], bl
call fcn.00402f96
cmp esi, 2
je 0x46c0bd
cmp esi, 5
je 0x46c0bd
cmp esi, 4
jne 0x46bfb6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x46c10d
lea ecx, [ebp - 0x140]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x46c111
push 0x50
xor eax, eax
pop ecx
lea edi, [ebp - 0x140]
push dword [esi]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 0x140], eax
jne 0x46c118
xor eax, eax
jmp 0x46c139
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x46c12a
push 0x50
lea esi, [ebp - 0x140]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x140]
and al, 0x10
neg al
sbb eax, eax
and al, 0xfe
inc eax
pop edi
pop esi
leave
ret
Function at 0x46c28f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
lea eax, [ebp + 8]
push esi
push eax
call fcn.0046c0c4
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x46c317
push 3
cmp edi, 0xffffffff
pop eax
jne 0x46c2e3
push esi
push str.pipa
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402c35
lea eax, [ebp - 4]
push eax
call fcn.0046c13d
add esp, 0x10
lea ecx, [ebp + 8]
push eax
call fcn.00402dbe
lea ecx, [ebp - 4]
call fcn.004010b4
push 1
pop eax
push esi
push 0x80
push eax
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x46c317
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
cmp edi, 0xffffffff
pop esi
jne 0x46c317
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 8]
call fcn.004010b4
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x46c485
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1031c
call fcn.004c5de0
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x46c63a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x46c63a
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x46c4cb
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x46c63c
push 0xffffffffffffffff
push edi
call fcn.004142d1
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x1031c]
push eax
push 0x80e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x46c63a
lea eax, [ebp - 8]
push edi
push eax
call fcn.0046beb1
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov esi, dword [eax - 8]
test esi, esi
je 0x46c62c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x46c62c
push ebx
lea eax, [ebp - 0x8234]
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + esi - 0x8234]
add edi, esi
mov dword [ebp + 8], eax
mov al, byte [edi]
mov esi, edi
test al, al
je 0x46c550
cmp al, 0x5c
je 0x46c550
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
jmp 0x46c53b
mov bl, byte [esi]
and byte [esi], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x46c5d0
cmp byte [ebp - 0x1c], 0
je 0x46c57a
lea edi, [ebp - 0x1c]
jmp 0x46c596
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xf
jge 0x46c594
lea edi, [ebp - 0x120]
jmp 0x46c596
xor edi, edi
test edi, edi
je 0x46c5c7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test bl, bl
je 0x46c5b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], eax
jmp 0x46c5bd
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 8], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
mov byte [esi], bl
je 0x46c5f3
test bl, bl
je 0x46c5f3
cmp byte [esi + 1], 0
lea edi, [esi + 1]
je 0x46c5f3
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [eax], 0x5c
jmp 0x46c537
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1031c]
push eax
and byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 4], 0
pop ebx
je 0x46c62c
lea eax, [ebp - 0x8234]
sub esi, eax
cmp dword [ebp + 0x10], esi
jbe 0x46c62c
lea eax, [ebp - 0x8234]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x46c62e
xor esi, esi
lea ecx, [ebp - 8]
call fcn.004010b4
mov eax, esi
jmp 0x46c63c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46d900
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, dword [esp + 8]
je 0x46d924
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46d924
and al, 0xf8
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46d94e
mov esi, dword [esi]
push 0
push 0xffffffffffffffff
push esi
call fcn.004142d1
pop ecx
pop ecx
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 1
pop eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x46db14
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d5054]
cmp eax, 0xffffffff
jne 0x46db40
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d5054], eax
test eax, eax
push ebx
je 0x46db5a
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
call eax
mov ebx, eax
jmp 0x46dbab
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
test ebx, ebx
je 0x46dbaf
mov eax, dword [ebp + 8]
push esi
mul dword [ebp - 4]
push edi
mov edi, edx
mov esi, eax
push edi
push esi
push 0
push dword [ebp - 8]
call fcn.004c5e60
push edi
push esi
push 0
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
call fcn.004c5e60
pop edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
pop esi
test ebx, ebx
jne 0x46dbb7
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
pop ebx
test eax, eax
je 0x46dbca
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
leave
ret
Function at 0x46e6ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004c5de0
push ebx
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46e702
push 1
pop eax
jmp 0x46e847
push esi
push ebx
mov dword [ebp - 4], edi
call fcn.0046e4fd
mov esi, eax
or eax, edx
pop ecx
mov dword [ebp - 0x10], edx
je 0x46e786
call fcn.004712c4
test eax, eax
jne 0x46e75c
cmp dword [ebp - 0x10], edi
ja 0x46e72c
cmp esi, 0x10000
jbe 0x46e733
mov eax, 0x10000
jmp 0x46e735
mov eax, esi
lea ecx, [ebp - 8]
push edi
push ecx
push eax
lea eax, [ebp - 0x10020]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46e765
sub esi, dword [ebp - 8]
sbb dword [ebp - 0x10], edi
mov eax, esi
or eax, dword [ebp - 0x10]
je 0x46e76e
jmp 0x46e716
mov dword [ebp - 4], 2
jmp 0x46e786
mov dword [ebp - 4], 1
jmp 0x46e786
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
jne 0x46e843
and byte [ebp - 0x18], 0
push 7
pop esi
call dword [sym.imp.MSVCRT.dll_rand]
push 0x1a
cdq
pop ecx
idiv ecx
mov eax, esi
add dl, 0x41
mov byte [ebp + esi - 0x20], dl
dec esi
test eax, eax
jne 0x46e79d
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00402d0c
push 1
lea eax, [ebp - 0x20]
pop esi
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046bd52
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046bc0b
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.004010b4
lea ecx, [ebp - 8]
call fcn.004010b4
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0046d985
pop ecx
test eax, eax
pop ecx
je 0x46e80d
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00402d0c
lea eax, [ebp + 8]
push edi
push eax
call fcn.0046d900
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp + 8]
inc bl
call fcn.004010b4
test bl, bl
je 0x46e83b
mov dword [ebp - 4], esi
lea ecx, [ebp - 0xc]
call fcn.004010b4
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x470724
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov eax, dword [ebx]
push edi
cmp dword [eax - 8], esi
je 0x470798
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x470798
mov eax, dword [ebx]
lea edx, [ebp + 0xc]
push esi
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47076f
mov dword [ebp + 0xc], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], esi
je 0x470798
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004142d1
pop ecx
pop ecx
push eax
push 1
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 1
pop eax
jmp 0x47079a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4710a5
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x813c
call fcn.004c5de0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x471139
push 0x25
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x4710f0
lea eax, [ebp - 0x813c]
push 0x80e8
push eax
push esi
mov byte [ebp - 0x813c], bl
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4710f0
lea esi, [ebp - 0x813c]
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x10]
pop edi
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], di
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x471139
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x47113b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x471140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4712c0
push esi
call fcn.004710a5
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x4712b8
cmp byte [esi], 0x22
jne 0x47117d
inc esi
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
mov edi, eax
pop ecx
jmp 0x471199
push 0x20
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4711a1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, esi
cmp edi, ebx
je 0x4712c0
cmp edi, esi
je 0x4712c0
mov al, byte [edi]
and byte [edi], 0
test al, al
mov byte [ebp + 0xb], al
je 0x4711bb
cmp byte [edi + 1], 0
jne 0x4711db
push 1
push ebx
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
jne 0x4712b3
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x4712b3
lea eax, [ebp - 8]
push esi
push eax
call fcn.0046c7aa
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp dword [eax - 8], ebx
je 0x4712ab
push ebx
push 0x20
lea ecx, [ebp - 8]
call fcn.004030cc
cmp eax, 0xffffffff
je 0x471248
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push 0x22
push eax
call fcn.0040317b
push eax
lea ecx, [ebp - 8]
call fcn.00402dbe
lea ecx, [ebp - 0xc]
call fcn.004010b4
lea eax, [ebp - 1]
lea ecx, [ebp - 8]
push eax
push 1
mov byte [ebp - 1], 0x22
call fcn.00402f96
cmp byte [ebp + 0xb], 0
je 0x47128e
cmp byte [edi + 1], 0
lea ebx, [edi + 1]
je 0x47128c
mov esi, str.__r_t_n
mov eax, esi
test eax, eax
je 0x471269
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00402f96
test ebx, ebx
jne 0x47127b
xor eax, eax
jmp 0x471282
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
lea ecx, [ebp - 8]
call fcn.00402f96
xor ebx, ebx
push ebx
lea ecx, [ebp - 8]
call fcn.0040303d
push eax
call fcn.004710a5
pop ecx
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004030a4
lea ecx, [ebp - 8]
call fcn.004010b4
mov al, byte [ebp + 0xb]
mov byte [edi], al
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x4712bb
Function at 0x4712fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20020
call fcn.004c5de0
push ebx
push edi
xor edi, edi
mov eax, dword [ebp + 0xc]
push edi
push 0x8000080
push 3
push edi
push 1
mov dword [ebp - 8], edi
pop ebx
mov dword [eax], edi
push ebx
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x471408
mov eax, dword [0x4e9e94]
mov ecx, dword fs:[0x2c]
or dword [ebp + 8], 0xffffffff
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x8c]
cmp eax, edi
je 0x471361
mov dword [ebp + 8], eax
push dword [ebp - 0xc]
call fcn.0046e4fd
mov dword [ebp - 0x20], eax
xor eax, eax
cmp eax, edx
pop ecx
ja 0x471382
jb 0x47137d
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jae 0x471382
mov dword [ebp - 0x14], ebx
jmp 0x471385
mov dword [ebp - 0x14], edi
push esi
mov dword [ebp - 0x10], 0x65
mov dword [ebp - 4], edi
mov esi, 0x20000
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 8]
jbe 0x4713a0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x20020]
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4713e6
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20020]
cmp edx, edi
je 0x4713db
lea ecx, [edx]
movzx edi, byte [eax]
or edi, dword [ebp - 0x10]
add dword [ebp - 4], edi
inc dword [ebp - 0x10]
inc eax
dec ecx
jne 0x4713c9
xor edi, edi
cmp esi, edx
ja 0x4713eb
sub dword [ebp + 8], edx
je 0x4713eb
jmp 0x471398
mov dword [ebp - 8], edi
jmp 0x4713fe
cmp dword [ebp - 0x14], edi
je 0x4713f6
mov eax, dword [ebp - 0x20]
or dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x47140f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20094
call fcn.004c5de0
mov eax, dword [0x4cfce8]
cmp dword [0x4d505c], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 4], eax
jne 0x47148c
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.MD5Init
mov ebx, eax
push edi
push ebx
call esi
test eax, eax
mov dword [0x4d505c], eax
jne 0x47146f
push str.Cryptdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x47146f
push edi
push eax
mov ebx, eax
call esi
mov dword [0x4d505c], eax
push str.MD5Final
push ebx
call esi
push str.MD5Update
push ebx
mov dword [0x4d8820], eax
call esi
mov dword [0x4d881c], eax
mov eax, dword [ebp - 4]
xor edi, edi
cmp dword [0x4d505c], edi
jne 0x4714b7
cmp dword [eax - 0xc], edi
mov esi, dword [ebp + 8]
lea ecx, [eax - 0xc]
jl 0x4714a9
mov dword [esi], eax
push ecx
jmp 0x471577
mov ecx, dword [0x4cfce8]
push eax
mov dword [esi], ecx
jmp 0x471587
push edi
push 0x8000080
push 3
push edi
push 1
pop esi
push esi
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x471566
lea eax, [ebp - 0x94]
push eax
call dword [0x4d505c]
mov dword [ebp - 8], esi
mov esi, 0x20000
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x20094]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x471528
push dword [ebp + 0xc]
lea eax, [ebp - 0x20094]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [0x4d881c]
cmp dword [ebp + 0xc], esi
jb 0x47152b
jmp 0x4714f2
mov dword [ebp - 8], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x471566
lea eax, [ebp - 0x94]
push eax
call dword [0x4d8820]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push 0x10
push eax
call fcn.0046bbbc
and byte [ebp - 0xc], 0
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 4]
push eax
call fcn.00402e2b
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], edi
lea eax, [ecx - 0xc]
jl 0x47157f
mov dword [esi], ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47158e
mov eax, dword [0x4cfce8]
push ecx
mov dword [esi], eax
mov ecx, esi
call fcn.00402e2b
lea ecx, [ebp - 4]
call fcn.004010b4
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret