joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7a522c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x7a5241
add esp, 0xfffffff0
call fcn.00409584
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, ebx
call fcn.00408f2c
movzx eax, byte [ebp - 2]
mov byte [ebx + 4], al
test al, al
jne 0x7a5284
lea eax, [ebp - 3]
push eax
mov eax, ebx
call fcn.007a5520
movzx ecx, al
mov edx, edi
mov eax, esi
call fcn.00796f5c
movzx eax, byte [ebp - 3]
mov word [ebx + 6], ax
jmp 0x7a529b
lea eax, [ebx + 6]
push eax
mov eax, ebx
call fcn.007a5520
movzx ecx, al
mov edx, edi
mov eax, esi
call fcn.00796f5c
lea eax, [ebx + 8]
push eax
mov edx, edi
mov eax, esi
mov ecx, 1
call fcn.00796f5c
movzx eax, byte [ebx + 8]
mov byte [ebp - 4], al
mov eax, ebx
call fcn.007a5554
test al, al
je 0x7a52d3
lea eax, [ebx + 0x14]
push eax
mov edx, edi
mov eax, esi
mov ecx, 2
call fcn.00796f5c
jmp 0x7a52d9
mov word [ebx + 0x14], 0
mov eax, ebx
call fcn.007a5548
test al, al
je 0x7a52f8
lea eax, [ebx + 0x1c]
push eax
mov edx, edi
mov eax, esi
mov ecx, 2
call fcn.00796f5c
jmp 0x7a52fe
mov word [ebx + 0x1c], 0
xor eax, eax
mov dword [ebp - 8], eax
movzx edx, word [ebx + 6]
lea eax, [ebx + 0x10]
call fcn.0040c0dc
movzx edx, word [ebx + 6]
lea eax, [ebx + 0xc]
call fcn.0040bf04
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebx + 6]
push eax
lea ecx, [ebx + 0x10]
mov edx, edi
mov eax, esi
call fcn.00797084
mov eax, ebx
call fcn.007a5528
and eax, 0x7f
inc eax
dec eax
jne 0x7a535c
lea eax, [ebx + 0xc]
mov edx, dword [0x862f7c]
mov edx, dword [edx]
call fcn.0040c054
jmp 0x7a536c
lea eax, [ebx + 0x10]
mov edx, dword [0x862f7c]
mov edx, dword [edx]
call fcn.0040b264
cmp word [ebx + 0x14], 0
jbe 0x7a539a
movzx eax, word [ebx + 0x14]
add eax, eax
add eax, eax
call fcn.00407138
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x18]
push eax
movzx eax, word [ebx + 0x14]
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, edi
mov eax, esi
call fcn.00796f5c
cmp word [ebx + 0x1c], 0
jbe 0x7a53be
movzx eax, word [ebx + 0x1c]
call fcn.00407138
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x20]
push eax
movzx ecx, word [ebx + 0x1c]
mov edx, edi
mov eax, esi
call fcn.00796f5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x7a53d5
call fcn.004095dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x7be5d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7be75b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x7be610
cmp eax, 0
jbe 0x7be624
jmp 0x7be612
jle 0x7be624
mov eax, dword [ebx + 0x14]
mov dword [esi], eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
jmp 0x7be73e
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebx + 0x10]
mov dl, 1
call fcn.00428520
test al, al
je 0x7be73e
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
call fcn.00428c68
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00427020
mov eax, dword [ebp - 0x10]
mov edx, 0x7be774
call fcn.0040c34c
setne al
test al, al
je 0x7be6cf
mov dl, 1
mov eax, dword [0x5406f4]
call fcn.00548ae0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7be6c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 8]
call fcn.005490f8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7be73e
mov eax, dword [ebp - 8]
call fcn.00408f5c
pop eax
jmp eax
push 0
mov ecx, dword [ebx + 0x10]
mov dl, 1
mov eax, dword [0x44e718]
call fcn.004781ec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x7be737
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 6
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov edx, dword [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, esi
mov ecx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7be73e
mov eax, dword [ebp - 0xc]
call fcn.00408f5c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7be762
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040aee4
pop eax
jmp eax
Function at 0x7c10d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x7c12e0
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebx + 0x25]
mov esi, dword [ebx + 0xc]
mov byte [esi + 0x9e], al
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x28]
call fcn.0040c040
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x190]
call fcn.007c07d8
mov edx, dword [ebx + 0xd4]
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x188], edx
mov edx, dword [ebx + 0x2c]
call fcn.007c5ae8
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0xc]
call fcn.007c5af8
movzx edx, byte [ebx + 0x38]
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x19c], dl
mov edx, dword [ebx + 0x34]
call fcn.007c5b08
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0xc]
call fcn.007c5b44
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0xc]
call fcn.007c5b54
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0xc]
call fcn.007c5b64
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0xc]
call fcn.007c5ba4
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0xc]
call fcn.007c5bb4
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx + 0xc]
call fcn.007c5d54
mov edx, dword [ebx + 0x8c]
mov eax, dword [ebx + 0xc]
call fcn.007c5bc4
mov edx, dword [ebx + 0x90]
mov eax, dword [ebx + 0xc]
call fcn.007c5d64
movzx edx, byte [ebx + 0x39]
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x4c], dl
mov edx, dword [ebx + 0x3c]
mov dword [eax + 0x50], edx
mov edx, dword [ebx + 0x40]
mov dword [eax + 0x54], edx
mov edx, dword [ebx + 0x44]
mov dword [eax + 0x5c], edx
mov edx, dword [ebx + 0x48]
mov dword [eax + 0x58], edx
mov edx, dword [ebx + 0x4c]
mov dword [eax + 0x60], edx
mov edx, dword [ebx + 0x50]
call fcn.00818574
movzx edx, word [ebx + 0x54]
mov eax, dword [ebx + 0xc]
mov word [eax + 0x1a6], dx
movzx edx, byte [ebx + 0x56]
mov byte [eax + 0x1a8], dl
movzx edx, word [ebx + 0x58]
mov word [eax + 0x1aa], dx
mov edx, dword [ebx + 0x5c]
call fcn.0081871c
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0xc]
call fcn.008186b8
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0xc]
call fcn.008186c8
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0xc]
call fcn.00818780
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0xc]
call fcn.00818770
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0xc]
call fcn.008187bc
movzx edx, byte [ebx + 0xa4]
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x74], dl
movzx edx, byte [ebx + 0xa5]
mov byte [eax + 0x91], dl
mov edx, dword [ebx + 0xa8]
mov dword [eax + 0x94], edx
mov edx, dword [ebx + 0xac]
mov dword [eax + 0x98], edx
movzx edx, byte [ebx + 0xb0]
mov byte [eax + 0x90], dl
movzx edx, byte [ebx + 0xb1]
mov byte [eax + 0x9c], dl
movzx edx, byte [ebx + 0xb2]
mov byte [eax + 0x9d], dl
mov edx, dword [ebx + 0xb4]
mov dword [eax + 0xa0], edx
mov edx, dword [ebx + 0xc4]
call fcn.007c5b18
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x98]
mov dword [eax + 0x180], edx
mov edx, dword [ebx + 0x9c]
mov dword [eax + 0x184], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c12e7
lea eax, [ebp - 4]
call fcn.0040ae84
pop eax
jmp eax
Function at 0x7d5ffc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x7d602a
mov eax, ebx
call fcn.007d6ab8
cmp dword [ebx + 0x40], 0
je 0x7d6023
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x7d609b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x7d608d
cmp dword [ebx + 8], 0
je 0x7d604c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x7d605e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x7d608d
cmp dword [ebx + 8], 0
je 0x7d603f
cmp eax, 3
je 0x7d6071
dec eax
jne 0x7d603f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x7d603f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x7d603f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x7d60b9
cmp dword [ebx + 0x14], 0xcc
je 0x7d60b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.007d60c4
pop ebx
ret

Function at 0x7ed510
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x7ed561
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x7ed548
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x7ed538
jmp 0x7ed561
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x7ed549
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x802eb4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x86c084], 0
jne 0x802ecb
call fcn.00802e70
mov eax, edi
dec eax
test eax, eax
jl 0x802ef3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x86bc84]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x802ed5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x805f4c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x805f7d
dec al
je 0x805fb8
dec al
je 0x805ffc
dec al
je 0x80606e
jmp 0x806109
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x806109
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x805f8d
jmp 0x806109
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x806109
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x805fc8
jmp 0x806109
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x806109
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x80602f
xor edx, edx
mov dword [esp + 4], edx
jmp 0x806044
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x80605c
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x80600c
jmp 0x806109
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x806109
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x8060d5
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00802efc
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x80608a
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x838ad8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x838c33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x838b18
call fcn.00431078
xor eax, eax
push ebp
push 0x838c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov dword [ebp - 0x238], 0x22c
test bl, bl
je 0x838b50
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Process32FirstW
cmp eax, 1
sbb eax, eax
inc eax
xor ebx, ebx
jmp 0x838b66
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Process32NextW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x838b83
call sub.kernel32.dll_GetLastError
cmp eax, 0x12
jne 0x838b7e
call fcn.0040a5f4
jmp 0x838c1b
call fcn.00431078
lea eax, [ebp - 4]
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.0040c004
mov eax, dword [ebp - 0x230]
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x838be5
mov dword [ebp - 0x660], 0x428
lea eax, [ebp - 0x660]
push eax
push esi
call sub.kernel32.dll_Module32FirstW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x838bdf
lea eax, [ebp - 4]
lea edx, [ebp - 0x440]
mov ecx, 0x104
call fcn.0040c004
push esi
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x40]
jmp 0x838b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x838c3a
lea eax, [ebp - 4]
call fcn.0040ae84
pop eax
jmp eax

Function at 0x838e2c
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x838f54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040ae84
mov dl, 1
mov eax, dword [0x528174]
call fcn.005292c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x838eb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.005293a8
xor ecx, ecx
mov edx, 0x838f6c
mov eax, dword [ebp - 0x10]
call fcn.00529504
test al, al
je 0x838ea0
lea ecx, [ebp - 4]
mov edx, 0x838fe4
mov eax, dword [ebp - 0x10]
call fcn.00529ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x838ebf
mov eax, dword [ebp - 0x10]
call fcn.00408f5c
pop eax
jmp eax
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040aecb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x4755b8
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x4755b8]
xor cx, word [edx*2 + 0x4755b8]
inc edx
mov word [edi + edx*2 + 0x4755b6], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401814
Capabilities:
Encode data using xor

Disassembly:
push 0x20
call fcn.0040c123
pop ecx
xor ecx, ecx
mov dx, word [ecx*2 + 0x475354]
xor dx, word [ecx*2 + 0x475374]
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, 7
jl 0x40181e
xor edx, edx
mov word [eax + ecx*2], dx
ret

Function at 0x4020fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040aecb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40213d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426c88
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426c88]
xor cx, word [edx*2 + 0x426c88]
inc edx
mov word [edi + edx*2 + 0x426c86], cx
cmp edx, dword [ebp + 0xc]
jl 0x40211d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x402147
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x76
call fcn.0040aecb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402189
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427458
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427458]
xor cx, word [edx*2 + 0x427458]
inc edx
mov word [edi + edx*2 + 0x427456], cx
cmp edx, dword [ebp + 0xc]
jl 0x402169
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4025ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push 0x4265e8
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0x821], 1
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x85c], 0x8040
call fcn.004020fb
push 8
mov dword [ebp - 0x854], eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jb 0x40264a
mov edx, dword [esi]
mov dword [ebp - 0x850], edx
jmp 0x402650
mov dword [ebp - 0x850], esi
cmp dword [edi + 0x14], ecx
jb 0x40265f
mov edx, dword [edi]
mov dword [ebp - 0x84c], edx
jmp 0x402665
mov dword [ebp - 0x84c], edi
cmp dword [ebx + 0x14], ecx
jb 0x402674
mov edx, dword [ebx]
mov dword [ebp - 0x848], edx
jmp 0x40267a
mov dword [ebp - 0x848], ebx
and dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0x1d
cmp dword [edi + 0x14], ecx
jb 0x402692
mov edi, dword [edi]
cmp eax, ecx
jb 0x402698
mov esi, dword [esi]
push edi
push esi
push 0xe
push 0x4265f0
call fcn.004020fb
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012da
mov ebx, esi
call fcn.00402193
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401451
call fcn.00401814
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
jne 0x4026fe
call fcn.00401814
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x10
call fcn.0040c123
pop ecx
xor ecx, ecx
mov dl, byte [ecx + 0x475394]
xor dl, byte [ecx + 0x475364]
mov byte [ecx + eax], dl
inc ecx
cmp ecx, 0xf
jl 0x402708
push eax
push esi
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x860]
push ecx
call eax
test eax, eax
je 0x4027e7
cmp dword [ebp - 0x828], ebx
je 0x4027a3
push dword [ebp - 0x828]
push 0x15
push 0x42660c
call fcn.004020fb
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402835
push 0x4228a8
push 0x19
push 0x426638
call fcn.004020fb
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
jmp 0x402835
mov byte [ebp - 0x821], bl
cmp byte [0x4768ed], bl
je 0x402835
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x42666c
call fcn.004020fb
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020fb
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x821]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bad1
leave
ret 4
Function at 0x404577
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x4045a2
xor eax, eax
jmp 0x40470a
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4045cf
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4045cf
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x40470a
cmp dword [edi + 0x54], 0
jne 0x4045dc
mov eax, ebx
jmp 0x40470a
mov eax, edi
call fcn.00405c12
cmp dword [edi + 0x44], 0
jne 0x404602
push dword [edi + 0x54]
push esi
call fcn.0040c32a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x40470a
jmp 0x4045d5
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004053c5
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4046af
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4046fa
cmp eax, 1
jg 0x4046b7
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40465e
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404684
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404671
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040da33
add esp, 0x10
cmp esi, eax
jne 0x4046fa
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4046e9
cmp esi, ebx
ja 0x404610
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4046fb
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405409
jmp 0x404610
mov edx, dword [ebp - 0x20]
jmp 0x404622
cmp eax, 3
jne 0x4046fa
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c32a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4046d9
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004054f9
jmp 0x4045c7
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004054f9
mov ax, word [ebp + 8]
jmp 0x40470a
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004054f9
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bad1
leave
ret 4