joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10529c3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x106406c]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x1052ba1
test eax, eax
je 0x1052b95
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x1052ba1
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x1052ba1
and word [eax], 0
push dword [ebp - 0x210]
call fcn.01053f82
cmp ax, 0x41
pop ecx
jb 0x1052a6f
push dword [ebp - 0x210]
call fcn.01053f82
cmp ax, 0x5a
pop ecx
ja 0x1052a6f
cmp word [ebp - 0x20e], 0x3a
jne 0x1052a6f
cmp word [ebp - 0x20c], 0x5c
jne 0x1052ba1
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
push 0x5c
pop edi
cmp word [ebp - 0x210], di
jne 0x1052ab5
cmp word [ebp - 0x20e], di
jne 0x1052ab5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01053ca2
test eax, eax
pop ecx
pop ecx
je 0x1052ba1
add eax, 2
push edi
push eax
call fcn.01053ca2
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
je 0x1052ba1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1052adc
and al, 0x10
neg al
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x1052ba4
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, dword [ebp - 0x214]
je 0x1052ba1
cmp word [esi], di
jne 0x1052ba1
cmp esi, dword [ebp - 0x214]
jbe 0x1052ba1
and word [esi], 0
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.01053ccd
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1052ba1
mov bx, word [edi + 2]
and word [edi + 2], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov word [edi + 2], bx
jne 0x1052b67
cmp edi, dword [ebp - 0x214]
mov esi, edi
ja 0x1052b12
cmp esi, dword [ebp - 0x214]
jbe 0x1052ba1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x1052b87
test al, 0x10
jne 0x1052b55
mov eax, 0x10b
jmp 0x1052ba4
cmp word [esi + 2], bx
je 0x1052b9d
push esi
mov word [esi], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x210]
push ebx
push eax
call edi
test eax, eax
jne 0x1052b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1052ba4
xor eax, eax
jmp 0x1052ba4
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101cfec
leave
ret 4
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x32533d9b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x293636fe
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10188467
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b41b8]
jne 0x10188471
repz ret
jmp fcn.10189f5b

Function at 0x1018b24f
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.1018856c
and dword [ebp - 4], 0
cmp dword [0x101b6398], 0
mov ebx, eax
jne 0x1018b300
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1018b3b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1018b3b1
push eax
call fcn.101884fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b6398], eax
call esi
push eax
call fcn.101884fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b639c], eax
call esi
push eax
call fcn.101884fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b63a0], eax
call esi
push eax
call fcn.101884fa
pop ecx
mov dword [0x101b63a8], eax
test eax, eax
je 0x1018b300
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101884fa
pop ecx
mov dword [0x101b63a4], eax
mov eax, dword [0x101b63a4]
cmp eax, ebx
je 0x1018b358
cmp dword [0x101b63a8], ebx
je 0x1018b358
push eax
call fcn.10188575
push dword [0x101b63a8]
mov esi, eax
call fcn.10188575
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1018b358
test edi, edi
je 0x1018b358
call esi
test eax, eax
je 0x1018b34f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1018b34f
test byte [ebp - 0xc], 1
jne 0x1018b358
or dword [ebp + 0x10], 0x200000
jmp 0x1018b391
mov eax, dword [0x101b639c]
cmp eax, ebx
je 0x1018b391
push eax
call fcn.10188575
pop ecx
test eax, eax
je 0x1018b391
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1018b391
mov eax, dword [0x101b63a0]
cmp eax, ebx
je 0x1018b391
push eax
call fcn.10188575
pop ecx
test eax, eax
je 0x1018b391
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b6398]
call fcn.10188575
pop ecx
test eax, eax
je 0x1018b3b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1018b3b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1018cd65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1018dd69
xor ecx, ecx
mov edx, eax
mov esi, dword [0x101b3c38]
add esi, 0x1e9f
mov dword [0x101b3c3c], esi
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 0x1018cdb3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x101b3c38], 0x1ee2
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 0x1018ce15
jmp 0x1018ce20
mov eax, dword [ebp - 0x34]
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 - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x1018ce7b
jmp 0x1018ce4e
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1018cdea
mov al, byte [ebp - 0x3d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x3c]
add edx, 1
mov ah, byte [ebp - 0x3e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x34], edx
jne 0x1018cdea
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1018cead
jmp 0x1018ce84
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x4c]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
jb 0x1018ce32
jmp 0x1018ce15
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x101b3c38], 0xe82
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
jmp 0x1018ce15
Function at 0x1018cfa3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b3c38], 0x1094
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1018d072
mov eax, dword [ebp - 0x34]
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 [0x101b3c38], 0x1666
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1018d8a6
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x38], ecx
mov dword [0x101b3c3c], 0x225e
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x3c], ecx
mov dword [0x101b3c38], 0x6c0
add ecx, 0x1f50
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x1018d069
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019c08a]
mov dh, byte [eax + 0x1019c05b]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1018d072
lea eax, [ebp - 0x24]
mov dword [0x101b3c3c], 0x2682
mov dword [0x101b3c38], 0x1830
mov dword [ebp - 0x44], eax
call fcn.1018ceec
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.1018cc25
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x1018cfca
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1018d323
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x101b3c3c], 0x350
mov dword [ebp - 4], 0
mov dword [0x101b3c38], 0x1212
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 [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1018d377
xor eax, eax
mov dword [0x101b3c38], 0xda6
mov dword [ebp - 0x14], eax
jmp 0x1018d467
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1018d3e3
jmp 0x1018d3aa
mov dword [0x101b3c38], 0xb66
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1018d3c3
jmp 0x1018d363
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1018d377
jmp 0x1018d3e3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1018d363
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1018d442
jmp 0x1018d363
mov eax, dword [ebp - 0x1c]
mov dword [0x101b3c3c], 0x17f8
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1018d363
mov dword [0x101b3c38], 0xf85
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1018d363
mov dword [0x101b3c38], 0x2175
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1018d38f
jmp 0x1018d363
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x1018d363
mov eax, 1
mov dword [0x101b3c3c], 0xeaf
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
Function at 0x1018db12
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 [0x101b3c38], 0x1f4f
mov dword [0x101b3c44], 0
mov byte [0x101b3c48], 0
mov dword [0x101b3c40], 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 eax, dword [0x101b3c40]
add eax, 1
mov dword [0x101b3c40], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1018db57
xor eax, eax
mov ecx, dword [0x101b3c38]
add ecx, 0x1879
mov dword [0x101b3c3c], ecx
mov dword [0x101b3c40], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101b3c4c], 0
mov edi, dword [0x101b3c44]
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 [0x101b3c4c], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x101b3c44], edx
mov dword [0x101b3c3c], 0x9a3
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b3c48], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b3c48]
mov esi, dword [0x101b3c44]
mov byte [ebx + esi], cl
mov esi, dword [0x101b3c40]
add esi, 1
mov dword [0x101b3c40], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1018db9e
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018dedb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101b3c40], 0
mov dword [0x101b3c44], 0
mov dword [0x101b3c50], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1018e069
jmp 0x1018df4d
mov eax, dword [0x101b3c44]
mov ecx, dword [0x101b3c40]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101b3c38], 0x1117
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101b3c40], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b3c44], edx
mov dword [0x101b3c3c], 0x1d4a
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101b3c48], cl
mov dword [0x101b3c3c], 0xde
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x101b3c38]
add edx, 0xfffff139
mov dword [0x101b3c38], edx
mov cl, byte [0x101b3c48]
mov edx, dword [0x101b3c44]
mov byte [ebx + edx], cl
mov edx, dword [0x101b3c40]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b3c44]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x101b3c3c]
mov esi, edx
add esi, 0xffffed9e
mov dword [0x101b3c38], esi
and ecx, 0xff
mov dword [0x101b3c50], ecx
add edx, 0xffffd6c7
mov dword [0x101b3c3c], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101b3c38], 0x1c45
xor ch, cl
mov byte [0x101b3c54], ch
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x101b3c3c], 0x1677
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x1018df36
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018e071
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101b3c38]
add edx, 0x25b9
mov dword [0x101b3c38], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1018d57d
lea ecx, [0x1018d83d]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], 0x13c000
mov dword [0x101b3c3c], 0xae6
mov edx, dword [0x101b3c24]
mov dword [esp + 0x50], edx
mov edx, dword [0x101b3c28]
mov dword [esp + 0x48], edx
mov edx, dword [0x101b3c2c]
mov dword [esp + 0x64], edx
mov edx, dword [0x101b3c30]
mov dword [esp + 0x80], edx
mov edx, dword [0x101b3c34]
mov dword [esp + 0x74], edx
mov dword [0x101b3c38], 0x6f5
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1018e12d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1018e14b
mov dword [0x101b3c3c], 0x3ad
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1018e10a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [0x101b3c3c], 0x2594
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.1018d323
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1018e1ba
lea eax, [esp + 0x30]
mov ecx, dword [0x101b3c38]
add ecx, 0x20eb
mov dword [0x101b3c38], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1018cfa3
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x416b90
Capabilities:
Encode data using xor

Disassembly:
dec esi
lea ebx, [edx]
or byte [edi + 0x6f], cl
push ebp
add byte [eax], al
add byte [ecx + 0x822b8e9], dh
dec edi
add cl, ch
add byte [eax], al
sal byte [esi + ecx], cl
stosd dword es:[edi], eax
mov eax, 0x8ef3324
add byte [esi + 0xea14067], cl
or ah, byte [esi]
xor ecx, dword fs:[edi + 0x46]
xor ch, bh
inc dword [eax]
add byte [eax], al
push edi
add byte [eax], al
add byte [ebx - 0x31], cl
dec ebx
iretd
pop ebx
adc cl, byte [eax]
dec edi
push ebp
lds eax, [eax]
add dl, dl
and eax, 0x822b8e9
outsb dx, byte es:[esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
mov dl, 0x64
outsd dx, dword [esi]
and al, 0x6f
sub byte [edx + 0x68326492], ah
and al, 0xe
push 0x64ef3254
xor cl, byte [eax - 0x4e]
add byte [ebx - 0x778d9b78], dh
jae 0x416b9d
dec edi
xor byte [edx - 0x3d45f7f8], dh
add byte [esi - 0x99b05fd], cl
bnd jb 0x416b47
mov dl, 0x64
adc al, 0xd7
or byte [eax], dl
or byte [eax], cl
mov bl, 0x30
aad 0x18
or byte [eax], cl
or byte [edx + 0x8aa274f], dl
or dl, dh
shl dl, cl
push esi
push ds
push 0xa1c2ba08
mov edx, 0x7400a1c2
invalid
invalid
pop ss
sbb cl, byte [eax]
add byte [ecx + 0xc5124f], bh
add byte [esi + eax*2], ah
sub byte [eax + eax], ah
dec ecx
rcl byte [eax + edi - 0x65], cl
dec edi
add edi, edx
outsb dx, byte es:[esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
push 0x29
sub byte [ebx], bh
adc al, 0xd1
jb 0x416be3
stosd dword es:[edi], eax
and byte [ecx + 0x1264260e], ah
jmp 0xc9558235

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx