joyce8/EMBER2024-capa huggingface dataset:
Function at 0x380afd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x380b1d7
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x380b053
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x380b096
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x380b096
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x380b07d
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0380ad87
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x380b096
mov ebx, eax
cmp ebx, 3
jb 0x380b157
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0380a70e
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x380b124
cmp eax, 3
jb 0x380b124
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x380b0d2
jmp 0x380b177
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x380b17d
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0380a70e
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x380b1b8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x380b196
lea edx, [ecx + esi + 0x1af70]
jmp 0x380b198
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0380a591
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x380b1c9
call fcn.0380aec8
cmp dword [esi + 0x6af90], 0
jne 0x380b003
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x380b1ea
lea edx, [ecx + esi + 0x1af70]
jmp 0x380b1ec
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0380a591
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x380bd94
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x380bd9f
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x380be53
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x38251a8]
add ecx, 8
sub edi, 8
dec esi
jne 0x380bdb6
pop ebx
test edi, edi
je 0x380be6c
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x38251a8]
inc ecx
dec edi
jne 0x380be57
pop esi
not eax
pop edi
ret

Function at 0x380be71
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x38251a8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x38251a8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x380c013
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x382c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
mov esi, edx
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], esi
call dword [0x381f110]
test eax, eax
jne 0x380c05b
mov eax, 0x200
jmp 0x380c1df
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x380c071
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x380c07a
or dword [ebp - 0x3c], 2
test cl, 4
je 0x380c083
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x380c08e
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x380c097
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x380c0a4
or dword [ebp - 0x3c], 0x40000000
jmp 0x380c0ab
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x380c0be
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [0x381f0ec]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x380c162
mov esi, dword [0x381f0f0]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [0x381f068]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x380c15f
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x380c15f
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x58]
cmp eax, 0x5a4d
je 0x380c158
cmp eax, 0x454e
je 0x380c158
cmp eax, 0x454c
je 0x380c158
cmp eax, 0x4550
jne 0x380c15f
or dword [ebp - 0x3c], 0x400000
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x380c16e
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x380c17a
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp esi, ebx
je 0x380c1b3
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0380bf88
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
mov dword [esi + 4], edx
call fcn.0380bf88
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push dword [ebp - 0x34]
mov dword [esi + 0xc], edx
call fcn.0380bf88
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp dword [ebp - 0x4c], ebx
je 0x380c1dd
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0380bfac
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0380d6b4
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40184b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40188a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40188a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40188a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40188a
cmp dword [ecx + 0x74], 0xe
jbe 0x40188a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401b10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401b5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b54
test esi, esi
je 0x401b54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b30
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e68
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dce
cmp eax, 4
jne 0x401df0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dde
cmp edx, 4
je 0x401dde
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d40
Function at 0x401370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0xca0000
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
push 0x46
push 0xd2
push 0x80000000
push 0x80000000
mov eax, dword [ebp - 8]
push eax
push str.Sider_3
push str.SIDERCLS
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4013c2
xor eax, eax
jmp 0x40142e
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x50000000
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x32
push 0xc8
push 0xa
push 0xa
mov eax, dword [ebp - 8]
push eax
push str.Sider_for_Pro_Evolution_Soccer_2017
push str.Static
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x14], eax
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x10]
push edx
push 0x30
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40a854
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e3b
mov dword [ebp - 0x14], eax
cmp dword [0x418144], esi
jne 0x40a947
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a8d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40aa27
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40aa27
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa27
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x418144], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x418148], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41814c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418154], eax
test eax, eax
je 0x40a944
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418150], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a96c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a95f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a981
push 4
pop eax
jmp 0x40aa29
cmp dword [ebp - 0x14], esi
je 0x40a981
push dword [0x418144]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a966
mov eax, dword [0x418150]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a9df
cmp dword [0x418154], edi
je 0x40a9df
push eax
call ebx
push dword [0x418154]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a9df
test eax, eax
je 0x40a9df
call ecx
test eax, eax
je 0x40a9d4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a9d4
test byte [ebp - 8], 1
jne 0x40a9df
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40aa0f
mov eax, dword [0x418148]
cmp eax, edi
je 0x40aa0c
push eax
call ebx
test eax, eax
je 0x40aa0c
call eax
mov esi, eax
test esi, esi
je 0x40aa0c
mov eax, dword [0x41814c]
cmp eax, edi
je 0x40aa0c
push eax
call ebx
test eax, eax
je 0x40aa0c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x418144]
call ebx
test eax, eax
je 0x40aa27
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40aa29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039f4
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0xb8
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x401744
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
setne al
add esp, 0xb8
pop ebx
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x406090
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4017e0
mov dword [esp + 4], str.VBOX
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4017b0
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
add esp, 0xb8
pop ebx
ret
mov dword [esp + 4], str.VMware
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401793
mov dword [esp + 4], str.QEMU
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401793
nop
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x401732

Function at 0x4019b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
sub esp, 0x38
lea ebx, [esp + 0x1e]
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x35
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x5e
mov eax, ebx
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x23], 0x7c
mov byte [esp + 0x24], 0x3f
mov byte [esp + 0x25], 0x5f
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x2b
mov byte [esp + 0x28], 0x3f
mov byte [esp + 0x29], 0x2a
mov byte [esp + 0x2a], 0x5e
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x7a
mov byte [esp + 0x2d], 0x62
mov byte [esp + 0x2e], 0x4d
mov byte [esp + 0x2f], 0x64
call fcn.00401460
mov dword [esp + 4], ebx
mov dword [esp], 0x4060dc
call sub.msvcrt.dll_printf
add esp, 0x38
pop ebx
ret
Function at 0x402220
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40226b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402264
test esi, esi
je 0x402264
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402240
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4024a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402578
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4024de
cmp eax, 4
jne 0x402500
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4024ee
cmp edx, 4
je 0x4024ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402450
Function at 0x6a7ab645
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6ae87018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6ae87018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6a7ab705
jmp 0x6a7ab7a5
jmp 0x6a7ab845
jmp 0x6a7ab8e5
jmp 0x6a7ab985
jmp 0x6a7aba25
jmp 0x6a7abac5
jmp 0x6a7abb65
jmp 0x6a7abc05
jmp 0x6a7abca5
jmp 0x6a7abd45
jmp 0x6a7abde5
jmp 0x6a7abe85
jmp 0x6a7abf25
jmp 0x6a7abfc5
jmp 0x6a7ac065
mov dword [ebp - 0x14], 0
jmp 0x6a7ac10c
jmp 0x6a7ac1ac
jmp 0x6a7ac24c
jmp 0x6a7ac2ec
jmp 0x6a7ac38c
jmp 0x6a7ac42c
jmp 0x6a7ac4cc
jmp 0x6a7ac56c
jmp 0x6a7ac60c
jmp 0x6a7ac6ac
jmp 0x6a7ac74c
jmp 0x6a7ac7ec
jmp 0x6a7ac88c
jmp 0x6a7ac92c
jmp 0x6a7ac9cc
jmp 0x6a7aca6c
mov dword [ebp - 0x18], 0
jmp 0x6a7acb13
jmp 0x6a7acbb3
jmp 0x6a7acc53
jmp 0x6a7accf3
jmp 0x6a7acd93
jmp 0x6a7ace33
jmp 0x6a7aced3
jmp 0x6a7acf73
jmp 0x6a7ad013
jmp 0x6a7ad0b3
jmp 0x6a7ad153
jmp 0x6a7ad1f3
jmp 0x6a7ad293
jmp 0x6a7ad333
jmp 0x6a7ad3d3
jmp 0x6a7ad473
mov dword [ebp - 0x10], 0
jmp 0x6a7ad51a
jmp 0x6a7ad5ba
jmp 0x6a7ad65a
jmp 0x6a7ad6fa
jmp 0x6a7ad79a
jmp 0x6a7ad83a
jmp 0x6a7ad8da
jmp 0x6a7ad97a
jmp 0x6a7ada1a
jmp 0x6a7adaba
jmp 0x6a7adb5a
jmp 0x6a7adbfa
jmp 0x6a7adc9a
jmp 0x6a7add3a
jmp 0x6a7addda
jmp 0x6a7ade7a
mov dword [ebp - 0x10], 0
jmp 0x6a7b10ce
jmp 0x6a7adf26
jmp 0x6a7adfc6
jmp 0x6a7ae066
jmp 0x6a7ae106
jmp 0x6a7ae1a6
jmp 0x6a7ae246
jmp 0x6a7ae2e6
jmp 0x6a7ae386
jmp 0x6a7ae426
jmp 0x6a7ae4c6
jmp 0x6a7ae566
jmp 0x6a7ae606
jmp 0x6a7ae6a6
jmp 0x6a7ae746
jmp 0x6a7ae7e6
jmp 0x6a7ae886
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6ae87014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6a7ae937
jmp 0x6a7ae9d7
jmp 0x6a7aea77
jmp 0x6a7aeb17
jmp 0x6a7aebb7
jmp 0x6a7aec57
jmp 0x6a7aecf7
jmp 0x6a7aed97
jmp 0x6a7aee37
jmp 0x6a7aeed7
jmp 0x6a7aef77
jmp 0x6a7af017
jmp 0x6a7af0b7
jmp 0x6a7af157
jmp 0x6a7af1f7
jmp 0x6a7af297
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6ae8701c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6a7af348
jmp 0x6a7af3e8
jmp 0x6a7af488
jmp 0x6a7af528
jmp 0x6a7af5c8
jmp 0x6a7af668
jmp 0x6a7af708
jmp 0x6a7af7a8
jmp 0x6a7af848
jmp 0x6a7af8e8
jmp 0x6a7af988
jmp 0x6a7afa28
jmp 0x6a7afac8
jmp 0x6a7afb68
jmp 0x6a7afc08
jmp 0x6a7afca8
mov eax, dword [0x6ae87008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x6a7afd66
jmp 0x6a7afe06
jmp 0x6a7afea6
jmp 0x6a7aff46
jmp 0x6a7affe6
jmp 0x6a7b0086
jmp 0x6a7b0126
jmp 0x6a7b01c6
jmp 0x6a7b0266
jmp 0x6a7b0306
jmp 0x6a7b03a6
jmp 0x6a7b0446
jmp 0x6a7b04e6
jmp 0x6a7b0586
jmp fcn.6a7b0626
mov eax, dword [0x6ae87018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6a7ade86
nop
leave
ret