joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408098
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x4177dc], esi
je 0x408213
cmp dword [ebp + 0x1c], esi
je 0x4080d2
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4080ec
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408234
mov esi, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, eax
inc ebx
cmp dword [ebp + 0xc], 3
jne 0x408119
push esi
call fcn.0040cd1b
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x408140
cmp dword [ebp + 0xc], 2
jne 0x40816a
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x40813d
push esi
call edi
push esi
lea ebx, [ebx + eax + 1]
call edi
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x408128
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x414044]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x408234
cmp dword [ebp + 0xc], 4
jne 0x408140
xor ebx, ebx
mov edi, esi
and byte [ebp + 0x1b], bl
cmp byte [esi], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], esi
je 0x408140
movsx eax, byte [edi]
push eax
call fcn.0040cdb1
mov byte [edi], al
cmp dword [0x41520c], 1
pop ecx
jle 0x4081a5
movsx eax, al
push 4
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x4081b4
mov ecx, dword [0x415000]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x4081c2
mov al, byte [edi]
cmp al, 0x41
jl 0x408204
cmp al, 0x46
jg 0x408204
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x4081f0
cmp al, 0x39
movsx eax, al
jg 0x4081d6
sub eax, 0x30
jmp 0x4081d9
sub eax, 0x37
mov cl, byte [ebp + 0x1b]
shl cl, 4
or cl, al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
inc ebx
and dword [ebp + 0x10], 0
mov byte [eax], cl
jmp 0x408204
cmp al, 0x39
jg 0x4081f8
sub al, 0x30
jmp 0x4081fa
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x408181
jmp 0x408140
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x408234
cmp dword [ebp + 8], esi
jne 0x408234
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop esi
pop ebp
ret
Function at 0x40a58c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push edi
lea eax, [ebp - 0x358]
push 0x104
push eax
call fcn.0040cab4
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
push dword [ebp + 8]
push dword [0x41788c]
call esi
mov ebx, dword [ebp + 0xc]
push ebx
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x41788c]
push 0x3ef
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00409f9a
push dword [0x41788c]
call fcn.004096cc
add esp, 0xc
lea eax, [ebp - 0x154]
push ebx
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040bc53
pop ecx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x40a61c
and byte [eax - 1], 0
xor edi, edi
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.0040ae88
lea eax, [ebp - 0x154]
push eax
call fcn.0040ca2e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebx - 3]
cmp eax, ebx
jae 0x40a64b
mov eax, ebx
push 0x4141f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ebx
jne 0x40a6e3
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0040ae88
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push edi
push eax
call fcn.0040cbd0
add esp, 0x14
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], esi
push eax
je 0x40a69d
push 0x414778
jmp 0x40a6a2
push 0x414768
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x558]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a75e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a75e
call fcn.0040b03d
test eax, eax
pop ecx
je 0x40a75e
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x41475c
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x40a75e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41474c
push eax
call esi
test eax, eax
je 0x40a745
push 0
call eax
test eax, eax
jne 0x40a745
push ebx
call edi
mov edi, eax
test edi, edi
je 0x40a745
cmp dword [ebp + 0x10], 0
mov eax, 0x414738
jne 0x40a734
mov eax, 0x414724
push eax
push edi
call esi
test eax, eax
je 0x40a73e
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x414714
push dword [ebp + 8]
call esi
test eax, eax
je 0x40a755
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x358]
push eax
call fcn.0040ca2e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a770
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4177dc], esi
je 0x40a970
lea eax, [ebp - 4]
mov edi, 0x4147cc
push eax
push 0x1f
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a970
lea eax, [ebp - 8]
mov ebx, 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x4147c0
mov dword [ebp - 8], ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a967
cmp dword [ebp - 0xc], 1
jne 0x40a7ee
lea eax, [ebp - 0x110]
push eax
call fcn.0040cda6
pop ecx
jmp 0x40a80e
cmp dword [ebp - 0xc], 4
je 0x40a808
cmp dword [ebp - 0xc], 3
jne 0x40a970
cmp dword [ebp - 8], 4
jne 0x40a970
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x40a92a
push 0
push 0x4147b4
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a878
lea eax, [ebp - 0x310]
push ebx
push eax
push 0x1c
push dword [0x417bb0]
call fcn.0040b2b1
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x19
push dword [0x417bb0]
call fcn.0040b2b1
add esp, 0x20
lea eax, [ebp - 0x210]
push 2
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x40a882
jmp 0x40a87b
push 5
pop eax
cmp eax, 5
je 0x40a88a
jmp 0x40a817
push 1
pop eax
jmp 0x40a972
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.0040a977
push 2
push 0x41479c
call fcn.0040a977
add esp, 0x10
lea eax, [ebp - 4]
mov edi, 0x414788
push eax
push 0x1f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a970
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40a923
mov dword [ebp - 8], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x40a970
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40a970
push dword [ebp - 4]
call esi
jmp 0x40a970
jle 0x40a970
dec eax
push eax
lea eax, [ebp - 0x110]
push 0x4144f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40adcf
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x40adde
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x40b03d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040ae88
cmp dword [0x4177dc], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40b0d9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40b0d9
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x5a4d
jne 0x40b0d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
push 0
push dword [ebp - 8]
push ebx
call edi
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x4550
jne 0x40b0d1
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40b2b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push 0x414860
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [0x417bdc]
push dword [ebp + 0x14]
push ebx
push 0x41485c
push eax
push 0x414850
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x40b314
cmp eax, 1
jne 0x40b314
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret
push edi
push 0x7c
push ebx
call fcn.0040c3d7
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40b35f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x41484c
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.0040c3d7
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40b32c
pop esi
push 0x7e
push ebx
call fcn.0040c3d7
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40b30e
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040c3d7
pop ecx
pop ecx
jmp 0x40b36a
Function at 0x40b681
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x417bdc]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x4175f0
mov esi, 0x4141a0
push 0x4148c0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40b6e7
push edi
call fcn.0040bd85
pop ecx
mov dword [0x4177c8], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x417bdc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0x4148ac
push esi
call edi
push dword [0x417bdc]
mov byte [0x417814], al
push 8
push 0x414898
push esi
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push ebx
mov byte [0x417878], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x4178d8], eax
call esi
pop edi
pop esi
mov dword [0x4178dc], eax
pop ebx
leave
ret
Function at 0x40ba43
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40ba72
push dword [ebp + 8]
call fcn.0040a4fc
pop ecx
jmp 0x40bc09
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040bc0e
pop ecx
lea eax, [ebp - 0x300]
pop ecx
push 0
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40ba96
push ebx
jmp 0x40ba67
push 1
pop edi
push dword [ebp + 8]
mov dword [0x417828], edi
call fcn.0040a4fc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040ae88
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0040ae88
mov eax, dword [0x4177dc]
add esp, 0x10
cmp eax, 2
jne 0x40bb14
lea eax, [ebp - 0x200]
push 0x414840
push eax
lea eax, [ebp - 0x100]
push eax
push 0x414f80
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40bc09
cmp eax, edi
jne 0x40bb35
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
jmp 0x40bc09
lea eax, [ebp - 0x100]
push eax
call fcn.0040bc53
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push 0x414f68
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40bba2
lea eax, [ebp - 0x100]
push 0x41410c
push eax
call ebx
lea eax, [ebp - 0x100]
push 0x41480c
push eax
call ebx
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bbd7
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x40bbe1
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x40bc09
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc75
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x4177dc], 2
push esi
push edi
jne 0x40bd74
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40bccc
lea eax, [ebp - 0x100]
push 0x41410c
push eax
call edi
lea eax, [ebp - 0x100]
push 0x414840
push eax
call edi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bd34
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push 0x414828
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x40bd81
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bd81
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push 0x414f98
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
jmp 0x40bd23
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x40c2d8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40c2ea
or eax, 0xffffffff
mov dword [0x417808], eax
jmp 0x40c323
mov edx, dword [esp + 8]
mov eax, dword [0x417808]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40c31d
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x417810]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40c2fd
pop edi
mov dword [0x417808], eax
pop esi
not eax
ret

Function at 0x40c326
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040cbd0
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push dword [ebp + 8]
push 0x414fac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x40c38c
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x40c38e
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.0040c3d7
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40c3d5
mov al, byte [esi]
test al, al
je 0x40c3d5
cmp al, 0x5c
je 0x40c3bb
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40c3a8
cmp byte [esi], 0x5c
jne 0x40c3a2
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
jmp 0x40c3a2
pop esi
ret

Function at 0x40c587
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
lea eax, [ebp - 0x318]
push dword [0x4177c4]
push 0x414ff4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x318]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c6e7
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x414644
mov edi, 0x104
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x414fe8
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x414fdc
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x414fd0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x110]
lea ecx, [ebp - 0x110]
neg al
sbb eax, eax
and eax, ecx
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040cda6
pop ecx
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp eax, 0x20
pop esi
ja 0x40c6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x51c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
leave
ret
Function at 0x401596
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40d292
call fcn.00405b08
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0040375e
mov al, byte [ebp + 0xb]
lea edi, [esi + 0x34]
push ebx
mov ecx, edi
mov dword [ebp - 4], ebx
mov byte [edi], al
call fcn.0040134f
mov eax, dword [ebp + 8]
mov dword [esi], 0x40e3b0
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [0x416b88], esi
mov byte [esi + 0x28], bl
mov dword [0x416b84], ebx
mov dword [esi + 0x2c], ebx
mov ebx, 0x4125c8
push ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x30], HeapSize
call fcn.00405b30
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00401265
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x112f6b6
Capabilities:
Encode data using xor

Disassembly:
push 0xa4561c79
lea esp, [esp + 4]
je 0x112eaab
call fcn.01138626
lea esp, [esp + 0x2c]
ja 0x112d800
sub al, 0xf
xchg dword [eax - 0x1f], eax
invalid
pushfd
mov dword [esp], 0x946ab6b9
call fcn.01cb1644
lds ebp, [ebx + 0x275914ae]
dec esi
enter 0x5f24, 0x3a
push esi
adc dword [eax + 1], esi
jg 0x112f6dc
add al, 0x85
jge 0x112f6de
test byte [0xeb96ea77], cl
xchg ebp, eax
clc
dec eax
sbb eax, 0x2f4e3223
adc dword [eax + 0x24], esp
xor eax, 0xa168ee6f
mov esp, 0x36a2e389
js 0x112f6b9
push ebp
and dword [esi + 0x17], eax
in al, 0x53
cwde
scasd eax, dword es:[edi]
invalid
mov word [esp + 8], bx
cmc
cmc
shr eax, 1
lea esp, [esp + 0x4c]
jne 0x11361cf
je 0x112eaab
jmp 0x1136f18
jmp 0x112f6a2
pushal
pushfd
push eax
adc ecx, ecx
pushfd
push dword [esp]
lea esp, [esp + 0x30]
jmp 0x11318ad

Function at 0x1cce2cc
Capabilities:
Encode data using xor

Disassembly:
bt ax, 1
push 0xe8883adc
imul edx, edx, 0xa
bt sp, di
clc
bt dx, sp
add edx, eax
pushfd
pushal
push 0xbf9160fe
lea esp, [esp + 0x30]
jmp 0x112d220