joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x439d41
je 0x439d9b
sub eax, 7
je 0x439d62
dec eax
je 0x439d8c
sub eax, 0x17
je 0x439e40
jmp 0x439e7e
add eax, 0xffffff00
sub eax, 9
jb 0x439e2c
add eax, 0xffffff09
sub eax, 0xb
jb 0x439df4
jmp 0x439e7e
mov eax, ebx
call fcn.00427ff4
mov edi, eax
test edi, edi
je 0x439ede
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x439ee7
jmp 0x439ede
test byte [ebx + 0x44], 0x20
jne 0x439ee7
jmp 0x439ede
mov edx, esi
mov eax, ebx
call fcn.004373dc
cmp dword [esi + 0xc], 0xffffffff
jne 0x439ee7
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00449894
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00435f28
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00439be8
test eax, eax
je 0x439ee7
mov dword [esi + 0xc], 1
jmp 0x439ee7
mov edx, esi
mov eax, ebx
call fcn.00439c7c
test al, al
je 0x439ede
cmp dword [esi + 0xc], 0
jne 0x439ee7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0043c378
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x439ee7
mov eax, ebx
call fcn.00436a78
test al, al
jne 0x439ee7
jmp 0x439ede
mov eax, ebx
call fcn.0043c378
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x439ede
cmp dword [0x4642e4], 0
je 0x439ede
mov eax, dword [0x4642e4]
cmp ebx, dword [eax + 0x24]
jne 0x439ede
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4642e4]
call fcn.00437310
jmp 0x439ede
mov eax, dword [0x468350]
cmp byte [eax + 0x20], 0
je 0x439ede
mov eax, dword [0x468350]
cmp dword [eax + 0x1c], 0
je 0x439ede
mov eax, dword [esi]
mov edx, dword [0x468350]
cmp eax, dword [edx + 0x1c]
jne 0x439ede
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00427f38
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00451078
jmp 0x439ee7
mov edx, esi
mov eax, ebx
call fcn.004373dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a3a8
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 + 0x1e8], 0
je 0x43a3c4
cmp dword [esi + 4], 0
je 0x43a3f1
test byte [ebx + 0x45], 1
jne 0x43a3e3
mov eax, ebx
call fcn.0043934c
test eax, eax
jne 0x43a3e3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43a501
mov edx, esi
mov eax, ebx
call fcn.0043a020
jmp 0x43a501
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x43a4fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c378
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.00437310
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043a3a8
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.0043c378
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a501
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 0x447ba0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x447bb5
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x44c3f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44c429
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00451bc8
jmp 0x44c432
mov eax, ebx
mov edx, esi
call fcn.00451b34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44c43c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44c45d
mov al, byte [esp]
jmp 0x44c45f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4509f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x450a27
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00451bc8
jmp 0x450a45
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00450980
mov edi, eax
test ebx, ebx
je 0x450a45
cmp dword [esi], 0
je 0x450a45
dec ebx
jmp 0x450a2e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x450bbc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x468608], 0x8088405
inc edx
mov dword [0x468608], edx
mul edx
mov eax, edx
ret

Function at 0x450d0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464654]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x450da4
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x450d84
xor eax, eax
push ebp
push 0x450d7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x450dc0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450d84
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x464654]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464654], ax
mov esp, ebp
pop ebp
ret

Function at 0x451a94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004507b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46860d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x451a5c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x453034
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4531f0
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x453095
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x45320c
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x453107
xor eax, eax
push ebp
push 0x453100
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00452e8c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4530e9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x45322c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453107
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4531e8
cmp byte [ebp - 0xd], 0
jne 0x453149
cmp byte [ebp - 0x12], 0
je 0x4531e8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x453162
dec ebx
cmp byte [ebx], 0x2e
je 0x453171
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x453161
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4531e8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x45319e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4531e8
cmp byte [ebp - 0xd], 0
je 0x4531e8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4531e8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4535dc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4536c4
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4689f0], 1
jae 0x4536b6
xor eax, eax
mov dword [0x4685fc], eax
xor eax, eax
mov dword [0x468604], eax
xor eax, eax
mov dword [0x468608], eax
mov byte [0x46860e], 2
mov byte [0x46860f], 2
mov byte [0x468610], 3
mov word [0x4689b8], 0
mov word [0x4689c8], 1
mov word [0x4689d8], 0xa
mov dword [0x4689e0], 0x80020004
mov dword [0x4689ac], 0x4527c8
mov dword [0x4689b0], 0x4527c0
mov dword [0x4689b4], 0x4527c8
call fcn.00450cdc
test al, al
je 0x453675
call fcn.00450d0c
call fcn.00450dd0
mov eax, 0x468614
mov edx, 0x4536d0
call fcn.0044e50a
mov eax, 0x4687e0
mov edx, 0x4536d0
call fcn.0044e50a
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4685f4], eax
call fcn.0044f470
mov dword [0x4685f0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4685e8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4536cb
ret
Function at 0x4554c8
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.004567a4
test byte [ebp + 0xd], 0xc0
jne 0x4554ec
mov eax, dword [0x46542c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4554f9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x455526
je 0x455538
sub ecx, 0x100
je 0x455546
sub ecx, 0x100
je 0x45554d
sub ecx, 0x100
je 0x45553f
jmp 0x455554
sub ecx, 0x600
je 0x45554d
sub ecx, 0x100
je 0x455538
jmp 0x455554
mov edi, 1
jmp 0x455559
mov edi, 2
jmp 0x455559
mov edi, 4
jmp 0x455559
mov edi, 5
jmp 0x455559
mov edi, 3
test byte [ebp + 0xd], 1
je 0x455580
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x464e98]
test al, 0x80
je 0x455579
mov ebx, 0x80
jmp 0x455592
mov ebx, 1
jmp 0x455592
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x455592
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4555a4
je 0x4555ad
dec eax
je 0x4555b6
jmp 0x4555bf
mov dword [ebp - 4], closesocket
jmp 0x4555ce
mov dword [ebp - 4], 0x40000000
jmp 0x4555ce
mov dword [ebp - 4], 0xc0000000
jmp 0x4555ce
push 1
call fcn.00456b9c
pop ecx
mov ebx, eax
jmp 0x4556be
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4555ea
sub eax, 0x10
je 0x4555f1
sub eax, 0x10
je 0x4555fa
sub eax, 0x10
je 0x455603
jmp 0x455603
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x45560a
mov dword [ebp - 8], 1
jmp 0x45560a
mov dword [ebp - 8], 2
jmp 0x45560a
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 0x455677
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x45566c
test byte [ebp + 0xd], 1
je 0x455667
mov ebx, 0x50
jmp 0x45566c
mov ebx, 2
push ebx
call fcn.00456b9c
pop ecx
mov ebx, eax
jmp 0x4556be
mov edi, esi
push edi
call fcn.0045542c
pop ecx
test eax, eax
je 0x45568b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x455697
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004568c4
add esp, 8
mov ebx, eax
inc eax
jne 0x4556be
push 4
call fcn.00456b9c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004567d8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4559c8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x4559f3
lea eax, [ebp + 0x10]
add eax, 4
mov ebx, dword [eax - 4]
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x455a07
call fcn.00456c08
jmp 0x455a09
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x455a07
call fcn.00456c08
jmp 0x455a09
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x455bec
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x455c08
call fcn.00456c08
jmp 0x455c29
test byte [ebp + 0xc], 0x80
jne 0x455c13
or ebx, 1
jmp 0x455c16
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x455c27
call fcn.00456c08
jmp 0x455c29
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x456544
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.00453bfc
pop ecx
mov ebx, eax
test eax, eax
jne 0x456568
xor eax, eax
jmp 0x456611
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 0x456589
cmp esi, 0x104
jb 0x456594
push ebx
call fcn.00453c0c
pop ecx
xor eax, eax
jmp 0x456611
cmp byte [ebx + 1], 0x3a
jne 0x4565c4
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 0x4565c4
push ebx
call fcn.00453c0c
pop ecx
xor eax, eax
jmp 0x456611
inc esi
test edi, edi
je 0x456607
cmp esi, dword [ebp + 0x10]
jbe 0x4565d9
push ebx
call fcn.00453c0c
pop ecx
xor eax, eax
jmp 0x456611
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.00453c0c
pop ecx
mov eax, edi
jmp 0x456611
push esi
push ebx
call fcn.00453c1c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x456660
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 0x4566a6
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x456694
cmp eax, dword [ebp + 0x10]
jle 0x45672f
call fcn.0045a9e4
mov dword [eax], 8
xor eax, eax
jmp 0x45679c
cmp dword [0x4692e4], 1
jne 0x4566eb
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 0x45672f
xor eax, eax
jmp 0x45679c
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x45672b
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 0x45672f
xor eax, eax
jmp 0x45679c
lea edx, [ebp - 0x10c]
push edx
call fcn.004541bc
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x456750
call fcn.0045a9e4
mov dword [eax], 0x22
xor eax, eax
jmp 0x45679c
test edi, edi
jne 0x456773
mov edx, dword [ebp + 0x10]
push edx
call fcn.00453bfc
pop ecx
mov edi, eax
test eax, eax
jne 0x456773
call fcn.0045a9e4
mov dword [eax], 8
xor eax, eax
jmp 0x45679c
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 0x45a97c
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 0x45a9de
call fcn.0045a92c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004541bc
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.004541bc
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 0x45aa5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4663cc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45ab36
cmp dword [0x4663c8], 0
jne 0x45ab36
cmp dword [0x466628], 0
je 0x45aaf0
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.0045a82c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45aad6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0045a82c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45aad6
lea ebx, [ebp - 0x84]
jmp 0x45aad7
inc ebx
call fcn.0045aa18
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45ab71
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4663d0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004541bc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4663d3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45ab71
cmp dword [0x4663c8], 0
je 0x45ab50
cmp dword [0x4663c8], 0xffffffff
je 0x45ab71
push esi
call dword [0x4663c8]
pop ecx
mov eax, dword [0x4663cc]
test eax, eax
je 0x45ab71
cmp dword [0x4663cc], 0xffffffff
je 0x45ab71
cmp byte [eax], 0
je 0x45ab71
push esi
push eax
call fcn.0045a97c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bb60
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4692fc], 0
jne 0x45bbe1
cmp dword [0x46931c], 0
jne 0x45bb90
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46931c], eax
test eax, eax
jne 0x45bb90
push str.GetEnvironmentStrings_failed
call fcn.0045ab88
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46931c]
jmp 0x45bba4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004541bc
pop ecx
mov edi, eax
test eax, eax
jne 0x45bb9c
lea edi, [ebp + 1]
push edi
call fcn.00453bfc
pop ecx
mov ebx, eax
mov dword [0x469300], ebx
test ebx, ebx
jne 0x45bbce
xor eax, eax
jmp 0x45bca4
push edi
mov edx, dword [0x46931c]
push edx
push ebx
call fcn.0045406c
add esp, 0xc
jmp 0x45bc01
xor esi, esi
mov ebx, dword [0x4692fc]
jmp 0x45bbfb
push eax
call fcn.004541bc
pop ecx
test eax, eax
jne 0x45bbf7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45bbeb
lea ebx, [esi + 4]
push 4
mov dword [0x469304], ebx
inc ebx
push ebx
call fcn.004536d4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45bc24
xor eax, eax
jmp 0x45bca4
cmp dword [0x4692fc], 0
jne 0x45bc55
xor esi, esi
mov ebx, dword [0x469300]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45bc46
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004541bc
pop ecx
mov edi, eax
test eax, eax
jne 0x45bc3c
jmp 0x45bc86
xor esi, esi
mov ebx, dword [0x4692fc]
mov eax, dword [esp]
mov edi, eax
jmp 0x45bc80
push eax
call fcn.004541bc
pop ecx
test eax, eax
je 0x45bc75
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45bc79
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45bc64
mov eax, dword [0x4692fc]
test eax, eax
je 0x45bc96
push eax
call fcn.00453c0c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4692fc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret