joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40526c
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
xor eax, eax
push ebp
push 0x405485
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405461
mov eax, 0x7ffffffe
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x200800
push eax
mov eax, 0x38b14001
call fcn.00402808
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
call fcn.00402748
pop edx
add edx, eax
mov dword [ebp - 0x10], edx
mov eax, 0x47a7c
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x1bf53d2
mov dword [ebp - 0xc], eax
mov eax, 0x7ffffffe
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x200800
and byte [eax], al
push eax
mov eax, 0x38b14001
call fcn.00402808
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
call fcn.00402748
pop edx
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, 0x47a7c
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x1bf53d2
mov dword [ebp - 0x14], eax
mov eax, 0x7ffffffe
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x200800
push eax
mov eax, 0x38b14001
call fcn.00402808
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
call fcn.00402748
pop edx
add edx, eax
mov dword [ebp - 0x20], edx
mov eax, 0x47a7c
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
add eax, 0x1bf53d2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
mov eax, edi
call fcn.00402808
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
call fcn.00402748
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
test edi, edi
jbe 0x40545b
cmp esi, dword [ebp - 0x2c]
jbe 0x40545b
push edi
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x405250]
call fcn.00403cc8
add esp, 4
mov esi, edi
dec esi
test esi, esi
jl 0x405433
inc esi
mov dword [ebp - 0x28], 0
mov eax, pe_nt_image_headers32
call fcn.00402808
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov byte [edx + ecx], al
inc dword [ebp - 0x28]
dec esi
jne 0x40541a
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40545b
mov dword [ebp - 8], 0xffffffff
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40548c
lea eax, [ebp - 0x24]
mov edx, dword [0x405250]
call fcn.00403cd4
lea eax, [ebp - 4]
call fcn.00403208
ret
Function at 0x405d8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
xor eax, eax
push ebp
push 0x405e2f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x41a6b4
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x41a6b8], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040358c
push eax
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x41a6b8], eax
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e36
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret

Function at 0x405e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
xor eax, eax
push ebp
push 0x405f04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41a6b4
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x41a6b8], eax
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.0040366c
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebx]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040358c
push eax
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x41a6b8], eax
cmp dword [0x41a6b8], 0
jne 0x405ed7
mov eax, dword [ebx]
call fcn.0040358c
mov edx, eax
mov eax, ebx
call fcn.00403338
jmp 0x405ede
mov eax, ebx
call fcn.00403208
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f0b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret
Function at 0x405f14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
mov eax, dword [ebp + 8]
call fcn.0040357c
xor eax, eax
push ebp
push 0x405fe8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41a6b4
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x41a6b8], eax
cmp dword [ebp + 8], 0
jne 0x405f81
lea eax, [ebp + 8]
mov edx, 0x406000
call fcn.004032a0
mov eax, dword [ebp + 8]
call fcn.0040338c
push eax
lea eax, [ebp + 8]
call fcn.004035dc
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040358c
push eax
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6b8], eax
cmp dword [0x41a6b8], 0
sete bl
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fef
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
lea eax, [ebp + 8]
call fcn.00403208
ret

Function at 0x406004
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
xor eax, eax
push ebp
push 0x4060a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41a6b4
push 0
push 2
push 0

Function at 0x40603e
Capabilities:
Set registry value

Disassembly:
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x41a6b8], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.0040358c
push eax
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6b8], eax
cmp dword [0x41a6b8], 0
sete bl
mov eax, dword [0x41a6b4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret

Function at 0x406144
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
xor eax, eax
push ebp
push 0x4061d3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
clc
add byte [ebp + 0xd], dh
Function at 0x4061f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040357c
xor eax, eax
push ebp
push 0x406253
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6b8], eax
cmp dword [0x41a6b8], 0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40625a
lea eax, [ebp - 4]
call fcn.00403208
ret

Function at 0x406264
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx

Function at 0x40692c
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4190d4], 0
jne 0x4069fe
mov byte [0x4190d4], 1
xor eax, eax
mov dword [0x4190cc], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x406974
cmp dword [esp + 0x1c], 3
jne 0x4069d4
cmp dword [esp + 0x20], 0x33
jbe 0x4069d4
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x406a08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4069fe
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x406a38
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4069fe
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x4069fe
cmp byte [esp + 9], 0
jne 0x4069fe
jmp 0x4069e9
push 0
push 0x406a38
push 0x406a40
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x4069fe
mov eax, dword [0x4190c8]
call fcn.0040358c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4190cc], eax
add esp, 0xac
ret
Function at 0x407804
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40780c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov edi, 0x41acc0
xor eax, eax
push ebp
push 0x40850f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040723c
mov eax, dword [ebp - 8]
call fcn.00403208
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040338c
cmp eax, 0x7f
jge 0x40787d
push 0
push 0x41ac34
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x41abe0], eax
cmp dword [0x41abe0], 0xffffffff
jne 0x4078b0
mov ebx, 1
jmp 0x4078b0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x41abe0], eax
cmp dword [0x41abe0], 0xffffffff
jne 0x4078b0
mov ebx, 2
mov eax, 0x41ab68
mov edx, 0x408528
call fcn.0040325c
test ebx, ebx
jbe 0x407923
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
cmp eax, 0xcf
ja 0x4078da
bt dword [0x4085d0], eax
jb 0x407913
cmp ebx, 0x4cf
je 0x407913
push 0x4085f4
push dword [ebp - 4]
push 0x408604
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004057d8
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0xc]
call fcn.0040fec0
mov eax, dword [0x41abe0]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4084ec
mov eax, 0x41ac10
call fcn.00403208
mov eax, 0x41ac14
call fcn.00403208
mov eax, 0x41ac18
call fcn.00403208
xor eax, eax
mov dword [0x41ac04], eax
xor eax, eax
mov dword [0x41ac08], eax
mov eax, 0x41ab68
mov edx, 0x408610
call fcn.0040325c
xor eax, eax
mov dword [0x41ac0c], eax
xor eax, eax
mov dword [0x41ac00], eax
mov eax, 0x41ac1c
mov edx, 0x12
call fcn.0040366c
mov eax, 0x41ac20
mov edx, 0x20
call fcn.0040366c
mov eax, 0x41ac24
mov edx, 0x1a
call fcn.0040366c
mov eax, 0x41ac28
mov edx, 0x2f
call fcn.0040366c
mov eax, 0x41ac2c
mov edx, 0x12
call fcn.0040366c
mov eax, 0x41ab68
mov edx, 0x4086e4
call fcn.0040325c
mov eax, 0x41ac30
mov edx, 0x20
call fcn.0040366c
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40840e
Function at 0x409a84
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x409a8c
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x409ce5
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0x13
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x409cca
mov dword [ebp - 0xc], 0x7e0
mov eax, dword [ebp - 0xc]
call fcn.00402490
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004027e8
mov dword [ebp - 8], 0x3f
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
je 0x409b01
cmp eax, 0xea
jne 0x409c95
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x409ad9
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov edi, ebx
shl edi, 2
test byte [esi + edi*8 + 0xc], 2
je 0x409b23
lea eax, [esi + edi*8]
call fcn.00409a84
cmp dword [esi + edi*8 + 8], 3
jne 0x409c86
lea eax, [ebp - 0x14]
mov edx, dword [esi + edi*8 + 0x14]
call fcn.00403338
mov edx, dword [ebp - 0x14]
mov eax, 0x41ab50
mov ecx, 0x409cfc
call fcn.004033d8
inc dword [0x41ab90]
mov eax, 0x41ab68
mov edx, 0x409d08
call fcn.0040325c
mov eax, dword [0x41ab90]
cmp eax, dword [0x41ab94]
jl 0x409c86
mov eax, dword [0x41ab90]
push eax
mov ecx, dword [0x41ad1c]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
mov eax, 0x41ab68
mov edx, 0x409d38
call fcn.0040325c
mov eax, dword [0x41ab50]
push eax
mov ecx, dword [0x41ad18]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00405f14
xor eax, eax
mov dword [0x41ab8c], eax
mov word [0x4191f4], 0
mov eax, 0x41ab68
mov edx, 0x409e04
call fcn.0040325c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x41ab30]
call fcn.0040338c
mov ecx, eax
mov edx, 3
mov eax, dword [0x41ab50]
call fcn.004035e4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00404928
mov eax, dword [ebp - 0x18]
mov edx, dword [0x41ab30]
call fcn.004034d8
jne 0x409c2f
lea eax, [ebp - 0x20]
mov ecx, dword [0x41ab50]
mov edx, 0x409e70
call fcn.004033d8
mov eax, dword [ebp - 0x20]
call fcn.0040fec0
jmp 0x409c54
mov eax, dword [0x41ab50]
call fcn.00409210
lea eax, [ebp - 0x24]
mov ecx, dword [0x41ab50]
mov edx, 0x409e84
call fcn.004033d8
mov eax, dword [ebp - 0x24]
call fcn.0040fec0
mov eax, 0x41ab68
mov edx, 0x409e94
call fcn.0040325c
xor eax, eax
mov dword [0x41ab88], eax
mov eax, dword [0x41ab88]
push eax
mov ecx, dword [0x41ad20]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
inc ebx
dec dword [ebp - 0x10]
jne 0x409b0f
invalid
Function at 0x40ade0
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0
mov eax, dword [0x41ade8]
call fcn.0040358c
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41ab68
mov edx, 0x40ae64
call fcn.0040325c
push 0
push 0
mov eax, dword [0x41adec]
call fcn.0040358c
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41ab68
mov edx, 0x40aecc
call fcn.0040325c
push 0
push 0
mov eax, dword [0x41adf0]
call fcn.0040358c
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41ab68
mov edx, 0x40af88
call fcn.0040325c
ret

Function at 0x40cffc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, 0x41ab68
xor eax, eax
push ebp
push 0x40d1f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.004026c0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00404964
mov edx, dword [ebp - 4]
mov eax, 0x41ab40
call fcn.0040325c
cmp byte [0x41aba9], 0
jne 0x40d060
mov eax, dword [0x41ab40]
push eax
mov ecx, dword [0x41ace8]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00405f14
mov eax, edi
mov edx, 0x40d210
call fcn.0040325c
cmp byte [0x41aba9], 0
je 0x40d07f
call fcn.0040d728
jmp 0x40d1dd
mov eax, edi
mov edx, 0x40d28c
call fcn.0040325c
xor ebx, ebx
push 0
mov eax, dword [0x41ae1c]
call fcn.0040358c
push eax
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x40d0b1
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x40d08d
mov eax, edi
mov edx, 0x40d2d0
call fcn.0040325c
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x40d378
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
mov eax, edi
mov edx, 0x40d388
call fcn.0040325c
mov eax, dword [0x41acfc]
call fcn.0040358c
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov eax, edi
mov edx, 0x40d43c
call fcn.0040325c
test esi, esi
jne 0x40d118
mov eax, dword [0x41ad04]
call fcn.0040358c
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x40d1a8
mov eax, edi
mov edx, 0x40d510
call fcn.0040325c
mov eax, dword [0x41ae20]
call fcn.0040358c
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, edi
mov edx, 0x40d588
call fcn.0040325c
test esi, esi
je 0x40d1a8
call esi
mov eax, edi
mov edx, 0x40d5b4
call fcn.0040325c
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x4191c8
mov edx, 5
call fcn.004165ec
mov eax, edi
mov edx, 0x40d654
call fcn.0040325c
mov eax, dword [0x41ad10]
call fcn.0040358c
mov edx, eax
mov eax, 0x41abbc
mov ecx, 0xbb8
call fcn.00405c88
test al, al
je 0x40d1dd
call fcn.0040d728
call fcn.00410098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1ff
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret
Function at 0x40d728
Capabilities:
Check os version
Create directory
Delete registry key
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x40d730
push ebx
push esi
push edi
mov esi, 0x41ab34
mov edi, 0x41ab68
mov ebx, 0x41abab
xor eax, eax
push ebp
push 0x40ec69
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x41abac], 0x66
jne 0x40d7a5
mov eax, dword [0x4192d4]
push eax
push 0x400
add byte [eax], al
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x41ace8]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00405e40
mov edx, dword [ebp - 4]
mov eax, 0x41ab40
call fcn.0040325c
cmp byte [0x41aba9], 0
jne 0x40d7a5
push 0x2710
call sub.kernel32.dll_Sleep
mov eax, edi
mov edx, 0x40ec80
call fcn.0040325c
mov ecx, dword [0x41ace8]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406264
lea eax, [ebp - 8]
call fcn.00405b84
mov edx, dword [ebp - 8]
mov eax, 0x41ab30
call fcn.0040325c
lea eax, [ebp - 0xc]
call fcn.00405bf0
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040325c
mov eax, 0x41ab38
mov ecx, 0x40ec98
mov edx, dword [esi]
call fcn.004033d8
mov eax, edi
mov edx, 0x40eca8
call fcn.0040325c
mov eax, dword [0x41ab40]
call fcn.0040338c
test eax, eax
jne 0x40d82b
mov eax, 0x41ab40
mov ecx, dword [0x41acd8]
mov edx, dword [esi]
invalid
lodsd eax, dword [esi]
pop ebx

Function at 0x40fec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
xor eax, eax
push ebp
push 0x40ff99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab68
mov edx, 0x40ffb0
call fcn.0040325c
cmp dword [0x41abb0], 0
jne 0x40ff01
call fcn.0040fdb4
push 2
push 0
push 0
mov eax, dword [0x41abb0]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x40ff1c
call fcn.0040fdb4
lea edx, [ebp - 0xc]
mov al, byte [0x41abaa]
call fcn.004049a0
push dword [ebp - 0xc]
push 0x410088
push dword [ebp - 4]
push 0x410094
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040344c
mov byte [0x41abaa], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040338c
push eax
lea eax, [ebp - 4]
call fcn.004035dc
push eax
mov eax, dword [0x41abb0]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40ff7b
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ffa0
lea eax, [ebp - 0xc]
call fcn.00403208
lea eax, [ebp - 4]
call fcn.00403208
ret
Function at 0x418f56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x418f77
jl 0x418f6e
test edi, edi
jne 0x418f77
xor eax, eax
xor edx, edx
jmp 0x419038
cmp dword [ebx + 0x38], 0
je 0x418f8c
push eax
push edi
push dword [ebp + 8]
call fcn.004188dc
jmp 0x419038
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x418fd3
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x418fd3
cmp eax, edi
jb 0x418fad
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0041ced0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x418fd9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41902d
mov ecx, ebx
call fcn.00419471
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x419018
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00424597
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x41902d
jmp 0x418feb
test edx, edx
je 0x41902d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00424597
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x419ec4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419f03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419f03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419f03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419f03
cmp dword [ecx + 0x74], 0xe
jbe 0x419f03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret