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

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

Function at 0x100fee80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x101cf40c]
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 0x100fef54
mov eax, dword [ebx + 4]
xor ecx, ecx
test edi, edi
jbe 0x100feef6
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 0x100feed0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100fe700
test eax, eax
mov dword [esi], eax
jne 0x100fef6c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100fb6a0
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x100fef6c
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100fe5a0
test eax, eax
je 0x100fef54
mov ecx, dword [ebp]
test eax, ecx
jne 0x100fef54
or ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0x10]
push ebx
add ecx, 4
call fcn.10100090
cmp eax, 2
jne 0x100fef54
mov edi, dword [ebx + 8]
cmp edi, 0x20
jbe 0x100feeb8
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.101179ba
add esp, 0x30
ret
mov edi, dword [esp + 0x10]
push ebx
lea ecx, [edi + 4]
call fcn.10100090
cmp eax, 2
jne 0x100fefc0
mov esi, dword [ebx + 8]
cmp esi, 0x20
ja 0x100fefc0
mov edx, dword [ebx + 4]
push edx
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.100fe910
add esp, 4
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.100fe5a0
cmp eax, 0x40
jne 0x100fefc0
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.101179ba
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.101179ba
add esp, 0x30
ret
Function at 0x10103c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [0x101ce684]
cmp dword [eax], 3
push ebx
mov ebx, dword [ecx + 0x18]
push esi
mov esi, dword [esp + 0xc]
jl 0x10103cd1
push esi
call fcn.10103ac0
mov edx, dword [esi + 0x50]
mov eax, dword [0x101ce684]
mov ecx, dword [eax + 0x2c]
add esp, 4
push edx
push 0
push ebx
call ecx
push esi
call fcn.10102620
mov eax, dword [0x101ce684]
cmp dword [eax], 1
jl 0x10103d8c
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 4]
cmp ecx, 0x68
je 0x10103ced
cmp ecx, 0x80
jne 0x10103d2b
push ebp
lea ebp, [esi + 0x50]
push edi
mov edi, dword [ebp]
cmp ebp, edi
je 0x10103d29
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 [0x101ce684]
mov eax, dword [edx + 0x2c]
push ecx
push 0
push ebx
call eax
cmp ebp, edi
mov eax, dword [0x101ce684]
jne 0x10103d00
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 [0x101ce684]
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 [0x101ce684]
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 0x101042c0
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 0x10104363
jmp 0x10104304
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 0x10104330
test dl, dl
je 0x1010432c
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x10104330
add eax, 2
add esi, 2
test dl, dl
jne 0x10104310
xor eax, eax
jmp 0x10104335
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1010435a
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 0x10104365
mov edx, dword [esp + 0x14]
add edx, edi
add edx, ecx
cmp eax, edx
ja 0x10104365
add ebx, 1
cmp ebx, dword [edi + ecx + 0x18]
jl 0x10104300
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10105b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101b49e0
push 0x10117ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101cf40c]
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 0x10105ba5
mov dword [eax], esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x101ce684]
mov edx, dword [ecx + 0x50]
call edx
mov edi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp edi, esi
jne 0x10105bdd
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 0x10105c3a
cmp eax, 0x20b
jne 0x10105bc0
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.10105990
xor eax, eax
mov dword [ebp - 0x28], eax
cmp ax, word [edi + 6]
jae 0x10105c32
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x10105c18
add ebx, dword [edi + 0xac]
jmp 0x10105c83
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.10105990
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ax, word [edi + 6]
jae 0x10105c7d
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x20], ebx
add eax, 1
add esi, 0x28
mov dword [ebp - 0x24], esi
jmp 0x10105c63
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.10105990
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10105c9e
mov dword [eax], ebx
test edi, edi
jne 0x10105cbf
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.101058a0
mov byte [ebp - 0x19], al
jmp 0x10105cf4
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 0x101074a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101cf40c]
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 0x101074e9
push 0x10196000
push 4
push eax
call fcn.101182dc
push eax
call fcn.10001000
add esp, 0x10
jmp 0x101074fb
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x10107569
push edi
call fcn.1011c175
mov edi, dword [eax]
call fcn.1011c175
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.10119327
add esp, 0x18
mov ebx, eax
call fcn.1011c175
cmp dword [eax], 0
je 0x10107549
call fcn.1011c175
push dword [eax]
call fcn.1010664a
pop ecx
jmp 0x10107550
call fcn.1011c175
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10107569
cmp ebx, esi
jae 0x10107569
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x1010756b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101179ba
leave
ret
Function at 0x1010b1b2
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], 0x10196884
jne 0x1010b1db
call fcn.10106f4f
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 0x1010b1fe
push eax
push dword [esi + 4]
call fcn.1010b13d
push esi
push eax
mov ecx, 0x102e7868
call fcn.1010ae17
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x1011343e
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 0x10113481
call fcn.10106f4f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x10113481
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x1011349c
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.10112ff5
test ebx, ebx
mov esi, eax
je 0x1011349a
test edi, edi
je 0x1011349a
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x101179ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101cf40c]
jne 0x101179c4
repz ret
jmp fcn.10123aec
Function at 0x101223f7
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 + 0x101cf718]
je 0x10122412
inc edi
cmp edi, 0x17
jb 0x10122403
cmp edi, 0x17
jae 0x10122592
push ebp
push 3
call fcn.1012f244
cmp eax, 1
pop ecx
je 0x1012255e
push 3
call fcn.1012f244
test eax, eax
pop ecx
jne 0x10122446
cmp dword [0x102e950c], 1
je 0x1012255e
cmp ebx, 0xfc
je 0x10122591
push 0x10198a48
mov ebx, 0x314
push ebx
mov ebp, 0x102e96b8
push ebp
call fcn.101182dc
add esp, 0xc
test eax, eax
je 0x1012247c
push esi
push esi
push esi
push esi
push esi
call fcn.10122606
add esp, 0x14
push 0x104
mov esi, 0x102e96d1
push esi
push 0
mov byte [0x102e97d5], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x101224c0
push 0x10198a30
push 0x2fb
push esi
call fcn.101182dc
add esp, 0xc
test eax, eax
je 0x101224c0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10122606
add esp, 0x14
push esi
call fcn.1011e040
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10122505
push esi
call fcn.1011e040
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x102e99cc
push 0x10198a2c
sub ecx, eax
push ecx
push eax
call fcn.1011deb3
add esp, 0x14
test eax, eax
je 0x10122505
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10122606
add esp, 0x14
jmp 0x10122507
xor esi, esi
push 0x10198a28
push ebx
push ebp
call fcn.1011840a
add esp, 0xc
test eax, eax
je 0x10122527
push esi
push esi
push esi
push esi
push esi
call fcn.10122606
add esp, 0x14
push dword [edi*8 + 0x101cf71c]
push ebx
push ebp
call fcn.1011840a
add esp, 0xc
test eax, eax
je 0x10122549
push esi
push esi
push esi
push esi
push esi
call fcn.10122606
add esp, 0x14
push 0x12010
push 0x10198a00
push ebp
call fcn.1012f087
add esp, 0xc
jmp 0x10122591
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10122591
cmp ebp, 0xffffffff
je 0x10122591
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101cf71c]
push dword [esi]
call fcn.1011e040
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 0x1012f087
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1012348a
xor ebx, ebx
cmp dword [0x102e9f9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1012f15d
push 0x1019a56c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1012f23d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x1019a560
push edi
call esi
cmp eax, ebx
je 0x1012f23d
push eax
call fcn.1012341c
mov dword [esp], 0x1019a550
push edi
mov dword [0x102e9f9c], eax
call esi
push eax
call fcn.1012341c
mov dword [esp], 0x1019a53c
push edi
mov dword [0x102e9fa0], eax
call esi
push eax
call fcn.1012341c
mov dword [0x102e9fa4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1011e1cc
test eax, eax
pop ecx
pop ecx
je 0x1012f12b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10122606
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1012f15d
push 0x1019a520
push edi
call esi
push eax
call fcn.1012341c
cmp eax, ebx
pop ecx
mov dword [0x102e9fac], eax
je 0x1012f15d
push 0x1019a508
push edi
call esi
push eax
call fcn.1012341c
pop ecx
mov dword [0x102e9fa8], eax
mov eax, dword [0x102e9fa8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1012f1e2
cmp dword [0x102e9fac], ecx
je 0x1012f1e2
push eax
call fcn.10123493
push dword [0x102e9fac]
mov esi, eax
call fcn.10123493
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1012f1e2
cmp edi, ebx
je 0x1012f1e2
call esi
cmp eax, ebx
je 0x1012f1af
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1012f1af
test byte [ebp - 0x18], 1
jne 0x1012f1e2
lea eax, [ebp - 0x10]
push eax
call fcn.1011e203
test eax, eax
pop ecx
je 0x1012f1ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10122606
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1012f1d9
or dword [ebp + 0x10], 0x200000
jmp 0x1012f21d
or dword [ebp + 0x10], 0x40000
jmp 0x1012f21d
mov eax, dword [0x102e9fa0]
cmp eax, dword [ebp - 8]
je 0x1012f21d
push eax
call fcn.10123493
cmp eax, ebx
pop ecx
je 0x1012f21d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1012f21d
mov eax, dword [0x102e9fa4]
cmp eax, dword [ebp - 8]
je 0x1012f21d
push eax
call fcn.10123493
cmp eax, ebx
pop ecx
je 0x1012f21d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102e9f9c]
call fcn.10123493
cmp eax, ebx
pop ecx
je 0x1012f23d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1012f23f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101358d3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101cf40c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10135868
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.101184b0
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 0x10135922
cmp dword [ebp - 0x1c], 5
jb 0x1013593a
jmp 0x10135936
cmp dword [ebp - 0x10], 1
jne 0x1013593a
cmp dword [ebp - 0x1c], 4
ja 0x10135936
jne 0x1013593a
cmp dword [ebp - 0x18], 0
jbe 0x1013593a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1019a670
call fcn.10001ac0
test eax, eax
jge 0x1013595b
mov byte [0x101d0d60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101179ba
add ebp, 0x78
leave
ret

Function at 0x10137470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10180718
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101cf40c]
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], 0x1019a748
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.10136b80
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x1019a748
je 0x101374f0
cmp byte [esp + 0x10], 0
je 0x101374f0
push eax
call fcn.10118b74
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 0x1013e5e0
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 0x1013e7e7
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x1013e64d
test al, al
jne 0x1013e620
cmp al, 0x21
je 0x1013e7da
cmp al, 0x2c
je 0x1013e66a
cmp al, 0x3b
je 0x1013e7e7
test al, al
sete byte [esp + 0xe]
jmp 0x1013e620
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.10137b70
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.10137b70
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.10137b70
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.10137b70
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x1013e6de
cmp word [ecx + 8], 0
jne 0x1013e6de
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 0x1013e620
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 0x1013e620
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x1013e74e
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.1013de00
cmp dword [esp + 0x20], 0
je 0x1013e7ba
push edi
push esi
mov ecx, ebx
call fcn.1013e140
jmp 0x1013e620
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 0x1013e620
push esi
mov ecx, ebx
call fcn.1013d4a0
jmp 0x1013e620
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 0x1013f7a0
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.1013da70
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x1013f830
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x1013f830
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.1013db00
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.1013f2d0
mov ecx, esi
call fcn.1013da70
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1013f974
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 0x1013f8ae
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x1013f961
test ecx, ecx
jl 0x1013f8e6
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x1013f8c2
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x1013f8dc
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x1013f91c
test edx, edx
jg 0x1013f8c2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.1013f2d0
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x1013f92a
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x1013f961
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x1013f961
push 0x138b
mov ecx, esi
call fcn.1013db00
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.1013f2d0
mov ecx, esi
call fcn.1013da70
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1013f875
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1013f2d0
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.1013f2d0
pop edi
pop esi
pop ebp
ret 8