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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474734
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x474537
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00473f9c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040bd14
cmp al, 1
jne 0x474537
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004742b4
test al, al
je 0x4746c3
cmp dword [ebp - 8], 0
jge 0x474555
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00473f9c
mov eax, dword [ebp - 0x210]
call fcn.00404988
cmp ebx, eax
jge 0x47459f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00473f9c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x485af8]
and eax, 0xff
bt dword [edx], eax
jae 0x47459f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4745b3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004744b0
cmp ebx, dword [ebp - 8]
je 0x4746b5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4745df
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4856fc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4746a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4856fc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004404b4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4856fc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004404b4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4746a9
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x474716
cmp dword [ebp - 8], 0
jge 0x4746ce
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00473f9c
mov eax, dword [ebp - 0x218]
call fcn.00404988
cmp eax, dword [ebp - 8]
jg 0x474708
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00473f9c
mov eax, dword [ebp - 0x21c]
call fcn.00404988
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004744b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47473b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004046f4
ret
Function at 0x402140
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xcf964817
xor esi, ebx
add edx, esi
mov ebx, edx
mov edi, ebx
mov esi, 0
xor esi, edi
add esi, edx
jne 0x40210d
pop edi
push 0x25e659d6
mov eax, 0x181cd3c0
pop edx
xor eax, edx
push eax
push 0x477cbbd7
mov esi, 0x7ac6910d
pop edx
xor esi, edx
pop ebx
xor esi, ebx
push esi
pop eax
sub eax, 0x33
mov ecx, 1
sub eax, ecx
mov esi, dword [eax + 0x34]
xor edx, edx
add edx, esi
add esp, 0xfffffffc
mov dword [esp], edx
mov ecx, 0x3bbcab85
xor ecx, 0x3bbcab85
push 0x1a289e7d
mov eax, 0x1a289e7d
pop ebx
xor eax, ebx
xor ecx, eax
add esp, 0xfffffffc
mov ebx, esp
mov dword [ebx], ecx
mov eax, 0x417a8e88
mov esi, 0x28261a3a
xor esi, eax
invalid

Function at 0x4042d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404317
mov edx, dword [esp + 0x10]
push edx
push esi
push str.fabshgjtmidrijgptjsqasqfjcgigmq
call int.00401bb0
add esp, 0xc
xor eax, eax
pop esi
ret 0x18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x404339
push ecx
push eax
push esi
push str.qqiacgieohhhnripcbqacepajpbnbsihtdolr
call int.00401bb0
add esp, 0x10
xor eax, eax
pop esi
ret 0x18
mov eax, 1
pop esi
ret 0x18
Function at 0x407000
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push str.magigadrbbjr
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x407045
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.gaiacqilltsfkrqijcoeoeijmqnhppcagaccceicofqas
call int.00401bb0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
cmp ebp, 0x20
jae 0x40706f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.loqgeqqjcarbmitbodhsfitndfpgfrbnelcsj
call int.00401bb0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
push esi
push edi
mov edi, dword [esp + 0x30]
push str.drtdmqidmmnbqnickal
push ebp
mov al, byte [edi + 3]
mov byte [edi + 3], 0
mov byte [esp + 0x34], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4070f3
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push edx
push ecx
push edi
call eax
test eax, eax
je 0x407148
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
shr eax, 0xa
shl edx, 0x16
add eax, edx
mov edx, dword [esp + 0x1c]
shr ecx, 0xa
shl edx, 0x16
add ecx, edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
shr ecx, 0xa
shl edx, 0x16
add ecx, edx
mov dword [ebx], eax
push ecx
push eax
push str.tqttjgbmhikktdhnjpkbkoaldgtt
call int.00401bb0
add esp, 0x10
mov esi, 1
jmp 0x40714a
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x407148
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, ecx
mov esi, dword [esp + 0x18]
imul eax, edx
imul eax, esi
shr eax, 0xa
mov dword [ebx], eax
mov ebx, dword [esp + 0x20]
push ebx
push esi
push edx
push ecx
push eax
push str.otekkdnbrsqjhcbmgqgmcmicqnqlhjhk
call int.00401bb0
add esp, 0x18
mov esi, 1
jmp 0x40714a
xor esi, esi
mov cl, byte [esp + 0x2c]
push ebp
mov byte [edi + 3], cl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x4077d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x140
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407840
push edi
call fcn.00401ec0
mov esi, eax
dec esi
js 0x40780a
cmp byte [esi + edi], 0x5c
je 0x407806
dec esi
jns 0x4077fb
jmp 0x40780a
mov byte [esi + edi], 0
test esi, esi
jle 0x407827
push edi
call fcn.004077d0
test eax, eax
jne 0x407823
pop edi
pop esi
add esp, 0x140
ret 4
mov byte [esi + edi], 0x5c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret 4
Function at 0x407860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40b9b8
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40791c
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00401f20
lea ecx, [esp + 0xc]
push ecx
call fcn.00401ec0
lea ecx, [esp + eax + 0xc]
lea edx, [esp + 0xc]
cmp ecx, edx
jbe 0x4078c2
mov al, byte [ecx]
cmp al, 0x5c
je 0x4078c1
cmp al, 0x2f
je 0x4078c1
dec ecx
lea eax, [esp + 0xc]
cmp ecx, eax
ja 0x4078ac
jmp 0x4078c2
inc ecx
mov byte [ecx], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.004077d0
test eax, eax
jne 0x4078ef
push ebx
push str.jrspoeokomssscljbetgqnfmhcgotqtr
call int.00401bb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
push 0x40b9b8
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40791c
push ebx
push str.ihdpnrhrgrfmkabdemjlsdnalnk
call int.00401bb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
mov edi, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push esi
push edi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x40795f
push ebx
push str.omrhjdnblhgbfratchqpipfrnnlbh
call int.00401bb0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc

Function at 0x407c60
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x407caa
push esi
call fcn.00401ec0
cmp byte [eax + esi - 1], 0x5c
je 0x407ca3
push 0x40baa4
push esi
call fcn.00401ef0
push edi
push esi
call fcn.00401ef0
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x407d50
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x520
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
mov esi, dword [esp + 0x534]
push edi
mov edi, dword [esp + 0x53c]
push edi
push esi
push ebp
push 0x40dcb4
push str.ktlmmktemscsgpifcagmorjqfrlrbdegilfhrjjj
call int.00401bb0
mov ebx, dword [esp + 0x554]
add esp, 0x14
lea eax, [esp + 0x120]
push ebp
push ebx
push edi
push esi
push eax
call fcn.00407cc0
lea ecx, [esp + 0x10]
push ecx
push 0x40a270
push 1
push 0
push 0x40a260
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x407f12
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00401f20
cmp byte [esp + 0x1c], 0x24
jne 0x407dd6
mov byte [esp + 0x1e], 0
jmp 0x407ddb
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x224]
push eax
mov eax, dword [esp + 0x538]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00408220
lea ecx, [esp + 0x224]
push esi
push ecx
lea edx, [esp + 0x24]
push str.neni
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
push edi
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push ebp
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea edx, [esp + 0x1c]
push ebx
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea edx, [esp + 0x224]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push 0x40a280
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x407ee8
lea eax, [esp + 0x328]
push 0x104
push eax
lea ecx, [esp + 0x128]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x328]
push 1
mov eax, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
je 0x407ec2
lea edx, [esp + 0x120]
push edx
push str.cttkmcjjfbcrgtilbtig
call int.00401bb0
add esp, 8
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x520
ret 0x14
push eax
push str.cirgbpdfbqjtmirhlqtqddikacgtnfen
call int.00401bb0
mov eax, dword [esp + 0x18]
add esp, 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x520
ret 0x14
push eax
push str.cnsjbhgiarfbgnmkrokprfbbnqqtgqemn
call int.00401bb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret 0x14
Function at 0x4080f0
Capabilities:
Enumerate gui resources

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, 0x3e8
sub esp, 0x178
cmp ecx, eax
jge 0x40810a
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x190]
mov ecx, dword [esp + 0x188]
push ebx
mov ebx, dword [esp + 0x190]
push ebp
mov ebp, dword [esp + 0x188]
push esi
push edi
push eax
push ebx
push ecx
push ebp
push str.mfdinsckhcdifomtmjdcidpicaembjeglhapg
call int.00401bb0
add esp, 0x14
xor esi, esi
mov edx, dword [esp + 0x1a4]
mov ecx, 0x5e
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00401f20
lea edx, [esp + 0x110]
mov ecx, dword [esp + 0x198]
push ecx
push edx
call fcn.00401f20
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00401f20
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
push ecx
push 0x407f40
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, 1
cmp dword [esp + 0x18], eax
je 0x4081d5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4081f2
cmp ebp, eax
je 0x4081d5
mov eax, 0x66666667
imul dword [esp + 0x194]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x40813d
mov edx, dword [esp + 0x18c]
xor eax, eax
mov byte [edx + 0x9ac], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 0x1c
test esi, esi
jne 0x4081e5
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
mov byte [ecx + 0x9ac], 0
pop ebx
add esp, 0x178
ret 0x1c
Function at 0x403178
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push edi
xor edi, edi
push esi
push ebx
push eax
push 8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x403204
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x10c]
mov esi, 0x105
push esi
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4031ef
cmp dword [ebp + 0x10], edi
jne 0x4031e1
lea eax, [ebp - 0x10c]
push edi
push eax
push dword [ebp - 4]
call fcn.00403178
test eax, eax
jne 0x4031ef
lea eax, [ebp - 0x10c]
push esi
push eax
push edi
push dword [ebp - 4]
jmp 0x4031b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x403204
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 ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x40356a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x403587
mov dword [ebp - 8], 0x8000
mov ebx, edi
and dword [ebp - 4], 0
test edi, edi
jne 0x403596
mov ebx, 0x41949c
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4035ab
mov ecx, dword [0x44bb58]
add ecx, eax
push ecx
call fcn.00403798
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403766
test eax, eax
je 0x403754
test byte [ebp + 0x17], 0x80
je 0x4036fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4153d0
mov dword [ebp - 0xc], eax
call fcn.00406899
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40375c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4035fb
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41549c
push edi
call fcn.00403766
or eax, eax
je 0x403754
sub dword [ebp + 0x14], esi
mov dword [0x4153e8], edi
mov dword [0x4153ec], esi
mov ecx, 0x4153d0
mov eax, dword [ebp - 8]
mov dword [0x4153f0], ebx
mov dword [0x4153f4], eax
call fcn.004068bb
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4036f2
mov edi, dword [0x4153f0]
sub edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x40a848], 1
mov esi, eax
je 0x40369d
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40366a
cmp dword [ebp + 0x14], 0
jne 0x40369d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x54]
sub esp, 0xfffffff4
push eax
push 0
call fcn.004055b7
mov dword [ebp - 0xc], esi
xor eax, eax
cmp edi, eax
je 0x4036e7
cmp dword [ebp + 0x10], eax
jne 0x4036c6
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036f6
cmp dword [ebp - 0x10], edi
jne 0x4036f6
add dword [ebp - 4], edi
jmp 0x4036dc
sub dword [ebp - 8], edi
add dword [ebp - 4], edi
cmp dword [ebp - 8], 1
mov ebx, dword [0x4153f0]
jl 0x40375c
cmp dword [ebp - 0x14], 1
je 0x40375c
jmp 0x40361e
cmp dword [ebp + 0x14], eax
jg 0x4035ee
jmp 0x40375c
push 0xfffffffffffffffc
jmp 0x403756
push 0xfffffffffffffffe
jmp 0x403756
test edi, edi
jne 0x403741
cmp dword [ebp + 0x14], 0
jle 0x40375c
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x14], edi
jge 0x40370f
mov edi, dword [ebp + 0x14]
mov ebx, 0x41549c
push edi
push ebx
call fcn.00403766
or eax, eax
je 0x403754
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036f6
cmp edi, dword [ebp + 0x10]
jne 0x4036f6
add dword [ebp - 4], edi
sub dword [ebp + 0x14], edi
jmp 0x4036fe
cmp dword [ebp + 0x14], esi
jge 0x403749
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403766
or eax, eax
jne 0x403759
push 0xfffffffffffffffd
pop eax
jmp 0x40375f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403e70
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
mov ebx, pe_overlay
push ebp
push esi
push edi
mov edi, 0x47c000
je 0x403e8f
push edi
call fcn.00406250
jmp 0x403e95
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44bb44]
mov edx, esi
dec esi
test edx, edx
je 0x403ee9
mov ecx, dword [0x44bb08]
mov ecx, dword [ecx + 0x64]
mov ebp, ecx
imul ecx, esi
neg ebp
add ecx, dword [0x44bb40]
mov dx, word [ecx]
xor dx, ax
and edx, ebx
test dx, dx
je 0x403ed0
mov edx, esi
dec esi
add ecx, ebp
test edx, edx
jne 0x403eb8
jmp 0x403ee9
mov edx, dword [ecx + 2]
mov dword [0x447ae0], edx
mov edx, dword [ecx + 6]
mov dword [0x44bba8], edx
lea edx, [ecx + 0xa]
or edx, edx
jne 0x403efb
cmp bx, 0xffff
jne 0x403ef7
mov ebx, 0x3ff
jmp 0x403e95
xor ebx, ebx
jmp 0x403e95
mov dword [0x447adc], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00406237
push 0xfffffffffffffffe
push 0x447b00
call fcn.00406309
push eax
push dword [0x4354b4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [0x44bb28]
mov eax, dword [0x44bb2c]
mov ecx, eax
dec eax
or ecx, ecx
je 0x403f55
lea ebp, [eax + 1]
mov edi, 0x2018
lea ebx, [esi + 0x18]
mov eax, dword [esi]
test eax, eax
je 0x403f4e
push eax
push ebx
call fcn.00406309
add esi, edi
add ebx, edi
dec ebp
jne 0x403f41
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405b0a
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 [0x43acd8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405b2e
test al, 0x10
jne 0x405b31
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43acd8
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]
or eax, eax
je 0x405b5c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405bdc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push edi
push ebx
mov edi, dword [ebp + 8]
push edi
call fcn.00405ec1
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405c10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bb88], eax
jmp 0x405dd9
push esi
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405c2e
or eax, eax
je 0x405d5d
test byte [ebp + 0xc], 2
je 0x405d5d
mov esi, 0x4364d8
push edi
push esi
call fcn.004062da
test ebx, ebx
je 0x405c4b
push str..
push esi
call fcn.004062f8
jmp 0x405c51
push edi
call fcn.00405e26
push 0x40a268
push edi
call fcn.004062f8
push edi
call fcn.004062eb
mov ebx, eax
add ebx, edi
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d53
cmp byte [ebp - 0x118], 0x2e
jne 0x405ca2
cmp byte [ebp - 0x117], 0x2e
je 0x405d36
cmp byte [ebp - 0x117], 0
je 0x405d36
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.004062da
test byte [ebp - 0x144], 0x10
je 0x405ccd
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d36
push dword [ebp + 0xc]
push edi
call fcn.00405bdc
jmp 0x405d36
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406762
pop eax
mov eax, dword [ebp - 0x144]
and al, 0xfe
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, eax
jne 0x405d2e
test byte [ebp + 0xc], 4
push edi
je 0x405d1a
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406762
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004055b7
push 0
push edi
call fcn.00406023
jmp 0x405d36
push str.Delete:_DeleteFile_failed___s__
call fcn.00406762
inc dword [0x44bb88]
pop ecx
pop ecx
jmp 0x405d36
push edi
push 0xfffffffffffffff2
call fcn.004055b7
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
or eax, eax
jne 0x405c7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d5d
and byte [ebx - 1], 0
pop esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405dd9
cmp dword [ebp - 4], ebx
push edi
jne 0x405d7f
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406762
inc dword [0x44bb88]
pop edi
pop ebx
jmp 0x405dd9
call fcn.0040677e
or eax, eax
je 0x405dd9
push edi
call fcn.00405ddf
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406762
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or eax, eax
jne 0x405dd1
test byte [ebp + 0xc], 4
push edi
je 0x405dca
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406762
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004055b7
push ebx
push edi
call fcn.00406023
jmp 0x405dd9
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405d70
push edi
push 0xffffffffffffffe5
call fcn.004055b7
pop ebx
pop edi
leave
ret 8