joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4693e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46942a
call fcn.00473da2
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46942a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x469446
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00473f3b
mov ebx, eax
test edi, edi
je 0x469444
test esi, esi
je 0x469444
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46f771
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00473da2
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46f7a8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0046f7c9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ea687
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004731fa
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4ea6c3
call fcn.004ea8a6
mov dword [esi + 0xc], 1
jmp 0x4ea6c8
call fcn.004ea8a6
cmp dword [esi], 0
je 0x4ea711
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4ea6eb
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004694ba
jmp 0x4ea6fc
push 0xff
mov ecx, esi
call fcn.00413c40
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046738d
jmp 0x4ea735
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4ea735
push dword [esi]
push dword [ebp - 4]
call fcn.004768fd
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ea7fb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004ea8a6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4ea843
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004694ba
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046738d
jmp 0x4ea84e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004768fd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54cf18
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0057dc11
call fcn.00473df6
cmp dword [eax + 0x14], 0
jne 0x54cf33
mov ecx, esi
pop esi
jmp fcn.0054c31e
pop esi
ret

Function at 0x5597eb
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004ec76a
call fcn.00473df6
cmp dword [eax + 0x14], 0
jne 0x559806
mov ecx, esi
pop esi
jmp fcn.005590d4
pop esi
ret
Function at 0x599ce5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0058c56e
mov dword [ebp - 0x14], eax
cmp dword [0x646848], esi
jne 0x599dd8
push 0x800
push esi
push 0x603160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x599d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x599eb8
push esi
push esi
push 0x603160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x599eb8
push 0x603178
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x599eb8
push eax
call ebx
push 0x603184
push edi
mov dword [0x646848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x603194
push edi
mov dword [0x64684c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x646850], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646858], eax
test eax, eax
je 0x599dd5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646854], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x599dfd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x599df0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x599e12
push 4
pop eax
jmp 0x599eba
cmp dword [ebp - 0x14], esi
je 0x599e12
push dword [0x646848]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x599df7
mov eax, dword [0x646854]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x599e70
cmp dword [0x646858], edi
je 0x599e70
push eax
call ebx
push dword [0x646858]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x599e70
test eax, eax
je 0x599e70
call ecx
test eax, eax
je 0x599e65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x599e65
test byte [ebp - 8], 1
jne 0x599e70
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x599ea0
mov eax, dword [0x64684c]
cmp eax, edi
je 0x599e9d
push eax
call ebx
test eax, eax
je 0x599e9d
call eax
mov esi, eax
test esi, esi
je 0x599e9d
mov eax, dword [0x646850]
cmp eax, edi
je 0x599e9d
push eax
call ebx
test eax, eax
je 0x599e9d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x646848]
call ebx
test eax, eax
je 0x599eb8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x599eba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00581e9f
mov esp, ebp
pop ebp
ret
Function at 0x5a9b9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x45dde0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45de89
test eax, edx
je 0x45de8c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x45de09
push edx
mov edx, eax
mov eax, esp
call fcn.00479154
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x45de1f
push eax
lea eax, [esp + 8]
call fcn.00479154
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x45de2e
movzx eax, word [eax]
sub eax, ecx
jmp 0x45de55
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x45de6f
add ecx, 4
js 0x45de46
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x45de6c
push eax
mov eax, ecx
mov edx, 2
call fcn.00478534
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x45de53
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x45de55
xor eax, eax
ret
test eax, eax
je 0x45de9c
test edx, edx
jne 0x45ddf0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x46630f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00478874
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.00588020
mov edi, eax
cmp edi, 0x104
jbe 0x466332
mov eax, edi
add eax, eax
call fcn.00476670
mov esi, eax
jmp 0x466334
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.00588020
push edi
push esi
call fcn.0058849c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x46636d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x466357
mov eax, esp
cmp esi, eax
je 0x46637a
mov eax, esi
call fcn.0047668c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4663b4
cmp bl, 0
je 0x4663b0
cmp bl, 0x41
jl 0x4663ab
cmp bl, 0x5a
jg 0x4663ab
or bl, 0x20
xor al, bl
inc esi
jmp 0x46638f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4662f4
Function at 0x4a52c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4a52c6
ret

Function at 0x4b0834
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b09f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4b09cd
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4b09cd
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4b0800]
call fcn.0047a7f0
add esp, 4
lea eax, [ebp - 4]
call fcn.0047bc5c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x59690c]
push eax
call fcn.00588930
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0047a628
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00476c90
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x4a3c00]
call fcn.004ad228
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4b09ab
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004aee3c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.004adb48
call fcn.004a82b0
push eax
call fcn.00588410
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004ade4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b09cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b09f8
lea eax, [ebp - 8]
mov edx, dword [0x4b0800]
call fcn.0047a7fc
lea eax, [ebp - 4]
call fcn.0047bc5c
ret
Function at 0x1017a471
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 [0x10182d20], 0
mov byte [0x10182d24], 0
mov dword [0x10182d18], 0x33f9
mov dword [0x10182d14], 0x9a0
mov dword [0x10182d1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1017a4e5
mov dword [0x10182d18], 0x1f91
xor eax, eax
mov dword [0x10182d1c], 0
mov dword [ebp - 0x20], eax
jmp 0x1017a50d
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10182d1c]
add eax, 1
mov dword [0x10182d1c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1017a4e5
jmp 0x1017a4c2
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10182d28], 0
mov dword [0x10182d14], 0x2391
mov edx, dword [0x10182d20]
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 [0x10182d28], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x10182d20], edx
mov dword [0x10182d14], 0x1197
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10182d24], cl
mov dword [0x10182d14], 0xd5c
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10182d24]
mov edx, dword [0x10182d20]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x10182d14], 0xcb9
mov edx, dword [0x10182d1c]
add edx, 1
mov dword [0x10182d1c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1017a50d
jmp 0x1017a4dd
Function at 0x1017a98a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x10182d18], 0x1825
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10182d14], 0x262b
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1017aa54
mov eax, dword [ebp - 0x14]
mov dword [0x10182d14], 0xca2
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x1017aa94
jmp 0x1017ab09
mov dword [0x10182d14], 0x35
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1017aad2
jmp 0x1017ab09
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1017aab3
jmp 0x1017ab09
mov dword [0x10182d14], 0xffffde32
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2], 0x61
je 0x1017aa14
jmp 0x1017ab09
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x1017a9cd
mov dword [0x10182d18], 0x2454
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x1017aa54
jmp 0x1017a9cd
mov dword [0x10182d14], 0xffffe703
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1017aa2c
jmp 0x1017ab09
mov dword [0x10182d14], 0xb28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1017a9f2
jmp 0x1017ab09
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff9
mov dword [0x10182d14], 0x166f
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, 1
mov ecx, 0x1438
mov edx, dword [ebp - 0x24]
cmp word [edx], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
je 0x1017ab18
xor eax, eax
mov ecx, 0x1f59
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x1017ab18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x10182d14], eax
mov eax, ecx
add esp, 0x2c
pop ebp
ret
Function at 0x1017acd7
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 [ebp - 0x10], eax
call fcn.1017a018
xor ecx, ecx
mov edx, eax
mov dword [0x10182d18], 0x11a4
mov esi, dword [eax + 0x3c]
mov dword [0x10182d14], 0x828
mov esi, dword [eax + esi + 0x78]
mov dword [0x10182d18], 0x1376
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10182d14], 0x4d3
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
je 0x1017ae48
jmp 0x1017ad8a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
jmp 0x1017ad9e
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x1017ad9e
jmp 0x1017adc7
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
jmp 0x1017ad44
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
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 - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
jne 0x1017ad60
mov al, byte [ebp - 0x42]
test al, 1
jne 0x1017ae05
jmp 0x1017add0
mov eax, dword [ebp - 0x34]
add eax, 2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jb 0x1017ad44
jmp 0x1017ae48
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
mov esi, dword [ebp - 0x1c]
add esi, eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
add eax, dword [ecx]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + edx*4]
mov dword [0x10182d18], 0x14e4
mov esi, dword [ebp - 0x1c]
add esi, eax
mov dword [0x10182d14], 0x674
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1017af13
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x10182d18]
mov dword [0x10182d1c], 0
mov dword [0x10182d20], 0
mov dword [0x10182d2c], 0
mov ebx, edi
add ebx, 0xfffff40b
mov dword [0x10182d14], ebx
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
mov dword [ebp - 0x24], ebx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, dword [ebp - 0x24]
mov esi, eax
mov edi, eax
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
je 0x1017b0b1
jmp 0x1017afb8
mov eax, dword [0x10182d1c]
mov ecx, dword [0x10182d20]
mov edx, dword [0x10182d14]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x44], edx
cdq
idiv edi
mov dword [0x10182d1c], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x44]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x48], edx
cdq
idiv edi
mov dword [0x10182d20], edx
mov ecx, esi
add ecx, 0xffffff04
mov dword [0x10182d18], ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x48]
mov cl, byte [ecx + edi]
mov byte [0x10182d24], cl
add esi, 0xffffe8d2
mov dword [0x10182d14], esi
mov esi, dword [ebp - 0x1c]
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov cl, byte [0x10182d24]
mov edx, dword [0x10182d20]
mov byte [esi + edx], cl
mov dword [0x10182d14], 0xfea
mov edx, dword [0x10182d1c]
movzx edx, byte [esi + edx]
mov ebx, dword [0x10182d20]
movzx ebx, byte [esi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10182d2c], ebx
mov cl, byte [esi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x40]
mov ch, byte [edx + ebx]
mov dword [0x10182d18], 0xd1
xor ch, cl
mov byte [0x10182d30], ch
mov dword [0x10182d14], 0x538
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
jne 0x1017af98
mov eax, dword [0x10182d18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0xffffefe2
mov dword [0x10182d14], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1017b0c6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10182d18], 0xa89
mov edx, dword [0x10182d14]
add edx, 0xbf9
mov dword [0x10182d14], edx
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.1017a5e2
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x6c], 0x15c800
mov ecx, dword [0x10182d00]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
lea eax, [0x1017b322]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov edx, dword [0x10182d04]
mov dword [esp + 0x60], edx
mov edx, dword [0x10182d08]
mov dword [esp + 0x74], edx
mov edx, dword [0x10182d0c]
mov dword [esp + 0x88], edx
mov edx, dword [0x10182d10]
mov dword [esp + 0x68], edx
mov dword [0x10182d18], 0x2bd
mov dword [0x10182d14], 0xfffff059
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
jne 0x1017b197
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], ecx
je 0x1017b1bd
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
and eax, 0xfffff000
mov dword [0x10182d18], 0xfde
mov dword [esp + 0x20], eax
jmp 0x1017b174
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x90], eax
mov dword [0x10182d14], 0x828
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
mov dword [0x10182d18], 0x1419
call fcn.1017a98a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x1017b24a
lea eax, [esp + 0x40]
mov dword [0x10182d14], 0xa5a
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1017b397
mov dword [esp + 0xc], eax
mov dword [0x10182d14], 0x1f96
mov eax, esp
lea ecx, [esp + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
call eax
sub esp, 4
mov eax, 1
mov dword [0x10182d18], 0x2262
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret