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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44f4d3
push esi
call fcn.004525a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44f4cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44f559
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44f542
mov eax, dword [esi + 8]
test eax, eax
je 0x44f4f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44f53e
cmp eax, 2
je 0x44f542
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44f4ea
cmp eax, 3
je 0x44f51d
cmp eax, 1
jne 0x44f4ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44f4ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44f4ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044f580
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44f568
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044f580
add esp, 4
pop esi
ret

Function at 0x45b5c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45b663
test eax, eax
jbe 0x45b663
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45b663
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45b60e
xor esi, esi
jmp 0x45b614
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45b63f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040e7c0
add esi, eax
push esi
mov ebx, esi
call fcn.0040e7c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45b620
pop ebp
test edi, edi
pop edi
jne 0x45b663
test ebx, ebx
je 0x45b663
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00461670
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45b7a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45b8bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45b8bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004724f1
mov esi, eax
test esi, esi
je 0x45b8bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45b8bd
mov ecx, esi
call fcn.0045b710
cmp edi, eax
jge 0x45b8bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45b843
mov dword [esp + 0x34], 1
jmp 0x45b89e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45b8bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045acb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x472e95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472ecd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00470f4c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470f24
jmp 0x472ed9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47458f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4745d1
call fcn.0047a044
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4745d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4745c8
xor eax, eax
jmp 0x4745d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004745df
pop edi
pop esi
pop ebx
ret 4
Function at 0x47a574
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47a5a2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a5c0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a4da
jmp 0x47a5c0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a5c0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a4da
test edi, edi
mov eax, edi
jne 0x47a5aa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402ae1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b53
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b2c
cmp dword [ebp + 0x10], ebx
jne 0x402b5a
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ae1
test eax, eax
jne 0x402b3e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x402b53
Function at 0x402f6f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f9c
mov ecx, dword [0x42f098]
push edi
add eax, ecx
push edi
push eax
mov dword [0x420c6c], eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040309a
cmp eax, edi
jl 0x403093
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409020]
call ebx
test eax, eax
je 0x403090
cmp dword [ebp - 4], esi
jne 0x403090
push dword [ebp + 8]
add dword [0x420c6c], esi
call fcn.0040309a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403093
cmp dword [ebp + 0x10], edi
jne 0x40305f
cmp dword [ebp + 8], edi
jle 0x40308b
mov esi, 0x41cc28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40300f
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409020]
call ebx
test eax, eax
je 0x403090
cmp edi, dword [ebp - 4]
jne 0x403090
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40305b
cmp dword [ebp + 0x14], edi
jne 0x40305b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420c6c], eax
cmp dword [ebp + 8], 0
jg 0x403002
jmp 0x40308b
push 0xfffffffffffffffe
jmp 0x403092
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40306a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409020]
call ebx
test eax, eax
je 0x403090
mov eax, dword [ebp - 4]
add dword [0x420c6c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403093
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40309a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x420c6c]
mov edi, eax
sub esi, dword [0x40b064]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403270
push dword [0x428c7c]
call fcn.004032ad
push ebp
push ebp
push dword [0x40b064]
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428c78], esi
mov dword [0x420c68], ebp
mov eax, dword [0x420c70]
mov ebx, 0x4000
sub eax, dword [0x428c7c]
cmp eax, ebx
jg 0x40310d
mov ebx, eax
mov esi, 0x41cc28
push ebx
push esi
call fcn.0040327b
test eax, eax
je 0x40323b
add dword [0x428c7c], ebx
mov dword [0x40b068], esi
mov dword [0x40b06c], ebx
cmp dword [0x42f048], ebp
je 0x40319e
cmp dword [0x42f0e0], ebp
jne 0x40319e
cmp dword [esp + 0x10], ebp
je 0x40316b
mov eax, dword [0x428c78]
push ebp
sub eax, dword [0x420c6c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b064]
mov dword [0x420c68], eax
call fcn.00405eb1
jmp 0x40319e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40319e
mov eax, dword [0x42f044]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bb2
push ebp
push 0x6f
push dword [0x42f040]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b068
mov dword [0x40b070], 0x414c28
mov dword [0x40b074], 0x8000
call fcn.00405f52
test eax, eax
jl 0x403244
mov esi, dword [0x40b070]
mov eax, 0x414c28
sub esi, eax
je 0x403205
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403240
cmp esi, dword [esp + 0x14]
jne 0x403240
add dword [0x40b064], esi
cmp dword [0x40b06c], ebp
jne 0x403133
jmp 0x403211
cmp dword [0x40b06c], ebp
jne 0x403244
cmp ebx, ebp
je 0x403244
mov eax, dword [0x420c6c]
mov ecx, eax
sub ecx, dword [0x40b064]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030f7
push ebp
push ebp
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403249
or eax, 0xffffffff
jmp 0x403272
push 0xfffffffffffffffe
jmp 0x403246
push 0xfffffffffffffffd
pop eax
jmp 0x403272
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403270
mov eax, dword [0x428c78]
push ebp
push ebp
push 0x113
push esi
mov dword [0x420c68], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x40540e
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c4c0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405432
test al, 0x10
jne 0x405435
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c4c0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405460
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054c8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405761
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054fc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0c8], eax
jmp 0x40567b
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40551a
test eax, eax
je 0x40562c
test byte [ebp + 0xc], 2
je 0x40562c
mov esi, 0x42b4c0
push edi
push esi
call fcn.00405b74
test ebx, ebx
je 0x405537
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40553d
push edi
call fcn.004056c8
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405622
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056ac
cmp byte [eax], 0
je 0x40558e
cmp byte [ebp - 0x18], 0
je 0x40558e
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40559e
mov al, byte [esi + 1]
cmp al, 0x2e
je 0x405601
test al, al
je 0x405601
push esi
push ebx
call fcn.00405b74
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055c4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405601
push dword [ebp + 0xc]
push edi
call fcn.004054c8
jmp 0x405601
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055f9
test byte [ebp + 0xc], 4
je 0x4055f1
push edi
push 0xfffffffffffffff1
call fcn.00404f30
push 0
push edi
call fcn.004058bc
jmp 0x405601
inc dword [0x42f0c8]
jmp 0x405601
push edi
push 0xfffffffffffffff2
call fcn.00404f30
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40556c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40562c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40567b
cmp dword [ebp - 8], esi
jne 0x405641
inc dword [0x42f0c8]
jmp 0x40567b
push edi
call fcn.00405e49
test eax, eax
je 0x40567b
push edi
call fcn.00405681
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405673
test byte [ebp + 0xc], 4
je 0x405639
push edi
push 0xfffffffffffffff1
call fcn.00404f30
push esi
push edi
call fcn.004058bc
jmp 0x40567b
push edi
push 0xffffffffffffffe5
call fcn.00404f30
pop edi
pop esi
leave
ret 8
Function at 0x405761
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b8c0
push esi
call fcn.00405b74
push esi
call fcn.00405714
mov edi, eax
test edi, edi
jne 0x405782
xor eax, eax
jmp 0x4057d4
push edi
call fcn.00405db0
test byte [0x42f050], 0x80
je 0x40579b
mov al, byte [edi]
test al, al
je 0x40577e
cmp al, 0x5c
je 0x40577e
sub edi, esi
jmp 0x4057b3
call fcn.00405e49
test eax, eax
je 0x4057ad
test byte [eax], 0x10
je 0x40577e
push esi
call fcn.004056c8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40579f
call fcn.00405681
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405845
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405874
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058b8
test edi, edi
jne 0x40587f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058b2
Function at 0x4058bc
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e87
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058e8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a2e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c648], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c648
je 0x40592c
push 1
push 0
push esi
call fcn.00405845
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a34
cmp eax, edi
jg 0x405a34
mov esi, 0x42c0c0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a34
cmp eax, edi
jg 0x405a34
push esi
push ebp
push str._s_s_r_n
push 0x42bcc0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a2e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a27
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a27
cmp edi, dword [esp + 0x18]
jne 0x405a27
push str._Rename__r_n
push esi
call fcn.004057d9
test eax, eax
jne 0x405a3b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b74
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42bcc0
push eax
call fcn.00405825
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f0d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40931c
push eax
call fcn.004057d9
test eax, eax
je 0x4059f2
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405a64
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405a57
sub eax, esi
jmp 0x4059f4
Function at 0x405a68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405acc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405abb
cmp dword [ebp + 0x14], 1
je 0x405abd
cmp dword [ebp + 0x14], 2
je 0x405abd
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405b96
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405bb7
mov ecx, dword [0x42e81c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f078]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42dfe0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d8a
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d8a
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d97
inc ebx
cmp cl, 0xfc
jbe 0x405d7d
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, SHGetFileInfoA
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d28
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c4b
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405cc3
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c6a
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a68
jmp 0x405cbe
cmp eax, 0x26
jne 0x405c9a
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a68
cmp byte [edi], 0
jne 0x405d20
push str.C:Program_Files
push edi
call fcn.00405b74
jmp 0x405cbe
cmp eax, 0x25
jne 0x405cad
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cbe
cmp eax, 0x24
jne 0x405cc3
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d20
cmp dword [0x42f0c4], 0
jne 0x405ccf
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f044]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405d05
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053e3
cmp dword [ebp - 8], 0
jne 0x405d0c
jmp 0x405d08
and byte [edi], 0
test esi, esi
jne 0x405ccf
cmp byte [edi], 0
je 0x405d20
cmp dword [ebp + 0xc], 0
je 0x405d20
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405db0
jmp 0x405d6e
cmp byte [ebp + 0xf], 0xfd
jne 0x405d5c
cmp esi, 0x1b
jne 0x405d41
push dword [0x42f044]
push edi
call fcn.00405ad2
jmp 0x405d52
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b74
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d6e
jmp 0x405d20
cmp byte [ebp + 0xf], 0xff
jne 0x405d6e
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b96
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42dfe0
jmp 0x405d8a
jne 0x405d87
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d8a
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405be2
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405dac
push eax
push dword [ebp + 8]
call fcn.00405b74
leave
ret 8
Function at 0x405ee4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca4c], 0
push esi
jne 0x405f1b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ef5
mov dword [ecx*4 + 0x42ca48], eax
inc ecx
cmp ecx, 0x100
jl 0x405ef0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f4c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca48]
xor eax, esi
inc ecx
dec edx
jne 0x405f2e
pop edi
not eax
pop esi
ret 0xc