joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5970
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1522f1c], 0
jne 0x4b598e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1522f18], eax
mov dword [0x1522f1c], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x1522f18]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0x1522f1c], 0
jne 0x4b59d0
call fcn.004b5970
push dword [0x1522f18]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x4b59f3
call fcn.004b5970
push dword [0x1522f18]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
nop dword [eax + eax]
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x4b5a00
xor esi, esi
mov dword [edi], ebx
mov dword [edi + 4], 0xa
mov ebx, 0xa
lea ebp, [esi + 0x1f]
nop dword [eax + eax]
mov ecx, dword [edi + esi*4 + 8]
mov eax, dword [edi + esi*4 + 0x4c]
mov edx, dword [edi + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edi + ebx*4 + 0x4c]
ror ecx, 5
add ecx, edx
mov dword [edi + esi*4 + 8], eax
mov dword [edi + esi*4 + 0x4c], ecx
mov eax, 0x10
add esi, 0xffffffff
cmovs esi, eax
add ebx, 0xffffffff
mov dword [edi], esi
cmovs ebx, eax
mov dword [edi + 4], ebx
sub ebp, 1
jne 0x4b5a40
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b5a80
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, edi
cmp dword [esp + 0x10], edi
cmovbe ebx, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x1522f1c], 0
jne 0x4b5aa5
call fcn.004b5970
push ebp
push esi
push dword [0x1522f18]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x4b5aca
call fcn.004b5970
push dword [0x1522f18]
call esi
mov ebp, eax
mov esi, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + esi*4 + 0x4c]
mov ecx, dword [ebp + edx*4 + 8]
ror eax, 0xd
add eax, dword [ebp + edx*4 + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + esi*4 + 8]
mov ebx, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [ebp + esi*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + esi*4 + 0x4c], eax
sub esi, 1
mov eax, 0x10
cmovs esi, eax
sub edx, 1
mov dword [ebp], esi
cmovs edx, eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
pop esi
pop ebp
add edi, 1
je 0x4b5b28
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x4b84d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1524534]
call fcn.004d428b
mov ebx, eax
test ebx, ebx
je 0x4b8538
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b84fd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b8538
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004d4cf0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00460ce3
pop ecx
sub edi, eax
push edi
call fcn.004d4d80
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b8fde
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x15247a8]
call fcn.004d404a
xor ebx, ebx
mov esi, eax
cmp dword [0x152336c], ebx
jne 0x4b90b0
xor ebp, ebp
inc ebp
mov dword [0x152336c], ebp
call fcn.004be064
mov edi, 0xa8
push edi
push ebx
push 0x15232c0
call fcn.0046bb30
add esp, 0xc
mov dword [0x15232c0], 0x13
lea eax, [esp + 0x10]
mov dword [0x15232c4], edi
mov dword [0x15232d0], 0x4b8f29
mov dword [0x15232d4], 0x4b924e
push eax
mov dword [0x1523328], 0x4b8f01
mov dword [0x152332c], 0x4b9193
mov dword [0x15232cc], 0x4b8edc
mov dword [0x1523350], 0x4b8f46
mov dword [0x1523370], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b90b0
cmp dword [esp + 0x20], ebp
je 0x4b90aa
cmp dword [esp + 0x20], 2
jne 0x4b90b0
cmp dword [esp + 0x14], 5
jb 0x4b90aa
jne 0x4b90b0
cmp dword [esp + 0x18], ebx
jne 0x4b90b0
mov dword [0x1523370], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004c3b1f
mov eax, dword [esp + 0x140]
push ebx
push dword [0x14a90f4]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4b9184
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x1524534]
call fcn.004d42c9
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x4b9155
push esi
call fcn.004ceea3
test eax, eax
je 0x4b9155
push 0
push 0
push esi
call fcn.004cea2f
jmp 0x4b9157
xor eax, eax
push 0x4b8c33
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x15232c0
push edi
push ebx
push ebp
mov dword [0x1523368], eax
call fcn.004bd60f
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4baf5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4bafce
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebp
and ecx, dword [esp + 0x14]
push esi
push edi
push dword [ebx]
cmp ecx, 0xffffffff
cmove ebp, eax
call fcn.004ba6cd
push ebp
push dword [ebx]
mov edi, eax
call fcn.004ba6a6
add esp, 0xc
mov esi, eax
push 0
push ebp
push 0x130c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebx]
call fcn.004bafee
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4bc2fa
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4bc389
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x4bc389
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x14a90f0]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x4bcec6
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x15247a8]
call fcn.004d404a
xor ebx, ebx
mov ebp, eax
cmp dword [0x1523928], ebx
jne 0x4bcf5a
mov esi, 0xa8
push esi
push ebx
push 0x1523880
call fcn.0046bb30
add esp, 0xc
mov dword [0x1523884], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1523880], 0xa
mov dword [0x1523888], 0x4bca54
push 0x7f89
push ebx
mov dword [0x15238f8], 0x4bd748
mov dword [0x15238fc], 0x4bd722
mov dword [0x152388c], 0x4bca73
mov dword [0x1523910], 0x4bca93
call esi
mov dword [0x1523928], eax
test eax, eax
jne 0x4bcf5a
push 0x7f00
push ebx
call esi
mov dword [0x1523928], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004c3b1f
push ebx
push dword [0x14a90f4]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4bd026
push edi
push dword [esp + 0x14]
push dword [0x1524534]
call fcn.004d42c9
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1523880
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.004bd60f
push 0x4bcb79
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x4be84b
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4be9b4
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4be997
sub eax, 1
jne 0x4be9b4
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004be804
pop ecx
test eax, eax
je 0x4be8c2
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x4be8f8
inc edi
jmp 0x4be8f8
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4be9b4
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x4be993
sub ecx, 1
je 0x4be98f
sub ecx, 1
je 0x4be971
sub ecx, 1
je 0x4be935
sub ecx, 4
jne 0x4be9b4
test eax, eax
jne 0x4be9b4
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4be9b4
sub eax, 0
je 0x4be964
sub eax, 1
je 0x4be957
sub eax, 1
je 0x4be950
sub eax, 1
jne 0x4be9b4
push 0x69
pop esi
push 0x64
jmp 0x4be969
push 0x5a
pop esi
push 0x5f
jmp 0x4be95c
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x4be9b4
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x4be9b4
sub eax, 0
je 0x4be98b
sub eax, 1
je 0x4be987
sub eax, 1
jne 0x4be9b4
push 0x41
pop esi
push 0x3c
jmp 0x4be969
push 0x3c
jmp 0x4be9b3
push 0x32
jmp 0x4be9b3
push 0x14
jmp 0x4be9b3
push 5
jmp 0x4be9b3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4be9b1
cmp eax, 0xa
je 0x4be9ad
cmp eax, 0x5a
jne 0x4be9b4
push 0x28
jmp 0x4be9b3
push 0x1e
jmp 0x4be9b3
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x4beb1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1524528]
call fcn.004d428b
mov esi, eax
test esi, esi
je 0x4bebfb
cmp dword [ebp + 0xc], 0
je 0x4beb6b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4beb5c
cmp dword [esi + 0x1c], 0
jne 0x4beb5c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4bebfb
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4beb89
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004bfe94
cmp dword [esi + 0x3c], 0xffffffff
je 0x4bebad
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4bebc5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x4bebe0
test eax, eax
je 0x4bebd6
push 8
jmp 0x4bebe6
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4bebf1
test eax, eax
je 0x4bebe9
push 3
pop ebx
jmp 0x4bebf1
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4c0238
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4c02ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4c02cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4c02cb
lea eax, [esi - 1]
push eax
push dword [0x1524528]
call fcn.004d428b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4c02cd
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4c02bb
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4c02c6
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4c02ab
jmp 0x4c02cb
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4c0374
push eax
call esi
test al, al
jns 0x4c0374
push 0x11
call esi
test al, al
js 0x4c0374
push 0x10
call esi
test al, al
js 0x4c0374
push 0x12
call esi
test al, al
js 0x4c0374
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4c0374
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004623e7
add esp, 0xc
test eax, eax
je 0x4c0348
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004623e7
add esp, 0xc
test eax, eax
jne 0x4c035f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4c03b5
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005773e4
pop ecx
pop ecx
test eax, eax
je 0x4c03b5
test ebp, ebp
je 0x4c0398
push 0x11
call esi
test al, al
js 0x4c0390
push 0x10
call esi
test al, al
js 0x4c0390
push 0x12
call esi
test al, al
jns 0x4c0398
push 1
push ebp
call fcn.004c03c1
test ebx, ebx
je 0x4c03ac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4c03b5
test edi, edi
je 0x4c03b5
mov eax, dword [edi + 8]
jmp 0x4c03b7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4c073d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c0766
test byte [esp + 8], 2
je 0x4c075a
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c0768
xor eax, eax
ret 8
Function at 0x4c0779
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4c08c1
xor ecx, ecx
cmp word [eax], cx
je 0x4c08c1
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005770fa
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00460ce3
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4c07d2
cmp eax, 3
jne 0x4c080c
cmp word [esp + 0xa], 0x3a
jne 0x4c080c
cmp eax, 2
jne 0x4c07f0
lea eax, [esp + 8]
push 0x5ab398
push eax
call fcn.00577446
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c08c1
push 0xfffffffffffffffe
pop edi
jmp 0x4c08c1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4c0821
cmp ax, bx
jne 0x4c082b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4c0814
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4c086a
test byte [esp + 0x21c], 0x10
je 0x4c0851
push 0xfffffffffffffffe
pop edi
jmp 0x4c0861
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c08bf
cmp word [esp + 0x10], bp
jne 0x4c0878
cmp word [esp + 0x12], bp
je 0x4c0897
cmp word [esp + 0x10], bx
jne 0x4c0886
cmp word [esp + 0x12], bx
je 0x4c0897
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4c08bf
cmp word [esp + 0x12], ax
jne 0x4c08bf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4c08ac
test al, 0x10
je 0x4c08bf
jmp 0x4c08bc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c08bf
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4c0902
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4c0922
cmp dword [esp + 8], 0
je 0x4c0922
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4c0924
xor eax, eax
ret 8
Function at 0x4c0cd8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4c0d50
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005770fa
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00460ce3
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4c0d31
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4c0d2e
cmp ecx, 0x5c
je 0x4c0d2e
cmp ecx, 0x2f
jne 0x4c0d3b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4c0d1b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4c0d52
xor eax, eax
leave
ret 4

Function at 0x4c0e0f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x1523b20]
push esi
push edi
test eax, eax
jne 0x4c0e35
push fcn.004c0f3e
push 0x10
push 0x258
call fcn.004d435d
mov dword [0x1523b20], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004d42c9
mov esi, eax
test esi, esi
je 0x4c0f36
cmp dword [esp + 0x14], ebx
mov eax, 0x5ae268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4c0e6d
xor ecx, ecx
cmp word [ebp], cx
jne 0x4c0e76
mov ebp, 0x5c7e40
mov dword [esp + 0x1c], ebp
push eax
call fcn.00460ce3
push ebp
mov dword [esp + 0x20], eax
call fcn.00460ce3
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4c0f23
push dword [esp + 0x14]
push ebp
call fcn.00577424
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c0ed6
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4c0ed6
push 0x5ab398
push ebp
call fcn.00577446
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00577446
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4c0efb
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4c0f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4c0f11
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4c0f35
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x1523b20]
call fcn.004d423c
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4c13d2
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4c13e0
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4c13e3
Capabilities:
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c1400
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
jmp 0x4c1403
or eax, 0xffffffff
ret 4

Function at 0x4c1470
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4c1489
push dword [0x1524808]
call fcn.004d420e
pop edi
ret 4
push esi
push edi
push dword [0x1524808]
call fcn.004d428b
mov esi, eax
test esi, esi
je 0x4c14f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4c14df
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4c14ce
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1524808]
call fcn.004d423c
pop esi
pop edi
ret 4

Function at 0x4c1500
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4c153c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4c1a00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4c1a65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c1a5d
push dword [esp + 0x10]
push dword [0x1524808]
call fcn.004d428b
test eax, eax
je 0x4c1a53
cmp dword [eax + 4], 0
je 0x4c1a42
push edi
push esi
push eax
call fcn.004c2070
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc