joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4330
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
mov ebx, dword [esp + 0x2010]
push esi
push edi
push 0x54403c
push eax
mov esi, ecx
call fcn.004d77f0
mov edi, eax
test edi, edi
sete cl
mov byte [esi + 0x302c], cl
test cl, cl
je 0x4b437b
xor al, al
jmp 0x4b43c6
push edi
push 0x2000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0052891c
add esp, 0x10
test eax, eax
je 0x4b43bb
push ebx
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00525e32
push edi
push 0x2000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0052891c
add esp, 0x20
test eax, eax
jne 0x4b4394
push edi
call fcn.00525a4d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2004
ret 8

Function at 0x4b43e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2008
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x200c]
push ebp
push esi
push 0x551804
push eax
mov esi, ecx
call fcn.004d77f0
mov ebp, eax
test ebp, ebp
sete cl
mov byte [esi + 0x302c], cl
test cl, cl
je 0x4b4426
xor al, al
jmp 0x4b44cc
push ebx
push edi
push ebp
xor eax, eax
push 0x2000
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0052891c
mov ebx, eax
add esp, 0x10
cmp ebx, 0x20
jbe 0x4b44bf
lea ebx, [ebx]
lea edi, [ebx - 0x20]
xor esi, esi
test edi, edi
jle 0x4b448d
lea esp, [esp]
cmp byte [esp + esi + 0x14], 0x61
jne 0x4b4488
cmp byte [esp + esi + 0x15], 0x73
jne 0x4b4488
push 0x14
lea eax, [esp + 0x1a]
add eax, esi
push str.Invoker_
push eax
call fcn.00525580
add esp, 0xc
test eax, eax
je 0x4b44e5
inc esi
cmp esi, edi
jl 0x4b4460
mov eax, dword [esp + 0x10]
add eax, 0xffffffe0
add eax, ebx
push 0
push eax
push ebp
mov dword [esp + 0x1c], eax
call fcn.00528c86
push ebp
push 0x2000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0052891c
mov ebx, eax
add esp, 0x1c
cmp ebx, 0x20
ja 0x4b4450
push ebp
call fcn.00525a4d
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x200c]
pop esi
pop ebp
xor ecx, esp
call fcn.00507712
add esp, 0x2008
ret 4
mov eax, dword [esp + 0x10]
push 0
add eax, esi
push eax
push ebp
call fcn.00528c86
push ebp
push 0x15
push 1
push str.requireAdministrator_
call fcn.00525e32
cmp eax, 0x15
push ebp
sete bl
call fcn.00525a4d
add esp, 0x20
mov al, bl
jmp 0x4b44ca
Function at 0x4b4ad0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push edi
push 0x54403c
push eax
call fcn.00476380
mov edi, eax
mov dword [esp + 8], edi
test edi, edi
jne 0x4b4b1f
xor al, al
pop edi
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.00507712
add esp, 0x200c
ret 4
push ebp
xor ebp, ebp
push ebx
mov dword [esp + 0xc], ebp
push esi
jmp 0x4b4b30
push edi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0052891c
mov ebx, eax
add esp, 0x10
cmp ebx, 0x20
jle 0x4b4ba6
lea edi, [ebx - 0x20]
xor esi, esi
test edi, edi
jle 0x4b4b80
cmp byte [esp + esi + 0x18], 0x72
jne 0x4b4b7b
cmp byte [esp + esi + 0x19], 0x65
jne 0x4b4b7b
push 0x14
lea eax, [esp + esi + 0x1e]
push str.quireAdministrator_
push eax
call fcn.00525580
add esp, 0xc
test eax, eax
je 0x4b4bcc
inc esi
cmp esi, edi
jl 0x4b4b55
mov edi, dword [esp + 0x14]
add ebp, 0xffffffe0
push 0
add ebp, ebx
push ebp
push edi
call fcn.00528c86
mov esi, dword [esp + 0x1c]
add esp, 0xc
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x100
jb 0x4b4b30
push edi
call fcn.00525a4d
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2018]
pop esi
pop ebx
pop ebp
pop edi
xor ecx, esp
call fcn.00507712
add esp, 0x200c
ret 4
push dword [esp + 0x14]
call fcn.00525a4d
add esp, 4
mov al, 1
jmp 0x4b4bb1

Function at 0x4b4be0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x54403c
push eax
mov esi, ecx
call fcn.004d77f0
mov edi, eax
test edi, edi
sete cl
mov byte [esi + 0x302c], cl
test cl, cl
je 0x4b4c1f
mov al, 1
jmp 0x4b4c68
push edi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0052891c
push edi
mov esi, eax
call fcn.00525a4d
add esi, 0xfffffffc
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4b4c66
cmp byte [esp + eax + 8], 0x55
jne 0x4b4c61
cmp byte [esp + eax + 9], 0x50
jne 0x4b4c61
cmp byte [esp + eax + 0xa], 0x58
jne 0x4b4c61
cmp byte [esp + eax + 0xb], 0x30
je 0x4b4c1b
inc eax
cmp eax, esi
jl 0x4b4c45
xor al, al
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x404
ret 4
Function at 0x4b50a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2010
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x200c], eax
mov eax, dword [esp + 0x2014]
push ebx
push esi
push 0x54403c
mov esi, ecx
mov ecx, dword [esp + 0x2024]
push eax
mov dword [esp + 0x18], ecx
call fcn.004d77f0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
sete cl
mov byte [esi + 0x302c], cl
test cl, cl
je 0x4b50f5
xor eax, eax
jmp 0x4b523c
push ebp
push edi
push ebx
push 0x2000
lea eax, [esp + 0x24]
xor esi, esi
push 1
push eax
mov dword [esp + 0x20], esi
call fcn.0052891c
add esp, 0x10
mov ebp, eax
cmp ebp, 0x28
jbe 0x4b522f
lea ebx, [ebp - 0x28]
xor edi, edi
mov eax, 0xfeff
test ebx, ebx
je 0x4b51ca
lea esi, [esp + 0x20]
cmp byte [esp + edi + 0x1c], 0x2a
jne 0x4b5164
cmp byte [esp + edi + 0x1d], 0x2a
jne 0x4b5164
push 0xc
lea eax, [esp + 0x22]
add eax, edi
push 0x5508f0
push eax
call fcn.00525580
add esp, 0xc
test eax, eax
je 0x4b51fa
mov eax, 0xfeff
cmp word [esi - 4], 0x2a
jne 0x4b518b
cmp word [esi - 2], 0x2a
jne 0x4b518b
push 0xc
push str.messages
push esi
call fcn.0052595a
add esp, 0xc
test eax, eax
je 0x4b51fa
mov eax, 0xfeff
cmp word [esi - 4], ax
jne 0x4b51ba
cmp word [esi - 2], 0x2a
jne 0x4b51ba
cmp word [esi], 0x2a
jne 0x4b51ba
push 0xc
lea eax, [esi + 2]
push str.messages
push eax
call fcn.0052595a
add esp, 0xc
test eax, eax
je 0x4b51fa
mov eax, 0xfeff
inc edi
add esi, 2
cmp edi, ebx
jb 0x4b5133
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add ebp, 0xffffffd8
add esi, ebp
push 0
push esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.00528c86
push ebx
push 0x2000
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0052891c
add esp, 0x1c
jmp 0x4b5112
mov eax, dword [esp + 0x10]
add eax, edi
mov edi, dword [esp + 0x14]
push 0
push eax
push edi
call fcn.00528c86
push edi
push dword [esp + 0x203c]
push 1
push dword [esp + 0x30]
call fcn.0052891c
push edi
mov esi, eax
call fcn.00525a4d
add esp, 0x20
mov eax, esi
jmp 0x4b523a
push ebx
call fcn.00525a4d
add esp, 4
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x2014]
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2010
ret 0xc

Function at 0x4b7540
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x130
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x12c], eax
cmp dword [0x573b08], 0
push esi
mov esi, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x148]
jne 0x4b759e
push 0x64
lea eax, [esp + 0x70]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [esp + 0x6c]
mov word [0x5c4ed4], ax
xor eax, eax
mov word [0x5c4ed6], ax
mov dword [0x573b08], 0x5c4ed4
push 0x32
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x148]
push dword [esp + 0x148]
call fcn.0049da10
push edi
push esi
xor eax, eax
push 0x573af8
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [esp + 0x134]
xor eax, eax
mov word [esi + edi*2 - 2], ax
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x130
ret 0x10
Function at 0x4b7600
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xf8
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0xf4], eax
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x10c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x110]
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x5e7
mov dword [esp + 0x1c], 0x5e8
mov dword [esp + 0x20], 0x5e9
mov dword [esp + 0x24], 0x5ea
mov dword [esp + 0x14], eax
test edi, edi
jne 0x4b766c
cmp esi, 0x400
jb 0x4b7695
mov eax, 1
cmp eax, 5
jae 0x4b7695
mov ebx, esi
inc ebp
shrd esi, edi, 0xa
and ebx, 0x3ff
inc eax
shr edi, 0xa
test edi, edi
ja 0x4b7671
jb 0x4b7695
cmp esi, 0x400
jae 0x4b7671
push dword [esp + 0x118]
push ecx
push edi
push esi
call fcn.004b7540
test edi, edi
ja 0x4b774c
jb 0x4b76b7
cmp esi, 0x64
jae 0x4b774c
test ebx, ebx
je 0x4b774c
imul eax, ebx, 0x3e8
shr eax, 0xa
test edi, edi
ja 0x4b76d7
jb 0x4b76d3
cmp esi, 0xa
jae 0x4b76d7
mov bl, 1
jmp 0x4b76d9
xor bl, bl
movzx ecx, bl
neg ecx
sbb ecx, ecx
xor edx, edx
and ecx, 0xffffffa6
add ecx, 0x64
div ecx
mov edi, eax
test edi, edi
je 0x4b774c
test bl, bl
je 0x4b76fe
mov esi, 0x543fa8
cmp edi, 0xa
jb 0x4b7703
mov esi, 0x541b9c
push 0x64
lea eax, [esp + 0x40]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [esp + 0x3c]
push edi
push esi
push eax
push str._c_s_u
lea eax, [esp + 0x38]
push 0xa
push eax
call fcn.00402930
mov esi, dword [esp + 0x130]
lea eax, [esp + 0x40]
mov edi, dword [esp + 0x28]
add esp, 0x18
push esi
push eax
push edi
call fcn.0049dbe0
jmp 0x4b7757
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x118]
cmp dword [esp + 0x11c], 0
jne 0x4b7765
test ebp, ebp
je 0x4b7782
push esi
push 0x5441c0
push edi
call fcn.0049dbe0
push esi
push dword [esp + ebp*4 + 0x18]
call fcn.00497960
push eax
push edi
call fcn.0049dbe0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0xf8
ret 0x14

Function at 0x4b7840
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4b78a4
push ebx
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00507864
mov esi, eax
add esp, 4
test esi, esi
je 0x4b78a2
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push dword [esp + 0x20]
push esi
call fcn.004b79b0
push esi
call fcn.0050786d
add esp, 4
pop esi
pop ebx
pop edi
ret 0x14
Function at 0x4b97c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
cmp esi, 0x10d
jne 0x4b9816
push 1
push str.Settings
call fcn.0040e2b0
test eax, eax
je 0x4b980c
lea esi, [edi + 0x1098]
push esi
push 0x4b93d0
push dword [0x57cf9c]
push str.ORGTHEMES
push dword [0x5b76d8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
cmp esi, 0x10e
jne 0x4b9846
push 1
push 0x541b9c
push 0
push 0x4fe
call fcn.00497960
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
mov eax, dword [0x57cf9c]
push ebx
test eax, eax
jne 0x4b9854
xor ebx, ebx
jmp 0x4b987f
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x4b9863
xor ebx, ebx
jmp 0x4b987f
push 4
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
jne 0x4b9874
xor ebx, ebx
jmp 0x4b987f
push 6
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp esi, 0x10f
jne 0x4b9898
mov dword [edi + 0x8c], 0xffffffff
push 0x541b9c
jmp 0x4b98fa
lea eax, [esi - 0x41a]
cmp eax, 0x7f
ja 0x4b9940
push 0x30
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00520500
add esp, 0xc
mov dword [esp + 0xc], 0x30
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x20
push eax
push 0
push esi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4b9940
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x7c]
jae 0x4b9940
mov dword [edi + 0x8c], eax
imul eax, eax, 0x1304
add eax, dword [edi + 0x78]
push eax
call fcn.00486220
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.004afd20
mov eax, dword [edi + 0x1094]
cmp eax, 0xffffffff
je 0x4b991e
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push esi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, edi
mov dword [edi + 0x1094], esi
call fcn.004b8020
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x30
ret 4
Function at 0x4bb9d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x68], eax
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4bb9f6
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.004af130
test eax, eax
je 0x4bbbe2
push ebx
push ebp
push 0
push dword [0x5b76dc]
push 0xd
push dword [0x57cf9c]
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0x14
push 0x41e
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x10
mov ebp, ebx
call fcn.004d7ca0
test al, al
je 0x4bba70
push ebx
call fcn.004d7cc0
push ebp
mov ebx, eax
call fcn.004d7cc0
mov ebp, eax
push esi
movzx esi, bp
movzx ecx, bx
shl esi, 0x10
or esi, ecx
push esi
push 0
push 0x41f
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0x420
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xc]
pop esi
test eax, eax
je 0x4bbaad
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0x85
push 0x84
push 0x83
push str.FolderUp.png
push 1
call fcn.004b8da0
mov dword [edi + 0xc], eax
cmp byte [0x5b77cc], 0
je 0x4bbadc
push eax
call fcn.004d70f0
call fcn.004d8030
test al, al
jne 0x4bbb09
push dword [edi + 0xc]
mov ecx, 0x5ab4d8
call fcn.004b7fb0
push ebp
push ebx
push dword [edi + 0xc]
call fcn.004d83f0
push 0xf
push 0xffffffffffffffff
push eax
mov dword [edi + 0xc], eax
call fcn.004d82a0
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0x413
push dword [edi + 4]
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x574010
push 1
push 0x444
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 2
call fcn.004ba860
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0x38
mov dword [esp + 0x18], 0x173
pop ebp
pop ebx
test eax, eax
jne 0x4bbb6f
mov eax, 1
or eax, 4
mov dword [esp + 0x40], 2
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
push 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
jne 0x4bbbb4
mov dword [esp + 0x38], 0x2a
lea eax, [esp + 0x5c]
push eax
push dword [0x5a8f3c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x6c]
pop edi
xor ecx, esp
call fcn.00507712
add esp, 0x6c
ret
Function at 0x4c5ca0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5d74b0]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x5d74b8]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x5c5f20]
movzx eax, cl
add eax, dword [0x5d74b4]
mov dword [0x5d74b0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x5d74b4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5c5f20]
mov dword [0x5d74b8], edx
ret 4
Function at 0x4c5d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x304
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x300], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa8
mov dword [esp + 0x24], eax
lea eax, [esp + 0xec]
push 0
push eax
call fcn.00520500
add esp, 0xc
lea eax, [esp + 0xe8]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004c63f0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x17], 0
push eax
lea eax, [esp + 0x240]
mov ecx, 0x2a
push eax
push dword [ebp + 0x14]
lea esi, [esp + 0xf8]
lea edi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004c6170
mov ecx, dword [ebp + 0x20]
mov eax, 0xcccccccd
dec ecx
mul ecx
mov eax, edx
shr eax, 4
add eax, 1
mov dword [esp + 0x24], eax
je 0x4c5f47
mov edx, 1
mov dword [esp + 0x18], 0
lea ebx, [esp + 0x2e4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x4c5dd0
xor eax, eax
mov byte [esp + 0x2fb], dl
mov dword [esp + 0x2e4], eax
lea esi, [esp + 0x238]
mov dword [esp + 0x2e8], eax
lea edi, [esp + 0x190]
mov dword [esp + 0x2ec], eax
mov ecx, 0x2a
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x2f4], eax
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f8], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2f9], al
mov eax, edx
shr eax, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x2fa], al
mov eax, 4
test ecx, ecx
je 0x4c5f05
mov ebx, ecx
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x198]
push ecx
push eax
lea eax, [esp + 0x308]
push eax
call fcn.004c6170
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x198]
push eax
push 0x14
lea eax, [esp + 0x308]
push eax
call fcn.004c62a0
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [esp + eax + 0x2f8]
xor byte [esp + eax + 0x2e4], cl
movzx ecx, byte [esp + eax + 0x2f9]
xor byte [esp + eax + 0x2e5], cl
movzx ecx, byte [esp + eax + 0x2fa]
xor byte [esp + eax + 0x2e6], cl
movzx ecx, byte [esp + eax + 0x2fb]
xor byte [esp + eax + 0x2e7], cl
movzx ecx, byte [esp + eax + 0x2fc]
xor byte [esp + eax + 0x2e8], cl
add eax, 5
cmp eax, 0x14
jb 0x4c5e90
lea esi, [esp + 0xe8]
mov ecx, 0x2a
lea edi, [esp + 0x190]
rep movsd dword es:[edi], dword [esi]
sub ebx, 1
jne 0x4c5e47
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
xor edx, edx
mov esi, dword [esp + 0x20]
mov ecx, edi
cmp ecx, dword [ebp + 0x20]
jae 0x4c5f23
mov al, byte [ebx + ecx]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x4c5f11
mov edx, dword [esp + 0x14]
add edi, 0x14
inc edx
mov dword [esp + 0x18], edi
sub ebx, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
lea eax, [edx - 1]
cmp eax, dword [esp + 0x24]
jb 0x4c5dd0
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4c6170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
cmp eax, 0xffffffff
je 0x4c627a
cmp eax, 0x40
jbe 0x4c61f8
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.0049c7a0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
bswap eax
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
bswap eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xa0], 0x14
push ebp
push esi
test edi, edi
je 0x4c6217
cmp byte [edx], 0
je 0x4c6217
mov esi, edi
lea ebp, [ebx + 0x40]
mov ecx, 0x18
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x4c6255
mov ecx, dword [ebx + 0xa0]
mov eax, 0x40
sub eax, ecx
push eax
push 0
lea eax, [ecx + ebx]
push eax
call fcn.00520500
add esp, 0xc
xor eax, eax
xor byte [ebx + eax], 0x36
inc eax
cmp eax, 0x40
jb 0x4c6235
lea ebp, [ebx + 0x40]
push ebp
call fcn.0049c8c0
push 0x40
push ebx
push ebp
call fcn.0049c900
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4c626a
cmp byte [edx], 0
jne 0x4c626a
mov ecx, 0x18
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
mov ecx, dword [esp + 0x18]
pop esi
mov dword [ebx + 0xa0], 0xffffffff
pop ebp
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c628d
push eax
push ecx
lea eax, [ebx + 0x40]
push eax
call fcn.0049c900
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x24
ret 0x14
Function at 0x4c62a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xa0], 0xffffffff
mov dword [esp + 0x10], edi
je 0x4c62e1
push 0
push 0
push esi
push 0
push 0
call fcn.004c6170
lea eax, [esp + 0x18]
push eax
lea ebx, [esi + 0x40]
push ebx
call fcn.0049c7a0
mov eax, dword [esp + 0x18]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
bswap eax
mov dword [esp + 0x3c], eax
test ebp, ebp
je 0x4c633b
cmp byte [edi], 0
je 0x4c633b
mov ecx, 0x18
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
jmp 0x4c6359
xor eax, eax
lea ecx, [ecx]
xor byte [esi + eax], 0x6a
inc eax
cmp eax, 0x40
jb 0x4c6340
push ebx
call fcn.0049c8c0
push 0x40
push esi
push ebx
call fcn.0049c900
test ebp, ebp
je 0x4c6374
cmp byte [edi], 0
jne 0x4c6374
mov eax, dword [esp + 0x10]
mov ecx, 0x18
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.0049c900
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0049c7a0
mov eax, dword [esp + 0x18]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
pop edi
bswap eax
pop esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
pop ebp
pop ebx
test eax, eax
je 0x4c63dc
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xc]
call fcn.0051ff80
add esp, 0xc
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00507712
add esp, 0x34
ret 0x14
Function at 0x4c9940
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push 0
push 0
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [esp + 8]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x4c9a38
cmp byte [esp + 8], 0x4d
jne 0x4c9a38
cmp byte [esp + 9], 0x5a
jne 0x4c9a38
mov eax, dword [edi]
push 0
push 0
push dword [esp + 0x4c]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [esp + 8]
push 0x108
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
cmp eax, 0x108
jne 0x4c9a38
cmp byte [esp + 8], 0x50
jne 0x4c9a38
cmp byte [esp + 9], 0x45
jne 0x4c9a38
cmp byte [esp + 0xa], 0
jne 0x4c9a38
cmp byte [esp + 0xb], 0
jne 0x4c9a38
cmp byte [esp + 0x20], 0xb
jne 0x4c9a38
mov eax, dword [esp + 0x21]
cmp al, 1
jne 0x4c9a21
cmp dword [esp + 0x7c], 4
jbe 0x4c9a38
mov eax, dword [esp + 0xa0]
jmp 0x4c9a3a
cmp al, 2
jne 0x4c9a38
cmp dword [esp + 0x8c], 4
jbe 0x4c9a38
mov eax, dword [esp + 0xb0]
jmp 0x4c9a3a
xor eax, eax
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x10c
ret 4