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

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.0040bcd0
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x1798], eax
mov eax, dword [ebp + 0x17a4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xf99]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0xf98], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x4106c8
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a417
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push ebx
jmp 0x40a406
lea eax, [ebp + 0xf98]
push eax
push 0x4106f4
push 0x410720
lea eax, [ebp - 0x68]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3ee
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x410728
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a3ee
cmp dword [ebp - 0x6c], ebx
jbe 0x40a3ee
mov eax, dword [ebp + 0x17a8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x410734
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40a34e
mov eax, dword [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a41d
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x1798]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0040bcaf
add ebp, 0x179c
leave
ret
Function at 0x40a446
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x40a47b
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x40a4c9
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x415360]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a49f
xor eax, eax
jmp 0x40a4c9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4be
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40a60f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040a4cc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push dword [0x415360]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a650
xor eax, eax
pop edi
pop esi
leave
ret
push esi
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40a674
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a64c
xor edi, edi
inc edi
jmp 0x40a667
Function at 0x40b2e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f9c]
mov eax, 0x201c
call fcn.0040bcd0
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x1f98], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1799]
push ebx
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0x1798], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x410a6c
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b44a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push ebx
jmp 0x40b439
lea eax, [ebp + 0x1798]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [ebp + 0x798]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x798]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b421
push edi
lea eax, [ebp + 0xf99]
push ebx
push eax
mov byte [ebp + 0xf98], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push str.RuntimeLib
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b421
cmp dword [ebp - 0x6c], ebx
jbe 0x40b421
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x410ad8
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40b380
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call fcn.00409d3e
mov ecx, dword [ebp + 0x1f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0x1f9c
leave
ret

Function at 0x40bcaf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4153cc]
jne 0x40bcb9
repz ret
jmp fcn.0040c1fb
Function at 0x402ff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x403022
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4121e4
call fcn.00411ca0
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.00401da7
push 0
push 0x1f4
mov ecx, edi
call fcn.00405ff4
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.00405d25
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.00405e6f
push dword [ebp - 0x18]
call fcn.00403935
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4031e8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41227a
call fcn.00411ca0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x414364
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00401fa9
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.00405df4
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.0040327b
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x414334
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40387a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x4038a5
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x418648]
xor eax, edi
inc edx
dec esi
jne 0x40388b
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x404663
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418640], 0
je 0x404686
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x4046b0
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004046b4
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.00403935
pop ecx
mov al, bl
pop ebx
leave
ret 8

Function at 0x404706
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418640], 0
je 0x404726
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40474c
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004046b4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.00403935
pop ecx
mov al, bl
pop ebx
leave
ret 4
Function at 0x404765
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418640], 0
je 0x404787
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x4047a9
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004046b4
push dword [eax]
call fcn.00404750
push dword [ebp - 0xc]
mov bl, al
call fcn.00403935
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x4049a7
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4049bb
xor al, al
jmp 0x4049cb
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x4049ce
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418640], 0
je 0x4049fc
push 0
push dword [ebp + 8]
call fcn.00404663
test al, al
je 0x404a1e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x404a1e
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004046b4
push dword [eax]
call fcn.004049a7
push dword [ebp - 0xc]
mov bl, al
call fcn.00403935
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x404a22
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x412518
call fcn.00411ca0
sub esp, 0x6c
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00401efa
mov esi, dword [ebp + 8]
push 0x5c
lea eax, [ebp - 0x18]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00405229
lea eax, [ebp - 0x18]
push 0x2a
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00405229
mov byte [ebp - 0x34], bl
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00403bdc
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00403935
pop ecx
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x38]
push eax
call fcn.00405707
test al, al
je 0x404ad6
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00403bdc
call fcn.00404b2f
cmp al, bl
jne 0x404a7d
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403935
pop ecx
lea ecx, [ebp - 0x38]
call fcn.004052da
push dword [ebp - 0x18]
call fcn.00403935
push dword [ebp - 0x48]
call fcn.00403935
pop ecx
xor al, al
pop ecx
jmp 0x404b1a
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403935
pop ecx
lea ecx, [ebp - 0x38]
call fcn.004052da
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x404b06
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
push dword [ebp - 0x18]
call fcn.00403935
push dword [ebp - 0x48]
call fcn.00403935
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x404fa7
Capabilities:
Delete file

Disassembly:
mov eax, 0x4125a0
call fcn.00411ca0
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00405058
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00404ef8
test al, al
je 0x405035
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405020
push dword [esi]
call fcn.0040566e
test al, al
je 0x405004
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404f83
push dword [ebp - 0x18]
call fcn.00403935
pop ecx
jmp 0x404fbb
push dword [esi]
call fcn.00404750
test al, al
jne 0x40501e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405035
jmp 0x404fed
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00404f83
push dword [ebp - 0x18]
call fcn.00403935
pop ecx
mov al, bl
jmp 0x405048
lea ecx, [ebp - 0x1c]
call fcn.00404f83
push dword [ebp - 0x18]
call fcn.00403935
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4054e4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41260c
call fcn.00411ca0
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00411e40
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.00403a41
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040559d
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.00401da7
push dword [ebp - 0x24]
call fcn.00403935
push dword [ebp - 0x18]
call fcn.00403935
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40587c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4058a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4058a3
xor al, al
jmp 0x4058c3
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00411e40
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x408126
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412ae7
call fcn.00411ca0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4144f8
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4144f0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040415c
push dword [esi + 8]
mov ecx, ebx
call fcn.0040415c
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040415c
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040415c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x408723
Capabilities:
Create thread

Disassembly:
mov eax, 0x412ca1
call fcn.00411ca0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x414574
mov dword [esi + 4], 0x414568
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.0040889e
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.00405732
mov dword [esi + 0x5c], 0x414560
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.00405732
mov dword [esi + 0x70], 0x414558
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414550
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.00405df4
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x4142b4
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.00405df4
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.00405df4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x40888c
push edi
push edi
mov dword [esi], 0x41453c
mov dword [esi + 4], 0x414530
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x40882d
lea eax, [ebp - 0x10]
push 0x414b80
push eax
mov dword [ebp - 0x10], 0x425d1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408b71
Capabilities:
Create thread

Disassembly:
mov eax, 0x412d3b
call fcn.00411ca0
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
push dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax]
call fcn.0040822f
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040949b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.00408378
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.004093a8
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00409546
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x408c67
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x408c4c
lea eax, [ebp - 0x10]
push 0x414b80
push eax
mov dword [ebp - 0x10], 0x425d0
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004083ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x602f04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x60b018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x602f9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x602f7c
xor eax, eax
push ebp
push 0x602f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x602fb8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x602f7c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x60b018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x60b018], ax
mov esp, ebp
pop ebp
ret

Function at 0x603868
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60c044], 0
je 0x6038c9
cmp word [0x60c218], 0xd7b2
jne 0x603891
cmp dword [0x60c220], 0
jbe 0x603891
mov eax, 0x60c214
call dword [0x60c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x60b060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x6038f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x60b024], 0
jne 0x6038e5
push 0
push 0x60b058
push 0x60b060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret