joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4223e9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov word [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
cmp dword [0x4940dc], 0
je 0x422428
sub ax, ax
jmp 0x422642
cmp dword [0x48fc30], 0
je 0x422444
mov eax, dword [str.WIN95]
mov dword [0x494100], eax
jmp 0x42244e
mov eax, dword [0x49410c]
mov dword [0x494100], eax
cmp dword [ebp - 4], 0
jne 0x4224d3
cmp dword [0x494888], 0
je 0x4224d3
mov eax, dword [0x494888]
mov dword [ebp - 4], eax
push 0
push dword [0x494128]
push dword [ebp - 4]
call fcn.00472d10
add esp, 0xc
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x42249e
mov word [ebp - 8], 1
jmp 0x42261e
push dword [ebp - 0x10c]
call fcn.00473710
add esp, 4
or eax, eax
jne 0x4224d3
push dword [ebp - 0x10c]
call fcn.00472a0c
add esp, 4
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x422558
cmp dword [0x49488c], 0
je 0x422558
mov eax, dword [0x49488c]
mov dword [ebp - 4], eax
push 0
push dword [0x494128]
push dword [ebp - 4]
call fcn.00472d10
add esp, 0xc
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x422523
mov word [ebp - 8], 1
jmp 0x42261e
push dword [ebp - 0x10c]
call fcn.00473710
add esp, 4
or eax, eax
jne 0x422558
push dword [ebp - 0x10c]
call fcn.00472a0c
add esp, 4
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10c], 0
jne 0x42257e
push 0
push dword [0x494128]
push dword [ebp - 4]
call fcn.00472d10
add esp, 0xc
mov dword [ebp - 0x10c], eax
push dword [ebp - 0x10c]
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x4940fc], eax
cmp dword [0x4940fc], 0
jne 0x4225a6
mov word [ebp - 8], 2
jmp 0x42261e
push dword [0x494138]
push dword [0x4940fc]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x494184], eax
push dword [0x494148]
push dword [0x4940fc]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x494188], eax
push dword [0x494158]
push dword [0x4940fc]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x49418c], eax
push dword [0x494170]
push dword [0x4940fc]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x494190], eax
push dword [0x494180]
push dword [0x4940fc]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x494194], eax
mov dword [0x4940dc], 1
cmp dword [ebp - 0x10c], 0
je 0x422639
push dword [ebp - 0x10c]
call fcn.00472a0c
add esp, 4
mov ax, word [ebp - 8]
jmp 0x422642
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439316
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetCommandLineA
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0047ee00
add esp, 4
inc eax
push eax
call fcn.0047fd30
add esp, 4
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047e484
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x439355
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43cc3c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 0xc], 0
jne 0x43cc7b
mov dword [ebp + 0xc], 0x49940c
push dword [ebp + 8]
call fcn.00473a38
add esp, 4
mov dword [ebp - 0x118], eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x118]
call fcn.00472d10
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11c], 0
jmp 0x43ccb7
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x11c], 0xffff
jae 0x43cdaf
push dword [ebp - 0x11c]
push dword [ebp - 0x10]
lea eax, [ebp - 0x114]
push eax
call fcn.0046a2b8
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00473710
add esp, 4
or eax, eax
je 0x43cd02
jmp 0x43cd73
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x43cd69
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
je 0x43cd4b
cmp dword [ebp - 0x14], 0x21
je 0x43cd4b
cmp dword [ebp - 0x14], 5
jne 0x43cd69
inc dword [ebp - 0x120]
push dword [ebp - 0x120]
push dword [ebp + 8]
call fcn.00432bcc
add esp, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x43ccdf
cmp dword [ebp - 0xc], 0
jne 0x43cd82
jmp 0x43cdaf
mov byte [ebp - 0x114], 0
call fcn.004775a4
mov dword [ebp - 8], eax
push 1
call sym.bowf520.dll_InvokeCallback
add esp, 4
cmp dword [ebp - 8], 0
jne 0x43cdaa
call fcn.0047756c
jmp 0x43ccb1
push dword [ebp - 0x118]
call fcn.00472a0c
add esp, 4
push dword [ebp - 0x10]
call fcn.00472a0c
add esp, 4
movsx eax, byte [ebp - 0x114]
or eax, eax
je 0x43cdee
lea eax, [ebp - 0x114]
push eax
call fcn.00472b40
add esp, 4
mov dword [ebp - 0x10], eax
jmp 0x43cdf5
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
jmp 0x43cdfd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46755a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
mov ax, word [ebp - 0x18]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x16]
mov word [ebp - 2], ax
movsx eax, word [ebp - 4]
add eax, dword [ebp + 8]
mov word [ebp - 4], ax
push dword [ebp - 4]
push dword [ebp - 0x20]
call sub.KERNEL32.dll_SetConsoleCursorPosition
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4675e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0047ee00
add esp, 4
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.KERNEL32.dll_WriteFile
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4793b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x4a0338
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
movsx eax, byte [ebp + 8]
push eax
call fcn.0046a7c0
add esp, 4
or eax, eax
je 0x4793e8
mov al, byte [ebp + 8]
mov byte [ebp - 0xc], al
jmp 0x4793fb
movsx eax, byte [ebp + 8]
or eax, eax
jne 0x4793fb
mov dword [ebp - 8], 0
push dword [ebp - 8]
call sub.KERNEL32.dll_GetDriveTypeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x47941e
mov ax, 2
jmp 0x47943f
cmp dword [ebp - 4], 0
jne 0x479436
mov ax, 0xffff
jmp 0x47943f
mov ax, 1
jmp 0x47943f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x479ab4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
cmp dword [ebp + 0x10], 0xffffffff
je 0x479acc
jmp 0x479af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_MoveFileA
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.00473710
add esp, 4
or eax, eax
jne 0x479af4
sub eax, eax
jmp 0x479b45
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00479780
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x479b35
push dword [ebp + 8]
call fcn.00484de0
add esp, 4
or eax, eax
je 0x479b35
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
jmp 0x479b45
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x30], 0xffffffff
push dword [ebp + 8]
call fcn.00479340
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47c393
push dword [ebp - 8]
call fcn.0047929c
add esp, 4
or eax, eax
je 0x47c393
mov eax, dword [ebp - 0x30]
jmp 0x47c416
cmp dword [ebp + 8], 0
je 0x47c40e
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
or eax, eax
je 0x47c40e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004852e0
add esp, 8
cmp eax, 0xffffffff
je 0x47c40e
mov dword [ebp - 0x30], 0
movzx eax, word [ebp - 0x26]
test ah, 0x40
je 0x47c3db
or dword [ebp - 0x30], 0x10
movzx eax, word [ebp - 0x26]
test al, 0x80
jne 0x47c3eb
or dword [ebp - 0x30], 1
push dword [ebp + 8]
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47c40e
test byte [ebp - 4], 0x20
je 0x47c40e
or dword [ebp - 0x30], 0x20
mov eax, dword [ebp - 0x30]
jmp 0x47c416
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47c41c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x108], 0x40
lea eax, [ebp - 0x100]
push eax
push 0x100
call sub.KERNEL32.dll_GetCurrentDirectoryA
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0x100
ja 0x47c466
movsx eax, byte [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
jmp 0x47c471
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c478
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
push 0x40
push 0x8000
push dword [ebp + 8]
call fcn.00483fd0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x47c634
mov dword [ebp - 0x14], 1
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call fcn.00482100
add esp, 0xc
movsx eax, byte [ebp - 8]
cmp eax, 0x4d
jne 0x47c629
movsx eax, byte [ebp - 7]
cmp eax, 0x5a
jne 0x47c629
mov dword [ebp - 0x14], 2
push 0
push 0x3c
push dword [ebp - 0x18]
call fcn.00481db0
add esp, 0xc
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call fcn.00482100
add esp, 0xc
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call fcn.00481db0
add esp, 0xc
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call fcn.00482100
add esp, 0xc
movsx eax, byte [ebp - 8]
cmp eax, 0x4c
jne 0x47c547
movsx eax, byte [ebp - 7]
cmp eax, 0x58
jne 0x47c547
mov dword [ebp - 0x14], 7
jmp 0x47c629
movsx eax, byte [ebp - 8]
cmp eax, 0x50
jne 0x47c56d
movsx eax, byte [ebp - 7]
cmp eax, 0x45
jne 0x47c56d
mov dword [ebp - 0x14], 8
jmp 0x47c629
movsx eax, byte [ebp - 8]
cmp eax, 0x4e
jne 0x47c629
movsx eax, byte [ebp - 7]
cmp eax, 0x45
jne 0x47c629
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x36
push eax
push dword [ebp - 0x18]
call fcn.00481db0
add esp, 0xc
push 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.00482100
add esp, 0xc
movzx eax, byte [ebp - 0x10]
cmp eax, 2
jne 0x47c5c5
mov dword [ebp - 0x14], 3
jmp 0x47c629
movzx eax, byte [ebp - 0x10]
cmp eax, 1
jne 0x47c629
mov dword [ebp - 0x14], 4
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xd
push eax
push dword [ebp - 0x18]
call fcn.00481db0
add esp, 0xc
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call fcn.00482100
add esp, 0xc
movzx eax, byte [ebp - 4]
and al, 3
cmp al, 3
jne 0x47c618
mov dword [ebp - 0x14], 6
jmp 0x47c629
test byte [ebp - 4], 2
je 0x47c629
mov dword [ebp - 0x14], 5
push dword [ebp - 0x18]
call fcn.0047ef10
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x47c63c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c79c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
call sub.KERNEL32.dll_GetVersion
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000000
jb 0x47c7d1
movzx eax, byte [ebp - 8]
cmp eax, 4
jge 0x47c7e0
mov dword [0x48a39c], 0
jmp 0x47c7ea
mov dword [0x48a39c], 1
mov eax, dword [ebp + 0xc]
mov dword [0x48a398], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_FindFirstFileA
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
je 0x47c8c7
cmp dword [0x48a39c], 1
jne 0x47c83f
cmp dword [ebp - 0x148], 0
jne 0x47c83f
or dword [ebp - 0x148], 0x80
cmp dword [0x48a398], 0x80
jne 0x47c85f
test dword [ebp - 0x148], 0xffffffef
jne 0x47c871
mov eax, dword [ebp - 0x148]
test dword [0x48a398], eax
je 0x47c896
push dword [ebp + 0x10]
lea eax, [ebp - 0x148]
push eax
push 0
call fcn.0047c8d4
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x47c8c7
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call sub.KERNEL32.dll_FindNextFileA
or eax, eax
jne 0x47c8c2
mov eax, dword [ebp + 0x10]
push dword [eax]
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
jmp 0x47c80f
mov eax, dword [ebp - 4]
jmp 0x47c8cf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47ca18
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x47ca45
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47cb70
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], 0
cmp dword [ebp + 0xc], 0
je 0x47cbf8
push dword [ebp + 0xc]
call fcn.0047ee00
add esp, 4
mov ebx, eax
push dword [ebp + 8]
call fcn.0047ee00
add esp, 4
add ebx, eax
add ebx, 2
push ebx
call fcn.00472a54
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47cbcc
jmp 0x47cce3
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0047e484
add esp, 8
push 0x4a04c4
push dword [ebp - 8]
call fcn.0047e480
add esp, 8
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0047e480
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0047f5d0
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
call sub.KERNEL32.dll_GetEnvironmentStrings
push eax
push 0
push 1
push 0
push 0
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x47ccbe
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call sub.USER32.dll_PeekMessageA
or eax, eax
je 0x47cc77
lea eax, [ebp - 0x88]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x88]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x47cc3e
push 0x64
push dword [ebp - 0x18]
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x102
je 0x47cc3e
cmp dword [ebp - 0x68], 0
jne 0x47ccbe
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_GetExitCodeProcess
or eax, eax
je 0x47ccbe
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x47cce3
push dword [ebp - 8]
call fcn.00472a0c
add esp, 4
cmp dword [ebp - 0x60], 0
je 0x47ccf8
push dword [ebp - 0x60]
call fcn.00472a0c
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x47cd00
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47ff10
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x158]
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x47ffa0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x47ff4c
cmp eax, 3
jbe 0x47ff67
cmp eax, 8
je 0x47ff82
cmp eax, 0x12
je 0x47ff67
call fcn.0047f070
mov dword [eax], 0x16
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
call fcn.0047f070
mov dword [eax], 2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
call fcn.0047f070
mov dword [eax], 0xc
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
cmp dword [esp + 0x10], 0x80
jne 0x47ffc0
mov ebx, dword [esp + 0x158]
mov dword [ebx], 0
jmp 0x47ffcd
mov ebx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x14]
push eax
call fcn.004801a0
add esp, 4
mov dword [ebx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004801a0
add esp, 4
mov dword [ebx + 8], eax
lea eax, [esp + 0x24]
push eax
call fcn.004801a0
add esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10], eax
lea edi, [esp + 0x3c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebx + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret

Function at 0x480220
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.dll_MoveFileA
or eax, eax
mov eax, 0
jne 0x48023d
call sub.KERNEL32.dll_GetLastError
or eax, eax
je 0x480250
push eax
call fcn.0047eff0
add esp, 4
mov eax, 0xffffffff
ret
sub eax, eax
ret
Function at 0x481230
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [esp + 0x11c]
or ebx, ebx
je 0x4812a4
push ebx
call fcn.00481350
add esp, 4
or eax, eax
jne 0x481273
call fcn.0047f080
mov dword [eax], 0xf
call fcn.0047f070
mov dword [eax], 0xd
sub eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push 0x104
push eax
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x4812b3
lea eax, [esp + 0x14]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
inc eax
mov edx, dword [esp + 0x120]
or edx, edx
jne 0x4812f2
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x4812cc
mov eax, ecx
push eax
call fcn.0047fd30
add esp, 4
mov edx, eax
or edx, edx
jne 0x481312
call fcn.0047f070
mov dword [eax], 0xc
sub eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, dword [esp + 0x124]
jle 0x481312
call fcn.0047f070
mov dword [eax], 0x22
sub eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4815f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x4a12e4]
push eax
call sub.KERNEL32.dll_TlsGetValue
mov esi, eax
or esi, esi
jne 0x48164e
push 0x4c
push 1
call fcn.00480c80
add esp, 8
mov esi, eax
or esi, esi
je 0x481644
push esi
mov eax, dword [0x4a12e4]
push eax
call sub.KERNEL32.dll_TlsSetValue
or eax, eax
je 0x481644
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x40], 0x4a2208
mov eax, esi
pop esi
ret
push 0x10
call fcn.0047e260
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x481870
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push edi
sub ecx, ecx
mov eax, 0x4a1ae0
mov edx, dword [esp + 0xc]
nop
cmp dword [eax], edx
je 0x48188f
add eax, 8
inc ecx
cmp eax, 0x4a1b58
jb 0x481880
lea eax, [ecx*8]
cmp dword [eax + 0x4a1ae0], edx
jne 0x4818c6
mov edx, dword [eax + 0x4a1ae4]
lea eax, [esp + 4]
push 0
push eax
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov eax, dword [0x4a13f8]
push eax
call sub.KERNEL32.dll_WriteFile
pop edi
add esp, 4
ret
Function at 0x481b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
push edi
push ebp
mov dword [esp + 0x14], 0
sub esi, esi
mov ebp, dword [esp + 0x42c]
cmp ebp, esi
jne 0x481b50
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x4a12f0], 0x20
je 0x481b6d
push 2
push 0
push eax
call fcn.00481e10
add esp, 0xc
mov eax, dword [esp + 0x424]
test byte [eax + 0x4a12f0], 0x80
je 0x481c10
mov edi, dword [esp + 0x428]
mov dword [esp + 0x18], 0
mov eax, edi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x481c59
lea ebx, [esp + 0x1c]
mov eax, edi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x481bd0
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x481bbe
inc esi
mov byte [ebx], 0xd
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x1c]
sub eax, ecx
cmp eax, 0x400
jl 0x481ba5
lea eax, [esp + 0x1c]
sub ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x24]
push ebx
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x4a13f0]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x481c50
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebx, dword [esp + 0x10]
jle 0x481b90
jmp 0x481c59
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x430]
push ebp
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x4a13f0]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x481c50
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x481c59
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
jne 0x481d06
cmp dword [esp + 0x18], 0
je 0x481cb5
cmp dword [esp + 0x18], 5
jne 0x481c98
call fcn.0047f070
mov dword [eax], 9
call fcn.0047f080
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047eff0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x4a12f0], 0x40
je 0x481ce0
mov eax, dword [esp + 0x428]
cmp byte [eax], 0x1a
jne 0x481ce0
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
call fcn.0047f070
mov dword [eax], 0x1c
call fcn.0047f080
mov dword [eax], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x14]
sub eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret