joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010a72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10010a81
pop dword [ebp - 0x10]
mov eax, 0x5aeba320
sub eax, 0x4aea989f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3ed60
push 0
mov eax, 0x1977446e
sub eax, 0x975e32e
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x7d4af723
add ecx, 0x82b56484
xor edx, edx
add edx, eax
mov edi, 0xaf98856a
add edi, 0x6069be96
add edi, dword [ebp - 0x10]
mov esi, 0x3fa802c9
sub dword [ebp - 0xc], ebx
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0xad413235
xor ebx, esi
add dword [ebp - 4], eax
mov dword [edx], ebx
sub dword [ebp - 0xc], ecx
add edx, 4
add edi, 0x511d236f
add edi, 0xaee2dc95
loop 0x10010adc
add eax, 0xfb0e0130
sub eax, 0xfb0c9fc1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x559b18c6
add ecx, 0xba64e73a
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xc7c7e3f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6434e09
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x401031
Capabilities:
Create process on windows

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403220], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403224], eax
push 0xa
push dword [0x403224]
push 0
push dword [0x403220]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, dword [ebp + 0x10]
inc eax
mov dl, byte [eax]
cmp dl, 0x20
jne 0x401044
jmp 0x401046
jmp 0x40103a
inc eax
push eax
push 0x403123
call fcn.00401110
push 0xfa
push 0x403029
push 0xffffffffffffffff
push 0x403123
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov dword [0x403228], 0x44
mov dword [0x403254], 1
mov word [0x403258], 0
push 0x40326c
push 0x403228
push 0
push 0
push 0
push 0x403029
push 0
push 0
push 0x403025
push 0
push str.mima1
call sub.advapi32.dll_CreateProcessWithLogonW
push 0xffffffffffffffff
push dword [0x40326c]
call sub.kernel32.dll_WaitForSingleObject
push dword [0x40326c]
call sub.kernel32.dll_CloseHandle
push dword [0x403270]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x40dedb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a538]
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.00408cd1
mov dword [ebp - 0x14], eax
cmp dword [0x81567c], esi
jne 0x40dfce
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40df5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e0ae
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e0ae
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e0ae
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81567c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x815680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x815684], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81568c], eax
test eax, eax
je 0x40dfcb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x815688], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40dff3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dfe6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e008
push 4
pop eax
jmp 0x40e0b0
cmp dword [ebp - 0x14], esi
je 0x40e008
push dword [0x81567c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40dfed
mov eax, dword [0x815688]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e066
cmp dword [0x81568c], edi
je 0x40e066
push eax
call ebx
push dword [0x81568c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e066
test eax, eax
je 0x40e066
call ecx
test eax, eax
je 0x40e05b
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 0x40e05b
test byte [ebp - 8], 1
jne 0x40e066
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e096
mov eax, dword [0x815680]
cmp eax, edi
je 0x40e093
push eax
call ebx
test eax, eax
je 0x40e093
call eax
mov esi, eax
test esi, esi
je 0x40e093
mov eax, dword [0x815684]
cmp eax, edi
je 0x40e093
push eax
call ebx
test eax, eax
je 0x40e093
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81567c]
call ebx
test eax, eax
je 0x40e0ae
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e0b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404293
mov esp, ebp
pop ebp
ret
Function at 0x403a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ebp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edi
xor eax, eax
xor ebx, ebx
xor ecx, ecx
shr edi, 3
je 0x403af0
mov al, byte [esi]
xor al, dl
inc esi
movzx ebx, bx
nop
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi]
mov ecx, dword [eax*4 + 0x42b480]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 1]
mov ecx, dword [ebx*4 + 0x42b480]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 2]
mov ecx, dword [eax*4 + 0x42b480]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 3]
mov ecx, dword [ebx*4 + 0x42b480]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 4]
mov ecx, dword [eax*4 + 0x42b480]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 5]
mov ecx, dword [ebx*4 + 0x42b480]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 6]
mov ecx, dword [eax*4 + 0x42b480]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 7]
mov ecx, dword [ebx*4 + 0x42b480]
xor al, dl
add esi, 8
dec edi
jne 0x403a4c
xor edx, ecx
dec esi
pop edi
and edi, 7
test edi, edi
je 0x403b0a
mov al, byte [esi]
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x42b480]
inc esi
dec edi
jne 0x403af8
mov dword [0x453aa4], edx
pop esi
pop edi
pop ebp
pop ebx
mov eax, dword [0x453aa4]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
mov eax, dword [0x453ab0]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00403b20
mov ecx, dword [0x453ab4]
mov dword [0x453ab0], eax
and eax, 0xff
mov edx, dword [0x453ab8]
add ecx, eax
add esp, 8
imul ecx, ecx, 0x8088405
inc ecx
push edx
mov dword [0x453ab4], ecx
shr ecx, 0x18
mov byte [esp + 8], cl
mov eax, dword [esp + 8]
push eax
call fcn.00403b20
add esp, 8
mov dword [0x453ab8], eax
ret

