joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ef73
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x49b138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov byte [edi + 0x2c], al
mov dword [edi], ebx
mov dword [edi + 0x28], 0
mov byte [edi + 0x24], 1
call fcn.0040c520
test al, al
jne 0x40baae
push str.Init_failed
push 0x4a0d68
call fcn.00402c50
push eax
call fcn.00403580
add esp, 0xc
mov byte [edi + 0x24], 0
test ebx, ebx
je 0x40bb8e
mov dword [ebx], 1
jmp 0x40bb8e
mov ecx, edi
call fcn.0040c580
test al, al
je 0x40bb68
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40baee
nop
push dword [ecx + esi*4]
mov ecx, edi
call fcn.0040c160
test al, al
je 0x40bb25
mov eax, dword [ebp + 0xc]
inc esi
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40bad0
mov ecx, edi
call fcn.0040c240
test al, al
jne 0x40bb8e
push str.CreateSnapshot_failed
push 0x4a0d68
call fcn.00402c50
push eax
call fcn.00403580
add esp, 0xc
mov byte [edi + 0x24], 0
test ebx, ebx
je 0x40bb8e
mov dword [ebx], 4
jmp 0x40bb8e
push str.Addsnapshot_failed
push 0x4a0d68
call fcn.00402c50
push eax
call fcn.00403580
add esp, 0xc
mov byte [edi + 0x24], 0
test ebx, ebx
je 0x40bb8e
push str.Addsnapshot_failed_set_error
push 0x4a0d68
call fcn.00402c50
push eax
call fcn.00403580
add esp, 0xc
mov dword [ebx], 3
mov dword [ebx + 0xc], esi
jmp 0x40bb8e
push str.InitSnapShot_failed
push 0x4a0d68
call fcn.00402c50
push eax
call fcn.00403580
add esp, 0xc
mov byte [edi + 0x24], 0
test ebx, ebx
je 0x40bb8e
mov dword [ebx], 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x40bbc1
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40bbb7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bbd7
push ecx
push edx
call fcn.0042ffce
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.0043eeb1
int3
Function at 0x40d0a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x68]
push 0
push 0x2710
push 0x2024
push 0x202e
push 0xff
push 4
push 0x40040003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d108
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb
push 1
lea eax, [ebp - 0x70]
mov word [ebp - 0x6c], 0x500
push eax
mov dword [ebp - 0x78], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40d1cf
mov eax, dword [ebp - 0x78]
movaps xmm0, xmmword [0x484030]
push 0
push 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 4
push 6
push esi
mov dword [ebp - 0x9c], 0xc0000000
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x40d1cf
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x9c]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x40d1c6
push eax
push dword [ebp - 0x74]
push eax
push eax
push 4
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00430365
mov esp, ebp
pop ebp
ret
Function at 0x40d1e0
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
test edi, edi
je 0x40d2ac
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
push eax
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
xor eax, eax
cmp esi, 0xffffffff
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
je 0x40d2ac
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x2024
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebp - 8], ecx
jne 0x40d2a3
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
test eax, eax
je 0x40d2ac
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
je 0x40d2ac
push dword [ebp - 4]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
je 0x40d2ac
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], edi
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
je 0x40d448
push 0x202e
push str.Data_to_be_written:
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bc40
push eax
call fcn.00403580
mov eax, dword [0x4a0d68]
push 0x30
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x4a0d7c]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x4a0d7c], eax
lea eax, [ebp - 0x16]
push eax
call fcn.0040d080
mov ecx, dword [0x4a0d68]
add esp, 0xc
xor ebx, ebx
mov ax, word [eax]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], ebx
push edi
mov word [ecx + 0x4a0da8], ax
movups xmm0, xmmword [esi + ebx]
push 0
lea eax, [ebp - 0x38]
push 8
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.004122bb
mov ecx, dword [0x4a0d68]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, 0x4a0d68
push ecx
call eax
add esp, 0x18
mov ecx, 0x4a0d68
push ebx
call fcn.004091c0
xor ebx, ebx
push 0
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.004122bb
push 0x20
push 0x4a0d68
mov esi, eax
call fcn.0040cd50
push dword [esi + 0xc]
mov edi, eax
push dword [esi + 8]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
push ecx
mov ecx, dword [esi]
call ecx
movzx eax, byte [ebp + ebx - 0x14]
add esp, 0x20
mov ecx, edi
push eax
call fcn.0040bc40
inc ebx
cmp ebx, 0x10
jl 0x40d390
push 0x484010
push 0x4a0d68
call fcn.00402c50
add esp, 8
xor esi, esi
nop dword [eax]
mov al, byte [ebp + esi - 0x14]
movzx ecx, al
cmp al, 0x20
mov eax, 0x2e
cmovb ecx, eax
mov byte [ebp - 0x20], cl
push dword [ebp - 0x20]
push 0x4a0d68
call fcn.0040cd50
inc esi
add esp, 8
cmp esi, 0x10
jl 0x40d3f0
push 0x484014
push 0x4a0d68
call fcn.00402c50
mov ebx, dword [ebp - 0x18]
add esp, 8
mov esi, dword [ebp - 0x1c]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
cmp ebx, 0x202e
jb 0x40d351
mov ebx, dword [ebp - 0x24]
pop edi
mov eax, dword [0x4a0d68]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x4a0d7c]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx + 0x4a0d7c], eax
lea eax, [ebp - 0x28]
push eax
push 0x202e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0x10], 0
je 0x40d4a4
push dword [ebp - 0x28]
push str.data_written
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.00404670
push eax
call fcn.00403580
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00430365
mov esp, ebp
pop ebp
ret
Function at 0x40d770
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40d7da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x484014
push eax
push str.OpenSCManager_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40d81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x484014
push eax
push str.OpenService_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
jmp 0x40d884
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40d84f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x484014
push eax
push str.ControlService_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00430365
mov esp, ebp
pop ebp
ret
Function at 0x40d8a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40d8ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x484014
push eax
push str.OpenSCManager_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40d93e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x484014
push eax
push str.OpenService_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40d962
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._was_the_name_n
push dword [ebp + 8]
push 0x484014
push eax
push str.StartService_failed__error_code_
push 0x4a0d68
call fcn.00402c50
add esp, 8
mov ecx, eax
call fcn.0040bdf0
push eax
call fcn.00402c50
add esp, 8
push eax
call fcn.004075f0
add esp, 8
push eax
call fcn.00402c50
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e200
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
Function at 0x4117df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x411804
xor eax, eax
jmp 0x411860
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x411831
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x411831
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x4118e7
cmp dword [edi + 0x4c], 0
je 0x41185a
mov ecx, edi
call fcn.004110f0
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x411870
push dword [edi + 0x4c]
push ebx
call fcn.0040ff49
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x41185f
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00430365
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4832d0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x4118ba
sub eax, 1
je 0x4118ba
dec eax
sub eax, 1
jne 0x41185a
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x41184c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4118d7
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00456740
add esp, 0x10
cmp esi, eax
jne 0x41185a
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x41185a
mov ax, bx
jmp 0x41185f

Function at 0x430f76
Capabilities:
Parse pe header

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

Function at 0x469d34
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046992c

Function at 0x469d3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469ab6

Function at 0x471557
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470f15

Function at 0x4718e0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004717b4

Function at 0x47de90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47debd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47debd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x101a6e71
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x101b279c], 0x1db4
mov dword [ebp - 4], 0
mov dword [0x101b27a0], 0x2280
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101b279c], 0x11ce
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101b27a0], 0x392
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101a6efc
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
mov dword [0x101b279c], 0x1507
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x101a6ec5
mov eax, dword [ebp - 0x18]
mov dword [0x101b279c], 0x20f2
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x101a6f35
jmp 0x101a6ecd
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 - 0x18], edx
je 0x101a6ede
mov dword [0x101b27a0], 0xfffff477
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jl 0x101a6efc
jmp 0x101a6ede
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101a6ecd
mov dword [0x101b279c], 0xaf3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101a6ecd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101a6ecd
mov dword [0x101b279c], 0xd8b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x64
jne 0x101a6ecd
mov dword [0x101b279c], 0xfffffe28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101a6ecd
mov dword [0x101b279c], 0x3a2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x101a6ecd
mov eax, 1
mov dword [0x101b27a0], 0x231c
mov dword [ebp - 0x14], eax
jmp 0x101a6ec5
Function at 0x101a754b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, 0x12ce
xor edi, edi
mov dword [0x101b27a8], 0
mov byte [0x101b27ac], 0
mov dword [0x101b279c], 0x12ce
mov dword [0x101b27a4], 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
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffe69
mov edx, eax
mov bl, dl
mov dword [0x101b279c], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], bl
mov dword [0x101b27a0], 0x541
mov eax, dword [0x101b27a4]
add eax, 1
mov dword [0x101b27a4], eax
cmp eax, 0x100
mov dword [ebp - 0x24], eax
jl 0x101a75f1
xor eax, eax
mov dword [0x101b27a4], 0
mov ecx, dword [0x101b279c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x101a7607
mov eax, dword [0x101b279c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jmp 0x101a7598
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x100
mov dword [0x101b27b0], 0
add eax, 0x1868
mov dword [0x101b279c], eax
mov eax, dword [0x101b27a8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x34], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101b27b0], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x34]
idiv edi
mov dword [0x101b27a8], edx
mov dword [0x101b279c], 0x1f2c
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x101b27ac], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x101b279c]
add ecx, 0xffffdc55
mov dword [0x101b27a0], ecx
mov bl, byte [0x101b27ac]
mov ecx, dword [0x101b27a8]
mov byte [esi + ecx], bl
mov ecx, dword [0x101b279c]
add ecx, 0xffffe489
mov dword [0x101b279c], ecx
mov edx, dword [0x101b27a4]
add edx, 1
mov dword [0x101b27a4], edx
cmp edx, 0x100
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
jl 0x101a7607
mov eax, dword [0x101b27a0]
add eax, 0xffffe83d
mov dword [0x101b279c], eax
mov dword [0x101b27a0], 0x1225
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101a7868
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 esi, dword [0x101b27a0]
add esi, 0xfffffdc7
mov dword [0x101b279c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101aa322]
mov dl, byte [eax + 0x101aa2f3]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x101a7892
lea eax, [ebp - 0x24]
mov dword [0x101b27a0], 0x323
mov dword [0x101b279c], 0x263a
mov dword [ebp - 0x34], eax
call fcn.101a7a0e
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101a7ae3
xor ecx, ecx
mov edx, dword [0x101b279c]
mov esi, edx
add esi, 0xffffe2e4
mov dword [0x101b279c], esi
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
je 0x101a79d3
mov dword [0x101b27a0], 0xf52
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add ecx, 0xffffe048
mov dword [0x101b279c], ecx
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 ecx, dword [0x101b279c]
add ecx, 0x1edb
mov dword [0x101b279c], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.101a73ea
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x101b27a0], 0x152e
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0xc], ecx
mov dword [0x101b279c], 0xb3f
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x101a79d3
mov eax, dword [ebp - 0x44]
add eax, 0x1890
mov dword [0x101b279c], 0xfffffdba
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret