joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b70
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00421c60
cmp dword [0x8023b8], 0x37
jne 0x422c3a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4044a4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4044b8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x40452c
push 0
lea ecx, [esp + 0x40c]
push ecx
push 0x404548
push 0x40455c
push 0x404580
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea eax, [esp + 0x808]
push eax
push 0x4045a0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x8023bc]
mov eax, dword [0x7fe828]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1004
ret
Function at 0x1003eaf
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100b15c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x98], esi
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x98]
inc esi
push eax
mov dword [0x100b4f4], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1003f5e
push 2
pop eax
cmp dword [ebp - 0x88], eax
jne 0x1003f5e
cmp dword [ebp - 0x94], 5
jne 0x1003f41
cmp dword [ebp - 0x90], 0
je 0x1003f59
cmp dword [ebp - 0x90], esi
jne 0x1003f2d
mov dword [0x100b4f4], 3
jmp 0x1003f5e
cmp dword [ebp - 0x90], eax
jne 0x1003f5e
mov dword [0x100b4f4], 4
jmp 0x1003f5e
cmp dword [ebp - 0x94], 6
jb 0x1003f5e
cmp dword [ebp - 0x8c], 0x1b58
sbb eax, eax
add eax, 6
mov dword [0x100b4f4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010096ce
leave
ret

Function at 0x100418e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
call fcn.01006b70
test eax, eax
je 0x10042ce
push 0x1001ec0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x100b4c4], eax
jne 0x10041cf
push 0x1001e9c
push 0x1001d30
push 0x1001e84
call fcn.01009352
add esp, 0xc
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001e74
push eax
call esi
push 0x1001e64
push dword [0x100b4c4]
mov dword [0x100b4d0], eax
call esi
push 0x1001e4c
push dword [0x100b4c4]
mov dword [0x100b4d4], eax
call esi
push 0x1001e38
push dword [0x100b4c4]
mov dword [0x100b4d8], eax
call esi
push 0x1001e28
push dword [0x100b4c4]
mov dword [0x100b4dc], eax
call esi
push 0x1001e18
push dword [0x100b4c4]
mov dword [0x100b4e0], eax
call esi
push 0x1001e08
push dword [0x100b4c4]
mov dword [0x100b4e4], eax
call esi
push 0x1001df4
push dword [0x100b4c4]
mov dword [0x100b4e8], eax
call esi
push 0x1001de4
push dword [0x100b4c4]
mov dword [0x100b4ec], eax
call esi
cmp dword [0x100b4d0], edi
mov dword [0x100b4f0], eax
pop esi
je 0x10042b8
cmp dword [0x100b4d4], edi
je 0x10042b8
cmp dword [0x100b4d8], edi
je 0x10042b8
cmp dword [0x100b4dc], edi
je 0x10042b8
cmp dword [0x100b4e0], edi
je 0x10042b8
cmp dword [0x100b4e4], edi
je 0x10042b8
cmp dword [0x100b4e8], edi
je 0x10042b8
cmp dword [0x100b4ec], edi
je 0x10042b8
cmp eax, edi
jne 0x10042ce
push dword [0x100b4c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1001db0
jmp 0x10041b9
xor eax, eax
inc eax
pop edi
ret
Function at 0x1004d17
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100b15c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x100b4f4], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
jne 0x1004d4c
call fcn.01003eaf
cmp dword [0x100b4f4], 3
jg 0x1004d5a
xor eax, eax
inc eax
jmp 0x1004d9f
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1004d9c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1004d93
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010096ce
leave
ret
Function at 0x1006c10
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
sub eax, 0x11
push esi
je 0x1006c37
dec eax
je 0x1006c29
xor eax, eax
jmp 0x1006d64
call fcn.01006b70
mov dword [ebp - 4], 0x1002ad4
jmp 0x1006c43
call fcn.01006b70
mov dword [ebp - 4], 0x1002ac4
mov esi, eax
neg esi
sbb esi, esi
push ebx
and esi, 6
push edi
inc esi
call fcn.01006b70
test eax, eax
je 0x1006caa
cmp dword [ebp + 0x18], 2
jle 0x1006c85
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x1006d5f
push dword [ebp - 4]
push 0x1002aa4
jmp 0x1006cf5
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x1006d5f
push dword [ebp - 4]
push 0x1002a84
jmp 0x1006cf5
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
jmp 0x1006cca
cmp byte [ecx], 0x2c
jne 0x1006cb8
mov byte [ecx], bl
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1006cbd
sub eax, edi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], bl
jne 0x1006cb1
push 0xf003f
push 1
push ebx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1006d04
push 0x1002a64
push 0x1001d30
push 0x1002a48
call fcn.01009352
add esp, 0xc
jmp 0x1006d54
cmp dword [ebp + 0x18], 3
jle 0x1006d2a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1006d58
push dword [ebp - 4]
push 0x1002aa4
jmp 0x1006d40
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1006d58
push dword [ebp - 4]
push 0x1002a84
push 0x1002a48
call fcn.01009352
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1006d62
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1006e39
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xf003f
push 1
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
test esi, esi
je 0x1006e92
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1006e8b
push dword [ebp + 0x10]
push 0x1002b50
push 0x1002b2c
call fcn.0100938e
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1006e94
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10071e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], eax
xor edi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007253
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007253
inc edi
cmp dword [ebp - 8], edi
jne 0x1007253
cmp byte [esi], bl
mov eax, esi
je 0x1007253
cmp byte [eax], 0x2c
jne 0x100724e
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x1007247
cmp dword [ebp - 4], ebx
je 0x1007261
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100726d
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.01006b70
test eax, eax
mov esi, dword [ebp + 0x10]
jne 0x10072a3
cmp byte [esi], bl
mov eax, esi
je 0x10072a3
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x10072a3
cmp byte [eax], bl
jne 0x100729d
mov byte [eax], 0x2c
mov eax, ecx
cmp byte [eax], bl
jne 0x100728f
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072fa
cmp dword [ebp + 0x14], 2
jle 0x10072e7
call fcn.01006b70
test eax, eax
push dword [ebp + 0x14]
push esi
je 0x10072e3
push 7
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10072f3
push 1
jmp 0x10072d4
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10072fa
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x1007308
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007ae2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, eax
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + 0x310]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1002ac4
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x1007b2f
push 0x104
lea eax, [edi + 0x310]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
add edi, 0x414
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0x1002ad4
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x1007b65
push 0x104
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x10088b9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x100b15c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], ebx
call fcn.01006b70
test eax, eax
mov dword [ebp - 0x318], 0x1002f08
jne 0x10088fd
mov dword [ebp - 0x318], 0x1002f58
lea eax, [ebp - 0x31c]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x318]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008ac7
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x314], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1008aba
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
mov eax, dword [ebp - 0x318]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100898b
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100899f
sub eax, ecx
add eax, edi
cmp eax, esi
jae 0x1008a6a
push esi
lea eax, [ebp - 0x310]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x318]
lea eax, [ebp - 0x20c]
push 0x1002f00
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x324]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008a6a
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x330]
push eax
push ebx
push 0x1002f50
push dword [ebp - 0x324]
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x32c]
call fcn.0100796f
add esp, 0x18
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
inc dword [ebp - 0x320]
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x320]
mov dword [ebp - 0x314], esi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1008974
pop edi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.010096ce
leave
ret
Function at 0x1009083
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100b15c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp + 8]
push 5
and ecx, 0xff
pop edx
cmp ecx, edx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], esi
jle 0x10090c9
mov ecx, edx
cmp dword [0x100b700], ecx
mov dword [ebp - 0x208], ecx
jge 0x10090e0
cmp ecx, 1
jne 0x100929d
push ebx
mov ebx, dword [ecx*4 + 0x100b134]
push edi
xor edi, edi
and dword [ebp - 0x218], edi
cmp ecx, edx
mov dword [ebp - 0x20c], ebx
mov ebx, eax
jle 0x1009103
mov dword [ebp - 0x208], edx
test word [ebp + 8], 0x100
je 0x1009137
push dword [ebp - 0x214]
lea eax, [ebp - 0x204]
push esi
mov esi, 0x1ff
push esi
push eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
add esp, 0x10
test eax, eax
jle 0x1009216
mov edi, eax
jmp 0x1009214
test eax, eax
je 0x1009177
mov esi, dword [0x100b158]
jmp 0x100916d
test ebx, ebx
je 0x1009177
cmp byte [ebx], 0
je 0x1009173
push eax
push ebx
call dword [sym.imp.msvcrt.dll_strstr]
cmp eax, ebx
pop ecx
pop ecx
jne 0x100916a
mov eax, dword [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100915f
sub eax, edx
add ebx, eax
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1009143
test ebx, ebx
jne 0x100917c
mov ebx, 0x10030d0
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x10091be
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009189
sub eax, edx
je 0x10091be
push ebx
push dword [ebp - 0x20c]
mov esi, 0x1ff
push dword [ebp - 0x210]
lea eax, [ebp - 0x204]
push 0x10030c4
push esi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x18
jmp 0x10091e0
push ebx
push dword [ebp - 0x210]
mov esi, 0x1ff
push 0x10030b8
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
test eax, eax
jl 0x1009218
push dword [ebp - 0x214]
mov ecx, esi
push dword [ebp - 0x21c]
sub ecx, eax
mov dword [ebp - 0x218], eax
mov edi, eax
push ecx
lea eax, [ebp + eax - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
add esp, 0x10
test eax, eax
jle 0x1009216
add edi, eax
test eax, eax
jge 0x100921a
mov edi, esi
xor esi, esi
inc esi
cmp dword [ebp - 0x208], esi
mov byte [ebp + edi - 0x204], 0
jne 0x1009250
push edi
lea eax, [ebp - 0x204]
push eax
push 0x100b708
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [edi + 0x100b708], 0
mov dword [0x100b704], esi
mov eax, dword [0x100b6fc]
test eax, eax
je 0x1009280
push edi
lea ecx, [ebp - 0x204]
push ecx
push dword [ebp - 0x218]
push ebx
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp + 8]
call eax
add esp, 0x1c
test eax, eax
jne 0x100929b
mov eax, dword [ebp - 0x208]
cmp dword [0x100b700], eax
jl 0x100929b
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010096ce
leave
ret
Function at 0x1009b10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1009b23
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009b1f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1009b50
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 0x1009b8f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1009b85
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1009b91
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1009b75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xa7516c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0xa751c6
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
dec dword [ebp + 8]
mov byte [edi - 1], dl
jne 0xa7518c
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x10003940
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c34f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100cc144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.DefragHelper.0
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea edi, [ebx + 0x28]
mov dword [ebp - 0x14], edi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov dword [edi], vtable.MessageLoop.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea eax, [edi + 0x34]
push 2
push eax
call fcn.1002d179
add esp, 8
lea esi, [edi + 0x64]
mov byte [ebp - 4], 5
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006910
mov dword [esi], eax
lea eax, [edi + 0x6c]
push 2
push eax
call fcn.1002d179
mov dword [ebx + 0xc4], 0
lea ecx, [ebx + 0x140]
mov dword [ebx + 0xc8], 0
xor eax, eax
mov word [ebx + 0xcc], ax
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0xec], eax
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], eax
mov dword [ebx + 0x108], eax
mov dword [ebx + 0x10c], 7
mov word [ebx + 0xf8], ax
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x124], 7
mov word [ebx + 0x110], ax
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x12c], eax
mov dword [ebx + 0x130], eax
push 2
push ecx
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x138], eax
call fcn.1002d179
mov dword [ebx + 0x170], 0
add esp, 0x10
mov byte [ebx + 0x174], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000da50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d1b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100cc144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10039c0d
mov edi, eax
add esp, 4
test edi, edi
je 0x1000db02
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002d93d
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100cc144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 0x34]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.10015530
mov eax, dword [edi + 0xdc]
push ebx
push 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.1007c4b5
mov eax, dword [edi + 0xc8]
sub eax, dword [edi + 0xc4]
push ebx
sar eax, 2
push 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.1007c4b5
mov eax, dword [edi + 0xc8]
add esp, 0x20
sub eax, dword [edi + 0xc4]
xor ebx, ebx
sar eax, 2
mov esi, 8
mov dword [ebp - 0xc], 0
test eax, eax
je 0x10013db6
mov eax, dword [edi + 0xc4]
mov ecx, edi
lea eax, [eax + ebx*4]
push eax
push dword [ebp - 0x10]
call fcn.10013ea0
add esi, eax
mov dword [ebp - 8], esi
adc dword [ebp - 0xc], edx
inc ebx
mov esi, dword [edi + 0xc8]
sub esi, dword [edi + 0xc4]
sar esi, 2
cmp ebx, esi
mov esi, dword [ebp - 8]
jb 0x10013d83
mov ecx, dword [ebp - 0x14]
call fcn.10015620
mov ecx, dword [ebp - 4]
mov eax, esi
mov edx, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10039fbc
mov esp, ebp
pop ebp
ret 4
Function at 0x10013de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100cc144]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
push edi
test esi, esi
je 0x10013e1e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10013e1e
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013e10
sub ecx, edi
lea edi, [ecx + 1]
jmp 0x10013e20
xor edi, edi
push edx
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push 4
push eax
call fcn.1007c4b5
add esp, 0x10
mov ebx, 4
test edi, edi
je 0x10013e59
push dword [ebp - 0xc]
push 1
push edi
push dword [esi + 4]
call fcn.1007c4b5
mov ebx, edi
add esp, 0x10
xor edi, edi
add ebx, 4
adc edi, edi
jmp 0x10013e5b
xor edi, edi
test esi, esi
je 0x10013e63
mov eax, dword [esi]
jmp 0x10013e65
xor eax, eax
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 1
push 4
push eax
call fcn.1007c4b5
mov ecx, dword [ebp - 4]
add esp, 0x10
add ebx, 4
mov eax, ebx
adc edi, 0
xor ecx, ebp
mov edx, edi
pop edi
pop esi
pop ebx
call fcn.10039fbc
mov esp, ebp
pop ebp
ret 8