joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b3d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7528c8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b41a
cmp word [esi], dx
jne 0x49b41a
or byte [edi + eax + 0x28], 4
jmp 0x49b41f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49b572
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49b552
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49b461
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49b497
cmp eax, edx
jae 0x49b4a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49b439
jmp 0x49b572
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b54e
cmp dword [ebp - 0x14], 0
je 0x49b54e
mov eax, dword [ebx*4 + 0x7528c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49b526
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49b4ef
mov word [esi], cx
jmp 0x49b522
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7528c8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7528c8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7528c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49b572
pop ebx
cmp word [ebp - 4], bx
jne 0x49b537
cmp esi, dword [ebp + 0xc]
jne 0x49b537
mov word [esi], bx
jmp 0x49b56f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49b572
push 0xd
jmp 0x49b56b
mov ecx, dword [ebx*4 + 0x7528c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b572
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x74d3a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a2b8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3003
test al, al
jne 0x4a2b86
sub edx, 2
cmp edx, edi
jne 0x4a2b6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2bae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2bae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a273a
add esp, 0x10
jmp 0x4a2ca8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3003
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2bf1
push dword [ebp - 0x25c]
jmp 0x4a2b9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2c2e
cmp word [ebp - 0x226], 0
je 0x4a2c4f
cmp word [ebp - 0x226], ax
jne 0x4a2c2e
cmp word [ebp - 0x224], 0
je 0x4a2c4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a273a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2c9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a2c08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2c83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a2ca8
push 0x4a2122
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061fe
add esp, 0x10
jmp 0x4a2c78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x416113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416152
cmp dword [ecx + 0x74], 0xe
jbe 0x416152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42854d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42854d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000103f
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor ebx, ebx
push ebx
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x100010cb
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
je 0x100010ac
lea eax, [ebp - 0xc]
push eax
push 0x10001007
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], ebx
je 0x100010ac
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100010a7
cmp dword [ebp - 4], 0x103
jne 0x100010a7
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100010ac
mov eax, dword [ebp + 0x10]
jmp 0x100010be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x100010be
mov eax, dword [ebp + 0x14]
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c3e
cmp dword [ecx + 0x74], 0xe
jbe 0x401c3e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40cde3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40ce2e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040cf82
test al, al
jne 0x40ce28
sub edx, 2
cmp edx, edi
jne 0x40ce0e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40ce50
lea eax, [edi + 2]
cmp edx, eax
je 0x40ce50
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040cd2f
add esp, 0x10
jmp 0x40cf4a
push esi
lea ecx, [ebp - 0x255]
call fcn.0040cf82
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce93
push dword [ebp - 0x25c]
jmp 0x40ce40
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40ced0
cmp word [ebp - 0x226], 0
je 0x40cef1
cmp word [ebp - 0x226], ax
jne 0x40ced0
cmp word [ebp - 0x224], 0
je 0x40cef1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040cd2f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40cf3d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40ceaa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40cf25
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40cf4a
push 0x40cb5f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040fe20
add esp, 0x10
jmp 0x40cf1a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401400
leave
ret

Function at 0x40d988
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40d999
pop esi
ret
push ebx
push edi
push esi
call fcn.0040d951
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040e376
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d9c1
push ebx
push esi
push edi
call fcn.00402d90
add esp, 0xc
push 0
call fcn.0040bace
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40dd85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d9d6

Function at 0x40eb0e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416d9c
push 0x416d94
push str.FlsAlloc
push 0x1e
call fcn.0040e9ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eb42
push dword [ebp + 8]
mov ecx, esi
call dword [0x414140]
call esi
jmp 0x40eb48
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40eb8c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416dac
push 0x416da4
push str.FlsGetValue
push 0x20
call fcn.0040e9ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ebc3
push dword [ebp + 8]
mov ecx, esi
call dword [0x414140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x413850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41387d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41387d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x411812
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b9d2
and dword [ebp - 0x14], 0
cmp dword [0x42ffe8], 0
mov dword [ebp - 0x18], eax
jne 0x4118c5
push 0x403e58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41196d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e4c
push ebx
call edi
test eax, eax
je 0x41196d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e3c
push ebx
mov dword [0x42ffe8], eax
call edi
push eax
call esi
push 0x403e28
push ebx
mov dword [0x42ffec], eax
call edi
push eax
call esi
push 0x403e0c
push ebx
mov dword [0x42fff0], eax
call edi
push eax
call esi
mov dword [0x42fff8], eax
test eax, eax
je 0x4118c5
push 0x403df4
push ebx
call edi
push eax
call esi
mov dword [0x42fff4], eax
mov eax, dword [0x42fff4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41191e
cmp dword [0x42fff8], ecx
je 0x41191e
push eax
call esi
push dword [0x42fff8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41191e
test ebx, ebx
je 0x41191e
call edi
test eax, eax
je 0x411915
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411915
test byte [ebp - 8], 1
jne 0x41191e
or dword [ebp + 0x10], 0x200000
jmp 0x411951
mov eax, dword [0x42ffec]
cmp eax, dword [ebp - 0x18]
je 0x411951
push eax
call esi
test eax, eax
je 0x411951
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411951
mov eax, dword [0x42fff0]
cmp eax, dword [ebp - 0x18]
je 0x411951
push eax
call esi
test eax, eax
je 0x411951
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ffe8]
call esi
test eax, eax
je 0x41196d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41196f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092fb
leave
ret
Function at 0x100016d0
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, esp
mov dword [eax + 8], 0xa43
mov dword [eax + 4], 0xa43
mov dword [eax], 0x60bb9b
mov eax, dword [sym.imp.GDI32.dll_SetTextJustification]
call eax
sub esp, 0xc
lea ecx, [esp + 0xa0]
lea edx, [esp + 0xb0]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], ecx
xor eax, eax
mov dword [esp + 0x90], eax
jmp 0x100017a1

Function at 0x10007680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x1016c09c]
add edi, 0xffffff53
mov dword [0x1016c0a0], edi
mov dword [0x1016c0a4], 0
mov dword [0x1016c0a8], 0
mov dword [0x1016c0b4], 0
cmp eax, 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
je 0x100077fa
xor eax, eax
mov ecx, eax
mov edx, eax
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
jmp 0x100076f6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
add ecx, 0xffffd933
mov dword [0x1016c09c], ecx
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x1016c0a4], edx
mov dword [0x1016c0a0], 0xc3d
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1016c0a8], edx
mov dword [0x1016c09c], 0x1c64
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x1016c0ac], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1016c09c], 0x475
mov cl, byte [0x1016c0ac]
mov edx, dword [0x1016c0a8]
mov byte [edi + edx], cl
mov edx, dword [0x1016c0a4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1016c0a8]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1016c0b4], ebx
mov dword [0x1016c0a0], 0x158c
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
je 0x100077f8
mov eax, dword [0x1016c0a0]
mov dword [ebp - 0x40], eax
mov eax, dword [0x1016c0a4]
mov ecx, dword [0x1016c0a8]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], esi
jmp 0x100076f6
jmp 0x100077fa
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007eb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1016c0a8], 0
mov byte [0x1016c0ac], 0
mov dword [0x1016c09c], 0x6f0
mov dword [0x1016c0a4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1016c09c], 0x129a
mov eax, dword [0x1016c0a4]
add eax, 1
mov dword [0x1016c0a4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10007ef5
jmp 0x10007fea
xor eax, eax
mov ecx, dword [0x1016c0a0]
add ecx, 0xfffffc12
mov dword [0x1016c0a0], ecx
mov dword [0x1016c0a4], 0
movsb byte es:[edi], byte [esi]
rcl byte [esi], 0x10
add byte [eax], al
add byte [eax], al

Function at 0x10008030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [0x1016c09c], 0x198f
mov dword [ebp - 0x10], eax
call fcn.10007b70
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10008076
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x1016c0a0], 0xd34
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1016c09c], 0xfb8
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x100081c0
jmp 0x100080e1
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov dword [ebp - 0x4c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x4c]
add ecx, dword [ecx + edx]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x100080bb
Function at 0x10008240
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x1016c09c]
add esi, 0xffffe727
mov dword [0x1016c0a0], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x100082a6
mov eax, dword [ebp - 0x18]
add esp, 0x28
pop esi
pop ebp
ret
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 - 0x14], eax
mov dword [ebp - 0x24], ecx
jge 0x100082bc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edx
jne 0x10008288
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x1000835a
mov dword [0x1016c09c], 0x20fe
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000835a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000835a
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff6
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x64
jne 0x1000835a
mov dword [0x1016c09c], 0x2875
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000835a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000835a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x1000827f
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x1000827f