joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e150
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e183
push esi
call fcn.00441240
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e17c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e209
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e1f2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e1a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e1ee
cmp eax, 2
je 0x43e1f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e19a
cmp eax, 3
je 0x43e1cd
cmp eax, 1
jne 0x43e19a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e19a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e19a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e230
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e218
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e230
add esp, 4
pop esi
ret

Function at 0x4666bd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4666f5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464774
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046474c
jmp 0x466701
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467db3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467df5
call fcn.0046da9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467df5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467dec
xor eax, eax
jmp 0x467dfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467e03
pop edi
pop esi
pop ebx
ret 4

Function at 0x46dfce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dffc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e01a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046df34
jmp 0x46e01a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e01a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046df34
test edi, edi
mov eax, edi
jne 0x46e004
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430cdf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042499c
mov dword [ebp - 0x14], eax
cmp dword [0x44d454], esi
jne 0x430dd2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x430d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x430eb2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x430eb2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430eb2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44d454], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44d458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44d45c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d464], eax
test eax, eax
je 0x430dcf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d460], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x430df7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430dea
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x430e0c
push 4
pop eax
jmp 0x430eb4
cmp dword [ebp - 0x14], esi
je 0x430e0c
push dword [0x44d454]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x430df1
mov eax, dword [0x44d460]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x430e6a
cmp dword [0x44d464], edi
je 0x430e6a
push eax
call ebx
push dword [0x44d464]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x430e6a
test eax, eax
je 0x430e6a
call ecx
test eax, eax
je 0x430e5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x430e5f
test byte [ebp - 8], 1
jne 0x430e6a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x430e9a
mov eax, dword [0x44d458]
cmp eax, edi
je 0x430e97
push eax
call ebx
test eax, eax
je 0x430e97
call eax
mov esi, eax
test esi, esi
je 0x430e97
mov eax, dword [0x44d45c]
cmp eax, edi
je 0x430e97
push eax
call ebx
test eax, eax
je 0x430e97
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44d454]
call ebx
test eax, eax
je 0x430eb2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x430eb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042095f
mov esp, ebp
pop ebp
ret
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x403452
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4131b4], 0
jne 0x403460
call fcn.00403428
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x40348d
test cl, 7
je 0x40348d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
dec esi
inc ecx
jmp 0x40346e
cmp esi, 8
jb 0x403511
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4131b0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131b0]
dec edi
jne 0x403497
xor edx, edx
test esi, esi
jbe 0x403531
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4131b0]
inc edx
cmp edx, esi
jb 0x403518
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403963
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4039f2
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407e52
lea eax, [ebp - 0x800]
push eax
call fcn.0040b2f8
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004086da
test al, al
jne 0x4039d1
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b2f8
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4039f2
push eax
push 0xe72
call fcn.0040a58c
push eax
push 0
call fcn.00403403
add esp, 0xc
leave
ret 8
Function at 0x405753
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.00403d8e
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406d52
test al, al
je 0x4058f8
cmp word [ebp - 0x2440], di
je 0x4058f8
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407f2c
push eax
call fcn.0040c661
test eax, eax
je 0x4058f8
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407f2c
push eax
call fcn.0040c661
test eax, eax
jne 0x4058f8
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405849
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040be32
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407f2c
push eax
call fcn.0040b596
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00406512
test al, al
je 0x405831
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4057e2
cmp word [ebp - 0x800], di
je 0x4058f8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040be32
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407f2c
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407f2c
push eax
call fcn.0040b322
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x4058f8
lea ecx, [ebp - 0x1c20]
call fcn.00405ba7
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00406512
test al, al
jne 0x4058bf
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00405f14
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4058e9
lea ecx, [ebp - 0x1c20]
call fcn.00405c12
lea ecx, [ebp - 0x1c20]
call fcn.00405c97
lea ecx, [ebp - 0x1c20]
call fcn.00405d96
mov al, 1
jmp 0x4058fa
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405db9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405dd3
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x405de6
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x405df9
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e21
test eax, eax
je 0x405e32
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405e32
cmp word [eax], bx
je 0x405e32
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405e46
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405e62
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405eda
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x405e9b
push edi
call fcn.0040b2f8
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040b027
jmp 0x405ea4
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x405ec1
push dword [ebp + 8]
call fcn.0040b072
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040b027
jmp 0x405ed0
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040c429
push dword [esi + 4]
mov ecx, esi
call fcn.00405beb
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x406011
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x406037
cmp dword [ebp + 0xc], esi
jbe 0x40602c
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406087
mov ecx, edi
call fcn.00405d73
test al, al
je 0x40606d
cmp dword [ebp + 0xc], esi
jbe 0x40606d
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00406011
jmp 0x40608a
cmp dword [edi + 0xc], 1
jne 0x406082
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x406082
xor eax, eax
jmp 0x40608a
or eax, 0xffffffff
jmp 0x40608a
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4062cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x4063db
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4062f8
dec eax
je 0x4062ed
dec eax
jne 0x4062f8
push 0xfffffffffffffff4
jmp 0x4062ef
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x406347
cmp dword [ebp + 0xc], edi
jbe 0x406362
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x40631f
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x406362
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x40630f
jmp 0x40635e
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x4063d5
cmp byte [esi + 0x14], 0
je 0x4063d5
cmp dword [esi + 0xc], 0
jne 0x4063d5
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x414674
push eax
mov ecx, edi
call fcn.00403b0b
test al, al
je 0x4063bf
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x406300
test eax, eax
jbe 0x406300
push 0
mov ecx, esi
call fcn.00405cc7
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.0040622c
jmp 0x406300
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403c95
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x4064cb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 8]
call fcn.00407dde
movsx eax, byte [ebp - 0x400]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x400]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40650b
cmp eax, 5
je 0x40650b
xor eax, eax
jmp 0x40650e
xor eax, eax
inc eax
leave
ret 4

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

Disassembly:
call fcn.00406e21
test eax, eax
je 0x40653c
mov eax, dword [esp + 8]
test eax, eax
je 0x40653c
cmp word [eax], 0
je 0x40653c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x406559
cmp dword [esp + 4], 0
je 0x406557
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406557
xor eax, eax
inc eax
jmp 0x406559
xor eax, eax
ret 8

Function at 0x406579
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e21
test eax, eax
je 0x406599
mov eax, dword [esp + 8]
test eax, eax
je 0x406599
cmp word [eax], 0
je 0x406599
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4065a3
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8
Function at 0x4065a6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406e21
test eax, eax
je 0x4065cb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4065cb
cmp word [eax], 0
je 0x4065cb
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4065dd
cmp dword [ebp + 8], 0
je 0x4065e4
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x4065e6
xor al, al
pop ebp
ret 0xc

Function at 0x40661c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406e21
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x406642
cmp esi, ebx
je 0x406642
cmp word [esi], bx
je 0x406642
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x406651
cmp dword [ebp + 8], ebx
je 0x40667f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x40666a
cmp byte [ebp + 0x10], bl
je 0x406666
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004065a6
xor eax, eax
jmp 0x406682
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40667f
cmp eax, 3
je 0x40667f
xor eax, eax
inc eax
jmp 0x406682
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4087a3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5b18
call fcn.00401200
push 1
call fcn.0040c0a1
push 1
mov ecx, 0x414674
call fcn.00403a8c
call fcn.0040bcb9
push 0x400
lea eax, [ebp - 0x800]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1000000
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.0040c429
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x800]
push eax
mov ecx, 0x414680
call fcn.0040a442
lea ecx, [ebp - 0x5b18]
call fcn.00402dc8
push 0x41042c
lea eax, [ebp - 0x2447]
push eax
call fcn.0040b165
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x4088ae
cmp byte [eax], 0x22
jne 0x408844
push 0x22
inc eax
push eax
call fcn.0040b09b
test eax, eax
je 0x4088ae
push esi
push 0x410428
push eax
call fcn.0040b104
mov esi, eax
test esi, esi
je 0x4088ad
jmp 0x40885d
inc esi
movsx eax, byte [esi]
push eax
call fcn.0040bded
test al, al
jne 0x40885c
movsx eax, byte [esi]
push eax
lea ecx, [ebp - 0x5b18]
call fcn.00402a8e
test al, al
je 0x4088ad
movzx eax, byte [esi + 1]
push eax
call fcn.0040bda7
movzx eax, al
mov ecx, eax
sub ecx, 0x3f
je 0x4088a2
sub ecx, 0x15
je 0x40889a
dec ecx
dec ecx
jne 0x4088ad
mov byte [ebp - 0x2447], al
jmp 0x4088ad
lea ecx, [ebp - 0x5b18]
call fcn.004028ad
pop esi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0xc00]
push eax
lea ecx, [ebp - 0x5b18]
call fcn.00402a63
lea ecx, [ebp - 0x5b18]
call fcn.00402ab9
push dword [ebp - 0x2df4]
push dword [ebp - 0x2df8]
call fcn.00402e0c
lea eax, [ebp - 0x31fb]
push eax
call fcn.00402dfb
cmp byte [ebp - 0x2da8], 0
jne 0x408905
cmp dword [ebp - 0x2df8], 3
je 0x408905
xor al, al
jmp 0x408907
mov al, 1
mov byte [0x41467d], al
mov al, byte [ebp - 0x2866]
lea ecx, [ebp - 0x5b18]
mov byte [0x41467e], al
call fcn.00402853
lea ecx, [ebp - 0x5b18]
call fcn.004029e3
lea ecx, [ebp - 0x5b18]
call fcn.00402ce2
call fcn.004061b1
mov eax, dword [0x414674]
leave
ret