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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x49a2e8], 0
je 0x45f6bb
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x499458]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x45f6bb
mov eax, dword [0x49a2ec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x49a2e8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45f68a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x49a2e8]
call fcn.0040fd9c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45f682
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x45f682
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45f682
mov eax, dword [ebp - 0x14]
call fcn.004680bc
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x45f682
push ebp
call fcn.0045f528
pop ecx
test al, al
jne 0x45f682
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x45f63e
mov eax, dword [ebp - 0x14]
call fcn.00466c50
dec eax
jle 0x45f682
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0042c770
cmp byte [ebp - 1], 0
je 0x45f682
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x45f682
mov edx, dword [ebp - 0x14]
mov eax, dword [0x49a2ec]
call fcn.0045ecf0
inc edi
dec ebx
jne 0x45f5d1
mov eax, dword [0x49a2ec]
cmp dword [eax + 8], 0
jle 0x45f6a2
mov eax, dword [0x49a2ec]
call fcn.0045ed80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45f6bb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045f390
pop ecx
test al, al
jne 0x45f6bb
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462cac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x462cf8
mov eax, esi
call fcn.0044e9e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x462cf8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x462cf8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x462e37
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x462d38
cmp eax, 0x108
ja 0x462d38
mov eax, esi
call fcn.0044e9e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x462e2e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x462e37
jmp 0x462e2e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x462e17
cmp eax, 0x20a
ja 0x462e17
test byte [esi + 0x50], 0x80
jne 0x462d6a
sub eax, 0x203
je 0x462d67
sub eax, 3
je 0x462d67
sub eax, 3
jne 0x462d6a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x462d7e
dec eax
je 0x462d93
dec eax
je 0x462db0
dec eax
je 0x462d93
jmp 0x462db7
mov ecx, ebx
mov eax, dword [0x499458]
mov eax, dword [eax]
mov edx, esi
call fcn.00458468
jmp 0x462e2e
cmp byte [esi + 0x5d], 1
jne 0x462da9
mov eax, esi
mov si, 0xffed
call fcn.0042c770
jmp 0x462e37
or word [esi + 0x54], 1
jmp 0x462e2e
and word [esi + 0x54], 0xfffe
jmp 0x462e2e
mov eax, dword [0x49a2a4]
cmp byte [eax + 0x20], 0
je 0x462e2e
mov eax, dword [0x49a2a4]
cmp dword [eax + 0x1c], 0
je 0x462e2e
mov eax, dword [ebx]
mov edx, dword [0x49a2a4]
cmp eax, dword [edx + 0x1c]
jne 0x462e2e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044e928
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0042c770
jmp 0x462e37
cmp eax, 0xb00b
jne 0x462e2e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004615cc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4662ec
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x466308
cmp dword [esi + 4], 0
je 0x466335
test byte [ebx + 0x55], 1
jne 0x466327
mov eax, ebx
call fcn.00464f44
test eax, eax
jne 0x466327
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x466445
mov edx, esi
mov eax, ebx
call fcn.00465e0c
jmp 0x466445
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46643e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004680bc
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00462be0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004662ec
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004680bc
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466445
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c968
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x499298]
cmp byte [eax + 0xc], 0
je 0x46cad5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cace
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49a2f8], 0
jne 0x46c9bc
push 0x46cadc
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x46cae4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a2f8], eax
cmp dword [0x495398], 0
jne 0x46cab7
push 0x46caf4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x495398], eax
cmp dword [0x495398], 0
je 0x46cab7
push 0x46cb00
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a2fc], eax
push 0x46cb10
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a300], eax
push 0x46cb24
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a304], eax
push 0x46cb3c
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a308], eax
push 0x46cb54
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a30c], eax
push 0x46cb68
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a310], eax
push 0x46cb80
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a314], eax
push 0x46cb98
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a318], eax
push 0x46cbb4
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a31c], eax
push 0x46cbc0
mov eax, dword [0x495398]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49a320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cad5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x470874
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47094c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49a334], 0
jne 0x470930
lea eax, [ebp - 4]
mov edx, 0x470964
call fcn.0042d158
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042d570
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x470930
mov eax, ebx
call fcn.0042b4e4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x470929
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x470913
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x470974
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x470913
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49a334], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470930
mov eax, dword [ebp - 0xc]
call fcn.0042b504
ret
mov ebx, dword [0x49a334]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470953
lea eax, [ebp - 4]
call fcn.0042d0c0
ret

Function at 0x47ca50
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x49a358], 0
jne 0x47ca73
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x47c9c4
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x49a358], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x480aa8
call fcn.00482140
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x480ac4
test bl, 1
je 0x480ac4
call fcn.00486c48
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x480ca8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00481cdc
test byte [ebp + 0xd], 0xc0
jne 0x480ccc
mov eax, dword [0x4962f0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x480cd9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x480d06
je 0x480d18
sub ecx, 0x100
je 0x480d26
sub ecx, 0x100
je 0x480d2d
sub ecx, 0x100
je 0x480d1f
jmp 0x480d34
sub ecx, 0x600
je 0x480d2d
sub ecx, 0x100
je 0x480d18
jmp 0x480d34
mov edi, 1
jmp 0x480d39
mov edi, 2
jmp 0x480d39
mov edi, 4
jmp 0x480d39
mov edi, 5
jmp 0x480d39
mov edi, 3
test byte [ebp + 0xd], 1
je 0x480d60
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x495d68]
test al, 0x80
je 0x480d59
mov ebx, 0x80
jmp 0x480d72
mov ebx, 1
jmp 0x480d72
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x480d72
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x480d84
je 0x480d8d
dec eax
je 0x480d96
jmp 0x480d9f
mov dword [ebp - 4], SysStringLen
jmp 0x480dae
mov dword [ebp - 4], 0x40000000
jmp 0x480dae
mov dword [ebp - 4], 0xc0000000
jmp 0x480dae
push 1
call fcn.004820d4
pop ecx
mov ebx, eax
jmp 0x480e9e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x480dca
sub eax, 0x10
je 0x480dd1
sub eax, 0x10
je 0x480dda
sub eax, 0x10
je 0x480de3
jmp 0x480de3
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x480dea
mov dword [ebp - 8], 1
jmp 0x480dea
mov dword [ebp - 8], 2
jmp 0x480dea
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x480e57
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x480e4c
test byte [ebp + 0xd], 1
je 0x480e47
mov ebx, 0x50
jmp 0x480e4c
mov ebx, 2
push ebx
call fcn.004820d4
pop ecx
mov ebx, eax
jmp 0x480e9e
mov edi, esi
push edi
call fcn.00480c0c
pop ecx
test eax, eax
je 0x480e6b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x480e77
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00481dfc
add esp, 8
mov ebx, eax
inc eax
jne 0x480e9e
push 4
call fcn.004820d4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00481d10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4813dc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x140
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.0047f61c
add esp, 0xc
cmp edi, 0xfffffffe
jne 0x481431
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebx + 0x14]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x481424
test esi, esi
jne 0x481456
call fcn.00482120
or eax, 0xffffffff
jmp 0x4815cc
lea edx, [ebp - 0x148]
push edx
push edi
call sub.KERNEL32.DLL_FindNextFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x481449
test esi, esi
jne 0x481456
call fcn.00482120
or eax, 0xffffffff
jmp 0x4815cc
mov edx, dword [ebp - 0x148]
mov dword [ebx], edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx eax, word [ebp - 0x14c]
push eax
movzx edx, word [ebp - 0x14e]
push edx
movzx ecx, word [ebp - 0x150]
push ecx
movzx eax, word [ebp - 0x152]
dec eax
push eax
movzx edx, word [ebp - 0x156]
dec edx
push edx
movzx ecx, word [ebp - 0x158]
add ecx, 0xfffff894
push ecx
call fcn.004882b0
add esp, 0x1c
mov dword [ebx + 4], eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x13c]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [ebp - 0x158]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx edx, word [ebp - 0x14c]
push edx
movzx ecx, word [ebp - 0x14e]
push ecx
movzx eax, word [ebp - 0x150]
push eax
movzx edx, word [ebp - 0x152]
dec edx
push edx
movzx ecx, word [ebp - 0x156]
dec ecx
push ecx
movzx eax, word [ebp - 0x158]
add eax, 0xfffff894
push eax
call fcn.004882b0
add esp, 0x1c
mov dword [ebx + 8], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x134]
push ecx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx ecx, word [ebp - 0x14c]
push ecx
movzx eax, word [ebp - 0x14e]
push eax
movzx edx, word [ebp - 0x150]
push edx
movzx ecx, word [ebp - 0x152]
dec ecx
push ecx
movzx eax, word [ebp - 0x156]
dec eax
push eax
movzx edx, word [ebp - 0x158]
add edx, 0xfffff894
push edx
call fcn.004882b0
mov dword [ebx + 0xc], eax
add esp, 0x1c
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [ebx + 0x10], ecx
push esi
push edi
add ebx, 0x14
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp edi, 0xfffffffe
jne 0x4815ca
mov eax, esi
jmp 0x4815cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481c08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0047efe0
pop ecx
mov ebx, eax
test eax, eax
jne 0x481c2c
xor eax, eax
jmp 0x481cd5
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x481c4d
cmp esi, 0x104
jb 0x481c58
push ebx
call fcn.0047eff0
pop ecx
xor eax, eax
jmp 0x481cd5
cmp byte [ebx + 1], 0x3a
jne 0x481c88
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x481c88
push ebx
call fcn.0047eff0
pop ecx
xor eax, eax
jmp 0x481cd5
inc esi
test edi, edi
je 0x481ccb
cmp esi, dword [ebp + 0x10]
jbe 0x481c9d
push ebx
call fcn.0047eff0
pop ecx
xor eax, eax
jmp 0x481cd5
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0047eff0
pop ecx
mov eax, edi
jmp 0x481cd5
push esi
push ebx
call fcn.0047f000
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x48257c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x24
push 0
push ebx
call fcn.0047f61c
add esp, 0xc
mov word [ebx + 6], 1
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x482689
push 0x49690c
push edi
call fcn.00486a04
add esp, 8
test eax, eax
je 0x48262b
push 0
push edi
push 0
call fcn.00481c08
add esp, 0xc
mov esi, eax
test eax, eax
je 0x48262b
push esi
call fcn.0047f6fc
pop ecx
cmp eax, 3
jne 0x48262b
push esi
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x482602
call fcn.00482140
jmp 0x48277a
mov word [ebx + 4], 0x4000
movsx edx, byte [esi]
push edx
call fcn.00486ac8
add ax, 0xffc0
pop ecx
mov word [ebx + 0x10], ax
mov word [ebx], ax
push esi
call fcn.0047eff0
pop ecx
xor eax, eax
jmp 0x48277a
test esi, esi
je 0x482636
push esi
call fcn.0047eff0
pop ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x48265d
call fcn.00482140
jmp 0x48277a
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetFileType
cmp eax, 3
jne 0x482671
mov cx, 0x1000
jmp 0x482675
mov cx, 0x2000
mov word [ebx + 4], cx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x48277a
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x130]
push ecx
push eax
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x140]
push edx
push ecx
mov eax, dword [ebp - 0x144]
push eax
push ebx
call fcn.0048867c
add esp, 0x18
test byte [ebx + 5], 0x40
jne 0x482722
push 0x2e
push edi
call fcn.00486a70
add esp, 8
mov esi, eax
test eax, eax
je 0x482722
push str..bat
push esi
call fcn.00486854
add esp, 8
test eax, eax
je 0x48271d
push str..cmd
push esi
call fcn.00486854
add esp, 8
test eax, eax
je 0x48271d
push str..com
push esi
call fcn.00486854
add esp, 8
test eax, eax
je 0x48271d
push str..exe
push esi
call fcn.00486854
add esp, 8
test eax, eax
jne 0x482722
or word [ebx + 4], 0x40
cmp byte [edi + 1], 0x3a
jne 0x48272c
mov al, byte [edi]
jmp 0x48274b
lea edx, [ebp - 0x248]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x482745
mov al, 0x41
jmp 0x48274b
mov al, byte [ebp - 0x248]
cmp al, 0x61
jl 0x48275f
cmp al, 0x7a
jg 0x48275f
movsx edx, al
add dx, 0xff9f
mov word [ebx], dx
jmp 0x482771
cmp al, 0x41
jl 0x482771
cmp al, 0x5a
jg 0x482771
movsx ecx, al
add cx, 0xffbf
mov word [ebx], cx
mov ax, word [ebx]
mov word [ebx + 0x10], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x486c42
call fcn.00486b90
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047f6fc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047f6fc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x486cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x497320], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x486d9a
cmp dword [0x49731c], 0
jne 0x486d9a
cmp dword [0x497500], 0
je 0x486d54
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00486a70
add esp, 8
mov ebx, eax
test eax, eax
jne 0x486d3a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00486a70
add esp, 8
mov ebx, eax
test eax, eax
jne 0x486d3a
lea ebx, [ebp - 0x84]
jmp 0x486d3b
inc ebx
call fcn.00486c7c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x486dd5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x497324
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047f6fc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x497327
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x486dd5
cmp dword [0x49731c], 0
je 0x486db4
cmp dword [0x49731c], 0xffffffff
je 0x486dd5
push esi
call dword [0x49731c]
pop ecx
mov eax, dword [0x497320]
test eax, eax
je 0x486dd5
cmp dword [0x497320], 0xffffffff
je 0x486dd5
cmp byte [eax], 0
je 0x486dd5
push esi
push eax
call fcn.00486be0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret