joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f430
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x47f602
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x47f602
push edi
mov ecx, esi
call fcn.0047fd50
mov edi, eax
cmp edi, 0xffffffff
je 0x47f5f9
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47f5e5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x47f5db
test eax, eax
je 0x47f5db
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47f4e6
call ebx
cmp eax, 0x7a
jne 0x47f5db
push dword [ebp - 4]
call fcn.0048784b
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47f5d2
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47f5d2
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47f5d2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47f558
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47f5db
push dword [ebp - 4]
call fcn.0048784b
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47f5bf
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47f5bf
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47f5bf
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.00487854
push dword [ebp - 8]
call fcn.00487854
add esp, 8
test bl, bl
jne 0x47f5e5
jmp 0x47f5db
push ebx
call fcn.00487854
push dword [ebp - 8]
call fcn.00487854
add esp, 8
jmp 0x47f5db
push ebx
call fcn.00487854
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x47f5f9
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49959d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4be434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.0047f430
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4c6e6c], bl
jne 0x47fa0b
xor eax, eax
mov dword [ebp - 0x220], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403d90
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.00475580
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x47fa12
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x47fa60
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x47fa60
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fa56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47fa56
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x47fa88
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.0047f630
add esp, 0x18
jmp 0x47fa96
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00403d90
cmp byte [ebp - 0x232], 0
je 0x47fac6
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487702
mov esp, ebp
pop ebp
ret
Function at 0x47fd50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4995db
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4be434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x47ff66
cmp dword [ebp - 0x248], 0xffffffff
je 0x47ff66
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x47ff29
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47fe9d
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, edi
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x47fe7b
cmp edi, ebx
je 0x47fe5c
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x47fe7b
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00401f70
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47fe30
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x47ff29
lea ecx, [ecx]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x47ff14
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x47ff14
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x47ff14
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x47ff1d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x47feb0
jmp 0x47ff23
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x47ff62
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x47ff58
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47ff58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push esi
call fcn.004876f4
add esp, 8
mov eax, edi
jmp 0x47ff6c
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487702
mov esp, ebp
pop ebp
ret
Function at 0x4801c0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4996e9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4be434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0047b670
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.0047b670
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0047b670
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0047b670
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.0047b670
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.0047b670
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.0047b670
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.0047b670
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.0047b670
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.0047b670
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.0047b670
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.0047b670
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.0047b670
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.0047b670
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.0047b670
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.0047b670
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.0047b670
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.0047b670
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48aac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a883
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4be434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x49cd21
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00413a40
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1011623b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10126360], 0
mov byte [0x10126364], 0
mov dword [0x1012635c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10116291
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1012635c], 0
mov dword [ebp - 0x20], eax
jmp 0x101162c3
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10126358], 0x2469
mov eax, dword [0x1012635c]
add eax, 1
mov dword [0x1012635c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10116291
jmp 0x10116280
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10126368], 0
mov edx, dword [0x10126360]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10126368], edi
mov dword [0x10126358], 0x16c0
mov eax, edi
cdq
idiv ecx
mov dword [0x10126360], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10126364], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10126364]
mov edx, dword [0x10126360]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1012635c]
add edx, 1
mov dword [0x1012635c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101162c3
jmp 0x10116278
Function at 0x10116365
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10126358], 0x288
mov dword [0x10126354], 0xffffeb8f
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x101163b4
xor eax, eax
mov dword [0x10126354], 0x1723
mov dword [ebp - 0x13c], eax
jmp 0x1011640f
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0xd0
mov edi, edx
add edi, esi
add edi, 0xcc
mov esi, dword [edi]
imul edi, eax, 0xd0
add edx, edi
add edx, 0xb4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x104
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
je 0x101163a0
jmp 0x101163b4
mov eax, dword [ebp - 0x13c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1011834f]
mov dh, byte [eax + 0x10118320]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x13c], ecx
jne 0x1011640f
lea eax, [ebp - 0x12c]
mov dword [0x10126358], 0xffff0dc0
mov dword [0x10126354], 0x24bd
mov dword [ebp - 0x144], eax
call fcn.10117422
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10115fbd
mov ecx, eax
mov dword [0x10126370], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x10126358], 0x1845
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, ecx, 0xd0
mov edi, edx
add edi, esi
add edi, 0xb4
imul esi, ecx, 0xd0
mov ebx, edx
add ebx, esi
add ebx, 0xcc
imul esi, ecx, 0xd0
add edx, esi
add edx, 0x78
mov esi, dword [ebp - 0x148]
add esi, eax
add ecx, 1
mov ebx, dword [ebx]
mov edx, dword [edx]
movzx edi, word [edi]
xor edi, ebx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], ecx
call fcn.10116a14
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x104
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], eax
jne 0x101164c4
lea eax, [0x1011832e]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1011623b
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1011680f
xor eax, eax
mov ecx, dword [0x10126358]
mov edx, dword [ebp - 0x148]
add edx, 0x19188
mov esi, dword [ebp - 0x148]
add esi, 0x2887e
add ecx, 0x3d8
mov dword [0x10126354], ecx
mov ecx, dword [ebp - 0x130]
mov dword [ecx], esi
mov dword [ecx + 4], 0x127200
mov dword [ecx + 8], edx
mov dword [0x10126358], 0x741
mov dword [ecx + 0xc], 0x2000
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1011661a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, dword [0x10126358]
mov edi, esi
add edi, 0x24c6
mov dword [0x10126354], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x101166bc
mov eax, dword [ebp - 0x38]
add eax, 0xffff0b38
mov dword [0x10126358], eax
mov dword [0x10126354], 0xec8
call fcn.10117422
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], ecx
call fcn.10115fbd
xor ecx, ecx
mov dword [0x10126354], 0x753
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
je 0x1011678b
jmp 0x101166e8
mov eax, dword [ebp - 0x4c]
add eax, 0x1dd2
mov dword [0x10126354], 0x1875
mov dword [ebp - 0x48], eax
jmp 0x1011678b
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x1011834f]
mov dl, byte [eax + 0x10118320]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
je 0x10116652
jmp 0x101166bc
mov eax, dword [ebp - 0x44]
mov dword [0x10126354], 0xdeb
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10126358], 0x228e
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.1011612b
xor eax, eax
mov ecx, dword [0x10126358]
add ecx, 0xffffe96a
mov dword [0x10126354], ecx
mov ecx, dword [ebp - 0x4c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], ecx
mov dword [0x10126358], 0x1302
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0x48], ecx
cmp ecx, 0
mov dword [ebp - 0x48], eax
jne 0x101166a2
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x1011680f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1012635c], 0
mov dword [0x10126360], 0
mov dword [0x1012636c], 0
mov dword [0x10126354], 0x18c4
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x10116876
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1012635c], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10126360], edx
mov dword [0x10126358], 0xa8e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10126364], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10126364]
mov edx, dword [0x10126360]
mov byte [ebx + edx], cl
mov dword [0x10126354], 0x16e8
mov edx, dword [0x1012635c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10126360]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1012636c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x10126358], 0x1e0e
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [0x10126358]
add edx, 0xfffff1cc
mov dword [0x10126354], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1011686e
mov eax, dword [0x10126360]
mov ecx, dword [0x1012635c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x10116876
Function at 0x10116d19
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10126354], 0x14d0
mov dword [ebp - 0x10], eax
call fcn.10115e28
mov ecx, eax
mov edx, ecx
add edx, dword [eax + 0x3c]
mov eax, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x14]
cmp edx, 0x4550
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
je 0x10116d67
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov dword [0x10126358], 0x23c3
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov dword [0x10126354], 0x2361
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x10116dd9
jmp 0x10116de4
mov al, byte [ebp - 0x35]
test al, 1
jne 0x10116e74
jmp 0x10116db5
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
jb 0x10116df6
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [0x10126354], 0x14d0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x35], cl
je 0x10116da8
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x35]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10116e1a
jmp 0x10116da8
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10126354], 0x14fc
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x34], edx
jmp 0x10116dd9