joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e7050
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
test edi, edi
jbe 0x100e707c
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 0x100e7060
pop esi
pop edi
ret

Function at 0x100e75c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x101b7324]
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 0x100e7694
mov eax, dword [ebx + 4]
xor ecx, ecx
test edi, edi
jbe 0x100e7636
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 0x100e7610
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100e6e40
test eax, eax
mov dword [esi], eax
jne 0x100e76ac
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100e3de0
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x100e76ac
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100e6ce0
test eax, eax
je 0x100e7694
mov ecx, dword [ebp]
test eax, ecx
jne 0x100e7694
or ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0x10]
push ebx
add ecx, 4
call fcn.100e87d0
cmp eax, 2
jne 0x100e7694
mov edi, dword [ebx + 8]
cmp edi, 0x20
jbe 0x100e75f8
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100ffae6
add esp, 0x30
ret
mov edi, dword [esp + 0x10]
push ebx
lea ecx, [edi + 4]
call fcn.100e87d0
cmp eax, 2
jne 0x100e7700
mov esi, dword [ebx + 8]
cmp esi, 0x20
ja 0x100e7700
mov edx, dword [ebx + 4]
push edx
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.100e7050
add esp, 4
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.100e6ce0
cmp eax, 0x40
jne 0x100e7700
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.100ffae6
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.100ffae6
add esp, 0x30
ret
Function at 0x100ec3d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [0x101b663c]
cmp dword [eax], 3
push ebx
mov ebx, dword [ecx + 0x18]
push esi
mov esi, dword [esp + 0xc]
jl 0x100ec411
push esi
call fcn.100ec200
mov edx, dword [esi + 0x50]
mov eax, dword [0x101b663c]
mov ecx, dword [eax + 0x2c]
add esp, 4
push edx
push 0
push ebx
call ecx
push esi
call fcn.100ead60
mov eax, dword [0x101b663c]
cmp dword [eax], 1
jl 0x100ec4cc
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 4]
cmp ecx, 0x68
je 0x100ec42d
cmp ecx, 0x80
jne 0x100ec46b
push ebp
lea ebp, [esi + 0x50]
push edi
mov edi, dword [ebp]
cmp ebp, edi
je 0x100ec469
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 [0x101b663c]
mov eax, dword [edx + 0x2c]
push ecx
push 0
push ebx
call eax
cmp ebp, edi
mov eax, dword [0x101b663c]
jne 0x100ec440
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 [0x101b663c]
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 [0x101b663c]
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 0x100eca00
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 0x100ecaa3
jmp 0x100eca44
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 0x100eca70
test dl, dl
je 0x100eca6c
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x100eca70
add eax, 2
add esi, 2
test dl, dl
jne 0x100eca50
xor eax, eax
jmp 0x100eca75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100eca9a
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 0x100ecaa5
mov edx, dword [esp + 0x14]
add edx, edi
add edx, ecx
cmp eax, edx
ja 0x100ecaa5
add ebx, 1
cmp ebx, dword [edi + ecx + 0x18]
jl 0x100eca40
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100ee2a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1019cc70
push 0x10100020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101b7324]
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 0x100ee2e5
mov dword [eax], esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x101b663c]
mov edx, dword [ecx + 0x50]
call edx
mov edi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp edi, esi
jne 0x100ee31d
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 0x100ee37a
cmp eax, 0x20b
jne 0x100ee300
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.100ee0d0
xor eax, eax
mov dword [ebp - 0x28], eax
cmp ax, word [edi + 6]
jae 0x100ee372
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x100ee358
add ebx, dword [edi + 0xac]
jmp 0x100ee3c3
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.100ee0d0
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ax, word [edi + 6]
jae 0x100ee3bd
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x100ee3a3
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.100ee0d0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100ee3de
mov dword [eax], ebx
test edi, edi
jne 0x100ee3ff
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.100edfe0
mov byte [ebp - 0x19], al
jmp 0x100ee434
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 0x100ef5d6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101b7324]
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 0x100ef616
push 0x1017e000
push 4
push eax
call fcn.1010037a
push eax
call fcn.10001000
add esp, 0x10
jmp 0x100ef628
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x100ef696
push edi
call fcn.10104345
mov edi, dword [eax]
call fcn.10104345
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.101013c7
add esp, 0x18
mov ebx, eax
call fcn.10104345
cmp dword [eax], 0
je 0x100ef676
call fcn.10104345
push dword [eax]
call fcn.100ee777
pop ecx
jmp 0x100ef67d
call fcn.10104345
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x100ef696
cmp ebx, esi
jae 0x100ef696
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x100ef698
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100ffae6
leave
ret
Function at 0x100f32e4
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], 0x1017e86c
jne 0x100f330d
call fcn.100ef07c
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 0x100f3330
push eax
push dword [esi + 4]
call fcn.100f326f
push esi
push eax
mov ecx, 0x102cf6a8
call fcn.100f2f49
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x100fb57d
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 0x100fb5c0
call fcn.100ef07c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x100fb5c0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x100fb5db
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100fb134
test ebx, ebx
mov esi, eax
je 0x100fb5d9
test edi, edi
je 0x100fb5d9
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100ffae6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b7324]
jne 0x100ffaf0
repz ret
jmp fcn.1010bb9c
Function at 0x1010a5c7
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 + 0x101b7618]
je 0x1010a5e2
inc edi
cmp edi, 0x17
jb 0x1010a5d3
cmp edi, 0x17
jae 0x1010a762
push ebp
push 3
call fcn.10117324
cmp eax, 1
pop ecx
je 0x1010a72e
push 3
call fcn.10117324
test eax, eax
pop ecx
jne 0x1010a616
cmp dword [0x102d1350], 1
je 0x1010a72e
cmp ebx, 0xfc
je 0x1010a761
push 0x10180a30
mov ebx, 0x314
push ebx
mov ebp, 0x102d1500
push ebp
call fcn.1010037a
add esp, 0xc
test eax, eax
je 0x1010a64c
push esi
push esi
push esi
push esi
push esi
call fcn.101016f5
add esp, 0x14
push 0x104
mov esi, 0x102d1519
push esi
push 0
mov byte [0x102d161d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x1010a690
push 0x10180a18
push 0x2fb
push esi
call fcn.1010037a
add esp, 0xc
test eax, eax
je 0x1010a690
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.101016f5
add esp, 0x14
push esi
call fcn.10106160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1010a6d5
push esi
call fcn.10106160
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x102d1814
push 0x10180a14
sub ecx, eax
push ecx
push eax
call fcn.10108a06
add esp, 0x14
test eax, eax
je 0x1010a6d5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.101016f5
add esp, 0x14
jmp 0x1010a6d7
xor esi, esi
push 0x10180a10
push ebx
push ebp
call fcn.101004a8
add esp, 0xc
test eax, eax
je 0x1010a6f7
push esi
push esi
push esi
push esi
push esi
call fcn.101016f5
add esp, 0x14
push dword [edi*8 + 0x101b761c]
push ebx
push ebp
call fcn.101004a8
add esp, 0xc
test eax, eax
je 0x1010a719
push esi
push esi
push esi
push esi
push esi
call fcn.101016f5
add esp, 0x14
push 0x12010
push 0x101809e8
push ebp
call fcn.10117167
add esp, 0xc
jmp 0x1010a761
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1010a761
cmp ebp, 0xffffffff
je 0x1010a761
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101b761c]
push dword [esi]
call fcn.10106160
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 0x10117167
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1010b530
xor ebx, ebx
cmp dword [0x102d1ddc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1011723d
push 0x1018255c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1011731d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x10182550
push edi
call esi
cmp eax, ebx
je 0x1011731d
push eax
call fcn.1010b4c2
mov dword [esp], 0x10182540
push edi
mov dword [0x102d1ddc], eax
call esi
push eax
call fcn.1010b4c2
mov dword [esp], 0x1018252c
push edi
mov dword [0x102d1de0], eax
call esi
push eax
call fcn.1010b4c2
mov dword [0x102d1de4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.101062ec
test eax, eax
pop ecx
pop ecx
je 0x1011720b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.101016f5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1011723d
push 0x10182510
push edi
call esi
push eax
call fcn.1010b4c2
cmp eax, ebx
pop ecx
mov dword [0x102d1dec], eax
je 0x1011723d
push 0x101824f8
push edi
call esi
push eax
call fcn.1010b4c2
pop ecx
mov dword [0x102d1de8], eax
mov eax, dword [0x102d1de8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x101172c2
cmp dword [0x102d1dec], ecx
je 0x101172c2
push eax
call fcn.1010b539
push dword [0x102d1dec]
mov esi, eax
call fcn.1010b539
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x101172c2
cmp edi, ebx
je 0x101172c2
call esi
cmp eax, ebx
je 0x1011728f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1011728f
test byte [ebp - 0x18], 1
jne 0x101172c2
lea eax, [ebp - 0x10]
push eax
call fcn.10106323
test eax, eax
pop ecx
je 0x101172aa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.101016f5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x101172b9
or dword [ebp + 0x10], 0x200000
jmp 0x101172fd
or dword [ebp + 0x10], 0x40000
jmp 0x101172fd
mov eax, dword [0x102d1de0]
cmp eax, dword [ebp - 8]
je 0x101172fd
push eax
call fcn.1010b539
cmp eax, ebx
pop ecx
je 0x101172fd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101172fd
mov eax, dword [0x102d1de4]
cmp eax, dword [ebp - 8]
je 0x101172fd
push eax
call fcn.1010b539
cmp eax, ebx
pop ecx
je 0x101172fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102d1ddc]
call fcn.1010b539
cmp eax, ebx
pop ecx
je 0x1011731d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1011731f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1011d979
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101b7324]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1011d90e
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.10100550
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 0x1011d9c8
cmp dword [ebp - 0x1c], 5
jb 0x1011d9e0
jmp 0x1011d9dc
cmp dword [ebp - 0x10], 1
jne 0x1011d9e0
cmp dword [ebp - 0x1c], 4
ja 0x1011d9dc
jne 0x1011d9e0
cmp dword [ebp - 0x18], 0
jbe 0x1011d9e0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10182660
call fcn.10001560
test eax, eax
jge 0x1011da01
mov byte [0x101b8ca0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100ffae6
add ebp, 0x78
leave
ret

Function at 0x1011f5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101685a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101b7324]
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], 0x1018276c
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.1011ece0
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x1018276c
je 0x1011f650
cmp byte [esp + 0x10], 0
je 0x1011f650
push eax
call fcn.10100c14
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 0x10126fa0
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 0x101271a7
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x1012700d
test al, al
jne 0x10126fe0
cmp al, 0x21
je 0x1012719a
cmp al, 0x2c
je 0x1012702a
cmp al, 0x3b
je 0x101271a7
test al, al
sete byte [esp + 0xe]
jmp 0x10126fe0
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.1011fcd0
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.1011fcd0
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.1011fcd0
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.1011fcd0
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x1012709e
cmp word [ecx + 8], 0
jne 0x1012709e
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 0x10126fe0
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 0x10126fe0
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x1012710e
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.101267c0
cmp dword [esp + 0x20], 0
je 0x1012717a
push edi
push esi
mov ecx, ebx
call fcn.10126b00
jmp 0x10126fe0
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 0x10126fe0
push esi
mov ecx, ebx
call fcn.10125e60
jmp 0x10126fe0
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 0x10128160
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.10126430
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x101281f0
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x101281f0
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.101264c0
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.10127c90
mov ecx, esi
call fcn.10126430
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10128334
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 0x1012826e
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x10128321
test ecx, ecx
jl 0x101282a6
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x10128282
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x1012829c
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x101282dc
test edx, edx
jg 0x10128282
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10127c90
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x101282ea
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x10128321
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x10128321
push 0x138b
mov ecx, esi
call fcn.101264c0
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.10127c90
mov ecx, esi
call fcn.10126430
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10128235
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10127c90
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.10127c90
pop edi
pop esi
pop ebp
ret 8