joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e2c4
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 0x48e310
mov eax, esi
call fcn.004771e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48e310
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x48e310
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 0x48e44f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x48e350
cmp eax, 0x108
ja 0x48e350
mov eax, esi
call fcn.004771e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48e446
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x48e44f
jmp 0x48e446
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x48e42f
cmp eax, 0x20a
ja 0x48e42f
test byte [esi + 0x50], 0x80
jne 0x48e382
sub eax, 0x203
je 0x48e37f
sub eax, 3
je 0x48e37f
sub eax, 3
jne 0x48e382
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48e396
dec eax
je 0x48e3ab
dec eax
je 0x48e3c8
dec eax
je 0x48e3ab
jmp 0x48e3cf
mov ecx, ebx
mov eax, dword [0x4cadb8]
mov eax, dword [eax]
mov edx, esi
call fcn.00480c74
jmp 0x48e446
cmp byte [esi + 0x5d], 1
jne 0x48e3c1
mov eax, esi
mov si, 0xffed
call fcn.0044750c
jmp 0x48e44f
or word [esi + 0x54], 1
jmp 0x48e446
and word [esi + 0x54], 0xfffe
jmp 0x48e446
mov eax, dword [0x4cfd64]
cmp byte [eax + 0x20], 0
je 0x48e446
mov eax, dword [0x4cfd64]
cmp dword [eax + 0x1c], 0
je 0x48e446
mov eax, dword [ebx]
mov edx, dword [0x4cfd64]
cmp eax, dword [edx + 0x1c]
jne 0x48e446
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.0047712c
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.0044750c
jmp 0x48e44f
cmp eax, 0xb00b
jne 0x48e446
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0048cbe4
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 0x491904
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 0x491920
cmp dword [esi + 4], 0
je 0x49194d
test byte [ebx + 0x55], 1
jne 0x49193f
mov eax, ebx
call fcn.0049055c
test eax, eax
jne 0x49193f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x491a5d
mov edx, esi
mov eax, ebx
call fcn.00491424
jmp 0x491a5d
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 0x491a56
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004936d4
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.0048e1f8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00491904
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.004936d4
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491a5d
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 0x497f80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4cabdc]
cmp byte [eax + 0xc], 0
je 0x4980ed
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4980e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4cfdb8], 0
jne 0x497fd4
push 0x4980f4
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4980fc
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdb8], eax
cmp dword [0x4c5de0], 0
jne 0x4980cf
push 0x49810c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4c5de0], eax
cmp dword [0x4c5de0], 0
je 0x4980cf
push 0x498118
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdbc], eax
push 0x498128
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdc0], eax
push 0x49813c
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdc4], eax
push 0x498154
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdc8], eax
push 0x49816c
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdcc], eax
push 0x498180
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdd0], eax
push 0x498198
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdd4], eax
push 0x4981b0
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfdd8], eax
push 0x4981cc
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfddc], eax
push 0x4981d8
mov eax, dword [0x4c5de0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4cfde0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4980ed
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x49c710
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 0x49c7e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4cfdf4], 0
jne 0x49c7cc
lea eax, [ebp - 4]
mov edx, 0x49c800
call fcn.00447ef4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0044830c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x49c7cc
mov eax, ebx
call fcn.004463b4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49c7c5
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 0x49c7af
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49c810
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x49c7af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4cfdf4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c7cc
mov eax, dword [ebp - 0xc]
call fcn.004463d4
ret
mov ebx, dword [0x4cfdf4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c7ef
lea eax, [ebp - 4]
call fcn.00447e5c
ret

Function at 0x4aa684
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4cfe18], 0
jne 0x4aa6a7
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4aa5f8
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4cfe18], eax
ret

Function at 0x4ac420
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 0x4ac492
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4ac466
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0044804c
jmp 0x4ac46d
mov eax, ebx
call fcn.00447e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac499
cmp dword [ebp - 8], 0
je 0x4ac489
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 0x4ac4a0
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 0x4ac542
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4ac515
mov edx, ebx
mov eax, dword [0x46b14c]
call fcn.0046f958
test al, al
je 0x4ac505
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.0046f868
call fcn.00447b68
jmp 0x4ac549
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4ac4d0
mov ecx, dword [0x4cafac]
mov dl, 1
mov eax, dword [0x436384]
call fcn.00439f3c
call fcn.00447abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac549
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 0x4ac550
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 0x4ac5a8
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 0x4ac5af
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4ac5b8
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 0x4ac60d
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 0x4ac614
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4ac684
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 0x4ac6f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ac35c
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.0046f92c
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 0x4ac6e3
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 0x4ac700
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4ac708
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 0x4ac77d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ac35c
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 0x4ac767
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 0x4ac784
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4b0e90
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 0x4b0eac
call fcn.004b2518
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4b0ec8
test bl, 1
je 0x4b0ec8
call fcn.004b623c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4b10ac
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.004b20b4
test byte [ebp + 0xd], 0xc0
jne 0x4b10d0
mov eax, dword [0x4c6d70]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4b10dd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4b110a
je 0x4b111c
sub ecx, 0x100
je 0x4b112a
sub ecx, 0x100
je 0x4b1131
sub ecx, 0x100
je 0x4b1123
jmp 0x4b1138
sub ecx, 0x600
je 0x4b1131
sub ecx, 0x100
je 0x4b111c
jmp 0x4b1138
mov edi, 1
jmp 0x4b113d
mov edi, 2
jmp 0x4b113d
mov edi, 4
jmp 0x4b113d
mov edi, 5
jmp 0x4b113d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4b1164
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4c67e8]
test al, 0x80
je 0x4b115d
mov ebx, 0x80
jmp 0x4b1176
mov ebx, 1
jmp 0x4b1176
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b1176
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4b1188
je 0x4b1191
dec eax
je 0x4b119a
jmp 0x4b11a3
mov dword [ebp - 4], closesocket
jmp 0x4b11b2
mov dword [ebp - 4], 0x40000000
jmp 0x4b11b2
mov dword [ebp - 4], 0xc0000000
jmp 0x4b11b2
push 1
call fcn.004b24ac
pop ecx
mov ebx, eax
jmp 0x4b12a2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4b11ce
sub eax, 0x10
je 0x4b11d5
sub eax, 0x10
je 0x4b11de
sub eax, 0x10
je 0x4b11e7
jmp 0x4b11e7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4b11ee
mov dword [ebp - 8], 1
jmp 0x4b11ee
mov dword [ebp - 8], 2
jmp 0x4b11ee
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 fcn.004bdbc0
mov esi, eax
cmp eax, 0xffffffff
jne 0x4b125b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4b1250
test byte [ebp + 0xd], 1
je 0x4b124b
mov ebx, 0x50
jmp 0x4b1250
mov ebx, 2
push ebx
call fcn.004b24ac
pop ecx
mov ebx, eax
jmp 0x4b12a2
mov edi, esi
push edi
call fcn.004b1010
pop ecx
test eax, eax
je 0x4b126f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4b127b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004b21d4
add esp, 8
mov ebx, eax
inc eax
jne 0x4b12a2
push 4
call fcn.004b24ac
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004b20e8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1740
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 0x4b175c
call fcn.004b2518
jmp 0x4b17cb
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4b1778
call fcn.004b2518
jmp 0x4b17cb
cmp dword [0x4d069c], 1
je 0x4b17c9
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004b60bc
pop ecx
cmp al, 0x41
jl 0x4b17c9
cmp al, 0x5a
jg 0x4b17c9
cmp byte [ebp - 0x107], 0x3a
jne 0x4b17c9
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 0x4b17c9
call fcn.004b2518
jmp 0x4b17cb
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4b17d0
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 0x4b17ff
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4b1809
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 0x4b1814
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 0x4b187a
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 0x4b187a
call fcn.004b2518
jmp 0x4b18b5
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4b188a
call fcn.004b2518
jmp 0x4b18b5
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4b18b0
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4b18ae
cmp ebx, 1
je 0x4b18ae
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4b189b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b61d4
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 fcn.004bdbc0
mov ebx, eax
test eax, eax
je 0x4b6236
call fcn.004b6184
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004afd14
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.004afd14
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 0x4b62b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4c7d7c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b638e
cmp dword [0x4c7d78], 0
jne 0x4b638e
cmp dword [0x4c7f84], 0
je 0x4b6348
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.004b6064
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b632e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004b6064
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b632e
lea ebx, [ebp - 0x84]
jmp 0x4b632f
inc ebx
call fcn.004b6270
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b63c9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4c7d80
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004afd14
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4c7d83
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b63c9
cmp dword [0x4c7d78], 0
je 0x4b63a8
cmp dword [0x4c7d78], 0xffffffff
je 0x4b63c9
push esi
call dword [0x4c7d78]
pop ecx
mov eax, dword [0x4c7d7c]
test eax, eax
je 0x4b63c9
cmp dword [0x4c7d7c], 0xffffffff
je 0x4b63c9
cmp byte [eax], 0
je 0x4b63c9
push esi
push eax
call fcn.004b61d4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6bec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4d06b4], 0
jne 0x4b6c6d
cmp dword [0x4d06d4], 0
jne 0x4b6c1c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4d06d4], eax
test eax, eax
jne 0x4b6c1c
push str.GetEnvironmentStrings_failed
call fcn.004b63e0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4d06d4]
jmp 0x4b6c30
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004afd14
pop ecx
mov edi, eax
test eax, eax
jne 0x4b6c28
lea edi, [ebp + 1]
push edi
call fcn.004af5ac
pop ecx
mov ebx, eax
mov dword [0x4d06b8], ebx
test ebx, ebx
jne 0x4b6c5a
xor eax, eax
jmp 0x4b6d30
push edi
mov edx, dword [0x4d06d4]
push edx
push ebx
call fcn.004afb78
add esp, 0xc
jmp 0x4b6c8d
xor esi, esi
mov ebx, dword [0x4d06b4]
jmp 0x4b6c87
push eax
call fcn.004afd14
pop ecx
test eax, eax
jne 0x4b6c83
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b6c77
lea ebx, [esi + 4]
push 4
mov dword [0x4d06bc], ebx
inc ebx
push ebx
call fcn.004af084
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4b6cb0
xor eax, eax
jmp 0x4b6d30
cmp dword [0x4d06b4], 0
jne 0x4b6ce1
xor esi, esi
mov ebx, dword [0x4d06b8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4b6cd2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004afd14
pop ecx
mov edi, eax
test eax, eax
jne 0x4b6cc8
jmp 0x4b6d12
xor esi, esi
mov ebx, dword [0x4d06b4]
mov eax, dword [esp]
mov edi, eax
jmp 0x4b6d0c
push eax
call fcn.004afd14
pop ecx
test eax, eax
je 0x4b6d01
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4b6d05
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b6cf0
mov eax, dword [0x4d06b4]
test eax, eax
je 0x4b6d22
push eax
call fcn.004af5bc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4d06b4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b782c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4b7852
test esi, esi
je 0x4b7852
call fcn.004b623c
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4b78c4
call fcn.004b7540
mov ebx, eax
test eax, eax
jne 0x4b786d
call fcn.004b623c
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4b78c4
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x4b7788
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4b78b8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4b78b1
push 0x59
call fcn.004b24ac
pop ecx
jmp 0x4b78c4
call fcn.004b2518
jmp 0x4b78c4
mov dword [ebx + 8], eax
test edi, edi
je 0x4b78c4
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret