joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4853e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004560f0
xor eax, eax
push ebp
push 0x48550e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x4854e1
xor eax, eax
push ebp
push 0x4854da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00455f08
inc eax
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4854af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x48549e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00455f08
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00456100
mov edx, ebx
pop ecx
call fcn.00454108
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4854a5
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x4e1f68]
mov dl, 1
mov eax, dword [0x443028]
call fcn.0044785c
call fcn.004556cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485515
lea eax, [ebp - 4]
call fcn.00455c50
ret
Function at 0x48551c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4856cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004562f0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4856e4
call fcn.00455f54
mov eax, ebx
call fcn.00440780
mov edi, eax
dec edi
test edi, edi
jl 0x4855d4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00440754
mov edx, dword [0x45c94c]
call fcn.0045508c
test al, al
je 0x4855d0
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00440754
lea edx, [ebp - 0x14]
call fcn.0048b3e4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004562f0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00455fc8
inc esi
dec edi
jne 0x485582
mov al, byte [0x4856e8]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4856f4
mov eax, dword [ebp - 0xc]
call fcn.00448b98
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00455ce8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0048b3e4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4856e4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.0048b3e4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4856e4
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4856e4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x485700
call fcn.00445078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4856d4
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00455c74
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00455c74
lea eax, [ebp - 0x14]
call fcn.00455c50
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00455c74
ret
Function at 0x488f4c
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 [0x4e3064], 0
je 0x48909b
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e1e30]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x48909b
mov eax, dword [0x4e3068]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e3064]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x48906a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4e3064]
call fcn.00437a64
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x489062
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x489062
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x489062
mov eax, dword [ebp - 0x14]
call fcn.00491a74
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x489062
push ebp
call fcn.00488f08
pop ecx
test al, al
jne 0x489062
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x48901e
mov eax, dword [ebp - 0x14]
call fcn.00490608
dec eax
jle 0x489062
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.004550fc
cmp byte [ebp - 1], 0
je 0x489062
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x489062
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e3068]
call fcn.004886d0
inc edi
dec ebx
jne 0x488fb1
mov eax, dword [0x4e3068]
cmp dword [eax + 8], 0
jle 0x489082
mov eax, dword [0x4e3068]
call fcn.00488760
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48909b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00488d70
pop ecx
test al, al
jne 0x48909b
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 0x48c664
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 0x48c6b0
mov eax, esi
call fcn.00479ab8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48c6b0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x48c6b0
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 0x48c7ef
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x48c6f0
cmp eax, 0x108
ja 0x48c6f0
mov eax, esi
call fcn.00479ab8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48c7e6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x48c7ef
jmp 0x48c7e6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x48c7cf
cmp eax, 0x20a
ja 0x48c7cf
test byte [esi + 0x50], 0x80
jne 0x48c722
sub eax, 0x203
je 0x48c71f
sub eax, 3
je 0x48c71f
sub eax, 3
jne 0x48c722
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48c736
dec eax
je 0x48c74b
dec eax
je 0x48c768
dec eax
je 0x48c74b
jmp 0x48c76f
mov ecx, ebx
mov eax, dword [0x4e1e30]
mov eax, dword [eax]
mov edx, esi
call fcn.004834dc
jmp 0x48c7e6
cmp byte [esi + 0x5d], 1
jne 0x48c761
mov eax, esi
mov si, 0xffed
call fcn.004550fc
jmp 0x48c7ef
or word [esi + 0x54], 1
jmp 0x48c7e6
and word [esi + 0x54], 0xfffe
jmp 0x48c7e6
mov eax, dword [0x4e3020]
cmp byte [eax + 0x20], 0
je 0x48c7e6
mov eax, dword [0x4e3020]
cmp dword [eax + 0x1c], 0
je 0x48c7e6
mov eax, dword [ebx]
mov edx, dword [0x4e3020]
cmp eax, dword [edx + 0x1c]
jne 0x48c7e6
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 0x4799fc
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.004550fc
jmp 0x48c7ef
cmp eax, 0xb00b
jne 0x48c7e6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0048af84
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 0x48fca4
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 0x48fcc0
cmp dword [esi + 4], 0
je 0x48fced
test byte [ebx + 0x55], 1
jne 0x48fcdf
mov eax, ebx
call fcn.0048e8fc
test eax, eax
jne 0x48fcdf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x48fdfd
mov edx, esi
mov eax, ebx
call fcn.0048f7c4
jmp 0x48fdfd
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 0x48fdf6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00491a74
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.0048c598
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0048fca4
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.00491a74
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fdfd
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 0x4962dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e1c74]
cmp byte [eax + 0xc], 0
je 0x496449
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496442
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e3074], 0
jne 0x496330
push 0x496450
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x496458
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3074], eax
cmp dword [0x4d6ac0], 0
jne 0x49642b
push 0x496468
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4d6ac0], eax
cmp dword [0x4d6ac0], 0
je 0x49642b
push 0x496474
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3078], eax
push 0x496484
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e307c], eax
push 0x496498
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3080], eax
push 0x4964b0
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3084], eax
push 0x4964c8
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3088], eax
push 0x4964dc
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e308c], eax
push 0x4964f4
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3090], eax
push 0x49650c
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3094], eax
push 0x496528
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e3098], eax
push 0x496534
mov eax, dword [0x4d6ac0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e309c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496449
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x496b3c
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 0x496bae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x496b82
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00455e40
jmp 0x496b89
mov eax, ebx
call fcn.00455c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496bb5
cmp dword [ebp - 8], 0
je 0x496ba5
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 0x496c6c
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 0x496cc4
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 0x496ccb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x496cd4
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 0x496d29
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 0x496d30
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x496e24
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 0x496e99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00496a78
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 0x496e83
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 0x496ea0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x49c7e8
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 0x49c804
call fcn.0049d9d4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x49c820
test bl, 1
je 0x49c820
call fcn.004a1d58
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49ce3c
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 0x49ce58
call fcn.0049d9d4
jmp 0x49cec7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x49ce74
call fcn.0049d9d4
jmp 0x49cec7
cmp dword [0x4e3940], 1
je 0x49cec5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004a1bd8
pop ecx
cmp al, 0x41
jl 0x49cec5
cmp al, 0x5a
jg 0x49cec5
cmp byte [ebp - 0x107], 0x3a
jne 0x49cec5
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 0x49cec5
call fcn.0049d9d4
jmp 0x49cec7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49cecc
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 0x49cefb
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x49cf05
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 0x49cf10
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 0x49cf76
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 0x49cf76
call fcn.0049d9d4
jmp 0x49cfb1
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x49cf86
call fcn.0049d9d4
jmp 0x49cfb1
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x49cfac
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x49cfaa
cmp ebx, 1
je 0x49cfaa
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x49cf97
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d268
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x4d8d34]
jb 0x49d28c
push 6
call fcn.0049d968
pop ecx
jmp 0x49d323
push ebx
call fcn.0049d5b4
pop ecx
mov esi, dword [ebx*4 + 0x4e3640]
push 0x24
push 0
push edi
call fcn.0049b578
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x49d2c0
dec eax
je 0x49d2b8
dec eax
je 0x49d312
jmp 0x49d318
mov word [edi + 4], 0x2000
jmp 0x49d318
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x49d2de
call fcn.0049d9d4
mov esi, eax
jmp 0x49d31a
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x4d8d39], 1
je 0x49d301
xor eax, eax
jmp 0x49d306
mov eax, 1
push eax
push edi
call fcn.004a4068
add esp, 0x18
jmp 0x49d318
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.0049d648
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49d32c
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.00499f94
pop ecx
mov ebx, eax
test eax, eax
jne 0x49d350
xor eax, eax
jmp 0x49d3f9
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 0x49d371
cmp esi, 0x104
jb 0x49d37c
push ebx
call fcn.00499fa4
pop ecx
xor eax, eax
jmp 0x49d3f9
cmp byte [ebx + 1], 0x3a
jne 0x49d3ac
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 0x49d3ac
push ebx
call fcn.00499fa4
pop ecx
xor eax, eax
jmp 0x49d3f9
inc esi
test edi, edi
je 0x49d3ef
cmp esi, dword [ebp + 0x10]
jbe 0x49d3c1
push ebx
call fcn.00499fa4
pop ecx
xor eax, eax
jmp 0x49d3f9
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.00499fa4
pop ecx
mov eax, edi
jmp 0x49d3f9
push esi
push ebx
call fcn.00499fb4
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x49d400
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x49d446
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x49d434
cmp eax, dword [ebp + 0x10]
jle 0x49d4cf
call fcn.004a1d58
mov dword [eax], 8
xor eax, eax
jmp 0x49d53c
cmp dword [0x4e3940], 1
jne 0x49d48b
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x49d4cf
xor eax, eax
jmp 0x49d53c
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x49d4cb
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x49d4cf
xor eax, eax
jmp 0x49d53c
lea edx, [ebp - 0x10c]
push edx
call fcn.0049b658
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x49d4f0
call fcn.004a1d58
mov dword [eax], 0x22
xor eax, eax
jmp 0x49d53c
test edi, edi
jne 0x49d513
mov edx, dword [ebp + 0x10]
push edx
call fcn.00499f94
pop ecx
mov edi, eax
test eax, eax
jne 0x49d513
call fcn.004a1d58
mov dword [eax], 8
xor eax, eax
jmp 0x49d53c
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
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
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1cf0
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 0x4a1d52
call fcn.004a1ca0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049b658
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.0049b658
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