joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x18
call fcn.00419200
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx + 4], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + edx + 4], ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + edx + 4], ecx
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + edx + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x419610
mov edx, dword [ebp - 8]
push edx
push 0
call fcn.00440e2a
add esp, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x419d20
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46f308]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x105], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x419d62
call fcn.0041a3b0
jmp 0x419e63
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x419daf
call fcn.0041a3b0
jmp 0x419e56
call fcn.00430290
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [ebp - 0x106], cl
mov edx, dword [ebp - 0x10c]
mov al, byte [ebp - 0x106]
mov byte [edx], al
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
cmp byte [ebp - 0x106], 0
jne 0x419dd2
lea eax, [ebp - 0x104]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x11c]
push ecx
push 1
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x419e42
call fcn.0041a3b0
jmp 0x419e49
mov byte [ebp - 0x105], 1
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x105]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae40
mov esp, ebp
pop ebp
ret
Function at 0x41a450
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a475
call fcn.0041a3b0
jmp 0x41a4c1
push 0xf003f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a498
call fcn.0041a3b0
jmp 0x41a4b7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x41a4a8
jmp 0x41a4ad
call fcn.0041a3b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4228c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x46f308]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jg 0x422909
push 3
push 0xff37a1cf
push str.CreateListenSocket:_socket_..._
call fcn.00418e00
add esp, 0xc
or eax, 0xffffffff
jmp 0x422a23
mov dword [ebp - 0x11c], 1
push 4
lea eax, [ebp - 0x11c]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x118]
push ecx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x422947
push 3
push 0xff37a1cf
push str.CreateListenSocket:_setsockopt_SO_REUSEADDR_
call fcn.00418e00
add esp, 0xc
mov edx, 2
mov word [ebp - 0x114], dx
mov dword [ebp - 0x110], 0
movzx eax, word [ebp + 8]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x112], ax
push 0x10
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4229c9
lea eax, [ebp - 0x118]
push eax
call fcn.00422890
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
push str.CreateListenSocket:_bind__d_
lea edx, [ebp - 0x104]
push edx
call fcn.0043d70c
add esp, 0xc
push 3
push 0xff37a1cf
lea eax, [ebp - 0x104]
push eax
call fcn.00418e00
add esp, 0xc
or eax, 0xffffffff
jmp 0x422a23
push 5
mov ecx, dword [ebp - 0x118]
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x422a1d
lea edx, [ebp - 0x118]
push edx
call fcn.00422890
add esp, 4
mov eax, dword [ebp + 8]
push eax
push str.CreateListenSocket:_listen__d_
lea ecx, [ebp - 0x104]
push ecx
call fcn.0043d70c
add esp, 0xc
push 3
push 0xff37a1cf
lea edx, [ebp - 0x104]
push edx
call fcn.00418e00
add esp, 0xc
or eax, 0xffffffff
jmp 0x422a23
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae40
mov esp, ebp
pop ebp
ret
Function at 0x422ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.0041b5b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00415c10
add esp, 4
test eax, eax
jne 0x422b18
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00415b20
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x422b60
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46f308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00415c10
add esp, 4
test eax, eax
je 0x422b88
or eax, 0xffffffff
jmp 0x422c5e
mov dword [ebp - 0x18], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
je 0x422bac
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x422c5b
cmp dword [ebp + 0xc], 0
jne 0x422bef
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x473e14]
call fcn.00423130
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x422bef
cmp dword [ebp + 0x10], 0
je 0x422bef
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
cmp dword [ebp - 0x18], 0xffffffff
jne 0x422c5b
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x422c33
mov ecx, dword [ebp - 0x1c]
movsx edx, word [ecx + 0xa]
push edx
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0043c9b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0xffffffff
jne 0x422c48
mov eax, dword [ebp + 8]
push eax
call fcn.00422ae0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x473e14]
call fcn.00422e70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae40
mov esp, ebp
pop ebp
ret
Function at 0x422d00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
jle 0x422da2
cmp dword [ebp + 0x10], 0x400
jle 0x422d2f
mov dword [ebp - 0x10], 0x400
jmp 0x422d35
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x422d76
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
jne 0x422d71
mov dword [ebp - 4], 0
jmp 0x422d7a
or eax, 0xffffffff
jmp 0x422da5
jmp 0x422d7a
cmp dword [ebp - 4], 0
jne 0x422d82
jmp 0x422da2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
mov dword [ebp + 0x10], edx
jmp 0x422d13
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x423010
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x46f308]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42304f
push 0xffffffffffffffff
push 0x45cee8
call fcn.00416f40
add esp, 8
mov dword [ebp - 0x198], eax
jmp 0x423059
mov dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae40
mov esp, ebp
pop ebp
ret

Function at 0x423180
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
jle 0x423222
cmp dword [ebp + 0x10], 0x400
jle 0x4231af
mov dword [ebp - 0x10], 0x400
jmp 0x4231b5
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4231f6
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
jne 0x4231f1
mov dword [ebp - 4], 0
jmp 0x4231fa
or eax, 0xffffffff
jmp 0x423225
jmp 0x4231fa
cmp dword [ebp - 4], 0
jne 0x423202
jmp 0x423222
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
mov dword [ebp + 0x10], edx
jmp 0x423193
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x44aea6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46f308]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044127f
mov dword [ebp - 0x14], eax
cmp dword [0x474d48], edi
jne 0x44af97
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44af24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44b077
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44b077
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44b077
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x474d48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x474d4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x474d50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x474d58], eax
test eax, eax
je 0x44af94
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x474d54], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44afbc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44afaf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44afd1
push 4
pop eax
jmp 0x44b079
cmp dword [ebp - 0x14], edi
je 0x44afd1
push dword [0x474d48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44afb6
mov eax, dword [0x474d54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44b02f
cmp dword [0x474d58], esi
je 0x44b02f
push eax
call ebx
push dword [0x474d58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44b02f
test eax, eax
je 0x44b02f
call ecx
test eax, eax
je 0x44b024
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 0x44b024
test byte [ebp - 8], 1
jne 0x44b02f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44b05f
mov eax, dword [0x474d4c]
cmp eax, esi
je 0x44b05c
push eax
call ebx
test eax, eax
je 0x44b05c
call eax
mov edi, eax
test edi, edi
je 0x44b05c
mov eax, dword [0x474d50]
cmp eax, esi
je 0x44b05c
push eax
call ebx
test eax, eax
je 0x44b05c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x474d48]
call ebx
test eax, eax
je 0x44b077
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44b079
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ae40
leave
ret
Function at 0x5c5151dd
Capabilities:
Encode data using xor

Disassembly:
call 0x5c515156
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x5c515186
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x5c5151a2
xor edx, 0
jmp 0x5c5151ad
xor edx, edx
jmp 0x5c5151c4
jmp 0x5c5151d0
xor eax, eax
push 0x8427d7c0
call 0x5c5151dd
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x5c515219
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x5c5151f2
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x5c515230
add eax, 0
jno 0x5c515235
add esi, 0
ret 0x10

Function at 0x5c515f9e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x5c515fc0
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x5c516162
cmp edi, dword [ebp + 0x10]
jb 0x5c516162
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.5c515a8a
inc edi
jmp 0x5c516049
jmp 0x5c516056
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c515a8a
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c515a8a
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x5c5160aa
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x5c51608e
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.5c5160d8
add dword [eax], 0x39
jle 0x5c5160b4
sub al, 0xf5
mov ch, al
call fcn.5c5160ed
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x5c517dc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x5c517ddb
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x5c517dec
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.5c517e2d
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x5c51a199
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x5c51a0e2
add ebx, 0
push ecx
call 0x5c51a0f7
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6bff611e
sub ebx, dword [0x6c01595d]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c01594d
call fcn.5c515bc1
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.5c5150cf
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x5c51a255
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x5c51a255
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x5c51a20c
mov eax, 1
lock xchg dword [0x6c015959], eax
push 0x3dd1fc71
call 0x5c51a199
push esi
add esp, 8
cmp eax, 0
jne 0x5c51a182
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x5c51a1a8
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x5c51a1bd
cmp ecx, edx
cmp eax, 0
je 0x5c51a1e2
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x5c51a1cc
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.5c51a1fb
dec eax
loope 0x5c51a1fe
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c015959], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x5c51a232
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x5c51a247
jmp 0x5c51a252
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x5c51a140
Function at 0x5c5212ba
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x5c521590
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c0025d1
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6bff9597
push 0xffffffffffffffff
call fcn.5c5184ba
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x5c521324
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.5c52133c
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x5c521584
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x5c521558
Function at 0x5c530d8a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c530dac
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530dac
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530dac
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530dac
test word [ebx + 0x16], 2
je 0x5c530dac
test word [ebx + 0x16], 0x100
je 0x5c530dac
cmp word [ebx + 0x18], 0x10b
jne 0x5c530dac
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530dac
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530e38
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530dcc
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517d17
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530dac
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x5c530e38
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c530dac
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c530dac
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c530dac
ret
cmp word [ebx + 4], 0x14c
jne 0x5c530dac
test word [ebx + 0x16], 2
je 0x5c530dac
test word [ebx + 0x16], 0x100
je 0x5c530dac
cmp word [ebx + 0x18], 0x10b
jne 0x5c530dac
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c530dac
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c530e38
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c530dcc
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c517d17
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c530dac
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8