joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fe0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x14], esi
cmp eax, 1
jne 0x402000
mov ebx, dword [ebp + 4]
mov dword [esp + 0x18], esi
jmp 0x402014
cmp eax, 2
jne 0x4021f5
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], 1
cmp ebx, esi
jne 0x402023
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
push 2
push 0xc
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x40204e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [ebp + 0x18], eax
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp eax, esi
jbe 0x4021b4
lea edx, [esp + 0x18]
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4021c0
mov eax, dword [esp + 0x18]
test byte [eax + 1], 0x10
jne 0x4021a1
mov ecx, dword [ebp + 0x28]
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x4021a1
mov eax, edi
test edi, edi
je 0x4021d8
cmp dword [esp + 0x1c], 0
mov edi, dword [edi]
mov esi, dword [eax + 8]
je 0x4020b2
cmp dword [esi + 0x18], 0
jmp 0x4020b6
cmp dword [esi + 0x14], 0
je 0x4020ce
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
push edx
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4020d7
test edi, edi
jne 0x402096
jmp 0x4021a1
mov eax, dword [esi + 0x10]
test eax, 0x200
je 0x402107
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x4021dd
mov eax, 1
sub dword [esp + 0x14], eax
sub dword [esp + 0x10], eax
jmp 0x4021a1
test eax, 0x100
je 0x402140
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00401420
mov esi, eax
test esi, esi
jne 0x402165
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp + 0x18], eax
pop ebp
mov eax, 0x1f
pop ebx
add esp, 0x1c
ret 4
test eax, 0x400
je 0x4021a1
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00401660
mov esi, eax
test esi, esi
je 0x402128
inc dword [esp + 0x14]
mov edi, dword [esp + 0x30]
cmp edi, 1
jne 0x402177
mov ecx, ebp
call fcn.00401d10
jmp 0x402183
cmp edi, 2
jne 0x402183
mov ecx, ebp
call fcn.00401d40
mov ebx, esi
cmp edi, 1
jne 0x402192
mov dword [ebp + 4], esi
mov dword [ebp + 0x30], edi
jmp 0x4021a1
cmp edi, 2
jne 0x4021a1
mov dword [ebp + 8], esi
mov dword [ebp + 0x34], 1
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x14]
jb 0x402065
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp + 0x18], eax
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0x1c
ret 4
call fcn.00414d29
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp + 0x18], eax
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x1c
ret 4
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x1c
ret 4
Function at 0x402dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402dec
test al, 0x10
je 0x402dec
mov esi, 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
ret

Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x435950
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x2c]
lea ecx, [edi + 0xe0]
push eax
mov dword [esp + 0x28], 0
call fcn.00403eb0
mov eax, dword [edi + 0xe4]
lea esi, [edi + 0xe4]
test eax, eax
je 0x4048ff
push eax
call fcn.00422a7d
add esp, 4
mov dword [esi], 0
mov ecx, dword [esp + 0x2c]
push 0x439628
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
call fcn.004229b3
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov ebp, ecx
test eax, eax
je 0x404938
push eax
call fcn.00422a7d
add esp, 4
mov edx, dword [esp + 0x2c]
push 0x439620
push edx
push esi
call fcn.004229b3
mov esi, dword [esi]
add esp, 0xc
test esi, esi
je 0x4049b2
test eax, eax
jne 0x4049b2
test ebp, ebp
jne 0x404973
push esi
push 1
lea eax, [esp + 0x1c]
push 2
push eax
mov dword [esp + 0x24], 0xfeff
call fcn.0042286b
add esp, 0x10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40499b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push str.ERROR:_Opening_log_file:__
push edx
call fcn.00403dc0
add esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.__failed_
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.00403ce0
add esp, 0xc
mov ecx, edi
call fcn.00403f90
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x22
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x4072b0
Capabilities:
Get domain controller name

Disassembly:
push 0xffffffffffffffff
push 0x4359d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
call fcn.00402530
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
cmp ecx, edi
je 0x407305
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x14], edi
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], edi
je 0x4073a2
lea ecx, [esp + 0x10]
push ecx
push 0x80000000
push edi
push edi
push eax
push edi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x40739e
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, ebx
call fcn.00404c20
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x407347
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x2b
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4073e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x435cdb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CSD.0
lea ebx, [esi + 0x1c]
call fcn.0041583d
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40742f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esp + 0x24]
push edi
mov dword [esi + 0x28], ecx
push 0x43a20c
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00403250
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40eed0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xd8]
push edi
lea edi, [esi + 0xd8]
test eax, eax
je 0x40eef5
push eax
call fcn.00422a7d
add esp, 4
mov dword [edi], 0
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40ef35
push 0x43baec
push eax
push edi
call fcn.004229b3
mov ecx, dword [edi]
add esp, 0xc
test ecx, ecx
je 0x40ef66
test eax, eax
jne 0x40ef66
push ecx
push 1
lea eax, [esp + 0x14]
push 2
push eax
mov dword [esp + 0x1c], 0xfeff
call fcn.0042286b
add esp, 0x10
mov eax, dword [esi + 0x50]
cmp eax, 1
jne 0x40ef70
mov eax, dword [esi + 0x4c]
push fcn.0040cd90
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00409490
jmp 0x40efbf
mov eax, 0x22
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 4
mov eax, dword [esi + 0x4c]
jne 0x40ef9e
push fcn.0040cd90
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00405b70
jmp 0x40efbf
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
push eax
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.0040cd90
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x40efd6
push eax
call fcn.00422a7d
add esp, 4
mov dword [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x414aa0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x43768b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push esi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
push 0x40f540
lea ecx, [esp + 0xc]
call fcn.004078a0
push 0
mov dword [esp + 0x12c], 0
mov dword [0x44a328], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00416608
test eax, eax
jne 0x414b47
push str.ERROR:_MFC_initialization_failed__n
call fcn.00422ee4
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x128], 0xffffffff
call fcn.00407b20
mov eax, 2
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x124
ret
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x130]
lea eax, [esp + 8]
push eax
push 0x40f540
push ecx
push edx
call fcn.0040f580
mov esi, eax
add esp, 0x10
lea ecx, [esp + 8]
test esi, esi
jne 0x414b7e
call fcn.0040f070
mov esi, eax
lea ecx, [esp + 8]
mov dword [esp + 0x128], 0xffffffff
call fcn.00407b20
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x124
ret

Function at 0x422480
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448fb0]
jne 0x42248a
repz ret
jmp fcn.00429fac
Function at 0x431f15
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.00426faf
and dword [ebp - 4], 0
cmp dword [0x44ce4c], 0
mov ebx, eax
jne 0x431fc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x432077
push eax
call fcn.00426f3d
mov dword [esp], 0x441934
push edi
mov dword [0x44ce4c], eax
call esi
push eax
call fcn.00426f3d
mov dword [esp], 0x441920
push edi
mov dword [0x44ce50], eax
call esi
push eax
call fcn.00426f3d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44ce54], eax
call esi
push eax
call fcn.00426f3d
pop ecx
mov dword [0x44ce5c], eax
test eax, eax
je 0x431fc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426f3d
pop ecx
mov dword [0x44ce58], eax
mov eax, dword [0x44ce58]
cmp eax, ebx
je 0x43201e
cmp dword [0x44ce5c], ebx
je 0x43201e
push eax
call fcn.00426fb8
push dword [0x44ce5c]
mov esi, eax
call fcn.00426fb8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43201e
test edi, edi
je 0x43201e
call esi
test eax, eax
je 0x432015
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432015
test byte [ebp - 0xc], 1
jne 0x43201e
or dword [ebp + 0x10], 0x200000
jmp 0x432057
mov eax, dword [0x44ce50]
cmp eax, ebx
je 0x432057
push eax
call fcn.00426fb8
pop ecx
test eax, eax
je 0x432057
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432057
mov eax, dword [0x44ce54]
cmp eax, ebx
je 0x432057
push eax
call fcn.00426fb8
pop ecx
test eax, eax
je 0x432057
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ce4c]
call fcn.00426fb8
pop ecx
test eax, eax
je 0x432077
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432079
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4190cc]
jne 0x408b8e
repz ret
jmp fcn.0040a6e6

Function at 0x413100
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4103e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.0041fea0
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00418c79
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004158da
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.0041fb60
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x410441
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x41047f
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x410469
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411e23
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, 0x455c90
xor edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, al
jbe 0x411e4d
mov ecx, esi
movzx edx, al
movzx eax, byte [ecx]
mov esi, eax
imul esi, edi
xor esi, eax
inc ecx
dec edx
mov edi, esi
jne 0x411e3d
mov eax, edi
pop edi
pop esi
ret

Function at 0x418621
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x418635
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4186c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x4186ea
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x4187e2
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x4187e2
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4187c1
pop ebx
leave
ret
Function at 0x4198d1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x4199eb
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41990f
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x4199e9
lea eax, [edi - 1]
cmp esi, eax
je 0x419940
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x419970
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x419952
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x4199a4
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x4199e0
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x4199b1
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x419980
inc esi
cmp esi, edi
jl 0x419928
pop esi
pop ebx
pop edi
leave
ret