joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404570
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x419fa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x10]
call fcn.00406e50
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404510
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4045d2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x10]
call fcn.004043a0
mov eax, dword [ebp - 0x21c]
jmp 0x404663
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404638
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404570
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40462f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
call fcn.004043a0
mov eax, dword [ebp - 0x220]
jmp 0x404663
mov dword [ebp - 4], 0x100
jmp 0x4045d9
lea ecx, [ebp - 0x10]
call fcn.00404450
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.004043f0
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
call fcn.004043a0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040ad0d
mov esp, ebp
pop ebp
ret 4
Function at 0x404be0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x404beb
xor ecx, ecx
jne 0x404beb
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x404c0f
push 0x80004005
call fcn.00402c60
xor eax, eax
jne 0x404bf3
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x404c20
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x406a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4016b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406ad3
jmp 0x406b05
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x10
push 0x401694
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x406af8
jmp 0x406b05
cmp dword [ebp - 8], 6
jbe 0x406b05
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x406b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x208
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4016b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406b59
xor eax, eax
jmp 0x406b96
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x268
push edx
push 0
push 0
push 0x401718
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x406b91
xor eax, eax
jmp 0x406b96
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40a6ef
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x419fa8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0040a684
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40a762
cmp dword [ebp - 0x94], 5
jb 0x40a783
jmp 0x40a77f
cmp dword [ebp - 0x88], 1
jne 0x40a783
cmp dword [ebp - 0x94], 4
ja 0x40a77f
jne 0x40a783
cmp dword [ebp - 0x90], 0
jbe 0x40a783
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x401aa8
call fcn.00402780
test eax, eax
jge 0x40a7a4
mov byte [0x430438], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ad0d
leave
ret

Function at 0x40b020
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40b033
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b02f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x40b060
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b09f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b095
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b0a1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b085
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40bbce
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x419fa8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0x20006
push 0
push 0x401b88
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bc19
jle 0x40bc15
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40bc65
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x40bc57
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40bc57
jle 0x40bc53
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40bc59
xor esi, esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ad0d
leave
ret 4
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401046
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x401046
call edi
push eax
mov eax, dword [esp + 0x10]
push str.CreateDirectory
push str.AddGroup
push str.Error___Unable_to_add_program_group
push eax
call fcn.00405e30
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
push 1
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401080
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push esi
mov esi, dword [esp + 0x320]
push 0
push esi
call fcn.00407bf0
add esp, 8
cmp eax, 0xffffffff
je 0x401240
mov eax, dword [esp + 0x328]
lea edx, [esp + 0xc]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4010b0
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010c1
sub eax, edx
cmp byte [esp + eax + 0xb], 0x5c
jne 0x4010e5
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010d8
sub eax, edx
mov byte [esp + eax + 0xb], cl
lea eax, [esp + 4]
push eax
push 0x40f2b0
push 1
push 0
push 0x40f2c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40121a
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
je 0x401130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Path
push 0x4118d4
push 0x4118e0
jmp 0x401230
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x320]
push str.SetWorkingDirectory
push 0x41191c
push 0x411928
push eax
call fcn.00405e30
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x314
ret
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x40f2d0
push eax
call dword [ecx]
test eax, eax
jne 0x4011e0
mov ecx, dword [esp + 0x324]
push 0x104
lea eax, [esp + 0x114]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
pop esi
add esp, 0x314
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x31c]
push eax
push str.pShellLink__QueryInterface
push 0x41196c
push str.Error___Unable_to_create_program_item
push edx
call fcn.00405e30
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x14
push eax
call dword [ecx + 8]
xor eax, eax
pop esi
add esp, 0x314
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CoCreateInstance
push str.CreateLink
push str.Error___Unable_to_create_program_group_and_item
mov edx, dword [esp + 0x32c]
push edx
call fcn.00405e30
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x314
ret
Function at 0x403dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
xor esi, esi
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x403e0f
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x403e0f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x403e69
dec eax
jne 0x403ea1
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x403e2b
mov esi, 1
cmp eax, 5
jne 0x403ea1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403e45
mov esi, 5
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403e57
mov esi, 6
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x403ea1
mov esi, 7
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x403ea1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403e85
mov esi, 2
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x403e97
mov esi, 3
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x403ea1
mov esi, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov esi, dword [esp + 0x38]
xor eax, eax
push edi
mov edi, dword [esp + 0x44]
cmp edi, eax
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
je 0x40496c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x4c]
push ecx
push eax
push 0x412b20
push esi
mov dword [esp + 0x5c], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40496c
push 0x1c
lea edx, [esp + 0x20]
push edx
push 3
push eax
push 0x412b24
push esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], 0x1c
call ebx
test eax, eax
jne 0x40496c
mov dword [esp + 0xc], 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x412b28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4049c1
mov edx, dword [esp + 0x40]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049a0
sub eax, edi
inc eax
push eax
push edx
push 1
push 0
push str.UserInit
push esi
call ebx
test eax, eax
mov eax, 1
je 0x4049c5
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x404d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov edx, dword [esp + 0x5c]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x30
push 1
push 0
push 0
push edx
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 6
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edi, dword [esp + 0x68]
mov dword [edi], eax
jne 0x404db6
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret
mov eax, dword [esp + 8]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
push edi
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x404ddd
pop ebx
pop edi
pop esi
add esp, 0x54
ret
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
xor eax, eax
cmp ebx, 0x102
pop ebx
pop edi
setne al
pop esi
add esp, 0x54
ret

Function at 0x404e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x118]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push str.mdm.inf
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x18]
push 0x412c30
push edx
stosw word es:[edi], ax
call fcn.0040800d
lea eax, [esp + 0x20]
push 0x412c38
push eax
call fcn.00407fb7
mov esi, eax
push esi
push str._Modem__n
call fcn.0040842c
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.0040842c
push esi
push str.___Standard_19200_bps_Modem__n
call fcn.0040842c
push esi
call fcn.00407c66
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x258]
push str.rundll32.exe_shell32.dll_Control_RunDLL_modem.cpl_Modems_noui_inf_s_sectModem
push eax
call fcn.0040800d
add esp, 0x40
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x224]
push str.NULL
push edx
call fcn.00404d50
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push esi
push edi
xor edi, edi
cmp eax, 2
mov dword [esp + 8], 0
je 0x404fc5
cmp eax, 3
je 0x404fc5
cmp eax, 4
jne 0x404fba
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetupOptionalComponentsRNA
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fb2
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push str.Installed
push ecx
mov dword [esp + 0x6c], 0x40
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404fa7
mov esi, 0x412d54
lea eax, [esp + 0x10]
push ebx
nop
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x404f98
test cl, cl
je 0x404f94
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x404f98
add eax, 2
add esi, 2
test cl, cl
jne 0x404f70
xor eax, eax
jmp 0x404f9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x404fa7
mov edi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x48
ret
pop edi
mov eax, 1
pop esi
add esp, 0x48
ret
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetServicesRemoteAccessNetworkProvider
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fb2
mov edx, dword [esp + 8]
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x48
ret
Function at 0x405e80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405e93
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ea4
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
push esi
push edi
je 0x405ee8
mov eax, 0x414158
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ec0
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405ed0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x41526c
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ef0
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405f00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
pop edi
pop esi
jne 0x405f3b
xor eax, eax
add esp, 0x244
ret
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x254]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x254]
push 0x104
push eax
push 0x415387
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
neg eax
add esp, 0x244
ret

Function at 0x4060b0
Capabilities:
Create directory

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov al, byte [ebp]
test al, al
je 0x4060ed
cmp al, 0x5c
jne 0x4060f5
cmp byte [ebp + 1], 0x5c
jne 0x4060f5
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.00407cd0
add esp, 8
test eax, eax
je 0x4060ed
inc eax
push 0x5c
push eax
call fcn.00407cd0
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4060f9
mov eax, 3
pop ebp
pop ecx
ret
mov dword [esp + 0xc], ebp
push esi
mov eax, ebp
push edi
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406102
sub eax, edx
lea ecx, [eax + ebp + 1]
cmp ebp, ecx
mov dword [esp + 0xc], ecx
mov esi, ebp
je 0x406173
push ebx
lea ebx, [ebx]
mov bl, byte [esi]
cmp bl, 0x5c
je 0x40612b
test bl, bl
jne 0x40616d
cmp esi, dword [esp + 0x18]
jbe 0x40616d
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x40616d
cmp al, 0x5c
je 0x40616d
xor edi, edi
push edi
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x406156
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
mov byte [esi], bl
je 0x406169
cmp edi, 5
je 0x406169
cmp edi, 0xb7
jne 0x406172
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ecx
jne 0x406120
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4074e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x40751a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x414290]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4074f8
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408c52
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x407c31
test byte [esp + 8], 2
je 0x407c31
mov dword [0x41539c], 0xd
mov dword [0x4153a0], 5
jmp 0x407c0c
xor eax, eax
ret

Function at 0x408171
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40819e
test byte [esp + 8], 0x80
je 0x40818c
and eax, 0xfffffffe
jmp 0x40818f
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4081af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408c52
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4088e2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40f2e0
call fcn.0040bf40
mov edi, 0x94
mov eax, edi
call fcn.00407fd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4153a8], ecx
mov eax, dword [esi + 4]
mov dword [0x4153b4], eax
mov edx, dword [esi + 8]
mov dword [0x4153b8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4153ac], esi
cmp ecx, 2
je 0x408942
or esi, 0x8000
mov dword [0x4153ac], esi
shl eax, 8
add eax, edx
mov dword [0x4153b0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40897d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40897d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x408995
cmp eax, 0x20b
je 0x408982
mov dword [ebp - 0x1c], esi
jmp 0x4089a9
cmp dword [ecx + 0x84], 0xe
jbe 0x40897d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4089a3
cmp dword [ecx + 0x74], 0xe
jbe 0x40897d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040a350
pop ecx
test eax, eax
jne 0x4089d5
cmp dword [0x415398], 1
jne 0x4089c2
call fcn.0040b8ad
push 0x1c
call fcn.0040b736
push 0xff
call fcn.00408abb
pop ecx
pop ecx
call fcn.0040beb7
mov dword [ebp - 4], esi
call fcn.0040b4ef
test eax, eax
jge 0x4089ee
push 0x1b
call fcn.004088bd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4158f8], eax
call fcn.0040bd95
mov dword [0x415390], eax
call fcn.0040bcf3
test eax, eax
jge 0x408a14
push 8
call fcn.004088bd
pop ecx
call fcn.0040bac0
test eax, eax
jge 0x408a25
push 9
call fcn.004088bd
pop ecx
call fcn.00408aeb
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x408a38
push eax
call fcn.004088bd
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040ba57
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x408a59
movzx eax, word [ebp - 0x34]
jmp 0x408a5c
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004031a0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x408a7a
push edi
call fcn.00408c12
call fcn.00408c34
jmp 0x408aac
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040bf7b
ret