joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452420
Capabilities:
Get common file path

Disassembly:
cmp dword [0x57a0e4], 1
je fcn.004ed8e0
push dword [esp + 8]
lea eax, [ecx + 0x1044]
push eax
push dword [esp + 0xc]
call fcn.004b0360
ret 8

Function at 0x452f60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
lea eax, [esp + 8]
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 8]
push eax
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 8]
push eax
push 0
push 0x1012
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
movsx edi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
movsx esi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esp + 0x10], 1
cwde
jne 0x452ff3
test edi, 0x8000
jne 0x452ff3
test esi, 0x8000
jne 0x452ff3
test eax, 0x8000
jne 0x452ff3
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1c
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1c
ret
Function at 0x456c30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 1
push str.RestoreFolder
push 0x542a58
mov esi, ecx
call fcn.004c2f20
push 0x800
push 0x54266c
test eax, eax
je 0x456cc8
lea eax, [esp + 0xc]
push eax
push str.LastFolder
push 0x542a58
call fcn.004c3190
cmp word [esp + 4], 0
je 0x456d6b
lea eax, [esp + 4]
push eax
call fcn.004837b0
test al, al
je 0x456d6b
push 0x800
lea eax, [esp + 8]
push eax
lea eax, [esi + 0x1044]
push eax
call fcn.004b0360
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x2004
ret
lea eax, [esp + 0x100c]
push eax
push str.StartFolder
push 0x542988
call fcn.004c3190
xor eax, eax
mov word [esp + 4], ax
lea eax, [esp + 4]
push 0x800
push eax
lea eax, [esp + 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x456d6b
cmp eax, 0x800
jae 0x456d6b
cmp word [esp + 4], 0
je 0x456d6b
mov ecx, 0x542b18
lea eax, [esp + 4]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x456d46
test dx, dx
je 0x456d42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x456d46
add eax, 4
add ecx, 4
test dx, dx
jne 0x456d20
xor eax, eax
jmp 0x456d4b
sbb eax, eax
or eax, 1
test eax, eax
je 0x456d6b
push 0x800
lea eax, [esp + 8]
add esi, 0x1044
push eax
push esi
call fcn.004b0360
push esi
call fcn.0040d350
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2004
ret
Function at 0x458bf0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x458d09
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x458c03
sub edi, ecx
sar edi, 1
je 0x458d09
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x458c29
pop edi
pop esi
ret 4
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x458c6f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x458c6f
lea ecx, [edi + 1]
push ecx
push eax
push esi
call fcn.004b4020
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x458cba
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x458cb9
lea ecx, [edi + 1]
push ecx
push ebp
push esi
call fcn.004b4020
push ebp
push ebp
call dword [sym.imp.USER32.dll_CharToOemA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebp
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
pop ebx
test edi, edi
je 0x458d03
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x458d03
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x458ce3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x4593a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
call fcn.004881b0
cmp eax, 0x600
jb 0x4593cd
mov ecx, dword [ebx]
movzx eax, byte [esp + 0xc]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov ecx, esi
call dword [0x541740]
call esi
pop esi
pop ebx
ret 4
mov ecx, dword [ebx + 8]
mov al, byte [esp + 0xc]
mov byte [ecx + 0x68], al
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x459449
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051de7f
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 8
push 0x102
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0051de88
add esp, 4
pop edi
pop esi
pop ebx
ret 4
Function at 0x45b6c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x268
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push esi
mov esi, dword [esp + 0x278]
lea eax, [esp + 0x16c]
push edi
push 0x80
push 0x54266c
push eax
push 0x551968
push dword [0x56fb48]
call fcn.004c3190
cmp word [esp + 0x170], 0
lea eax, [esp + 0x170]
push 0x100
push eax
setne bl
call fcn.004ad810
mov edi, dword [esp + 0x278]
lea eax, [esp + 0xc]
push edi
test bl, bl
je 0x45b764
push 0x551970
push 0x32
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esp + 0xc]
push 0x80
push 0x54266c
push esi
push eax
push dword [0x56fb48]
call fcn.004c3190
cmp word [esi], 0
je 0x45b7aa
jmp 0x45b7eb
push str.PE_d
push 0x32
push eax
call fcn.00402c90
push 0x100
lea eax, [esp + 0x84]
push 0
push eax
call fcn.005201d0
add esp, 0x1c
lea eax, [esp + 0x70]
push 0x100
push 0
push eax
lea eax, [esp + 0x18]
push eax
push dword [0x56fb48]
call fcn.004c2fc0
mov edx, eax
test edx, edx
jne 0x45b7b1
xor al, al
jmp 0x45b8a5
xor ecx, ecx
test edx, edx
jle 0x45b7c3
lea eax, [ecx + 0x49]
xor byte [esp + ecx + 0x70], al
inc ecx
cmp ecx, edx
jl 0x45b7b7
push 0x80
push esi
lea eax, [esp + 0x78]
push eax
call fcn.004b3e20
xor eax, eax
mov word [esi + 0xfe], ax
lea eax, [esp + 0x70]
push 0x100
push eax
call fcn.004ad810
push edi
push 0x551984
lea eax, [esp + 0x14]
push 0x32
push eax
call fcn.00402c90
add esp, 0x10
lea ebx, [esi + 0x100]
lea eax, [esp + 0xc]
push 0xc8
push 0x54266c
push ebx
push eax
push dword [0x56fb48]
call fcn.004c3190
push edi
push 0x55198c
lea eax, [esp + 0x14]
push 0x32
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esi + 0x290]
push 0x800
push 0x54266c
push eax
lea eax, [esp + 0x18]
push eax
push dword [0x56fb48]
call fcn.004c3190
push edi
push 0x551994
lea eax, [esp + 0x14]
push 0x32
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esp + 0xc]
push 0
push eax
push dword [0x56fb48]
call fcn.004c2f20
test eax, eax
setne al
cmp word [ebx], 0
mov byte [esi + 0x1420], al
lea eax, [esi + 0x1290]
jne 0x45b897
mov ebx, esi
push 0xc8
push ebx
push eax
call fcn.004b0360
mov al, 1
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x268
ret 8
Function at 0x466290
Capabilities:
Check if file exists

Disassembly:
mov byte [ecx + 0x3340], 0
jmp fcn.00481d40
Function at 0x46ed20
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x5c1e44], 2
jl 0x46ed45
movaps xmm0, xmmword [0x551c10]
movaps xmmword [0x5b01d0], xmm0
movaps xmm0, xmmword [0x551c00]
movaps xmmword [0x5b01e0], xmm0
push esi
mov esi, dword [esp + 8]
push 0xf0
push 0
push esi
call fcn.005201d0
mov dword [esi + 0x100], 0
add esp, 0xc
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov eax, dword [esi + 0xf4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi + 0xf4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x46efb0
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x200
push 0
lea eax, [edi + 0x948]
push eax
call fcn.005201d0
add esp, 0xc
mov dword [edi + 0xb48], 0
lea eax, [edi + 0x840]
push 1
push 0
push eax
call fcn.0046ed20
mov dword [esp + 8], 0
lea esi, [edi + 0xf4]
cmp dword [0x5c1e44], 2
jl 0x46f01a
movaps xmm0, xmmword [0x551c10]
movaps xmmword [0x5b01d0], xmm0
movaps xmm0, xmmword [0x551c00]
movaps xmmword [0x5b01e0], xmm0
push 0xf0
lea eax, [esi - 0xf4]
push 0
push eax
call fcn.005201d0
mov dword [esi + 0xc], 0
add esp, 0xc
mov byte [esi + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
mov dword [eax], 0x6a09e667
mov eax, dword [esi]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi]
xor dword [eax], 0x2080020
mov eax, dword [esi]
xor dword [eax + 8], ecx
inc ecx
mov eax, dword [esi]
add esi, 0x108
mov dword [esp + 8], ecx
xor dword [eax + 0xc], 0x20000000
cmp ecx, 8
jb 0x46eff5
mov byte [edi + 0x944], 1
mov byte [edi + 0x83c], 1
pop edi
pop esi
pop ecx
ret 4
Function at 0x46f2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c640
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x572844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x14]
call fcn.00497c90
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov eax, dword [ebp + 8]
push 0x40000
push eax
push 0x46f960
mov dword [edi], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 1
mov dword [edi + 4], 0
call fcn.00498000
lea ecx, [edi + 0x14]
call fcn.00497e00
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x473be0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov word [esi + 0xd53a], cx
mov byte [esi + 0xd531], cl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, eax
mov byte [esp + 0x13], 1
push 0
push 0
push ebp
call fcn.004afad0
mov edi, eax
test edi, edi
je 0x473d19
sub edi, ebp
sar edi, 1
add edi, 2
lea ecx, [edi + edi]
push ecx
call fcn.00525bb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x473d19
push edi
push ebx
push ebp
call fcn.004afad0
mov ebp, eax
test ebp, ebp
je 0x473d19
cmp byte [esp + 0x13], 0
jne 0x473d06
cmp byte [esp + 0x18], 0
je 0x473cfe
movzx eax, word [ebx]
cmp eax, 0x2d
je 0x473c69
cmp eax, 0x2f
jne 0x473ccc
cmp byte [esi + 0xd531], 0
jne 0x473ccc
cmp word [ebx + 2], 0x2d
lea edi, [ebx + 2]
jne 0x473c8a
cmp word [edi + 2], 0
jne 0x473c8a
mov byte [esi + 0xd531], 1
push 0x551cf8
push edi
call fcn.004b4410
test eax, eax
jne 0x473ca0
mov byte [esi + 0x2014], 1
push 2
push 0x551d04
push edi
call fcn.004b4460
test eax, eax
jne 0x473d06
push edi
mov ecx, esi
call fcn.00473e90
push ebx
call fcn.00525b95
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x473c03
cmp word [esi + 0xd53a], 0
lea eax, [esi + 0xd53a]
jne 0x473d06
push 0x810
push ebx
push eax
call fcn.005267b2
add esp, 0xc
push ebx
call fcn.00525b95
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x473c03
push ebx
mov ecx, esi
call fcn.004738c0
push ebx
call fcn.00525b95
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x473c03
cmp byte [esp + 0x18], 0
jne 0x473d96
cmp dword [esi + 0xf574], 0
jne 0x473d42
cmp byte [esi + 0xd530], 0
jne 0x473d42
push 0x5428ac
lea ecx, [esi + 0xf55c]
call fcn.004b0450
movzx eax, word [esi + 0xd53a]
push eax
call fcn.004b4390
movzx eax, ax
cmp eax, 0x58
je 0x473d65
cmp eax, 0x45
je 0x473d65
cmp eax, 0x50
je 0x473d65
xor cl, cl
jmp 0x473d67
mov cl, 1
cmp byte [esi + 0x7419], 0
je 0x473d7b
test cl, cl
je 0x473d7b
mov byte [esi + 0x7419], 0
cmp eax, 0x4c
je 0x473d85
cmp eax, 0x56
jne 0x473d96
cmp word [esi + 0xd53c], 0x42
jne 0x473d96
mov byte [esi + 0xd538], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4761b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4761e3
test bl, 7
je 0x4761e3
movzx edx, byte [ebx]
inc ebx
movzx ecx, al
xor edx, ecx
shr eax, 8
mov dword [esp + 0x10], ebx
xor eax, dword [edx*4 + 0x5b0800]
sub esi, 1
jne 0x4761c2
cmp esi, 8
jb 0x476279
push edi
mov edi, esi
shr edi, 3
xor eax, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5b0c00]
xor edx, dword [ecx*4 + 0x5b1000]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5b1c00]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5b2000]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5b0800]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x5b1800]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x5b1400]
xor edx, dword [eax*4 + 0x5b2400]
mov eax, edx
sub edi, 1
jne 0x4761f2
pop edi
test esi, esi
je 0x47629a
lea ecx, [ecx]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5b0800]
sub esi, 1
jne 0x476280
pop esi
pop ebx
ret 0xc
Function at 0x4762a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4762eb
test cl, 7
je 0x4762eb
movzx ecx, byte [ecx]
dec ebp
movzx eax, bl
xor ecx, eax
mov dword [esp + 0x1c], ebp
shrd ebx, edx, 8
shr edx, 8
xor ebx, dword [ecx*8 + 0x5b2800]
xor edx, dword [ecx*8 + 0x5b2804]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x4762b7
mov eax, ebp
shr eax, 3
lea eax, [ecx + eax*8]
mov dword [esp + 8], eax
cmp ecx, eax
jae 0x4763db
push esi
mov ebp, eax
push edi
xor ebx, dword [ecx]
mov ecx, dword [ecx + 4]
xor ecx, edx
mov eax, ecx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edi, dword [edx*8 + 0x5b3000]
mov edx, dword [edx*8 + 0x5b3004]
xor edx, dword [eax*8 + 0x5b3804]
xor edi, dword [eax*8 + 0x5b3800]
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x5b4004]
xor edi, dword [eax*8 + 0x5b4000]
mov eax, esi
shrd ecx, eax, 0x18
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x5b4804]
xor edi, dword [eax*8 + 0x5b4800]
mov eax, esi
shrd ecx, eax, 0x10
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x5b5004]
xor edi, dword [eax*8 + 0x5b5000]
mov eax, esi
shrd ecx, eax, 8
shr esi, 0x18
movzx eax, cl
mov ecx, dword [esp + 0x20]
add ecx, 8
mov dword [esp + 0x20], ecx
xor edx, dword [eax*8 + 0x5b5804]
xor edi, dword [eax*8 + 0x5b5800]
xor edi, dword [esi*8 + 0x5b2800]
xor edx, dword [esi*8 + 0x5b2804]
movzx eax, bl
mov ebx, edi
mov dword [esp + 0x10], edi
xor ebx, dword [eax*8 + 0x5b6000]
xor edx, dword [eax*8 + 0x5b6004]
cmp ecx, ebp
jb 0x476303
mov ebp, dword [esp + 0x24]
pop edi
pop esi
and ebp, 7
jbe 0x47640b
movzx ecx, byte [ecx]
movzx eax, bl
xor ecx, eax
shrd ebx, edx, 8
shr edx, 8
xor ebx, dword [ecx*8 + 0x5b2800]
xor edx, dword [ecx*8 + 0x5b2804]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
sub ebp, 1
jne 0x4763e0
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0x10
Function at 0x476b20
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x164
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
mov ebx, dword [esp + 0x16c]
push esi
mov esi, dword [esp + 0x174]
push edi
cmp dword [ebx], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jne 0x476c1b
mov eax, dword [ebx + 4]
push ebp
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x140]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push esi
call fcn.00477f80
lea eax, [esp + 0x131]
xor ebp, ebp
mov esi, 2
mov dword [esp + 0x10], ebp
sub esi, eax
lea ecx, [esp + 0x131]
mov eax, 3
sub eax, ecx
lea ebx, [ebp + 1]
mov dword [esp + 0x14], eax
jmp 0x476bb0
lea edx, [esp + 0x131]
add edx, ebp
movzx edi, byte [edx + 2]
lea ecx, [edx + eax]
movzx eax, byte [edx + 1]
and ecx, 3
shl ecx, 3
shl edi, cl
lea ecx, [edx + esi]
and ecx, 3
shl ecx, 3
shl eax, cl
mov ecx, ebp
xor edi, eax
and ecx, 3
movzx eax, byte [edx - 1]
add ebp, 4
shl ecx, 3
shl eax, cl
mov ecx, ebx
xor edi, eax
and ecx, 3
movzx eax, byte [edx]
add ebx, 4
shl ecx, 3
shl eax, cl
xor edi, eax
mov eax, dword [esp + 0x14]
xor edi, dword [esp + 0x10]
mov dword [esp + 0x10], edi
cmp ebx, 0x21
jb 0x476bb0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
pop ebp
mov dword [ebx + 4], edi
cmp dword [ebx], 3
jne 0x476dad
lea eax, [esp + 0xec]
xor edx, edx
sub esi, eax
nop
lea ecx, [esp + 0xec]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, 0x20
jb 0x476c30
lea eax, [esp + 0x1c]
mov dword [esp + 0x10c], 0x36363636
push eax
mov dword [esp + 0x114], 0x36363636
mov dword [esp + 0x118], 0x36363636
mov dword [esp + 0x11c], 0x36363636
mov dword [esp + 0x120], 0x36363636
mov dword [esp + 0x124], 0x36363636
mov dword [esp + 0x128], 0x36363636
mov dword [esp + 0x12c], 0x36363636
call fcn.004af340
push 0x40
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004af390
push 0x20
lea edi, [ebx + 4]
push edi
lea eax, [esp + 0x24]
push eax
call fcn.004af390
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004af230
xor eax, eax
lea edx, [esp + 0xec]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor cl, 0x5c
mov byte [edx], cl
cmp eax, 0x20
jb 0x476ce0
lea eax, [esp + 0x84]
mov dword [esp + 0x10c], 0x5c5c5c5c
push eax
mov dword [esp + 0x114], 0x5c5c5c5c
mov dword [esp + 0x118], 0x5c5c5c5c
mov dword [esp + 0x11c], 0x5c5c5c5c
mov dword [esp + 0x120], 0x5c5c5c5c
mov dword [esp + 0x124], 0x5c5c5c5c
mov dword [esp + 0x128], 0x5c5c5c5c
mov dword [esp + 0x12c], 0x5c5c5c5c
call fcn.004af340
push 0x40
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004af390
push 0x20
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004af390
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004af230
mov ecx, 8
lea esi, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x164
ret 8
Function at 0x476dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
mov eax, dword [edi]
xor eax, dword [ecx + 0x10a4]
mov ebp, dword [edi + 8]
xor ebp, dword [ecx + 0x10ac]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
xor eax, dword [ecx + 0x10a8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
xor eax, dword [ecx + 0x10b0]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, 0x1f
mov dword [esp + 0x18], eax
and eax, 3
mov edx, edi
rol edx, 0xb
add edx, ebp
mov esi, dword [ecx + eax*4 + 0x10a4]
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ebx, byte [eax + ecx + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xfa4]
shl eax, 8
or ebx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + ecx + 0xfa4]
or ebx, eax
movzx eax, dl
mov edx, ebp
shl ebx, 8
ror edx, 0xf
xor edx, edi
movzx eax, byte [eax + ecx + 0xfa4]
add edx, esi
or ebx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ebx, dword [esp + 0x14]
movzx esi, byte [eax + ecx + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xfa4]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + ecx + 0xfa4]
or esi, eax
movzx eax, dl
shl esi, 8
mov edx, ebp
mov dword [esp + 0x14], edx
mov ebp, ebx
movzx eax, byte [eax + ecx + 0xfa4]
or esi, eax
mov eax, dword [esp + 0x18]
xor esi, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], edi
mov edi, esi
mov dword [esp + 0x18], eax
jns 0x476e41
mov ebp, dword [ecx + 0x10a4]
mov edi, dword [esp + 0x24]
xor ebp, ebx
mov dword [edi], ebp
mov eax, dword [ecx + 0x10a8]
xor eax, esi
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x10ac]
xor eax, edx
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x10b0]
xor eax, dword [esp + 0x10]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x28]
push eax
call fcn.00477ef0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x2c
ret 4