joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406998
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
mov eax, 0x4409a8
call fcn.0040eaa0
mov byte [ebp - 0x45], 0x30
lea edx, [ebp - 0x154]
push edx
push 0x104
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x34], 0x14
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x28]
push 0x4400fa
lea eax, [ebp - 0x18]
push eax
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x28], 4
dec dword [ebp - 0x28]
push 2
lea edx, [ebp - 0x20]
push edx
call fcn.00402f7a
add esp, 8
mov word [ebp - 0x34], 8
xor ecx, ecx
mov dword [ebp - 0x50], ecx
jmp 0x406a72
mov eax, dword [ebp - 0x50]
movsx edx, byte [ebp + eax - 0x154]
cmp edx, 0x40
jle 0x406a6f
mov ecx, dword [ebp - 0x50]
movsx eax, byte [ebp + ecx - 0x154]
cmp eax, 0x5a
jge 0x406a6f
mov edx, dword [ebp - 0x50]
mov cl, byte [ebp + edx - 0x154]
push ecx
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.00402be7
add esp, 0xc
push 0
mov edx, dword [ebp - 0x50]
mov cl, byte [ebp + edx - 0x154]
push ecx
push 0x44862c
call fcn.00402e59
add esp, 0xc
cmp eax, 0x64
jbe 0x406a6f
mov eax, dword [ebp - 0x50]
mov dl, byte [ebp + eax - 0x154]
mov byte [ebp - 0x45], dl
inc dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x4c]
jb 0x406a0a
lea eax, [ebp - 0x18]
push eax
push 0x44862c
call fcn.0040353a
add esp, 8
mov al, byte [ebp - 0x45]
push eax
sub dword [ebp - 0x28], 4
push 2
lea edx, [ebp - 0x18]
push edx
call fcn.00402eed
add esp, 8
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x406bb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_OpenClipboard
call sub.USER32.DLL_EmptyClipboard
push dword [ebp + 0xc]
call fcn.0040356e
pop ecx
inc eax
push eax
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406be4
call sub.USER32.DLL_CloseClipboard
pop ecx
pop ebp
ret
push dword [ebp + 0xc]
call fcn.0040356e
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
call fcn.00403012
pop ecx
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_GlobalLock
push eax
call fcn.0040e6a4
add esp, 0xc
push dword [ebp - 4]
call sub.KERNEL32.DLL_GlobalUnlock
push dword [ebp - 4]
push 1
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
push dword [ebp - 4]
call sub.KERNEL32.DLL_GlobalFree
pop ecx
pop ebp
ret
Function at 0x407154
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov eax, 0x440b3c
call fcn.0040eaa0
lea edx, [ebp - 0x1f8]
push edx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov dword [ebp - 0x28], eax
push str.pac001_
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0040e7b8
add esp, 8
push 0xc8
push 0
lea eax, [ebp - 0xf4]
push eax
call fcn.0040e714
add esp, 0xc
lea edx, [ebp - 0x1f8]
push edx
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0040e7b8
add esp, 8
push str.stat.idx
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040e7b8
add esp, 8
push dword [0x437cc4]
call fcn.0040e824
pop ecx
push eax
push 0
push dword [0x437cc4]
call fcn.0040e714
add esp, 0xc
mov dword [0x447a8c], 0x10
push 0x447a8c
push str.Sapphic
call sub.KERNEL32.DLL_GetComputerNameA
lea edx, [ebp - 0xf4]
push edx
call fcn.004103f8
pop ecx
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.004068c0
pop ecx
test eax, eax
mov word [ebp - 0x14], 8
push 0x44035a
lea eax, [ebp - 0x1f8]
push eax
call fcn.00410af8
add esp, 8
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x14], 0
jmp 0x407254
push 0x14
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0040e714
add esp, 0xc
push 1
push 0
push 0x448628
call fcn.0040e714
add esp, 0xc
push 0xa
push 0
push dword [0x437cc4]
call fcn.0040e714
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x4072d1
push dword [ebp - 0x2c]
push 8
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00410780
add esp, 0xc
push dword [ebp - 0x2c]
push 0xa
push 0x448628
call fcn.00410780
add esp, 0xc
push dword [ebp - 0x2c]
push 0xa
push 0x448628
call fcn.00410780
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.00410650
pop ecx
push 0x100
push 0
push 0x4489a4
call fcn.0040e714
add esp, 0xc
push 0x448628
push dword [0x437cc4]
call fcn.0040e7b8
add esp, 8
push str.Sapphic
push dword [0x437cc4]
call fcn.0040e7b8
add esp, 8
push str.Sapphic
push 0x4489a4
call fcn.0040e7b8
add esp, 8
push 0x44035c
push dword [0x437cc4]
call fcn.0040e7b8
add esp, 8
push 0x44035c
push 0x4489a4
call fcn.0040e7b8
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push dword [0x437cc4]
call fcn.0040e7b8
add esp, 8
lea edx, [ebp - 0x20c]
push edx
push 0x4489a4
call fcn.0040e7b8
add esp, 8
mov eax, dword [0x437cc4]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409da8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
mov eax, 0x441008
call fcn.0040eaa0
mov dword [ebp - 0x3c], 0x64
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x30], eax
cmp dword [0x437ec0], 1
jne 0x409dee
mov edx, dword [0x437ec4]
mov dword [0x448ca4], edx
mov ecx, dword [0x437ec8]
mov dword [0x448ca0], ecx
push dword [ebp - 0x30]
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x34], eax
push dword [0x448ca0]
push dword [0x448ca4]
push dword [ebp - 0x30]
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x40], eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0x30]
push dword [0x448ca0]
push dword [0x448ca4]
push 0
push 0
push dword [ebp - 0x34]
call sub.GDI32.DLL_BitBlt
push 0
push dword [ebp - 0x38]
call fcn.004038ab
add esp, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x60], 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x54]
push edx
push 0x44026e
call fcn.00406ab0
add esp, 8
push 0
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp + 8]
push dword [ebp - 0x44]
call fcn.004031a7
add esp, 0x10
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409ebf
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov dword [ebp - 4], ecx
mov word [ebp - 0x1c], 0x14
push 3
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx]
add esp, 8
mov word [ebp - 0x1c], 8
push dword [ebp - 0x34]
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x38]
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x40]
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x30]
call sub.GDI32.DLL_DeleteObject
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40b38f
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x40b38f
xor eax, eax
jmp 0x40b391
mov al, 1
pop ecx
pop ecx
pop ebp
ret
Function at 0x40c010
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, 0x4414c8
call fcn.0040eaa0
mov word [ebp - 0x5e], 0x101
lea edx, [ebp - 0x200]
push edx
mov cx, word [ebp - 0x5e]
push ecx
call sub.WSOCK32.DLL_WSAStartup
mov word [ebp - 0x4c], 8
lea eax, [ebp - 8]
push eax
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x40]
push 0x447814
lea edx, [ebp - 0x20]
push edx
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x40], 4
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0040662c
add esp, 8
lea edx, [ebp - 0x38]
push edx
add dword [ebp - 0x40], 4
call fcn.00403012
pop ecx
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x68], eax
sub dword [ebp - 0x40], 4
push 2
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402eed
add esp, 8
sub dword [ebp - 0x40], 4
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.00402eed
add esp, 8
dec dword [ebp - 0x40]
push 2
lea edx, [ebp - 8]
push edx
call fcn.00402f7a
add esp, 8
cmp dword [ebp - 0x68], 0
jne 0x40c0de
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c1ca
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xffffffff
jne 0x40c113
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c1ca
mov word [ebp - 0x210], 2
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x20c], ecx
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x20e], ax
push 0x10
lea edx, [ebp - 0x210]
push edx
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x40c175
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c1ca
push 0
push dword [ebp + 0xc]
call fcn.0040e824
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_send
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x70], ecx
push 0x64
push 0
push 0x448aa4
call fcn.0040e714
add esp, 0xc
push 0
push 0x64
push 0x448aa4
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_recv
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
mov eax, dword [ebp - 0x5c]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret
Function at 0x40c1d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, 0x441504
call fcn.0040eaa0
mov word [ebp - 0x5e], 0x101
lea edx, [ebp - 0x200]
push edx
mov cx, word [ebp - 0x5e]
push ecx
call sub.WSOCK32.DLL_WSAStartup
mov word [ebp - 0x4c], 8
lea eax, [ebp - 8]
push eax
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x40]
push 0x447814
lea edx, [ebp - 0x20]
push edx
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x40], 4
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0040662c
add esp, 8
lea edx, [ebp - 0x38]
push edx
add dword [ebp - 0x40], 4
call fcn.00403012
pop ecx
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x68], eax
sub dword [ebp - 0x40], 4
push 2
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402eed
add esp, 8
sub dword [ebp - 0x40], 4
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.00402eed
add esp, 8
dec dword [ebp - 0x40]
push 2
lea edx, [ebp - 8]
push edx
call fcn.00402f7a
add esp, 8
cmp dword [ebp - 0x68], 0
jne 0x40c29e
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c38a
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xffffffff
jne 0x40c2d3
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c38a
mov word [ebp - 0x210], 2
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x20c], ecx
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x20e], ax
push 0x10
lea edx, [ebp - 0x210]
push edx
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x40c335
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c38a
push 0
push dword [ebp + 0xc]
call fcn.0040e824
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_send
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x70], ecx
push 0x64
push 0
push 0x448b6c
call fcn.0040e714
add esp, 0xc
push 0
push 0x64
push 0x448b6c
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_recv
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call sub.WSOCK32.DLL_closesocket
mov eax, dword [ebp - 0x5c]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret

Function at 0x40d2d8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x40fd3c
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.00411138
test byte [ebp + 0xd], 0xc0
jne 0x40fd60
mov eax, dword [0x443964]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40fd6d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40fd9a
je 0x40fdac
sub ecx, 0x100
je 0x40fdba
sub ecx, 0x100
je 0x40fdc1
sub ecx, 0x100
je 0x40fdb3
jmp 0x40fdc8
sub ecx, 0x600
je 0x40fdc1
sub ecx, 0x100
je 0x40fdac
jmp 0x40fdc8
mov edi, 1
jmp 0x40fdcd
mov edi, 2
jmp 0x40fdcd
mov edi, 4
jmp 0x40fdcd
mov edi, 5
jmp 0x40fdcd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40fdf4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4433d0]
test al, 0x80
je 0x40fded
mov ebx, 0x80
jmp 0x40fe06
mov ebx, 1
jmp 0x40fe06
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40fe06
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40fe18
je 0x40fe21
dec eax
je 0x40fe2a
jmp 0x40fe33
mov dword [ebp - 4], closesocket
jmp 0x40fe42
mov dword [ebp - 4], 0x40000000
jmp 0x40fe42
mov dword [ebp - 4], 0xc0000000
jmp 0x40fe42
push 1
call fcn.00411530
pop ecx
mov ebx, eax
jmp 0x40ff32
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40fe5e
sub eax, 0x10
je 0x40fe65
sub eax, 0x10
je 0x40fe6e
sub eax, 0x10
je 0x40fe77
jmp 0x40fe77
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40fe7e
mov dword [ebp - 8], 1
jmp 0x40fe7e
mov dword [ebp - 8], 2
jmp 0x40fe7e
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 sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40feeb
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40fee0
test byte [ebp + 0xd], 1
je 0x40fedb
mov ebx, 0x50
jmp 0x40fee0
mov ebx, 2
push ebx
call fcn.00411530
pop ecx
mov ebx, eax
jmp 0x40ff32
mov edi, esi
push edi
call fcn.0040fca0
pop ecx
test eax, eax
je 0x40feff
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40ff0b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00411258
add esp, 8
mov ebx, eax
inc eax
jne 0x40ff32
push 4
call fcn.00411530
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0041116c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4103f8
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 0x410414
call fcn.0041159c
jmp 0x410483
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x410430
call fcn.0041159c
jmp 0x410483
cmp dword [0x4494f0], 1
je 0x410481
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004154cc
pop ecx
cmp al, 0x41
jl 0x410481
cmp al, 0x5a
jg 0x410481
cmp byte [ebp - 0x107], 0x3a
jne 0x410481
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 0x410481
call fcn.0041159c
jmp 0x410483
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410ed8
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.0040c82c
pop ecx
mov ebx, eax
test eax, eax
jne 0x410efc
xor eax, eax
jmp 0x410fa5
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 0x410f1d
cmp esi, 0x104
jb 0x410f28
push ebx
call fcn.0040c83c
pop ecx
xor eax, eax
jmp 0x410fa5
cmp byte [ebx + 1], 0x3a
jne 0x410f58
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 0x410f58
push ebx
call fcn.0040c83c
pop ecx
xor eax, eax
jmp 0x410fa5
inc esi
test edi, edi
je 0x410f9b
cmp esi, dword [ebp + 0x10]
jbe 0x410f6d
push ebx
call fcn.0040c83c
pop ecx
xor eax, eax
jmp 0x410fa5
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.0040c83c
pop ecx
mov eax, edi
jmp 0x410fa5
push esi
push ebx
call fcn.0040c84c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x410ff4
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 0x41103a
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x411028
cmp eax, dword [ebp + 0x10]
jle 0x4110c3
call fcn.0041564c
mov dword [eax], 8
xor eax, eax
jmp 0x411130
cmp dword [0x4494f0], 1
jne 0x41107f
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 0x4110c3
xor eax, eax
jmp 0x411130
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4110bf
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 0x4110c3
xor eax, eax
jmp 0x411130
lea edx, [ebp - 0x10c]
push edx
call fcn.0040e824
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4110e4
call fcn.0041564c
mov dword [eax], 0x22
xor eax, eax
jmp 0x411130
test edi, edi
jne 0x411107
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040c82c
pop ecx
mov edi, eax
test eax, eax
jne 0x411107
call fcn.0041564c
mov dword [eax], 8
xor eax, eax
jmp 0x411130
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 0x4155e4
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 0x415646
call fcn.00415594
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040e824
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.0040e824
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 0x4156c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x444904], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41579e
cmp dword [0x444900], 0
jne 0x41579e
cmp dword [0x444b80], 0
je 0x415758
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.00415474
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41573e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00415474
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41573e
lea ebx, [ebp - 0x84]
jmp 0x41573f
inc ebx
call fcn.00415680
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4157d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x444908
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040e824
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44490b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4157d9
cmp dword [0x444900], 0
je 0x4157b8
cmp dword [0x444900], 0xffffffff
je 0x4157d9
push esi
call dword [0x444900]
pop ecx
mov eax, dword [0x444904]
test eax, eax
je 0x4157d9
cmp dword [0x444904], 0xffffffff
je 0x4157d9
cmp byte [eax], 0
je 0x4157d9
push esi
push eax
call fcn.004155e4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4167d8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x449508], 0
jne 0x416859
cmp dword [0x449528], 0
jne 0x416808
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x449528], eax
test eax, eax
jne 0x416808
push str.GetEnvironmentStrings_failed
call fcn.004157f0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x449528]
jmp 0x41681c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040e824
pop ecx
mov edi, eax
test eax, eax
jne 0x416814
lea edi, [ebp + 1]
push edi
call fcn.0040c82c
pop ecx
mov ebx, eax
mov dword [0x44950c], ebx
test ebx, ebx
jne 0x416846
xor eax, eax
jmp 0x41691c
push edi
mov edx, dword [0x449528]
push edx
push ebx
call fcn.0040e6a4
add esp, 0xc
jmp 0x416879
xor esi, esi
mov ebx, dword [0x449508]
jmp 0x416873
push eax
call fcn.0040e824
pop ecx
test eax, eax
jne 0x41686f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x416863
lea ebx, [esi + 4]
push 4
mov dword [0x449510], ebx
inc ebx
push ebx
call fcn.0040c390
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41689c
xor eax, eax
jmp 0x41691c
cmp dword [0x449508], 0
jne 0x4168cd
xor esi, esi
mov ebx, dword [0x44950c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4168be
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040e824
pop ecx
mov edi, eax
test eax, eax
jne 0x4168b4
jmp 0x4168fe
xor esi, esi
mov ebx, dword [0x449508]
mov eax, dword [esp]
mov edi, eax
jmp 0x4168f8
push eax
call fcn.0040e824
pop ecx
test eax, eax
je 0x4168ed
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4168f1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4168dc
mov eax, dword [0x449508]
test eax, eax
je 0x41690e
push eax
call fcn.0040c83c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x449508], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41996c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call fcn.00411a40
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret