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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4278ed
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x28]
call fcn.00405f70
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x74]
cmp dword [eax + 4], 0
je 0x420ccd
mov ecx, dword [ebp - 0x74]
add ecx, 8
call fcn.0040dd20
mov dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x420b82
jmp 0x420b89
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0
jbe 0x420cc2
mov dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 0x7f
mov edx, dword [ebp - 0x74]
add edx, 0x10
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x420c50
mov edx, dword [ebp - 0x7c]
shr edx, 0
mov eax, dword [ebp - 0x74]
mov byte [eax + edx + 0x10], 0
mov ecx, dword [ebp - 0x7c]
push ecx
push str.PIPECLIENT:INFO:Read:numBytesRead:_d
lea edx, [ebp - 0x40]
push edx
call fcn.00418d50
add esp, 0xc
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
call fcn.00404660
push eax
call fcn.004194a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406240
mov ecx, dword [ebp - 0x74]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405ef0
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x28]
call fcn.004062a0
lea ecx, [ebp - 0x58]
call fcn.00402d10
jmp 0x420cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x420c6c
push str.PIPECLIENT:INFO:Read:ERROR_MORE_DATA
call fcn.004194a0
add esp, 4
jmp 0x420cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PIPECLIENT:ERR:Read:GLE:_d
lea eax, [ebp - 0x70]
push eax
call fcn.00418d50
add esp, 0xc
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
call fcn.00404660
push eax
call fcn.004194a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00406240
mov ecx, dword [ebp - 0x74]
call fcn.00420890
mov ecx, dword [ebp - 0x74]
add ecx, 8
call fcn.00414660
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402710
mov eax, dword [ebp - 0x80]
or eax, 1
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402d10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424a63
mov esp, ebp
pop ebp
ret 4
Function at 0x420d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42792d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0040dd20
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
je 0x420dfa
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x29], 0
jne 0x420d69
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x420daa
jmp 0x420dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PIPECLIENT:ERR:Write:GLE:_d
lea edx, [ebp - 0x28]
push edx
call fcn.00418d50
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
call fcn.00404660
push eax
call fcn.004194a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406240
mov ecx, dword [ebp - 0x34]
call fcn.00420890
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00414660
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424a63
mov esp, ebp
pop ebp
ret 4
Function at 0x424050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x439a9c], 0
jne 0x42407f
call sub.SDL2.dll_SDL_CreateMutex
mov dword [0x439a9c], eax
push str.GetTicks:_CreateMutex___n
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
mov eax, dword [0x439a9c]
push eax
call sub.SDL2.dll_SDL_LockMutex
add esp, 4
cmp eax, 0xffffffff
jne 0x4240b3
push 0x42da40
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call sub.SDL2.dll_SDL_GetTicks
mov dword [0x439aa0], eax
mov ecx, dword [0x439a9c]
push ecx
call sub.SDL2.dll_SDL_UnlockMutex
add esp, 4
cmp eax, 0xffffffff
jne 0x4240f2
push str.Couldnt_un_lock_mutex_n
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x439aa0]
pop ebp
ret

Function at 0x424790
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x439a84], 0
jne 0x4247bd
push 0x42da70
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x439a84]
push eax
call sub.SDL2.dll_SDL_LockMutex
add esp, 4
cmp eax, 0xffffffff
jne 0x4247f1
push str.Couldnt_lock_mutex_n
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
ret

Function at 0x424800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x439a84], 0
jne 0x42482d
push str.mutex_must_be_created_before_use_n
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x439a84]
push eax
call sub.SDL2.dll_SDL_UnlockMutex
add esp, 4
cmp eax, 0xffffffff
jne 0x424861
push str.Couldnt_unlock_mutex_n
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00405420
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
ret

Function at 0x42571a
Capabilities:
Parse pe header

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

Disassembly:
push 0xffffffffffffffff
push 0x439148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov edx, dword [esp + 0x30]
mov eax, edx
push esi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402207
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00401df0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, 0x4512e0
mov dword [esp + 0x34], 0
call fcn.00401f90
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp eax, esi
jb 0x402251
mov edx, dword [esp + 0xc]
push edx
call fcn.0042aac3
add esp, 4
mov eax, dword [esp + 4]
cmp eax, dword [0x4512e4]
jne 0x40226f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp dword [eax + 0x40], esi
jb 0x402287
mov eax, dword [eax + 0x2c]
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x24]
add eax, 0x2c
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x406e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4395d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x69
mov dword [esp + 0x14], ebp
call fcn.00409da0
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], 0x43c780
call fcn.0042c17c
mov dword [esi], 0x442094
lea esi, [ebp + 0x7a8]
mov ecx, esi
mov byte [esp + 0x5c], 1
call fcn.0042c17c
mov dword [esi], 0x442324
lea ecx, [ebp + 0x7f8]
mov byte [esp + 0x5c], 2
call fcn.004093d0
lea ecx, [ebp + 0x8e4]
mov byte [esp + 0x5c], 3
call fcn.004093d0
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d0], eax
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d8], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x258
mov dword [esp + 0x14], 0x1ae
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x969696
mov dword [esp + 0x28], 0x302f2e
jne 0x406f22
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
mov dword [ebp + 0x9e0], ebx
mov dword [ebp + 0x9dc], ebx
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x407340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439624
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x67
mov dword [esp + 0x14], ebp
call fcn.00409da0
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], 0x43c950
call fcn.0042c17c
mov dword [esi], 0x442094
lea ecx, [ebp + 0x7a8]
mov byte [esp + 0x5c], 1
call fcn.004093d0
lea ecx, [ebp + 0x894]
mov byte [esp + 0x5c], 2
call fcn.004093d0
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x980], eax
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x984], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x14a
mov dword [esp + 0x14], 0x96
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x969696
mov dword [esp + 0x28], 0x302f2e
mov dword [ebp + 0x98c], ebx
mov eax, ebp
jne 0x407452
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x407d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4396a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x6a
mov dword [esp + 0x14], ebp
call fcn.00409da0
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], 0x43cb08
call fcn.0042c17c
mov dword [esi], 0x442094
lea esi, [ebp + 0x7a8]
mov ecx, esi
mov byte [esp + 0x5c], 1
call fcn.0042c17c
mov dword [esi], 0x4421dc
lea ecx, [ebp + 0x7f8]
mov byte [esp + 0x5c], 2
call fcn.004093d0
lea ecx, [ebp + 0x8e4]
mov byte [esp + 0x5c], 3
call fcn.004093d0
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d0], eax
call fcn.0042aac8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d4], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x17c
mov dword [esp + 0x14], 0xe6
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x969696
mov dword [esp + 0x28], 0x302f2e
mov byte [ebp + 0x9dc], bl
mov eax, ebp
jne 0x407e2a
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4

Function at 0x408180
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439718
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x38]
test edi, edi
mov esi, ecx
jne 0x4081a8
xor eax, eax
jmp 0x4081ab
mov eax, dword [edi + 4]
push eax
call dword [0x43b08c]
push eax
mov ecx, esi
call fcn.0043239b
test eax, eax
je 0x408215
mov dword [esi + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4428c0
mov dword [esp + 0x30], 0
call fcn.0043653f
movzx ecx, word [esp + 0x3c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [0x43b564]
push eax
lea ecx, [esp + 0xc]
call fcn.00432698
test eax, eax
jne 0x40822a
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], 0x4426a0
call fcn.004326ef
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00432721
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x18
push edx
call dword [0x43b090]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], ecx
push 1
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00431eb3
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], 0x4426a0
call fcn.004326ef
mov ecx, dword [esp + 0x28]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x408420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00431fb7
test edi, edi
mov dword [esp + 0x3c], 0
jne 0x408454
xor eax, eax
jmp 0x408457
mov eax, dword [edi + 4]
push eax
call dword [0x43b08c]
push eax
lea ecx, [esp + 0x10]
call fcn.0043239b
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4428c0
mov byte [esp + 0x3c], 1
call fcn.0043653f
movzx ecx, word [esp + 0x4c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [0x43b564]
push eax
lea ecx, [esp + 8]
call fcn.00432698
test eax, eax
jne 0x4084da
lea ecx, [esp + 4]
mov byte [esp + 0x3c], al
mov dword [esp + 4], 0x4426a0
call fcn.004326ef
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00432419
xor al, al
pop edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x2c
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push esi
push edx
push eax
call fcn.00432721
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
mov esi, eax
call dword [0x43b090]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00408320
test esi, esi
mov bl, al
je 0x408546
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.00432721
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
mov dword [esp + 0xc], 0x4426a0
call fcn.004326ef
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.00432419
mov ecx, dword [esp + 0x3c]
pop esi
mov al, bl
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x2c

Function at 0x40f510
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x40f54c
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x40f54b
mov al, byte [ecx + edx]
mov byte [esp + 8], al
mov al, byte [esp + 8]
ror al, 4
xor al, 0x5c
add al, 0xe6
xor al, 0x39
add al, 0x7b
sub al, 0xba
mov byte [esp + 8], al
mov al, byte [esp + 8]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x40f523
pop esi
ret
Function at 0x4115f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [ebp + 0x38]
lea ecx, [eax + edx]
cmp ecx, 0x10
mov dword [esi], ecx
mov esi, dword [esp + 0x14]
push edi
jae 0x411640
lea edi, [eax + ebp + 0x28]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x20]
pop edi
add eax, edx
mov dword [ebp + 0x38], eax
pop esi
pop ebp
mov dword [ecx], 0
xor eax, eax
pop ebx
ret
cmp esi, ebx
jne 0x41164e
pop edi
pop esi
pop ebp
mov eax, 0x1001
pop ebx
ret
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x14], ecx
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
lea edi, [edx + eax - 0x10]
mov eax, dword [ebp + 0x18]
xor eax, ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x2c]
xor ecx, eax
mov dword [ebx + 4], ecx
mov edx, dword [ebp + 0x30]
xor edx, dword [ebp + 0x20]
mov dword [ebx + 8], edx
mov eax, dword [ebp + 0x34]
xor eax, dword [ebp + 0x24]
mov dword [ebx + 0xc], eax
lea eax, [ebp + 0x3c]
push ebx
push eax
mov dword [esp + 0x24], edi
call fcn.00410380
add esp, 8
add ebx, 0x10
cmp edi, 0x10
jb 0x411725
mov eax, edi
shr eax, 4
mov dword [esp + 0x1c], eax
jmp 0x4116d0
mov ecx, dword [ebx - 0x10]
mov esi, dword [esp + 0x18]
xor ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx - 0xc]
mov edx, dword [esi + 4]
xor edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebx - 8]
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx - 4]
lea eax, [ebp + 0x3c]
xor ecx, edx
push ebx
push eax
mov dword [ebx + 0xc], ecx
call fcn.00410380
mov eax, dword [esp + 0x24]
add esi, 0x10
add esp, 8
add ebx, 0x10
sub edi, 0x10
dec eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jne 0x4116d0
mov dword [esp + 0x1c], edi
mov edx, dword [ebx - 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [ebx - 0xc]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebx - 8]
mov dword [ebp + 0x20], ecx
mov edx, dword [ebx - 4]
mov ecx, edi
mov eax, ecx
mov dword [ebp + 0x24], edx
shr ecx, 2
lea edi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x38], eax
mov edx, dword [ecx]
pop edi
pop esi
sub edx, eax
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
ret
Function at 0x411770
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
lea ecx, [eax + edx]
cmp ecx, 0x10
mov dword [esi], ecx
mov esi, dword [esp + 0x10]
push edi
jae 0x4117be
lea edi, [eax + ebx + 0x28]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x20]
pop edi
add eax, edx
mov dword [ebx + 0x38], eax
pop esi
mov dword [ecx], 0
xor eax, eax
pop ebp
pop ecx
ret
cmp esi, ebp
jne 0x4117cc
pop edi
pop esi
mov eax, 0x1001
pop ebp
pop ecx
ret
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0xc], ecx
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebx + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, edx
mov edx, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x14], esi
lea edi, [edx + eax - 0x10]
lea esi, [ebx + 0x18]
lea eax, [ebx + 0x3c]
push esi
push eax
mov dword [esp + 0x20], edi
call fcn.00410380
mov ecx, dword [esi]
mov eax, dword [ebx + 0x28]
xor eax, ecx
mov dword [ebp], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x2c]
xor ecx, edx
mov dword [ebp + 4], ecx
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
xor edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x34]
xor eax, dword [ebx + 0x24]
mov dword [ebp + 0xc], eax
add esp, 8
add ebp, 0x10
cmp edi, 0x10
jb 0x4118a1
mov eax, edi
shr eax, 4
mov dword [esp + 0x18], eax
jmp 0x411850
lea eax, [ebx + 0x3c]
push esi
push eax
call fcn.00410380
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
xor ecx, dword [esi]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
xor edx, dword [ebx + 0x1c]
mov dword [ebp + 4], edx
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 0x20]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebx + 0x24]
add eax, 0x10
xor edx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 0xc], edx
add esp, 8
add ebp, 0x10
sub edi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x411850
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x14]
mov ecx, edi
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x38]
and ecx, 0xf0000000
add ecx, eax
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
pop edi
sub edx, eax
pop esi
mov dword [ecx], edx
xor eax, eax
pop ebp
pop ecx
ret