joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4823f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047ae5e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442370
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047ad8c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00477650
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00477650
push 1
push 0
push 0
mov ecx, esi
call fcn.004775f8
push 1
push 0
push 1
mov ecx, esi
call fcn.004775f8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047aed0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442b90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047ae5e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442370
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047ad8c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442c54
cmp dword [esp + 0x40], 1
jne 0x442c52
cmp ecx, eax
jge 0x442c54
mov eax, ecx
cmp eax, 0xc8
jge 0x442c60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442a10
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047aed0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443450
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4824c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00475a6d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047b106
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047c622
test eax, eax
je 0x44356c
mov ecx, dword [esp + 0x3c]
call fcn.0047b133
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443530
push edi
mov ecx, esi
call fcn.0047879b
mov ecx, esi
call fcn.00443710
cmp dword [esp + 0x38], 1
jne 0x443565
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004788d6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445760
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445793
push esi
call fcn.00453b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44578c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445819
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445802
mov eax, dword [esi + 8]
test eax, eax
je 0x4457b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4457fe
cmp eax, 2
je 0x445802
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4457aa
cmp eax, 3
je 0x4457dd
cmp eax, 1
jne 0x4457aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4457aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4457aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445840
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445828
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445840
add esp, 4
pop esi
ret

Function at 0x4460c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4460e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4460e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4460e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x460e20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x460ec3
test eax, eax
jbe 0x460ec3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x460ec3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x460e6e
xor esi, esi
jmp 0x460e74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x460e9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403890
add esi, eax
push esi
mov ebx, esi
call fcn.00403890
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x460e80
pop ebp
test edi, edi
pop edi
jne 0x460ec3
test ebx, ebx
je 0x460ec3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00465530
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x461025
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46113d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46113d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00475ebf
mov esi, eax
test esi, esi
je 0x46113d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46113d
mov ecx, esi
call fcn.00460fb0
cmp edi, eax
jge 0x46113d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4610c3
mov dword [esp + 0x34], 1
jmp 0x46111e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46113d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00460550
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x476863
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47689b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047491a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004748f2
jmp 0x4768a7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x477f58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x477f9a
call fcn.0047da08
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477f9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477f91
xor eax, eax
jmp 0x477fa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477fa8
pop edi
pop esi
pop ebx
ret 4
Function at 0x47df38
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47df66
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47df84
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047de9e
jmp 0x47df84
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47df84
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047de9e
test edi, edi
mov eax, edi
jne 0x47df6e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403203
pop dword [ebp - 0x24]
mov eax, 0x80e9c135
sub eax, 0x80a98f32
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xbbdc20a4
sub dword [ebp - 0x34], 0x6d89db59
mov dword [ebp - 0x30], 0x16d0224a
sub dword [ebp - 0x30], 0xe49cd605
mov dword [ebp - 0x2c], 0x3be26355
sub dword [ebp - 0x2c], 0xef961f27
mov dword [ebp - 0x28], 0x68c37eae
sub dword [ebp - 0x28], 0x68c37eae
lea eax, [ebp - 0x34]
push eax
mov eax, 0xdd899529
add eax, 0x22b6eb63
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x2975e6ce
add dword [ebp - 0x34], 0x4afc8288
mov dword [ebp - 0x30], 0xf4a0a8ec
add dword [ebp - 0x30], 0x4ccbb889
mov dword [ebp - 0x2c], 0xf311e904
sub dword [ebp - 0x2c], 0x8fa27c98
mov dword [ebp - 0x28], 0xf6ed3db4
sub dword [ebp - 0x28], 0xf6ed3db4
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x27df8232
add eax, 0xd860fea2
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa29
push 0
call eax
mov ecx, 0x582a
mov edi, eax
mov ebx, 0xe82d5fdd
sub ebx, 0xe7ec4fdd
add ebx, dword [ebp - 0x24]
mov esi, 0x5dbeed54
add esi, 0xdf1a3b16
add dword [ebp - 0x1c], 0x353e2252
mov edx, dword [ebx]
xor dword [ebp - 0x18], 0x9390e5ff
add edx, esi
sub dword [ebp - 0x14], 0x4da369f0
mov dword [edi], edx
add dword [ebp - 4], 0xa4e64e6f
add edi, 4
add ebx, 4
loop 0x40331f
add eax, 0x5f77a0d8
add eax, 0xa089b2a3
mov ebx, eax
add eax, 5
mov ecx, 0xd9d94d6f
add ecx, 0x2666b291
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4068c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e9
xor eax, eax
test eax, eax
je 0x4068fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068fc
xor ecx, ecx
jmp 0x4068ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a33
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x7de070
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7de07a
pushal
call 0x7de080
pop ebp
sub ebp, 0x10
sub ebp, 0x3de070
jmp 0x7de096
mov eax, 0x3de070
add eax, ebp
add eax, 0x4c
mov ecx, 0x60f
mov edx, 0xbe608540
xor byte [eax], dl
inc eax
dec ecx
jne 0x7de0ad
jmp 0x7de0c0
retf
Function at 0x588eb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test esi, esi
mov ecx, edi
jbe 0x588ed0
mov dl, byte [esp + 0x14]
mov al, byte [ecx]
add al, dl
xor al, dl
mov byte [ecx], al
inc ecx
dec esi
jne 0x588ec4
mov eax, edi
pop edi
pop esi
ret

Function at 0x595e22
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov esi, eax
rdtsc
lea esp, [esp + 0xc]
js 0x597ce3
setg cl
cwde
mov ecx, 0x11
jbe 0x5a97c7
lea edi, [0x7dac498d]
push edx
lea edi, [ebp - 0x54]
pop eax
cdq
mov al, bl
pushfd
rep movsd dword es:[edi], dword [esi]
xor dx, bx
rcr ch, 2
mov ecx, dword [ebp + 8]
rdtsc
dec eax
mov edx, dword [ebp - 0x44]
xor ax, bx
rol al, 2
not al
rol eax, cl
mov dword [ecx + 0x10], edx
push ecx
adc dl, dl
rcr dword [ecx - 0x3f01932b], 0x8b
inc ebp
or byte [esi - 0x2d], ah
shl dword [esi + 0xf], 1
mov esi, 0xe1d366cb
btc cx, si
mov ecx, dword [ebp - 0x40]
sal dx, cl
sbb dh, 0x27
cmp ax, 0xf29f
mov dword [eax + 0x14], ecx
jmp fcn.005aea00
movsx edi, cl
push 0x717e9193
mov ecx, 0x11
push ecx
push 0xcea21c08
jmp 0x58b4ad
lahf
rdtsc
cwde
lea edi, [ebp - 0x54]
not dx
pushfd
pushal
call fcn.005abc34
mov byte [esp + 8], ah
mov dword [ebp - 0x24], edx
pushfd
mov dword [ebp - 0x3c], 0
pushfd
mov dword [esp], 0x37eb653d
lea esp, [esp + 0x38]
jmp 0x5bec45
shrd dx, bp, 8
sar dh, 1
rcl dx, cl
rol dx, cl
mov edx, dword [ebp - 0x34]
clc
bt bp, 0xf
test al, dh
push 0x5a070d5a
sub eax, eax
movzx ax, al
btc ax, 9
call fcn.005bb5c9

Function at 0x596a70
Capabilities:
Execute anti-debugging instructions

Disassembly:
clc
cmp dword [edx + 0x10], 0
mov byte [esp], 0x25
pushal
pushfd
push dword [esp]
lea esp, [esp + 0x30]
je 0x5b9b98
rdtsc
rdtsc
mov eax, dword [ebp - 0x74]
setge ch
mov ecx, dword [eax + 0xc]
shr al, cl
pushfd
cmc
sar dh, cl
add ecx, dword [ebp + 0x10]
movzx eax, bl
aas
rcr dx, 3
xchg dx, ax
mov edx, dword [ebp - 0x74]
call fcn.005aab19
push 0x58d718
pushal
mov byte [esp + 8], bh
pushfd
lea esp, [esp + 0x24]
call fcn.005a1d4a
push 0x1366adef
mov dword [esp], eax
pushfd
push ebx
lea esp, [esp + 8]
call fcn.005b41f1
cmp bp, bp
stc
cmp cl, bl
test sp, 0x270a
mov dword [ebp - 0x18], eax
push ebx
push dword [esp]
test dl, dh
cmp dword [ebp - 0x18], 0
pushal
call fcn.005b331a
sete al
pushfd
push dword [esp]
mov edx, dword [ebp - 0x34]
call fcn.005a917a
pushfd
mov dword [esp], str.VirtualQuery
jmp 0x5af8ef

Function at 0x5994d7
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
pushfd
lea esp, [esp + 0x2c]
je 0x5a5e4d
setb ah
push 0xc1165ce
mov eax, 0xc0000001
pushal
mov byte [esp], 0x5f
push ebp
push 0x544d7e42
lea esp, [esp + 0x2c]
jmp fcn.005ba844
Function at 0x59c07a
Capabilities:
Encode data using xor

Disassembly:
jle 0x59c0a4
jl 0x59c0fd
invalid
dec esi
sub eax, dword [edx]
push ebx
inc edx
sub edi, dword [ecx + 0x65]
or eax, esi
scasb al, byte es:[edi]
pop edi
mov bh, 0x4c
jne 0x59c0a1
mov byte [0xe181ee63], al
xor eax, ebp
retf
pop esp
inc esi
wait
invalid
mov ebx, 0x938fcd8b
test al, 0xda
dec ebp
adc dword [eax + 6], edi
xor al, 0x7e
xor cl, al
mov ebx, 0x1615bbe6
jno 0x59c0f8
pop edx
popal
pop edi
mov byte [0x9abc8e88], al
stosd dword es:[edi], eax
lcall 0x48ae, 0x436af91d
xchg ecx, eax
rep lodsd eax, dword es:[esi]
outsd dx, dword [esi]
hlt

Function at 0x59e25b
Capabilities:
Execute anti-debugging instructions

Disassembly:
cmp dh, dh
push dword [esp]
cmp dword [ebp + 0x18], 4
pushfd
lea esp, [esp + 0xc]
jne 0x5c45a1
pushfd
cmp dword [ebp + 0x14], 8
jmp 0x5ac28a
mov eax, 0xc0000001
pushfd
pushal
lea esp, [esp + 0x24]
jmp fcn.005ba844
lea esp, [esp + 4]
je 0x5a5e4d
not ax
setp ah
jmp 0x5a0824

Function at 0x59f4c2
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x5b0d35
add esp, 0xc
cmc
clc
cmc
test eax, eax
push 0x30b740ec
lea esp, [esp + 4]
jne 0x5afb82
rdtsc
lahf
mov eax, dword [ebp + 0x14]
movzx dx, cl
push eax
jmp 0x5a427b

Function at 0x59fded
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x5aaf50
mov word [esp], 0xd480
mov byte [esp + 4], 0xd8
lea esp, [esp + 0xc]
je 0x5ab038
xor dh, al
lea ecx, [ebp*2 + 0x3bb1ffe0]
clc
mov edx, dword [ebp + 0xc]
sbb ah, 0x42
neg cl
push 0xf48786c6
mov dword [edx], 0
xadd ah, cl
mov dword [edx + 4], 0
xor cx, 0x83a2
btc dx, cx
shr eax, 8
rcr dh, 4
mov eax, dword [ebp + 0xc]
movsx dx, dl
shld dx, dx, 0xf
mov dword [eax + 8], 0
movzx dx, bl
or dl, 0x8b
and cl, cl
pushfd
mov dword [eax + 0xc], 0
pushal
cdq
seta cl
mov ecx, dword [ebp + 0xc]
sub ah, 0x46
inc esi

Function at 0x5a0415
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 8]
je 0x5a5e4d
bswap ax
mov eax, 0xc0000001
pushfd
lea esp, [esp + 4]
jmp fcn.005ba844

Function at 0x5a0af7
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x28]
jne 0x5b2860
call fcn.005b714d
Function at 0x5a3991
Capabilities:
Enumerate pe sections
Execute anti-debugging instructions

Disassembly:
mov dword [eax + 4], ecx
clc
cmc
call fcn.005b9fff
mov dword [esp + 0x20], eax
pushal
lea esp, [esp + 0x40]
jle 0x5c576a
push 0xa5f50899
lea esp, [esp + 4]
call 0x58adeb
rcl cx, 6
bt edi, 7
add esp, 4
shld ecx, edi, 0x1a
mov ecx, dword [ebp + 8]
shrd dx, bx, 8
mov edx, dword [ebp + 8]
sbb ah, al
pushal
adc ax, 0x1f73
sal al, cl
sub edx, dword [ecx + 8]
and cl, 0xf2
sar al, 3
pop eax
mov dword [ebp - 0x1c], edx
aaa
mov eax, dword [ebp + 0xc]
xadd ecx, edx
bswap ecx
mov dword [ebp - 0x14], eax
cdq
rcl dh, 6
shrd cx, sp, 3
shl cl, 5
mov ecx, dword [ebp - 0x14]
btr dx, bx
stc
and edx, 0x9fc9683c
shl dl, 2
mov dword [ebp - 0xc], ecx
pushfd
lea ecx, [edx - 0x557f776a]
sar cx, cl
mov edx, dword [ebp - 0xc]
btc cx, 8
cmc
mov eax, dword [ebp - 0xc]
ror cx, 0xe
add eax, dword [edx + 0x3c]
test bp, 0x53cb
sar cl, 2
rcl ecx, cl
bts cx, bp
mov dword [ebp - 8], eax
bsr cx, ax
aas
dec ah
and cl, al
mov ecx, dword [ebp - 8]
das
mov ah, byte [esp + 0xc]
btc ax, 1
xor edx, edx
call fcn.005a6245
pushfd
pushal
jmp 0x5aba43

Function at 0x5ab885
Capabilities:
Execute anti-debugging instructions

Disassembly:
not ch
mov dword [eax], 0
cmc
cmp dl, 0xe
btr cx, 4
clc
mov ecx, dword [ebp + 0x14]
cmp cl, bl
mov dword [ecx + 4], 1
clc
call fcn.005aee6d
mov dword [ecx + 4], 0
rdtsc
add ax, 0x1935
mov edx, dword [ebp - 0xc]
pushal
mov dword [edx], 1
adc ax, 0x3b52
rdtsc
mov eax, dword [ebp - 0xc]
cmp bl, al
xor cl, ah
pop ecx
shl ch, cl
mov ecx, dword [ebp - 4]
sal dx, 0xd
mov dword [eax + 8], ecx
bsf dx, di
mov edx, dword [ebp - 0xc]
das
cwde
mov eax, dword [ebp - 8]
sal cx, 1
pop ecx
mov dword [edx + 0xc], eax
cmc
btc dx, 1
bts cx, cx
mov ecx, dword [ebp - 0xc]
sal dh, 6
or ecx, 0x80000000
ror dl, cl
push edx
mov edx, dword [ebp + 8]
mov byte [esp + 8], 0xbe
mov dword [edx], ecx
bt ax, 0xb
bt cx, bp
clc
pushfd
cmp dword [ebp + 0x14], 0
mov byte [esp + 8], cl
pushal
push esi
lea esp, [esp + 0x44]
je 0x59688a
invalid
shrd ax, dx, cl
aam 0x17
sal cx, 0xf
mov eax, dword [ebp + 0x14]
bswap cx
jmp 0x5a04d6
mov byte [esp + 4], 0x21
lea esp, [esp + 8]
je 0x5b2a43
bsr dx, ax
sub dl, al
aam 4
mov ecx, dword [ebp - 0xc]
jmp 0x5a8a3b