Function at 0x403bf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x403c1c
push edi
push esi
mov esi, dword [esp + 0x10]
movsx edi, byte [esi]
call fcn.00403c20
mov cl, byte [esi]
push edi
xor cl, al
mov byte [esi], cl
call fcn.00403b90
add esp, 4
inc esi
dec ebx
jne 0x403bff
pop esi
pop edi
pop ebx
ret
Function at 0x403c40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov al, byte [0x453abc]
sub esp, 0x100
test al, 1
push ebp
push esi
push edi
jne 0x403c6c
mov dl, al
or dl, 1
mov byte [0x453abc], dl
call sub.KERNEL32.dll_GetTickCount
xor eax, 0xad5302fc
mov dword [0x453ac0], eax
mov eax, dword [esp + 0x110]
push eax
call fcn.00403b50
mov edi, dword [0x453ac0]
add esp, 4
mov edx, 0x3f
lea esi, [esp + 0x108]
mov eax, dword [esi]
lea ecx, [edx - 7]
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
test eax, ebp
je 0x403ca5
xor edi, eax
jmp 0x403cab
mov ecx, edi
shr ecx, 1
add edi, ecx
dec edx
sub esi, 4
cmp edx, 2
jae 0x403c8e
mov dword [0x453ac0], edi
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.0041f130
add esp, 4
call fcn.0041f140
mov ebp, dword [0x453ac0]
mov esi, eax
shl esi, 0x10
xor esi, ebp
call fcn.0041f140
or esi, eax
mov dword [0x453ac8], esi
call fcn.0041f140
mov edx, dword [0x453ac0]
shl eax, 0x10
or eax, edx
xor eax, 0xa183f5e7
mov dword [0x453acc], eax
call fcn.0041f140
mov esi, eax
shl esi, 0x10
call fcn.0041f140
mov edx, dword [esp + 0x114]
or esi, eax
xor esi, 0x9123bacf
push 0xc
shr edx, 0x18
mov dword [0x453ad0], esi
push 0x453ac8
mov byte [0x453ad3], dl
call fcn.00403bf0
add esp, 8
mov eax, 0x453ac8
pop edi
pop esi
pop ebp
add esp, 0x100
ret

Function at 0x403d50
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x403d8b
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [0x453ab8]
mov dl, byte [esi]
or al, 2
and eax, 0xffff
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor dl, cl
mov al, dl
mov byte [esi], dl
push eax
call fcn.00403b90
add esp, 4
inc esi
dec edi
jne 0x403d5e
pop esi
pop edi
ret
Function at 0x4161a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4161be
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov bl, dl
xor bl, byte [ecx]
inc eax
inc ecx
dec edx
mov byte [eax - 1], bl
jne 0x4161b1
pop ebx
ret

Function at 0x419e30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
dec ecx
test cx, cx
jne 0x419e38
ret

Function at 0x419fb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jne 0x419fc0
mov eax, dword [ecx + 0xe]
test eax, eax
je 0x419fe0
mov edx, dword [esp + 0xc]
test edx, edx
je 0x419fe0
mov eax, dword [esp + 8]
movzx si, byte [eax]
add word [ecx + 0x12], si
movzx si, byte [eax]
xor word [ecx + 0x14], si
inc eax
dec edx
jne 0x419fcc
pop esi
ret 0xc

Function at 0x41c930
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x40]
push edi
mov eax, dword [ebp + 0x5c]
push 0
mov ecx, dword [eax + 0x928]
mov eax, dword [esi]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
lea ecx, [esp + 0x10]
push 0x2e
push ecx
mov ecx, ebp
call fcn.0041c7c0
test eax, eax
jne 0x41ca6e
mov edx, dword [ebp + 0x5c]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0x660]
mov edi, eax
add esp, 4
test edi, edi
je 0x41ca6e
mov ax, word [edi + 0x1c]
cmp ax, 0x50
ja 0x41ca6e
xor ebx, ebx
and eax, 0xffff
mov bx, word [edi + 0x20]
xor ecx, ecx
mov cx, word [edi + 0x1e]
add ebx, eax
mov eax, dword [esi + 4]
add ebx, ecx
test eax, eax
je 0x41c9b7
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, edx
cmp ebx, eax
jbe 0x41c9b7
mov ebx, eax
lea edx, [ebx + 0x33]
push edx
call fcn.0041f090
mov esi, eax
add esp, 4
test esi, esi
jne 0x41c9e7
mov ecx, ebp
mov dword [ebp], 1
call fcn.0041c290
push esi
push str._No_memory_available_for_central_records.
push 0x6a
call fcn.0040b130
add esp, 0xc
mov eax, dword [edi]
mov word [esi + 8], 0x19
mov dword [esi + 4], eax
mov cx, word [edi + 6]
mov word [esi + 0xa], cx
mov dx, word [edi + 8]
mov word [esi + 0xc], dx
mov ax, word [edi + 0xa]
mov word [esi + 0xe], ax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x1c], ecx
mov dx, word [edi + 0x1c]
mov word [esi + 0x20], dx
mov ax, word [edi + 0x1e]
mov word [esi + 0x22], ax
mov cx, word [edi + 0x24]
mov word [esi + 0x28], cx
mov edx, dword [edi + 0x26]
lea eax, [esi + 0x32]
push ebx
push eax
mov ecx, ebp
mov dword [esi + 0x2a], edx
call fcn.0041c7c0
test eax, eax
jne 0x41ca6e
mov word [esi + 0x26], ax
mov word [esi + 0x24], ax
mov ecx, dword [edi + 0x2a]
or byte [esi + 0xd], 0x80
mov dword [esi + 0x2e], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
Function at 0x41d370
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov cl, byte [eax]
push edi
mov edi, dword [esp + 0x18]
inc eax
mov bl, byte [eax]
mov dl, cl
xor dl, bl
add cl, 0x83
mov byte [esi], dl
inc esi
inc eax
dec edi
jne 0x41d382
pop edi
pop esi
pop ebx
ret

Function at 0x41d3a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov bl, byte [esi]
mov al, byte [esi + 1]
cmp bl, 0x2a
mov byte [esp + 0x18], bl
mov byte [esp + 0x14], al
je 0x41d422
cmp bl, 0x2e
je 0x41d411
cmp bl, 0x3f
je 0x41d3ff
mov al, byte [edi]
mov cl, bl
xor cl, al
test cl, 0x7f
je 0x41d3f7
movsx edx, al
push edx
call fcn.0041f010
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
and eax, 0xff
push eax
call fcn.0041f010
add esp, 4
cmp ebp, eax
jne 0x41d462
test bl, bl
je 0x41d458
inc esi
inc edi
jmp 0x41d3ac
mov al, byte [edi]
inc esi
cmp al, 0x2e
je 0x41d3ac
cmp al, 0x2f
je 0x41d3ac
test al, al
je 0x41d3ac
inc edi
jmp 0x41d3ac
mov al, byte [edi]
test al, al
jne 0x41d41a
inc esi
jmp 0x41d3ac
cmp al, 0x2e
jne 0x41d462
inc esi
inc edi
jmp 0x41d3ac
movsx ecx, byte [edi]
push ecx
call fcn.0041f010
mov edx, dword [esp + 0x18]
add esp, 4
and edx, 0xff
mov ebx, eax
push edx
call fcn.0041f010
add esp, 4
cmp ebx, eax
je 0x41d452
cmp byte [edi], 0
je 0x41d452
inc edi
jmp 0x41d3ac
inc esi
jmp 0x41d3ac
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x41d930
Capabilities:
Get common file path

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push esi
push edi
je 0x41d94e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41d978
mov edi, 0x43773c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x114]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push 0
push 0x450864
push edx
call edi
test eax, eax
jne 0x41d9c2
push 1
push 0x453aa0
push 0x15
call fcn.0040b2a0
add esp, 0xc
push esi
push 0
push 0x450864
push 0x43773c
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x41da90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x455080]
test eax, eax
je 0x41dab7
push 0
push 0x453aa0
push 0xff
mov dword [0x455080], 0
call fcn.0040b130
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
cmp eax, 1
setne dl
mov eax, edx
ret
Function at 0x41db20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x455080]
test eax, eax
je 0x41db47
push 0
push 0x453aa0
push 0xff
mov dword [0x455080], 0
call fcn.0040b130
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp eax, 1
setne dl
mov eax, edx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov dword [ecx], eax
mov eax, edx
ret

Function at 0x41dc10
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0xa8]
push ebx
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 1
je 0x41dc49
mov eax, 1
pop esi
pop ebx
add esp, 0x9c
ret
test bh, 8
je 0x41dcd3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x41dcd3
test bl, 0x10
push 0
je 0x41dc7a
push 0x2000000
jmp 0x41dc7c
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41dcc5
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push 2
push edx
push 0x9c040
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
add esp, 0x9c
ret
mov eax, 1
pop esi
pop ebx
add esp, 0x9c
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x9c
ret

Function at 0x41e240
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
sub esp, 0x40
mov dword [eax], 0
mov eax, dword [esp + 0x48]
test ecx, ecx
mov byte [eax], 0
jne 0x41e279
lea ecx, [esp]
push 0x40
push ecx
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
push edx
push ecx
push 0
push 0x104
push eax
push 0
jmp 0x41e2ac
mov dl, byte [ecx]
lea ecx, [esp]
mov byte [esp + 0x50], dl
push 0x40
push ecx
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
push edx
push ecx
push 0
push 0x104
lea edx, [esp + 0x68]
push eax
mov byte [esp + 0x6d], 0x3a
mov byte [esp + 0x6e], 0x5c
mov byte [esp + 0x6f], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41e2bc
xor eax, eax
add esp, 0x40
ret
mov eax, 1
add esp, 0x40
ret

Function at 0x41e2d0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp + 4]
push edx
mov byte [esp + 9], 0x3a
mov cl, byte [eax]
mov byte [esp + 0xa], 0x5c
mov byte [esp + 8], cl
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 4
ja case.0x41e2fc.3
jmp dword [eax*4 + 0x41e324]
mov eax, 2
ret
mov eax, 4
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 3
ret
Function at 0x41e510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov edx, 1
mov ecx, eax
push esi
shr ecx, 0x19
add ecx, 0x7bc
mov word [esp + 0x10], cx
mov ecx, eax
shr ecx, 0x15
shr eax, 0x10
and ecx, 0xf
and eax, 0x1f
cmp cx, dx
mov word [esp + 0x12], cx
mov word [esp + 0x16], ax
jb 0x41e550
cmp cx, 0xc
jbe 0x41e555
mov word [esp + 0x12], dx
cmp ax, dx
jb 0x41e560
cmp ax, 0x1f
jbe 0x41e565
mov word [esp + 0x16], dx
lea edx, [esp + 0x24]
push edx
push 0xf003f
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e5c1
mov edx, dword [esp + 0x24]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.sDate
push edx
mov dword [esp + 0x1c], 5
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41e5b4
mov byte [esp + 8], 0x2f
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e5c6
mov byte [esp + 8], 0x2f
mov eax, dword [0x454778]
sub eax, 3
je 0x41e63a
dec eax
mov eax, dword [esp + 8]
je 0x41e5fa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x16]
and ecx, 0xffff
and eax, 0xff
push ecx
and edx, 0xffff
push eax
push edx
push eax
mov eax, dword [esp + 0x22]
jmp 0x41e65f
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x12]
and ecx, 0xffff
and eax, 0xff
push ecx
and edx, 0xffff
mov esi, dword [esp + 0x2c]
push eax
push edx
push eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
push eax
push str._04d_c_02d_c_02d
push esi
call fcn.0041f5f0
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x12]
and ecx, 0xffff
and eax, 0xff
push ecx
and edx, 0xffff
push eax
push edx
push eax
mov eax, dword [esp + 0x26]
mov esi, dword [esp + 0x38]
and eax, 0xffff
push eax
push str._02d_c_02d_c_04d
push esi
call fcn.0041f5f0
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x1c
ret