joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4996ac
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 [0x4e9a70], 0
je 0x4997fb
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e8964]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4997fb
mov eax, dword [0x4e9a74]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e9a70]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4997ca
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4e9a70]
call fcn.004395e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4997c2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4997c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4997c2
mov eax, dword [ebp - 0x14]
call fcn.004a227c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4997c2
push ebp
call fcn.00499668
pop ecx
test al, al
jne 0x4997c2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x49977e
mov eax, dword [ebp - 0x14]
call fcn.004a0dd8
dec eax
jle 0x4997c2
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.0045785c
cmp byte [ebp - 1], 0
je 0x4997c2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4997c2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e9a74]
call fcn.00498e30
inc edi
dec ebx
jne 0x499711
mov eax, dword [0x4e9a74]
cmp dword [eax + 8], 0
jle 0x4997e2
mov eax, dword [0x4e9a74]
call fcn.00498ec0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4997fb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004994d0
pop ecx
test al, al
jne 0x4997fb
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 0x49cdec
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 0x49ce38
mov eax, esi
call fcn.00488518
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49ce38
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x49ce38
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 0x49cf77
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x49ce78
cmp eax, 0x108
ja 0x49ce78
mov eax, esi
call fcn.00488518
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49cf6e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x49cf77
jmp 0x49cf6e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x49cf57
cmp eax, 0x20a
ja 0x49cf57
test byte [esi + 0x50], 0x80
jne 0x49ceaa
sub eax, 0x203
je 0x49cea7
sub eax, 3
je 0x49cea7
sub eax, 3
jne 0x49ceaa
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x49cebe
dec eax
je 0x49ced3
dec eax
je 0x49cef0
dec eax
je 0x49ced3
jmp 0x49cef7
mov ecx, ebx
mov eax, dword [0x4e8964]
mov eax, dword [eax]
mov edx, esi
call fcn.00491fb4
jmp 0x49cf6e
cmp byte [esi + 0x5d], 1
jne 0x49cee9
mov eax, esi
mov si, 0xffed
call fcn.0045785c
jmp 0x49cf77
or word [esi + 0x54], 1
jmp 0x49cf6e
and word [esi + 0x54], 0xfffe
jmp 0x49cf6e
mov eax, dword [0x4e9a2c]
cmp byte [eax + 0x20], 0
je 0x49cf6e
mov eax, dword [0x4e9a2c]
cmp dword [eax + 0x1c], 0
je 0x49cf6e
mov eax, dword [ebx]
mov edx, dword [0x4e9a2c]
cmp eax, dword [edx + 0x1c]
jne 0x49cf6e
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.0048845c
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.0045785c
jmp 0x49cf77
cmp eax, 0xb00b
jne 0x49cf6e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0049b70c
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 0x4a0474
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 0x4a0490
cmp dword [esi + 4], 0
je 0x4a04bd
test byte [ebx + 0x55], 1
jne 0x4a04af
mov eax, ebx
call fcn.0049f0cc
test eax, eax
jne 0x4a04af
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4a05cd
mov edx, esi
mov eax, ebx
call fcn.0049ff94
jmp 0x4a05cd
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 0x4a05c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004a227c
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.0049cd20
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004a0474
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.004a227c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a05cd
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 0x4a6b28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e8770]
cmp byte [eax + 0xc], 0
je 0x4a6c95
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6c8e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e9a80], 0
jne 0x4a6b7c
push 0x4a6c9c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4a6ca4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a80], eax
cmp dword [0x4e4010], 0
jne 0x4a6c77
push 0x4a6cb4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4e4010], eax
cmp dword [0x4e4010], 0
je 0x4a6c77
push 0x4a6cc0
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a84], eax
push 0x4a6cd0
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a88], eax
push 0x4a6ce4
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a8c], eax
push 0x4a6cfc
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a90], eax
push 0x4a6d14
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a94], eax
push 0x4a6d28
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a98], eax
push 0x4a6d40
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9a9c], eax
push 0x4a6d58
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9aa0], eax
push 0x4a6d74
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9aa4], eax
push 0x4a6d80
mov eax, dword [0x4e4010]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e9aa8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6c95
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4aaa34
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 0x4aab0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e9abc], 0
jne 0x4aaaf0
lea eax, [ebp - 4]
mov edx, 0x4aab24
call fcn.00458448
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00458860
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4aaaf0
mov eax, ebx
call fcn.00456570
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4aaae9
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 0x4aaad3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4aab34
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4aaad3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e9abc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aaaf0
mov eax, dword [ebp - 0xc]
call fcn.00456590
ret
mov ebx, dword [0x4e9abc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aab13
lea eax, [ebp - 4]
call fcn.004583b0
ret

Function at 0x4b6c10
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4e9ae0], 0
jne 0x4b6c33
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4b6b84
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4e9ae0], eax
ret

Function at 0x4b89ac
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b8a1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4b89f2
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004585a0
jmp 0x4b89f9
mov eax, ebx
call fcn.004583b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8a25
cmp dword [ebp - 8], 0
je 0x4b8a15
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4b8a2c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4b8ace
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4b8aa1
mov edx, ebx
mov eax, dword [0x47be0c]
call fcn.004806bc
test al, al
je 0x4b8a91
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004805cc
call fcn.00457ed8
jmp 0x4b8ad5
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4b8a5c
mov ecx, dword [0x4e8b34]
mov dl, 1
mov eax, dword [0x4454d0]
call fcn.00449e8c
call fcn.00457e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8ad5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b8adc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4b8b34
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8b3b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4b8b44
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4b8b99
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8ba0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4b8c10
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4b8c85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b88e8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00480690
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4b8c6f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8c8c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4b8c94
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4b8d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b88e8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4b8cf3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8d10
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4bd694
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4bd6b0
call fcn.004bddb8
jmp 0x4bd71f
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4bd6cc
call fcn.004bddb8
jmp 0x4bd71f
cmp dword [0x4ea360], 1
je 0x4bd71d
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004c1444
pop ecx
cmp al, 0x41
jl 0x4bd71d
cmp al, 0x5a
jg 0x4bd71d
cmp byte [ebp - 0x107], 0x3a
jne 0x4bd71d
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4bd71d
call fcn.004bddb8
jmp 0x4bd71f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4bd724
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4bd753
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4bd75d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x4bd768
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4bd7ce
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4bd7ce
call fcn.004bddb8
jmp 0x4bd809
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4bd7de
call fcn.004bddb8
jmp 0x4bd809
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4bd804
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4bd802
cmp ebx, 1
je 0x4bd802
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4bd7ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c155c
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 0x4c15be
call fcn.004c150c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004bc214
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.004bc214
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 0x4c163c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4e5fb0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c1716
cmp dword [0x4e5fac], 0
jne 0x4c1716
cmp dword [0x4e61b8], 0
je 0x4c16d0
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.004c13ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c16b6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c13ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c16b6
lea ebx, [ebp - 0x84]
jmp 0x4c16b7
inc ebx
call fcn.004c15f8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4c1751
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e5fb4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004bc214
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e5fb7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c1751
cmp dword [0x4e5fac], 0
je 0x4c1730
cmp dword [0x4e5fac], 0xffffffff
je 0x4c1751
push esi
call dword [0x4e5fac]
pop ecx
mov eax, dword [0x4e5fb0]
test eax, eax
je 0x4c1751
cmp dword [0x4e5fb0], 0xffffffff
je 0x4c1751
cmp byte [eax], 0
je 0x4c1751
push esi
push eax
call fcn.004c155c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1f74
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4ea378], 0
jne 0x4c1ff5
cmp dword [0x4ea398], 0
jne 0x4c1fa4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4ea398], eax
test eax, eax
jne 0x4c1fa4
push str.GetEnvironmentStrings_failed
call fcn.004c1768
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4ea398]
jmp 0x4c1fb8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004bc214
pop ecx
mov edi, eax
test eax, eax
jne 0x4c1fb0
lea edi, [ebp + 1]
push edi
call fcn.004bbb18
pop ecx
mov ebx, eax
mov dword [0x4ea37c], ebx
test ebx, ebx
jne 0x4c1fe2
xor eax, eax
jmp 0x4c20b8
push edi
mov edx, dword [0x4ea398]
push edx
push ebx
call fcn.004bc0c4
add esp, 0xc
jmp 0x4c2015
xor esi, esi
mov ebx, dword [0x4ea378]
jmp 0x4c200f
push eax
call fcn.004bc214
pop ecx
test eax, eax
jne 0x4c200b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c1fff
lea ebx, [esi + 4]
push 4
mov dword [0x4ea380], ebx
inc ebx
push ebx
call fcn.004bb5f0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4c2038
xor eax, eax
jmp 0x4c20b8
cmp dword [0x4ea378], 0
jne 0x4c2069
xor esi, esi
mov ebx, dword [0x4ea37c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4c205a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004bc214
pop ecx
mov edi, eax
test eax, eax
jne 0x4c2050
jmp 0x4c209a
xor esi, esi
mov ebx, dword [0x4ea378]
mov eax, dword [esp]
mov edi, eax
jmp 0x4c2094
push eax
call fcn.004bc214
pop ecx
test eax, eax
je 0x4c2089
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4c208d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c2078
mov eax, dword [0x4ea378]
test eax, eax
je 0x4c20aa
push eax
call fcn.004bbb28
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4ea378], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c7bd8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4c7c06
mov eax, ebx
call fcn.004c8690
cmp dword [ebx + 0x3c], 0
je 0x4c7bff
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4c7c77
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4c7c69
cmp dword [ebx + 8], 0
je 0x4c7c28
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4c7c3a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c7c69
cmp dword [ebx + 8], 0
je 0x4c7c1b
cmp eax, 3
je 0x4c7c4d
dec eax
jne 0x4c7c1b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c7c1b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4c7c1b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4c7c95
cmp dword [ebx + 0x10], 0xcc
je 0x4c7c95
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c7ca0
pop ebx
ret