joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458774
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 [0x47976c], 0
je 0x4588c3
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47896c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4588c3
mov eax, dword [0x479770]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47976c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x458892
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47976c]
call fcn.004090a8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45888a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x45888a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45888a
mov eax, dword [ebp - 0x14]
call fcn.0046129c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x45888a
push ebp
call fcn.00458730
pop ecx
test al, al
jne 0x45888a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x458846
mov eax, dword [ebp - 0x14]
call fcn.0045fe30
dec eax
jle 0x45888a
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.00426488
cmp byte [ebp - 1], 0
je 0x45888a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x45888a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x479770]
call fcn.00457ef8
inc edi
dec ebx
jne 0x4587d9
mov eax, dword [0x479770]
cmp dword [eax + 8], 0
jle 0x4588aa
mov eax, dword [0x479770]
call fcn.00457f88
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4588c3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00458598
pop ecx
test al, al
jne 0x4588c3
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 0x45be8c
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 0x45bed8
mov eax, esi
call fcn.004472fc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45bed8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x45bed8
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 0x45c017
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x45bf18
cmp eax, 0x108
ja 0x45bf18
mov eax, esi
call fcn.004472fc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45c00e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x45c017
jmp 0x45c00e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x45bff7
cmp eax, 0x20a
ja 0x45bff7
test byte [esi + 0x50], 0x80
jne 0x45bf4a
sub eax, 0x203
je 0x45bf47
sub eax, 3
je 0x45bf47
sub eax, 3
jne 0x45bf4a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x45bf5e
dec eax
je 0x45bf73
dec eax
je 0x45bf90
dec eax
je 0x45bf73
jmp 0x45bf97
mov ecx, ebx
mov eax, dword [0x47896c]
mov eax, dword [eax]
mov edx, esi
call fcn.00450c68
jmp 0x45c00e
cmp byte [esi + 0x5d], 1
jne 0x45bf89
mov eax, esi
mov si, 0xffed
call fcn.00426488
jmp 0x45c017
or word [esi + 0x54], 1
jmp 0x45c00e
and word [esi + 0x54], 0xfffe
jmp 0x45c00e
mov eax, dword [0x479728]
cmp byte [eax + 0x20], 0
je 0x45c00e
mov eax, dword [0x479728]
cmp dword [eax + 0x1c], 0
je 0x45c00e
mov eax, dword [ebx]
mov edx, dword [0x479728]
cmp eax, dword [edx + 0x1c]
jne 0x45c00e
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 fcn.00447240
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.00426488
jmp 0x45c017
cmp eax, 0xb00b
jne 0x45c00e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0045a7ac
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 0x45f4cc
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 0x45f4e8
cmp dword [esi + 4], 0
je 0x45f515
test byte [ebx + 0x55], 1
jne 0x45f507
mov eax, ebx
call fcn.0045e124
test eax, eax
jne 0x45f507
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45f625
mov edx, esi
mov eax, ebx
call fcn.0045efec
jmp 0x45f625
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 0x45f61e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046129c
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.0045bdc0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0045f4cc
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.0046129c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f625
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 0x465b04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x478958]
cmp byte [eax + 0xc], 0
je 0x465c71
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465c6a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47977c], 0
jne 0x465b58
push 0x465c78
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x465c80
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47977c], eax
cmp dword [0x474fbc], 0
jne 0x465c53
push 0x465c90
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x474fbc], eax
cmp dword [0x474fbc], 0
je 0x465c53
push 0x465c9c
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479780], eax
push 0x465cac
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479784], eax
push 0x465cc0
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479788], eax
push 0x465cd8
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47978c], eax
push 0x465cf0
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479790], eax
push 0x465d04
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479794], eax
push 0x465d1c
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x479798], eax
push 0x465d34
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47979c], eax
push 0x465d50
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4797a0], eax
push 0x465d5c
mov eax, dword [0x474fbc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4797a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465c71
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4682e4
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 0x468300
call fcn.00469d14
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x46831c
test bl, 1
je 0x46831c
call fcn.0046c768
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x468500
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.004698b0
test byte [ebp + 0xd], 0xc0
jne 0x468524
mov eax, dword [0x475d8c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x468531
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x46855e
je 0x468570
sub ecx, 0x100
je 0x46857e
sub ecx, 0x100
je 0x468585
sub ecx, 0x100
je 0x468577
jmp 0x46858c
sub ecx, 0x600
je 0x468585
sub ecx, 0x100
je 0x468570
jmp 0x46858c
mov edi, 1
jmp 0x468591
mov edi, 2
jmp 0x468591
mov edi, 4
jmp 0x468591
mov edi, 5
jmp 0x468591
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4685b8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x475804]
test al, 0x80
je 0x4685b1
mov ebx, 0x80
jmp 0x4685ca
mov ebx, 1
jmp 0x4685ca
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4685ca
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4685dc
je 0x4685e5
dec eax
je 0x4685ee
jmp 0x4685f7
mov dword [ebp - 4], SysStringLen
jmp 0x468606
mov dword [ebp - 4], 0x40000000
jmp 0x468606
mov dword [ebp - 4], 0xc0000000
jmp 0x468606
push 1
call fcn.00469ca8
pop ecx
mov ebx, eax
jmp 0x4686f6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x468622
sub eax, 0x10
je 0x468629
sub eax, 0x10
je 0x468632
sub eax, 0x10
je 0x46863b
jmp 0x46863b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x468642
mov dword [ebp - 8], 1
jmp 0x468642
mov dword [ebp - 8], 2
jmp 0x468642
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 0x4686af
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4686a4
test byte [ebp + 0xd], 1
je 0x46869f
mov ebx, 0x50
jmp 0x4686a4
mov ebx, 2
push ebx
call fcn.00469ca8
pop ecx
mov ebx, eax
jmp 0x4686f6
mov edi, esi
push edi
call fcn.00468464
pop ecx
test eax, eax
je 0x4686c3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4686cf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004699d0
add esp, 8
mov ebx, eax
inc eax
jne 0x4686f6
push 4
call fcn.00469ca8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004698e4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468b94
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 0x468bb0
call fcn.00469d14
jmp 0x468c1f
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x468bcc
call fcn.00469d14
jmp 0x468c1f
cmp dword [0x479ff8], 1
je 0x468c1d
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0046c5e8
pop ecx
cmp al, 0x41
jl 0x468c1d
cmp al, 0x5a
jg 0x468c1d
cmp byte [ebp - 0x107], 0x3a
jne 0x468c1d
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 0x468c1d
call fcn.00469d14
jmp 0x468c1f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x468c24
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 0x468c54
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x468c5f
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x468c68
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 0x468cce
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 0x468cce
call fcn.00469d14
jmp 0x468d09
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x468cde
call fcn.00469d14
jmp 0x468d09
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x468d04
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x468d02
cmp ebx, 1
je 0x468d02
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x468cef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468db0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x140
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.00467058
add esp, 0xc
cmp edi, 0xfffffffe
jne 0x468e05
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebx + 0x14]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x468df8
test esi, esi
jne 0x468e2a
call fcn.00469cf4
or eax, 0xffffffff
jmp 0x468fa0
lea edx, [ebp - 0x148]
push edx
push edi
call sub.KERNEL32.DLL_FindNextFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x468e1d
test esi, esi
jne 0x468e2a
call fcn.00469cf4
or eax, 0xffffffff
jmp 0x468fa0
mov edx, dword [ebp - 0x148]
mov dword [ebx], edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx eax, word [ebp - 0x14c]
push eax
movzx edx, word [ebp - 0x14e]
push edx
movzx ecx, word [ebp - 0x150]
push ecx
movzx eax, word [ebp - 0x152]
dec eax
push eax
movzx edx, word [ebp - 0x156]
dec edx
push edx
movzx ecx, word [ebp - 0x158]
add ecx, 0xfffff894
push ecx
call fcn.0046de5c
add esp, 0x1c
mov dword [ebx + 4], eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x13c]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [ebp - 0x158]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx edx, word [ebp - 0x14c]
push edx
movzx ecx, word [ebp - 0x14e]
push ecx
movzx eax, word [ebp - 0x150]
push eax
movzx edx, word [ebp - 0x152]
dec edx
push edx
movzx ecx, word [ebp - 0x156]
dec ecx
push ecx
movzx eax, word [ebp - 0x158]
add eax, 0xfffff894
push eax
call fcn.0046de5c
add esp, 0x1c
mov dword [ebx + 8], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x134]
push ecx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToSystemTime
push 0xffffffffffffffff
movzx ecx, word [ebp - 0x14c]
push ecx
movzx eax, word [ebp - 0x14e]
push eax
movzx edx, word [ebp - 0x150]
push edx
movzx ecx, word [ebp - 0x152]
dec ecx
push ecx
movzx eax, word [ebp - 0x156]
dec eax
push eax
movzx edx, word [ebp - 0x158]
add edx, 0xfffff894
push edx
call fcn.0046de5c
mov dword [ebx + 0xc], eax
add esp, 0x1c
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [ebx + 0x10], ecx
push esi
push edi
add ebx, 0x14
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp edi, 0xfffffffe
jne 0x468f9e
mov eax, esi
jmp 0x468fa0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469740
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 0x469786
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x469774
cmp eax, dword [ebp + 0x10]
jle 0x46980f
call fcn.0046c768
mov dword [eax], 8
xor eax, eax
jmp 0x46987c
cmp dword [0x479ff8], 1
jne 0x4697cb
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 0x46980f
xor eax, eax
jmp 0x46987c
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x46980b
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 0x46980f
xor eax, eax
jmp 0x46987c
lea edx, [ebp - 0x10c]
push edx
call fcn.00467168
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x469830
call fcn.0046c768
mov dword [eax], 0x22
xor eax, eax
jmp 0x46987c
test edi, edi
jne 0x469853
mov edx, dword [ebp + 0x10]
push edx
call fcn.00466a1c
pop ecx
mov edi, eax
test eax, eax
jne 0x469853
call fcn.0046c768
mov dword [eax], 8
xor eax, eax
jmp 0x46987c
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 0x46c700
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 0x46c762
call fcn.0046c6b0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00467168
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.00467168
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 0x46c7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x476cb4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46c8ba
cmp dword [0x476cb0], 0
jne 0x46c8ba
cmp dword [0x476ebc], 0
je 0x46c874
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.0046c590
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46c85a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0046c590
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46c85a
lea ebx, [ebp - 0x84]
jmp 0x46c85b
inc ebx
call fcn.0046c79c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46c8f5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x476cb8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00467168
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x476cbb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46c8f5
cmp dword [0x476cb0], 0
je 0x46c8d4
cmp dword [0x476cb0], 0xffffffff
je 0x46c8f5
push esi
call dword [0x476cb0]
pop ecx
mov eax, dword [0x476cb4]
test eax, eax
je 0x46c8f5
cmp dword [0x476cb4], 0xffffffff
je 0x46c8f5
cmp byte [eax], 0
je 0x46c8f5
push esi
push eax
call fcn.0046c700
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d17c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x47a010], 0
jne 0x46d1fd
cmp dword [0x47a030], 0
jne 0x46d1ac
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x47a030], eax
test eax, eax
jne 0x46d1ac
push str.GetEnvironmentStrings_failed
call fcn.0046c90c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x47a030]
jmp 0x46d1c0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00467168
pop ecx
mov edi, eax
test eax, eax
jne 0x46d1b8
lea edi, [ebp + 1]
push edi
call fcn.00466a1c
pop ecx
mov ebx, eax
mov dword [0x47a014], ebx
test ebx, ebx
jne 0x46d1ea
xor eax, eax
jmp 0x46d2c0
push edi
mov edx, dword [0x47a030]
push edx
push ebx
call fcn.00466fe8
add esp, 0xc
jmp 0x46d21d
xor esi, esi
mov ebx, dword [0x47a010]
jmp 0x46d217
push eax
call fcn.00467168
pop ecx
test eax, eax
jne 0x46d213
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46d207
lea ebx, [esi + 4]
push 4
mov dword [0x47a018], ebx
inc ebx
push ebx
call fcn.004664f4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x46d240
xor eax, eax
jmp 0x46d2c0
cmp dword [0x47a010], 0
jne 0x46d271
xor esi, esi
mov ebx, dword [0x47a014]
mov eax, dword [esp]
mov ebp, eax
jmp 0x46d262
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00467168
pop ecx
mov edi, eax
test eax, eax
jne 0x46d258
jmp 0x46d2a2
xor esi, esi
mov ebx, dword [0x47a010]
mov eax, dword [esp]
mov edi, eax
jmp 0x46d29c
push eax
call fcn.00467168
pop ecx
test eax, eax
je 0x46d291
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x46d295
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46d280
mov eax, dword [0x47a010]
test eax, eax
je 0x46d2b2
push eax
call fcn.00466a2c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x47a010], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret