joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e3f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10161827
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b03d4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
or eax, 0xffffffff
push ebx
lea ebp, [esi + 0x30]
push 0x3fe0
mov ecx, ebp
mov dword [esi], ebx
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 7], bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.100e4980
mov dword [esp + 0x24], ebx
push ebx
push 0x3fe0
lea ecx, [esi + 0x40]
call fcn.100e4980
mov byte [esp + 0x24], 1
push 0x30
lea edi, [esi + 0x50]
push ebx
push edi
call fcn.100fbc20
add esp, 0xc
mov dword [edi], ebp
mov byte [esp + 0x24], 2
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea eax, [esi + 0xa4]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov ecx, 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea ecx, [eax + 0x14]
mov dword [esp + 0x18], eax
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ecx
mov dword [ecx], ebx
mov dword [esp + 0x24], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x100e4230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10161887
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x101b03d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x18], 3
push 1
mov eax, esi
call fcn.100e4130
mov al, 2
add esp, 4
mov byte [esp + 0x18], al
lea ecx, [esi + 0xa4]
mov dword [esp + 0xc], ecx
mov byte [esp + 0x18], al
push 0
call fcn.100e4e10
mov byte [esp + 0x18], 1
push 0
lea ecx, [esi + 0x50]
call fcn.100e4b50
mov byte [esp + 0x18], 0
lea ecx, [esi + 0x40]
call fcn.100e4b90
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.100e4b90
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x100e5840
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
test edi, edi
jbe 0x100e586c
push esi
mov esi, dword [esp + 0xc]
sub esi, ecx
mov edi, edi
mov dl, byte [esi + ecx]
mov al, dl
sub al, 0x41
cmp al, 0x19
setbe al
shl al, 5
xor al, dl
mov byte [ecx], al
add ecx, 1
sub edi, 1
jne 0x100e5850
pop esi
pop edi
ret

Function at 0x100e5db0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x101b03d4]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, dword [ebx + 8]
cmp edi, 0x20
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
ja 0x100e5e84
mov eax, dword [ebx + 4]
xor ecx, ecx
test edi, edi
jbe 0x100e5e26
mov ebp, eax
lea edx, [esp + 0x1c]
sub ebp, edx
lea esp, [esp]
lea esi, [esp + ecx + 0x1c]
mov dl, byte [esi + ebp]
mov al, dl
sub al, 0x41
cmp al, 0x19
setbe al
shl al, 5
xor al, dl
add ecx, 1
cmp ecx, edi
mov byte [esi], al
jb 0x100e5e00
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100e5630
test eax, eax
mov dword [esi], eax
jne 0x100e5e9c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100e25d0
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x100e5e9c
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100e54d0
test eax, eax
je 0x100e5e84
mov ecx, dword [ebp]
test eax, ecx
jne 0x100e5e84
or ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0x10]
push ebx
add ecx, 4
call fcn.100e6fc0
cmp eax, 2
jne 0x100e5e84
mov edi, dword [ebx + 8]
cmp edi, 0x20
jbe 0x100e5de8
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100fb12a
add esp, 0x30
ret
mov edi, dword [esp + 0x10]
push ebx
lea ecx, [edi + 4]
call fcn.100e6fc0
cmp eax, 2
jne 0x100e5ef0
mov esi, dword [ebx + 8]
cmp esi, 0x20
ja 0x100e5ef0
mov edx, dword [ebx + 4]
push edx
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.100e5840
add esp, 4
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.100e54d0
cmp eax, 0x40
jne 0x100e5ef0
or dword [ebp], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100fb12a
add esp, 0x30
ret
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100fb12a
add esp, 0x30
ret
Function at 0x100eac19
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101b03d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x100eac59
push 0x10177dc8
push 4
push eax
call fcn.100fba4c
push eax
call fcn.10001000
add esp, 0x10
jmp 0x100eac6b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x100eacd9
push edi
call fcn.100ff865
mov edi, dword [eax]
call fcn.100ff865
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.100fca97
add esp, 0x18
mov ebx, eax
call fcn.100ff865
cmp dword [eax], 0
je 0x100eacb9
call fcn.100ff865
push dword [eax]
call fcn.100e9dba
pop ecx
jmp 0x100eacc0
call fcn.100ff865
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x100eacd9
cmp ebx, esi
jae 0x100eacd9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x100eacdb
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100fb12a
leave
ret
Function at 0x100ee93a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], 0x1017864c
jne 0x100ee963
call fcn.100ea6bf
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x100ee986
push eax
push dword [esi + 4]
call fcn.100ee8c5
push esi
push eax
mov ecx, 0x102c8798
call fcn.100ee59f
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x100f6bc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x100f6c07
call fcn.100ea6bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x100f6c07
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x100f6c22
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100f677b
test ebx, ebx
mov esi, eax
je 0x100f6c20
test edi, edi
je 0x100f6c20
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100fb12a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b03d4]
jne 0x100fb134
repz ret
jmp fcn.1010703c
Function at 0x10105947
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x101b06d8]
je 0x10105962
inc edi
cmp edi, 0x17
jb 0x10105953
cmp edi, 0x17
jae 0x10105ae2
push ebp
push 3
call fcn.10112684
cmp eax, 1
pop ecx
je 0x10105aae
push 3
call fcn.10112684
test eax, eax
pop ecx
jne 0x10105996
cmp dword [0x102ca43c], 1
je 0x10105aae
cmp ebx, 0xfc
je 0x10105ae1
push 0x1017a810
mov ebx, 0x314
push ebx
mov ebp, 0x102ca5e8
push ebp
call fcn.100fba4c
add esp, 0xc
test eax, eax
je 0x101059cc
push esi
push esi
push esi
push esi
push esi
call fcn.10105b56
add esp, 0x14
push 0x104
mov esi, 0x102ca601
push esi
push 0
mov byte [0x102ca705], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x10105a10
push 0x1017a7f8
push 0x2fb
push esi
call fcn.100fba4c
add esp, 0xc
test eax, eax
je 0x10105a10
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10105b56
add esp, 0x14
push esi
call fcn.10101590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10105a55
push esi
call fcn.10101590
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x102ca8fc
push 0x1017a7f4
sub ecx, eax
push ecx
push eax
call fcn.101013fb
add esp, 0x14
test eax, eax
je 0x10105a55
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10105b56
add esp, 0x14
jmp 0x10105a57
xor esi, esi
push 0x1017a7f0
push ebx
push ebp
call fcn.100fbb7a
add esp, 0xc
test eax, eax
je 0x10105a77
push esi
push esi
push esi
push esi
push esi
call fcn.10105b56
add esp, 0x14
push dword [edi*8 + 0x101b06dc]
push ebx
push ebp
call fcn.100fbb7a
add esp, 0xc
test eax, eax
je 0x10105a99
push esi
push esi
push esi
push esi
push esi
call fcn.10105b56
add esp, 0x14
push 0x12010
push 0x1017a7c8
push ebp
call fcn.101124c7
add esp, 0xc
jmp 0x10105ae1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10105ae1
cmp ebp, 0xffffffff
je 0x10105ae1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101b06dc]
push dword [esi]
call fcn.10101590
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x101124c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.101069da
xor ebx, ebx
cmp dword [0x102caecc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1011259d
push 0x1017c33c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1011267d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x1017c330
push edi
call esi
cmp eax, ebx
je 0x1011267d
push eax
call fcn.1010696c
mov dword [esp], 0x1017c320
push edi
mov dword [0x102caecc], eax
call esi
push eax
call fcn.1010696c
mov dword [esp], 0x1017c30c
push edi
mov dword [0x102caed0], eax
call esi
push eax
call fcn.1010696c
mov dword [0x102caed4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1010171c
test eax, eax
pop ecx
pop ecx
je 0x1011256b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10105b56
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1011259d
push 0x1017c2f0
push edi
call esi
push eax
call fcn.1010696c
cmp eax, ebx
pop ecx
mov dword [0x102caedc], eax
je 0x1011259d
push 0x1017c2d8
push edi
call esi
push eax
call fcn.1010696c
pop ecx
mov dword [0x102caed8], eax
mov eax, dword [0x102caed8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10112622
cmp dword [0x102caedc], ecx
je 0x10112622
push eax
call fcn.101069e3
push dword [0x102caedc]
mov esi, eax
call fcn.101069e3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10112622
cmp edi, ebx
je 0x10112622
call esi
cmp eax, ebx
je 0x101125ef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101125ef
test byte [ebp - 0x18], 1
jne 0x10112622
lea eax, [ebp - 0x10]
push eax
call fcn.10101753
test eax, eax
pop ecx
je 0x1011260a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10105b56
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10112619
or dword [ebp + 0x10], 0x200000
jmp 0x1011265d
or dword [ebp + 0x10], 0x40000
jmp 0x1011265d
mov eax, dword [0x102caed0]
cmp eax, dword [ebp - 8]
je 0x1011265d
push eax
call fcn.101069e3
cmp eax, ebx
pop ecx
je 0x1011265d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1011265d
mov eax, dword [0x102caed4]
cmp eax, dword [ebp - 8]
je 0x1011265d
push eax
call fcn.101069e3
cmp eax, ebx
pop ecx
je 0x1011265d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102caecc]
call fcn.101069e3
cmp eax, ebx
pop ecx
je 0x1011267d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1011267f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10118383
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101b03d4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10118318
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100fbc20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x101183d2
cmp dword [ebp - 0x1c], 5
jb 0x101183ea
jmp 0x101183e6
cmp dword [ebp - 0x10], 1
jne 0x101183ea
cmp dword [ebp - 0x1c], 4
ja 0x101183e6
jne 0x101183ea
cmp dword [ebp - 0x18], 0
jbe 0x101183ea
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1017c440
call fcn.10001ad0
test eax, eax
jge 0x1011840b
mov byte [0x101b1d20], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100fb12a
add ebp, 0x78
leave
ret

Function at 0x10119ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10162678
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101b03d4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], 0x1017c518
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
call fcn.10119630
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x1017c518
je 0x10119f70
cmp byte [esp + 0x10], 0
je 0x10119f70
push eax
call fcn.100fc2e4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret 0x10
Function at 0x10121060
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
push edi
call edx
mov esi, dword [ebp + 0xc]
mov ecx, 0xc1
lea edi, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0xe], 1
lea ebx, [ebx]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 1
lea ecx, [esp + 0x17]
push ecx
mov ecx, esi
call edx
cmp eax, 1
jne 0x10121267
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x101210cd
test al, al
jne 0x101210a0
cmp al, 0x21
je 0x1012125a
cmp al, 0x2c
je 0x101210ea
cmp al, 0x3b
je 0x10121267
test al, al
sete byte [esp + 0xe]
jmp 0x101210a0
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 9
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.1011a5f0
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.1011a5f0
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.1011a5f0
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.1011a5f0
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x1012115e
cmp word [ecx + 8], 0
jne 0x1012115e
mov word [ecx + 6], dx
mov word [ecx + 8], ax
movzx edi, word [esp + 0x10]
movzx ecx, word [ecx + 6]
movzx edx, dx
add edx, edi
cmp edx, ecx
jg 0x101210a0
movzx ecx, word [esp + 0x12]
movzx edx, ax
add edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + 8]
cmp edx, ecx
jg 0x101210a0
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x101211ce
mov edx, dword [esi]
mov edx, dword [edx + 8]
and ecx, 7
add ecx, 1
mov eax, 1
shl eax, cl
push 1
lea ecx, [esp + 0x30]
mov word [esp + 0x2e], ax
movsx eax, ax
lea eax, [eax + eax*2]
push eax
push ecx
mov ecx, esi
call edx
movzx ecx, byte [esp + 0x18]
mov ax, word [esp + 0x16]
xor edx, edx
movzx eax, ax
and ecx, 0x40
mov dword [ebx + 0x1dc], ecx
mov dword [ebx + 0x1e8], eax
mov dword [esp + 0x20], edx
mov dword [ebx + 0x1f0], 0x4000
mov dword [ebx + 0x1e4], 8
mov dword [ebx + 0x1e0], edx
mov dword [ebx + 0x1ec], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push esi
mov ecx, ebx
mov edi, eax
call fcn.10120880
cmp dword [esp + 0x20], 0
je 0x1012123a
push edi
push esi
mov ecx, ebx
call fcn.10120bc0
jmp 0x101210a0
mov ecx, dword [ebx + 0x1f0]
sub ecx, dword [ebx + 0x1f4]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
add ecx, 1
push 1
push ecx
mov ecx, esi
call edx
jmp 0x101210a0
push esi
mov ecx, ebx
call fcn.1011ff20
jmp 0x101210a0
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10122220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xf864], eax
mov dword [esi + 0xf860], ecx
mov dword [esi + 0xf854], ecx
mov edx, 1
shl edx, cl
add ecx, 0xffffffff
mov eax, 1
shl eax, cl
push edi
xor edi, edi
sub edx, 1
mov dword [esi + 0xf868], eax
add eax, 1
mov dword [esi + 0xf86c], eax
mov ax, word [esi + 0xf868]
add ax, 2
mov ecx, esi
mov dword [esi + 0xf85c], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1d4], edi
mov word [esi + 0xf858], dx
mov word [esi + 0xf85a], ax
mov dword [esi + 0xf870], edi
call fcn.101204f0
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x101222b0
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x101222b0
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.10120580
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.10121d50
mov ecx, esi
call fcn.101204f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x101223f4
push ebx
mov ecx, dword [esp + 0x18]
movsx edi, bp
shl edi, cl
mov ebx, ebp
shl ebx, 0xc
add ebx, dword [esp + 0x14]
xor edi, dword [esp + 0x14]
mov ecx, dword [esi + edi*4 + 0x8310]
cmp ecx, ebx
lea eax, [esi + edi*4 + 0x8310]
jne 0x1012232e
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x101223e1
test ecx, ecx
jl 0x10122366
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x10122342
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x1012235c
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x1012239c
test edx, edx
jg 0x10122342
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10121d50
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x101223aa
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x101223e1
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x101223e1
push 0x138b
mov ecx, esi
call fcn.10120580
movzx eax, word [esi + 0xf868]
mov dx, word [esi + 0xf868]
add dx, 2
push eax
mov ecx, esi
mov word [esi + 0xf85a], dx
mov dword [esi + 0xf85c], 1
call fcn.10121d50
mov ecx, esi
call fcn.101204f0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x101222f5
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10121d50
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.10121d50
pop edi
pop esi
pop ebp
ret 8
Function at 0x1013e820
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1013e84f
push esi
call fcn.1013efb0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x1013e848
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1013e8ca
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x1013e8ba
mov eax, dword [esi + 8]
test eax, eax
je 0x1013e874
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x1013e8b6
cmp eax, 2
je 0x1013e8ba
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1013e865
cmp eax, 3
je 0x1013e89c
cmp eax, 1
jne 0x1013e865
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x1013e865
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x1013e865
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.1013e6b0
pop esi
ret
cmp eax, 0xcc
je 0x1013e8ec
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.1013e6b0
pop esi
ret
Function at 0x101472a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x101472c7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x101472d3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x101473df
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x1014731c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x1014733d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.10147110
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x10147372
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.10147110
mov ecx, eax
cmp esi, ecx
jg 0x10147360
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x10147355
cmp dword [esp + 0x10], 0
je 0x101473c0
mov eax, 1
lea ecx, [edi - 1]
jmp 0x101473a0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x101473a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x10147310
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret