joyce8/EMBER2024-capa huggingface dataset:
Function at 0x609550
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x60963c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x6095cd
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x609621
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x6095e1
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x60960b
lea eax, [esi + 0x3c]
jmp 0x609618
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x609570
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x609a60
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.0042f4a0
mov eax, dword [0x71906c]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x609ad6
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x609aca
mov eax, 8
call fcn.0042f4a0
movsd xmm0, qword [0x6d5c70]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005b4450
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x609b3a
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x609b2e
mov eax, 8
call fcn.0042f4a0
movsd xmm0, qword [0x6d5c70]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005b4450
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.00609bc0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.0042f4a0
movsd xmm0, qword [0x687900]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.005b4450
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.0042f4a0
movsd xmm0, qword [0x687900]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.005b4450
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.0042e165
add esp, 0x6c
ret
Function at 0x60a780
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0042f4a0
mov eax, dword [0x71906c]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x60a7e6
cmp edi, dword [esi]
je 0x60a7dd
test ebp, ebp
je 0x60a860
test ebx, ebx
js 0x60a860
mov eax, 1
mov dword [esi], edi
jmp 0x60a7ec
mov edi, dword [esi]
test edi, edi
je 0x60a860
test ebp, ebp
je 0x60a97a
push edi
call fcn.005b30a0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x60a820
push 0x28
push str.....openssl_1.1.0fcryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.005c0130
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x60a87b
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.005af500
add esp, 0xc
test eax, eax
je 0x60a860
push ebx
push ebp
push dword [esi + 4]
call fcn.005af6b0
add esp, 0xc
test eax, eax
je 0x60a860
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.005af460
add esp, 0xc
test eax, eax
jne 0x60a897
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e165
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x60a860
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.00507c70
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x60a8ba
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.00507a20
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x60a8c0
push edx
push edi
push dword [esi + 8]
call fcn.005af500
add esp, 0xc
test eax, eax
je 0x60a860
push edi
call fcn.005b30a0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.005af6b0
add esp, 0x10
test eax, eax
je 0x60a860
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x60a910
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.005af500
add esp, 0xc
test eax, eax
je 0x60a860
push edi
call fcn.005b30a0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.005af6b0
add esp, 0x10
test eax, eax
je 0x60a860
push dword [esi + 8]
push dword [esi + 4]
call fcn.005af6e0
add esp, 8
test eax, eax
je 0x60a860
mov eax, 1
jmp 0x60a862
test eax, eax
je 0x60a95a
jmp 0x60a8be
Function at 0x1014d32f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b2040]
jne 0x1014d339
repz ret
jmp fcn.1014ffdc

Function at 0x10151deb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1014c5e4
and dword [ebp - 4], 0
cmp dword [0x101b3fe8], 0
mov ebx, eax
jne 0x10151e9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10151f4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10151f4d
push eax
call fcn.1014c572
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b3fe8], eax
call esi
push eax
call fcn.1014c572
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b3fec], eax
call esi
push eax
call fcn.1014c572
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b3ff0], eax
call esi
push eax
call fcn.1014c572
pop ecx
mov dword [0x101b3ff8], eax
test eax, eax
je 0x10151e9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1014c572
pop ecx
mov dword [0x101b3ff4], eax
mov eax, dword [0x101b3ff4]
cmp eax, ebx
je 0x10151ef4
cmp dword [0x101b3ff8], ebx
je 0x10151ef4
push eax
call fcn.1014c5ed
push dword [0x101b3ff8]
mov esi, eax
call fcn.1014c5ed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10151ef4
test edi, edi
je 0x10151ef4
call esi
test eax, eax
je 0x10151eeb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10151eeb
test byte [ebp - 0xc], 1
jne 0x10151ef4
or dword [ebp + 0x10], 0x200000
jmp 0x10151f2d
mov eax, dword [0x101b3fec]
cmp eax, ebx
je 0x10151f2d
push eax
call fcn.1014c5ed
pop ecx
test eax, eax
je 0x10151f2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10151f2d
mov eax, dword [0x101b3ff0]
cmp eax, ebx
je 0x10151f2d
push eax
call fcn.1014c5ed
pop ecx
test eax, eax
je 0x10151f2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b3fe8]
call fcn.1014c5ed
pop ecx
test eax, eax
je 0x10151f4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10151f4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10153f36
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101b1870], 0x2498
mov ecx, dword [0x101b1874]
add ecx, 0xffffe16e
mov dword [0x101b1874], ecx
mov dword [ebp - 0x10], eax
call fcn.10154895
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101b1870], 0x4bc
mov esi, dword [eax + esi + 0x78]
mov dword [0x101b1870], 0x124f
mov dword [0x101b1874], 0xffffed55
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x10153ff5
mov eax, dword [ebp - 0x24]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
add eax, 1
mov cl, byte [ebp - 0x29]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2a]
and ch, dl
cmp eax, 0x20
setb dl
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], ch
mov byte [ebp - 0x32], dl
mov al, byte [ebp - 0x31]
mov cl, byte [ebp - 0x32]
and al, cl
test al, 1
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
jne 0x10154039
jmp 0x10154066
xor eax, eax
mov ecx, 0xffffed55
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
xor esi, esi
add eax, 0xffffe16e
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + edx*4]
mov dword [0x101b1874], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
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 - 0x28], eax
mov byte [ebp - 0x29], bh
mov byte [ebp - 0x2a], cl
jne 0x10153fba
mov al, byte [ebp - 0x2a]
test al, 1
jne 0x101540a2
jmp 0x1015406f
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
jb 0x1015400f
jmp 0x10153faf
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov dword [0x101b1874], 0xfffffd67
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101b1870], 0x768
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
jmp 0x10153faf
Function at 0x101540d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x101b1874], 0xc32
mov dword [0x101b1870], 0xffffecfe
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x1015414e
mov dword [0x101b1874], 0x232f
mov dword [0x101b1870], 0xf5f
call fcn.101557ac
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1015561c
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x1015423d
jmp 0x10154190
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x101716ac]
mov dl, byte [eax + 0x1017167d]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
je 0x10154111
jmp 0x1015414e
mov eax, dword [ebp - 0x40]
add eax, 0x2352
mov dword [0x101b1870], 0x2398
mov dword [ebp - 0x3c], eax
jmp 0x1015423d
mov eax, dword [ebp - 0x38]
mov dword [0x101b1870], 0x578
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 [0x101b1870], 0x1960
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.101554e1
xor eax, eax
mov dword [0x101b1874], 0xa7
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x101b1870], 0xffffdbc6
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x58], ecx
mov ecx, dword [0x101b1870]
add ecx, 0x1fb2
mov dword [0x101b1870], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x30], ecx
cmp ecx, 0
mov dword [ebp - 0x3c], eax
jne 0x10154176
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x10154246
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x101b1870]
mov ebx, edi
add ebx, 0xca
mov dword [0x101b1870], ebx
mov dword [0x101b1878], 0
mov dword [0x101b187c], 0
mov dword [0x101b1888], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c7d
mov dword [0x101b1874], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
je 0x101543f5
jmp 0x101542e2
mov eax, dword [0x101b1878]
mov ecx, dword [0x101b187c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b1878], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x101b187c], edx
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x101b1880], cl
mov dword [0x101b1874], 0x73c
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101b1870], 0x1230
mov cl, byte [0x101b1880]
mov edx, dword [0x101b187c]
mov byte [edi + edx], cl
mov edx, dword [0x101b1870]
mov ebx, edx
add ebx, 0x4f4
mov dword [0x101b1870], ebx
mov ebx, dword [0x101b1878]
movzx ebx, byte [edi + ebx]
mov ecx, dword [0x101b187c]
movzx ecx, byte [edi + ecx]
add ecx, ebx
and ecx, 0xff
mov dword [0x101b1888], ecx
mov ebx, edx
add ebx, 0xffffd018
mov dword [0x101b1874], ebx
mov cl, byte [edi + ecx]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov ch, byte [ebx + esi]
mov bl, cl
add bl, byte [0x101b188d]
mov byte [0x101b188c], bl
mov byte [0x101b188d], ch
mov dword [0x101b1874], 0xd77
mov byte [0x101b188e], cl
add edx, 0xffffb72a
mov dword [0x101b1870], edx
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x30], esi
jne 0x101542cb
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015452c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [0x101b1870], 0x26aa
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x101b1870]
add edx, 0xfffff6cd
mov dword [0x101b1874], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101b1870], 0x1018
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101545e2
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x101546a3
mov dword [0x101b1874], 0xfffffb35
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10154673
jmp 0x1015457e
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x104
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
jl 0x101545e2
jmp 0x101545f8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff6
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x64
je 0x10154651
jmp 0x1015457e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edx
jne 0x101545a7
mov eax, dword [ebp - 0x24]
mov dword [0x101b1874], 0xffffec24
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
jne 0x1015457e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x6f
jne 0x1015457e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101545c7
jmp 0x1015457e
mov dword [0x101b1870], 0x681
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10154588
jmp 0x1015457e
mov dword [0x101b1874], 0xb7b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0xe]
mov word [ebp - 0x2e], dx
mov eax, 1
mov cx, word [ebp - 0x2e]
cmp cx, 0x6c
mov dword [ebp - 0x14], eax
jne 0x1015457e
mov eax, dword [ebp - 0x14]
add esp, 0x30
pop ebp
ret
Function at 0x10154715
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b187c], 0
mov byte [0x101b1880], 0
mov edi, dword [0x101b1870]
add edi, 0xffffed90
mov dword [0x101b1874], edi
mov dword [0x101b1878], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10154851
mov eax, dword [0x101b1874]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x101b1884], 0
mov esi, dword [0x101b187c]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x101b1884], ebx
add ecx, 0x4af
mov dword [0x101b1874], ecx
mov eax, ebx
cdq
mov ecx, dword [ebp - 0x30]
idiv ecx
mov dword [0x101b187c], edx
mov ebx, dword [ebp - 0x2c]
mov cl, byte [edi + ebx]
mov byte [0x101b1880], cl
mov cl, byte [edi + edx]
mov byte [edi + ebx], cl
mov dword [0x101b1874], 0x215b
mov cl, byte [0x101b1880]
mov edx, dword [0x101b187c]
mov byte [edi + edx], cl
mov edx, dword [0x101b1878]
add edx, 1
mov dword [0x101b1878], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10154767
jmp 0x1015488d
mov eax, dword [0x101b1870]
add eax, 0xffffe4dc
mov dword [ebp - 0x34], eax
mov eax, 0xf40
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov dword [0x101b1870], edx
mov dword [0x101b1878], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10154775
mov eax, dword [ebp - 0x1c]
mov dword [0x101b1870], 0x2457
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b1874], 0xf40
mov eax, dword [0x101b1878]
add eax, 1
mov dword [0x101b1878], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10154851
jmp 0x1015481f
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10154b79
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.10154b79]
mov dword [0x101b1870], 0x1a42
mov ecx, dword [0x101b1874]
add ecx, 0xffffe87b
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10154bdb
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 0x10]
add ecx, 0xa5d
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10154bdb
mov eax, dword [ebp - 0x10]
mov dword [0x101b1870], eax
mov dword [0x101b1874], 0x6c0
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x10154ba3
mov eax, dword [ebp - 0xc]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x10154bc1
jmp 0x10154ba3
Function at 0x10155199
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x101b1874], 0x1d65
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1015539f
jmp 0x1015524f
mov eax, 0x416
mov ecx, 0x1f82
xor edx, edx
mov dword [0x101b1870], 0xf15
mov si, word [ebp - 0x1a]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
je 0x101552a5
jmp 0x1015530e
mov eax, dword [ebp - 0x38]
mov dword [0x101b1874], eax
mov eax, 0x416
mov dword [0x101b1870], 0x13e7
mov cl, byte [ebp - 0x39]
test cl, 1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
jne 0x1015538f
jmp 0x101552a5
mov dword [0x101b1874], 0xc1a
mov dword [0x101b1870], 0x13c3
mov ecx, dword fs:[0x18]
mov dword [0x101b1870], 0x1973
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov ecx, dword [0x101b1874]
add ecx, 0xe90
mov edx, dword [ebp - 0x10]
cmp edx, 0
setne bl
mov esi, eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dword [0x101b1870], ecx
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
je 0x1015539f
mov eax, dword [ebp - 0x20]
mov cx, word [eax + 0x24]
mov edx, dword [eax + 0x28]
mov dword [0x101b1874], 0x1f82
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x41]
and bh, bl
test bh, 1
mov word [ebp - 0x1a], cx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
jne 0x101552fe
jmp 0x101551de
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x1015539f
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x48]
mov si, word [edx + eax*2]
add ecx, 0xffffe074
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x50], eax
mov word [ebp - 0x52], si
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x54], bx
jb 0x1015534e
mov ax, word [ebp - 0x52]
mov word [ebp - 0x54], ax
mov ax, word [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp word [ecx + edx*2], ax
sete bl
add edx, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x24]
cmp edx, esi
setb bh
and al, bh
test al, 1
mov edi, dword [ebp - 0x38]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edx
jne 0x1015530e
jmp 0x10155221
mov dword [0x101b1874], 0x1e02
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret