joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fe480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [0x101c8274]
cmp dword [eax], 3
push ebx
mov ebx, dword [ecx + 0x18]
push esi
mov esi, dword [esp + 0xc]
jl 0x100fe4c1
push esi
call fcn.100fe2b0
mov edx, dword [esi + 0x50]
mov eax, dword [0x101c8274]
mov ecx, dword [eax + 0x2c]
add esp, 4
push edx
push 0
push ebx
call ecx
push esi
call fcn.100fcee0
mov eax, dword [0x101c8274]
cmp dword [eax], 1
jl 0x100fe57c
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 4]
cmp ecx, 0x68
je 0x100fe4dd
cmp ecx, 0x80
jne 0x100fe51b
push ebp
lea ebp, [esi + 0x50]
push edi
mov edi, dword [ebp]
cmp ebp, edi
je 0x100fe519
lea esp, [esp]
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x28]
push edx
call eax
mov edi, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [0x101c8274]
mov eax, dword [edx + 0x2c]
push ecx
push 0
push ebx
call eax
cmp ebp, edi
mov eax, dword [0x101c8274]
jne 0x100fe4f0
pop edi
pop ebp
mov ecx, dword [esi + 0x30]
mov edx, dword [eax + 0x2c]
push ecx
push 0
push ebx
call edx
mov eax, dword [esi + 0x28]
mov ecx, dword [0x101c8274]
mov edx, dword [ecx + 0x2c]
push eax
push 0
push ebx
call edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [ecx], eax
push esi
mov dword [eax + 4], ecx
mov eax, dword [0x101c8274]
mov ecx, dword [eax + 0x2c]
push 0
push ebx
call ecx
pop esi
mov eax, 1
pop ebx
ret 4
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x100feaa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x3c]
push ebx
push ebp
add eax, ecx
push esi
push edi
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov ebp, dword [edi + ecx + 0x1c]
mov edx, dword [edi + ecx + 0x24]
mov esi, dword [edi + ecx + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edi + ecx + 0x20]
add eax, ecx
add edx, ecx
add ebp, ecx
xor ebx, ebx
test esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jle 0x100feb43
jmp 0x100feae4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ebx*4]
mov esi, dword [esp + 0x20]
add eax, ecx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x100feb10
test dl, dl
je 0x100feb0c
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x100feb10
add eax, 2
add esi, 2
test dl, dl
jne 0x100feaf0
xor eax, eax
jmp 0x100feb15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100feb3a
mov edx, dword [esp + 0x10]
movzx eax, word [edx + ebx*2]
mov eax, dword [ebp + eax*4]
add eax, ecx
lea edx, [edi + ecx]
cmp eax, edx
jb 0x100feb45
mov edx, dword [esp + 0x14]
add edx, edi
add edx, ecx
cmp eax, edx
ja 0x100feb45
add ebx, 1
cmp ebx, dword [edi + ecx + 0x18]
jl 0x100feae0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10100330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101abe08
push 0x10111f20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101c8fb4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10100375
mov dword [eax], esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x101c8274]
mov edx, dword [ecx + 0x50]
call edx
mov edi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp edi, esi
jne 0x101003ad
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, word [edi + 0x18]
cmp eax, 0x10b
je 0x1010040a
cmp eax, 0x20b
jne 0x10100390
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x24], esi
mov ebx, dword [edi + 0x54]
mov dword [ebp - 0x20], ebx
push 0x66
movzx eax, word [edi + 6]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push esi
call fcn.10100160
xor eax, eax
mov dword [ebp - 0x28], eax
cmp ax, word [edi + 6]
jae 0x10100402
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x101003e8
add ebx, dword [edi + 0xac]
jmp 0x10100453
movzx edx, word [edi + 0x14]
lea esi, [edx + edi + 0x18]
mov dword [ebp - 0x24], esi
mov ebx, dword [edi + 0x54]
mov dword [ebp - 0x20], ebx
push 0x66
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push esi
call fcn.10100160
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ax, word [edi + 6]
jae 0x1010044d
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x10100433
add ebx, dword [edi + 0x9c]
mov edi, dword [edi + 0x58]
mov dword [ebp - 0x20], ebx
push 0x66
push ebx
mov esi, dword [ebp + 8]
push esi
call fcn.10100160
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1010046e
mov dword [eax], ebx
test edi, edi
jne 0x1010048f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, esi
call fcn.10100070
mov byte [ebp - 0x19], al
jmp 0x101004c4
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10100d7f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101c8fb4]
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 0x10100dbf
push 0x1018e480
push 4
push eax
call fcn.1011647e
push eax
call fcn.10001000
add esp, 0x10
jmp 0x10100dd1
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10100e3f
push edi
call fcn.1011608f
mov edi, dword [eax]
call fcn.1011608f
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.10112dee
add esp, 0x18
mov ebx, eax
call fcn.1011608f
cmp dword [eax], 0
je 0x10100e1f
call fcn.1011608f
push dword [eax]
call fcn.10100826
pop ecx
jmp 0x10100e26
call fcn.1011608f
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10100e3f
cmp ebx, esi
jae 0x10100e3f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x10100e41
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10111b17
leave
ret
Function at 0x1010513b
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], 0x1018ed64
jne 0x10105164
call fcn.10103c69
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 0x10105187
push eax
push dword [esi + 4]
call fcn.101050c6
push esi
push eax
mov ecx, 0x102e13b0
call fcn.10104da0
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x1010cde0
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 0x1010ce23
call fcn.10103c69
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1010ce23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1010ce3e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1010c997
test ebx, ebx
mov esi, eax
je 0x1010ce3c
test edi, edi
je 0x1010ce3c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10111b17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101c8fb4]
jne 0x10111b21
repz ret
jmp fcn.1011da0c
Function at 0x1011c437
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 + 0x101c92a8]
je 0x1011c452
inc edi
cmp edi, 0x17
jb 0x1011c443
cmp edi, 0x17
jae 0x1011c5d2
push ebp
push 3
call fcn.10129144
cmp eax, 1
pop ecx
je 0x1011c59e
push 3
call fcn.10129144
test eax, eax
pop ecx
jne 0x1011c486
cmp dword [0x102e3068], 1
je 0x1011c59e
cmp ebx, 0xfc
je 0x1011c5d1
push 0x10190f58
mov ebx, 0x314
push ebx
mov ebp, 0x102e3218
push ebp
call fcn.1011647e
add esp, 0xc
test eax, eax
je 0x1011c4bc
push esi
push esi
push esi
push esi
push esi
call fcn.1011311c
add esp, 0x14
push 0x104
mov esi, 0x102e3231
push esi
push 0
mov byte [0x102e3335], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1011c500
push 0x10190f40
push 0x2fb
push esi
call fcn.1011647e
add esp, 0xc
test eax, eax
je 0x1011c500
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1011311c
add esp, 0x14
push esi
call fcn.10117f50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1011c545
push esi
call fcn.10117f50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x102e352c
push 0x10190f3c
sub ecx, eax
push ecx
push eax
call fcn.1011a6ba
add esp, 0x14
test eax, eax
je 0x1011c545
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1011311c
add esp, 0x14
jmp 0x1011c547
xor esi, esi
push 0x10190f38
push ebx
push ebp
call fcn.10118340
add esp, 0xc
test eax, eax
je 0x1011c567
push esi
push esi
push esi
push esi
push esi
call fcn.1011311c
add esp, 0x14
push dword [edi*8 + 0x101c92ac]
push ebx
push ebp
call fcn.10118340
add esp, 0xc
test eax, eax
je 0x1011c589
push esi
push esi
push esi
push esi
push esi
call fcn.1011311c
add esp, 0x14
push 0x12010
push 0x10190f10
push ebp
call fcn.10128f87
add esp, 0xc
jmp 0x1011c5d1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1011c5d1
cmp ebp, 0xffffffff
je 0x1011c5d1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101c92ac]
push dword [esi]
call fcn.10117f50
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 0x10128f87
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1011d3a0
xor ebx, ebx
cmp dword [0x102e3afc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1012905d
push 0x10192a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1012913d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10192a70
push edi
call esi
cmp eax, ebx
je 0x1012913d
push eax
call fcn.1011d332
mov dword [esp], 0x10192a60
push edi
mov dword [0x102e3afc], eax
call esi
push eax
call fcn.1011d332
mov dword [esp], 0x10192a4c
push edi
mov dword [0x102e3b00], eax
call esi
push eax
call fcn.1011d332
mov dword [0x102e3b04], eax
lea eax, [ebp - 0xc]
push eax
call fcn.101180dc
test eax, eax
pop ecx
pop ecx
je 0x1012902b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1011311c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1012905d
push 0x10192a30
push edi
call esi
push eax
call fcn.1011d332
cmp eax, ebx
pop ecx
mov dword [0x102e3b0c], eax
je 0x1012905d
push 0x10192a18
push edi
call esi
push eax
call fcn.1011d332
pop ecx
mov dword [0x102e3b08], eax
mov eax, dword [0x102e3b08]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x101290e2
cmp dword [0x102e3b0c], ecx
je 0x101290e2
push eax
call fcn.1011d3a9
push dword [0x102e3b0c]
mov esi, eax
call fcn.1011d3a9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x101290e2
cmp edi, ebx
je 0x101290e2
call esi
cmp eax, ebx
je 0x101290af
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101290af
test byte [ebp - 0x18], 1
jne 0x101290e2
lea eax, [ebp - 0x10]
push eax
call fcn.10118113
test eax, eax
pop ecx
je 0x101290ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1011311c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x101290d9
or dword [ebp + 0x10], 0x200000
jmp 0x1012911d
or dword [ebp + 0x10], 0x40000
jmp 0x1012911d
mov eax, dword [0x102e3b00]
cmp eax, dword [ebp - 8]
je 0x1012911d
push eax
call fcn.1011d3a9
cmp eax, ebx
pop ecx
je 0x1012911d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1012911d
mov eax, dword [0x102e3b04]
cmp eax, dword [ebp - 8]
je 0x1012911d
push eax
call fcn.1011d3a9
cmp eax, ebx
pop ecx
je 0x1012911d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102e3afc]
call fcn.1011d3a9
cmp eax, ebx
pop ecx
je 0x1012913d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1012913f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101310c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10179548
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101c8fb4]
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], 0x10192c6c
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.10130800
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x10192c6c
je 0x10131140
cmp byte [esp + 0x10], 0
je 0x10131140
push eax
call fcn.1011263b
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 0x10138a80
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 0x10138c87
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x10138aed
test al, al
jne 0x10138ac0
cmp al, 0x21
je 0x10138c7a
cmp al, 0x2c
je 0x10138b0a
cmp al, 0x3b
je 0x10138c87
test al, al
sete byte [esp + 0xe]
jmp 0x10138ac0
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.101317b0
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.101317b0
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.101317b0
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.101317b0
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x10138b7e
cmp word [ecx + 8], 0
jne 0x10138b7e
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 0x10138ac0
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 0x10138ac0
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x10138bee
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.101382a0
cmp dword [esp + 0x20], 0
je 0x10138c5a
push edi
push esi
mov ecx, ebx
call fcn.101385e0
jmp 0x10138ac0
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 0x10138ac0
push esi
mov ecx, ebx
call fcn.10137940
jmp 0x10138ac0
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 0x10139c40
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.10137f10
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x10139cd0
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x10139cd0
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.10137fa0
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.10139770
mov ecx, esi
call fcn.10137f10
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10139e14
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 0x10139d4e
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x10139e01
test ecx, ecx
jl 0x10139d86
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x10139d62
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x10139d7c
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x10139dbc
test edx, edx
jg 0x10139d62
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10139770
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x10139dca
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x10139e01
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x10139e01
push 0x138b
mov ecx, esi
call fcn.10137fa0
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.10139770
mov ecx, esi
call fcn.10137f10
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10139d15
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10139770
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.10139770
pop edi
pop esi
pop ebp
ret 8
Function at 0x10156250
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1015627f
push esi
call fcn.101569e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x10156278
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 0x101562fa
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x101562ea
mov eax, dword [esi + 8]
test eax, eax
je 0x101562a4
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 0x101562e6
cmp eax, 2
je 0x101562ea
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10156295
cmp eax, 3
je 0x101562cc
cmp eax, 1
jne 0x10156295
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x10156295
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x10156295
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.101560e0
pop esi
ret
cmp eax, 0xcc
je 0x1015631c
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.101560e0
pop esi
ret
Function at 0x1015ecc0
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 0x1015ece7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x1015ecf3
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 0x1015edff
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x1015ed3c
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 0x1015ed5d
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.1015eb30
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x1015ed92
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.1015eb30
mov ecx, eax
cmp esi, ecx
jg 0x1015ed80
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x1015ed75
cmp dword [esp + 0x10], 0
je 0x1015ede0
mov eax, 1
lea ecx, [edi - 1]
jmp 0x1015edc0
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 0x1015edc0
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 0x1015ed30
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret