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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1005e26c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x1004ba60
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10043fec
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x100440ee
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x1004409c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100440ef
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10044091
cmp dword [ebp - 0x24], 1
jne 0x10044091
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x1004b9fc
push eax
call fcn.1002a96d
add esp, 0xc
cmp eax, 1
jne 0x10044091
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100440ef
push 0x1004b9f0
call edi
cmp eax, ebx
je 0x100440ef
lea ecx, [ebp - 0x18]
push ecx
push 0x10043f34
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x100440ef
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x10044115
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.10043eb5
cmp eax, ebx
pop ecx
pop ecx
jne 0x10044117
inc edi
cmp edi, esi
jl 0x100440fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.1002a230
leave
ret 4
Function at 0x10044126
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x1005d7d4
je 0x100441e2
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100441ca
mov esi, dword [ebx + 4]
jmp 0x100441c4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100441b4
cmp dword [ebp - 0xc], 4
jne 0x100441b4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x100441ac
or dword [eax + 0x9c], ecx
jmp 0x100441b4
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x10044178
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x1004415b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x1004459c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10047094
call fcn.1002a1e0
sub esp, 0x11c
mov eax, dword [0x1005e26c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x10044695
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x10044669
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.10005900
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.1004459c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10001170
test bl, bl
jne 0x10044669
or dword [ebp - 4], 0xffffffff
jmp 0x100445da
cmp esi, 0x103
je 0x10044679
cmp esi, 0x3f2
jne 0x10044689
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.1002a230
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100446b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x100470bf
call fcn.1002a1e0
sub esp, 0x124
mov eax, dword [0x1005e26c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x120], edi
call fcn.100427a6
cmp eax, edi
mov dword [ebp - 0x128], eax
je 0x1004470a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x128]
push edx
call dword [eax + 0x14]
cmp eax, edi
je 0x10044702
mov edx, dword [eax]
push edi
push edi
push 0xfffffffffffffffc
push edi
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x128], edi
jne 0x100446e3
cmp dword [esi + 0x50], edi
je 0x1004480a
push str.Software_
lea ecx, [ebp - 0x11c]
call fcn.10005900
push dword [esi + 0x50]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], edi
call fcn.10005f40
push 0x1004bc74
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.10005b60
push dword [esi + 0x64]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.10005b60
add esp, 0x18
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001170
lea eax, [ebp - 0x124]
push eax
mov esi, SysReAllocStringLen
push esi
call fcn.1004459c
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100447d8
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x100447cc
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.1004459c
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [edi - 0x10]
call fcn.10001170
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.10001170
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop esi
call fcn.1002a230
leave
ret

Function at 0x10044c4d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x10044c82
cmp edi, dword [esi + 0xc]
jge 0x10044c82
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044c82
cmp edi, dword [eax + 8]
jge 0x10044c82
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x10044c84
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x10044d88
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10044dbc
jmp fcn.10038ec8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x10044e2d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x10044f26
cmp eax, dword [edi + 0xc]
jge 0x10044f26
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x10044e7e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x10044f0f
cmp dword [ebp + 0xc], ebx
je 0x10044f0f
jmp 0x10044ea8
push 0x10
call fcn.10044b19
cmp eax, ebx
je 0x10044e94
mov ecx, eax
call fcn.10044d7f
mov esi, eax
jmp 0x10044e96
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x10044ebf
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10044ecf
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x10044ee1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10038ec8
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.1002a240
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10044f21
cmp ecx, dword [esi + 8]
jge 0x10044f21
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x10044f27
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x67d50bf7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x525d750d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1020632
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x1020638
pop ebp
sub ebp, 0x10
sub ebp, 0xc20628
jmp 0x102064e
mov eax, 0xc20628
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f4
mov edx, 0xd5946ea2
xor byte [eax], dl
inc eax
dec ecx
jne 0x1020665
jmp 0x1020678
sub dword [edi + 0x29], ebp
sub ebx, dword [esi + 0x23a2a2a2]
arpl word [edx - 0x5e], bx
mov byte [0x1a6fa1a2], al
movsb byte es:[edi], byte [esi]
mov byte [0x8a18a2a2], al
mov byte [0x4055a2a2], al
mov eax, dword [0xae23296a]
mov byte [0x67a1a2a2], al
das
mov byte [esi - 0x7959d4a2], 0xf2
retf 0xce2

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x477939
Capabilities:
Encode data using xor

Disassembly:
imul ebx, dword [ecx - 8], 0x6f
mov word [edi - 0x70177136], ss
add ecx, edi
popal
cld
xlatb
nop
lcall 0x523e, 0xff46345a
or eax, 0x754c20d0
inc ecx
add al, 0x4a
rcl byte [esp], cl
sub eax, 0xdf6b1b83
pop ebp
push cs
xor byte [esi - 0x6bc2591a], ah
sub byte [esi - 0x370922c2], dl
jno 0x477942
pop dword [ebx]
iretd
cmp edi, eax
invalid

Function at 0x876520
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ebx, 4
lea eax, [edi + ecx]
sub esi, ecx
lea edx, [ebp + edx - 0x14]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x876547
mov eax, dword [ebp - 4]
inc eax
cmp eax, 4
mov dword [ebp - 4], eax
jl 0x87652e
cmp edi, 0xb0
jge 0x876607
mov esi, 0x7fae38
jmp 0x876577
mov esi, dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x14]
inc eax
mov edx, eax
and edx, 0x80000003
jns 0x87658c
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [ebp + edx*4 - 0x11]
mov dl, byte [ebx + 0x7fac38]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x87657c
mov al, byte [esi]
mov cl, byte [ebp - 0x14]
xor cl, al
add esi, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x14], cl
mov esi, 1
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x8765c6
inc esi
cmp esi, 4
jl 0x8765bd
xor esi, esi
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov ebx, dword [ebp + 8]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x8765e6
inc esi
cmp esi, 4
jl 0x8765dd
cmp edi, 0xb0
jl 0x876574
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x876ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp ebx, 0x10
push edi
jae 0x876b12
mov al, bl
lea edx, [ebp - 0x10]
mov cl, al
push edx
mov ch, cl
mov eax, ecx
shl eax, 0x10
mov ax, cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00876610
add esp, 8
test ebx, ebx
jbe 0x876b65
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
sub ecx, edx
mov esi, ebx
lea eax, [edx + ebx]
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x876afc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 4]
xor edx, edx
mov ecx, 0xc
mov edi, dword [ebp + 8]
div ecx
mov esi, edx
test esi, esi
jle 0x876b3a
mov edx, dword [ebp + 0xc]
lea eax, [edx + ebx - 0x10]
push eax
push edi
call fcn.00876820
add esp, 8
sub ebx, esi
cmp ebx, 0x10
jb 0x876b65
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
lea esi, [ecx + ebx - 0x10]
add ebx, 0xfffffffc
mul ebx
mov ebx, edx
shr ebx, 3
push esi
push edi
call fcn.00876820
add esp, 8
sub esi, 0xc
dec ebx
jne 0x876b55
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x876b70
Capabilities:
Check for peb beingdebugged flag
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
call dword [0x884174]
cmp eax, 1
jne 0x876b94
push 0
call dword [0x884178]
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
je 0x876bbc
push 0x7faee0
call fcn.0087b440
add esp, 4
push 0
call dword [0x884178]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
mov dword [ebp - 8], eax
test byte [ebp - 8], 0x70
je 0x876be3
push 0x7faec4
call fcn.0087b440
add esp, 4
push 0
call dword [0x884178]
mov esp, ebp
pop ebp
ret

Function at 0x876bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x876c32]
lea ecx, [0x876c3a]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x876c56
mov edi, dword [ebp + 8]
lea esi, [0x876c32]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x876c51
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x876c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x876d06
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x876cea
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x876d1c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x876d49
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x876d2d
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x876d61
push eax
call fcn.00876bf0
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x877c30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov ebx, dword [0x884160]
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x208]
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x40c], esi
rep stosd dword es:[edi], eax
mov ecx, 0x7f
lea edi, [ebp - 0x408]
rep stosd dword es:[edi], eax
mov ecx, dword [0x7fa154]
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0xc], eax
je 0x877d95
mov eax, dword [ebx + 0x3c]
xor edi, edi
add eax, ebx
mov cx, word [eax + 6]
mov dx, word [eax + 0x14]
and edx, 0xffff
and ecx, 0xffff
dec ecx
lea edx, [edx + eax + 0x18]
cmp ecx, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jle 0x877cdf
xor eax, eax
lea esi, [edx + 0xc]
mov edx, dword [esi]
mov ecx, dword [esi - 4]
lea eax, [ebp + eax*4 - 0x20c]
add edx, ebx
push eax
push 4
push ecx
push edx
call dword [0x88417c]
mov ecx, dword [ebp - 4]
add esi, 0x28
mov ebx, dword [0x884160]
inc edi
mov eax, edi
and eax, 0xffff
cmp eax, ecx
jl 0x877cae
mov eax, dword [0x7fa13c]
lea ecx, [eax + ebx]
mov eax, dword [eax + ebx]
test eax, eax
jbe 0x877d4b
lea edi, [eax + ebx]
mov eax, dword [ecx + 4]
sub eax, 8
xor edx, edx
test eax, 0xfffffffe
lea esi, [ecx + 8]
jbe 0x877d42
xor eax, eax
mov ax, word [esi]
mov ebx, eax
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x877d24
mov ebx, dword [ebp - 0xc]
and eax, 0xfff
add eax, edi
add dword [eax], ebx
mov eax, dword [ecx + 4]
inc edx
sub eax, 8
mov ebx, edx
shr eax, 1
and ebx, 0xffff
add esi, 2
cmp ebx, eax
jb 0x877d03
mov ebx, dword [0x884160]
add ecx, dword [ecx + 4]
mov eax, dword [ecx]
test eax, eax
ja 0x877cee
mov eax, dword [ebp - 4]
xor edi, edi
test eax, eax
jle 0x877d95
mov ecx, dword [ebp - 8]
xor eax, eax
lea esi, [ecx + 0xc]
jmp 0x877d64
mov ebx, dword [0x884160]
mov ecx, dword [esi - 4]
lea edx, [ebp + eax*4 - 0x40c]
mov eax, dword [ebp + eax*4 - 0x20c]
push edx
mov edx, dword [esi]
push eax
add edx, ebx
push ecx
push edx
call dword [0x88417c]
mov ecx, dword [ebp - 4]
add esi, 0x28
inc edi
mov eax, edi
and eax, 0xffff
cmp eax, ecx
jl 0x877d5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret