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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f06
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e41
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f06
cmp dword [ebp - 0x10], 0
jne 0x406e56
mov eax, dword [ebp - 8]
call fcn.0040316c
mov bl, 1
jmp 0x406f06
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e64
call fcn.00405848
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.0040324c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033f4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e0a
test eax, eax
jne 0x406f06
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406eb4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f06
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406ebf
dec esi
test esi, esi
je 0x406ecd
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406ebe
cmp dword [ebp - 0xc], 7
jne 0x406ed8
test esi, esi
je 0x406ed8
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034c4
cmp dword [ebp - 0xc], 7
jne 0x406ef9
test esi, esi
je 0x406ef9
lea eax, [ebp - 0x14]
call fcn.004033f4
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031bc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f23
lea eax, [ebp - 0x14]
call fcn.0040316c
ret

Function at 0x408f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f44
test al, al
jne 0x408fb1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408ffd
xor eax, eax
push ebp
push 0x408fed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033e8
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ff4
lea eax, [ebp - 0xc]
call fcn.00408f80
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409304
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4093f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cc8
mov edx, dword [ebp - 8]
mov ecx, 0x40940c
xor eax, eax
call fcn.004091f8
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093c1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409324
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408dac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c58
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407258
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408d7c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404624
call fcn.00405854
call fcn.00402e88
jmp 0x409324
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093fa
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040318c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040318c
ret

Function at 0x40941c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x409483
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40943e
xor eax, eax
jmp 0x409492
lea eax, [esp + 8]
push eax
push 0x409498
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x409483
xor eax, eax
jmp 0x409492
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x4094ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409506
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094d2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4094e0
cmp edi, 1
jle 0x4094e0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408f90
test eax, eax
jne 0x409506
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409506
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409506
inc edi
dec esi
jne 0x4094c2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x402b47
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x4070b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x198], ebx
mov byte [edi + 0x2b], bl
call fcn.00401be6
mov esi, eax
test esi, esi
jne 0x402ca2
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x402ba5
jle 0x402ca2
movzx esi, si
or esi, 0x80070000
jmp 0x402ca2
push ebx
push ebx
push ebx
push ebx
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402c92
mov dword [edi + 0x24], eax
mov eax, 0xa5b8
mov word [edi + 0x1c], ax
lea eax, [ebp - 0x198]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c77
push 4
pop esi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], esi
push eax
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x19c], esi
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push str.Port
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402c3a
mov ecx, dword [ebp - 0x1a8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x402c3a
mov word [edi + 0x1c], cx
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], esi
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push str.UseIPV6
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402c77
cmp dword [ebp - 0x1a4], ebx
je 0x402c77
mov byte [edi + 0x2b], 1
call fcn.00404f4c
mov esi, eax
test esi, esi
jne 0x402ca2
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x402c9b
call fcn.0040596a
mov esi, eax
jmp 0x402ca2
call sub.webengine4.dll_PerfCounterInitialize
mov esi, ebx
cmp dword [ebp - 0x198], ebx
je 0x402cb6
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405280
mov esp, ebp
pop ebp
ret

Function at 0x402e0f
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0xc], bl
call fcn.00402a87
push ebx
push ebx
push ebx
push 0x402e00
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x402e3a
call fcn.0040596a
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4049d1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], ecx
push edi
inc eax
xor edi, edi
cmp byte [ecx + 0xd8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
jne 0x404aa0
mov byte [ecx + 0xd8], al
mov eax, dword [ebp + 0x18]
push ebx
push esi
test eax, eax
je 0x404a0a
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
jmp 0x404a0d
and dword [ebp - 8], edi
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x14]
lea ebx, [eax*2 + 0x3e]
push ebx
mov dword [ebp - 0xc], ebx
call fcn.00405985
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x404a92
xor edi, edi
push edi
push edi
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov ebx, eax
mov eax, dword [ebp - 0xc]
push edi
sub eax, ebx
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add ebx, eax
mov eax, dword [ebp - 0xc]
push 0xa
lea edi, [ebx + esi]
mov esi, 0x4015d4
add ebx, 0x10
sub eax, ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
lea esi, [ebx + edi]
push esi
push dword [ebp - 8]
call dword [sym.imp.MSVCR120_CLR0400.dll__itoa_s]
add esp, 0x10
test eax, eax
je 0x404aa8
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
push edi
call fcn.00405edc
push esi
call fcn.004059d1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
inc esi
cmp byte [esi], 0
jne 0x404aa7
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0xa0d0a0d
sub esi, edi
add esi, 4
mov dword [ebx + 0xc4], esi
xor esi, esi
mov dword [ebx + 0xc8], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], esi
test edi, edi
jle 0x404afc
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebx + 0xd4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esi + 8]
mov dword [ebx + 0xcc], edi
mov esi, dword [ebp - 4]
mov dword [ebx + 0xd0], eax
mov dword [ebp - 0x10], 2
push 0x24
mov dword [ebx + 0x10], 0x4046a0
call fcn.004059ab
test eax, eax
je 0x404b1a
push ebx
mov ecx, eax
call fcn.00403af2
mov edi, eax
jmp 0x404b1c
xor edi, edi
test edi, edi
je 0x404a92
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4091f4]
call esi
push dword [ebx + 0xb8]
mov ecx, dword [0x407754]
call fcn.00404bb4
lea eax, [ebx + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor esi, esi
lea eax, [edi + 4]
push esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebx + 0xc4]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x404a8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x404a8f
push dword [ebx + 0xb8]
mov ecx, dword [0x407754]
call fcn.00404c07
mov dword [ebx + 0x10], esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4091f4]
call esi
jmp 0x404a8f
Function at 0x405a37
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4070b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x114
lea eax, [ebp - 0x324]
push esi
xor ebx, ebx
push ebx
push eax
call sub.MSVCR120_CLR0400.dll_memset
add esp, 0xc
mov dword [ebp - 0x324], esi
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405b62
cmp dword [ebp - 0x314], 2
jne 0x405b62
cmp dword [ebp - 0x320], 6
jb 0x405b62
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCR120_CLR0400.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405b62
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x405b62
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 0xfffffff1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x405b0f
push 0x40165c
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00404ce3
test eax, eax
jne 0x405b62
push 0x401110
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00404ce3
test eax, eax
jne 0x405b62
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405b62
push edi
push 0x40112c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405b5a
push ebx
push ebx
push 1
push ebx
mov ecx, edi
call dword [0x4091f4]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405280
mov esp, ebp
pop ebp
ret

Function at 0x405efc
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4070b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x405f1c
xor eax, eax
jmp 0x405f7b
push edi
xor edx, edx
mov dword [ebp - 0x104], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], edx
push eax
push edx
push edx
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x110], edx
xor edi, edi
push ecx
inc edi
push edx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x405f74
cmp eax, 0xffffffff
je 0x405f78
push 2
push edi
lea eax, [ebp - 0x109]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x405f78
cmp eax, 0xffffffff
je 0x405f78
mov eax, edi
jmp 0x405f7a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405280
mov esp, ebp
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4cbc53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4cbcbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4cbd08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e5100
add esp, 8
test eax, eax
jne 0x4cbd06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4cbd0a
jmp 0x4cbcb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d7f9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4d7faa
xor eax, eax
jmp 0x4d8173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4d812b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x508eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4d7fb3
cmp dword [ebp + 0x10], 0
je 0x4d816d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x508eac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4d8131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x565eb0
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 0x565ed0
mov dl, byte [esp + 0x14]
mov al, byte [ecx]
add al, dl
xor al, dl
mov byte [ecx], al
inc ecx
dec esi
jne 0x565ec4
mov eax, edi
pop edi
pop esi
ret

Function at 0x572e22
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov esi, eax
rdtsc
lea esp, [esp + 0xc]
js 0x574ce3
setg cl
cwde
mov ecx, 0x11
jbe 0x5867c7
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.0058ba00
movsx edi, cl
push 0x717e9193
mov ecx, 0x11
push ecx
push 0xcea21c08
jmp 0x5684ad
lahf
rdtsc
cwde
lea edi, [ebp - 0x54]
not dx
pushfd
pushal
call fcn.00588c34
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 0x59bc45
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.005985c9

Function at 0x573a70
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 0x596b98
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.00587b19
push 0x56a718
pushal
mov byte [esp + 8], bh
pushfd
lea esp, [esp + 0x24]
call fcn.0057ed4a
push 0x1366adef
mov dword [esp], eax
pushfd
push ebx
lea esp, [esp + 8]
call fcn.005911f1
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.0059031a
sete al
pushfd
push dword [esp]
mov edx, dword [ebp - 0x34]
call fcn.0058617a
pushfd
mov dword [esp], str.VirtualQuery
jmp 0x58c8ef

Function at 0x5764d7
Capabilities:
Execute anti-debugging instructions

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

Disassembly:
jle 0x5790a4
jl 0x5790fd
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 0x5790a1
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 0x5790f8
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 0x57b25b
Capabilities:
Execute anti-debugging instructions

Disassembly:
cmp dh, dh
push dword [esp]
cmp dword [ebp + 0x18], 4
pushfd
lea esp, [esp + 0xc]
jne 0x5a15a1
pushfd
cmp dword [ebp + 0x14], 8
jmp 0x58928a
mov eax, 0xc0000001
pushfd
pushal
lea esp, [esp + 0x24]
jmp fcn.00597844
lea esp, [esp + 4]
je 0x582e4d
not ax
setp ah
jmp 0x57d824

Function at 0x57c4c2
Capabilities:
Execute anti-debugging instructions

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

Function at 0x57cded
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x587f50
mov word [esp], 0xd480
mov byte [esp + 4], 0xd8
lea esp, [esp + 0xc]
je 0x588038
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 0x57d415
Capabilities:
Execute anti-debugging instructions

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

Function at 0x57daf7
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x28]
jne 0x58f860
call fcn.0059414d