joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call 0x624310
mov eax, dword [0x74d0a0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x4016ef
mov eax, 1
mov dword [esi], ebp
jmp 0x4016f1
mov ebp, dword [esi]
test ecx, ecx
je 0x4017d4
push ebp
call 0x403da0
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x401720
push 0x6df2ec
push 0x52
push 0x6df2d4
call 0x403c20
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x401777
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call 0x4031f0
add esp, 0xc
test eax, eax
je 0x401876
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call 0x4033a0
add esp, 0xc
test eax, eax
je 0x401876
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call 0x4033b0
add esp, 0xc
test eax, eax
je 0x401876
jmp 0x4017b1
cmp edi, 0x80
jbe 0x401793
push 0x6df2ac
push 0x5f
push 0x6df2d4
call 0x403c20
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call 0x623880
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x4017dc
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.00624340
add esp, 0xc
jmp 0x4017dc
test eax, eax
je 0x401862
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x4017e0
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call 0x4031f0
add esp, 0xc
test eax, eax
je 0x401876
push ebp
call 0x403da0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call 0x4033a0
add esp, 0x10
test eax, eax
je 0x401876
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x401824
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call 0x4031f0
add esp, 0xc
test eax, eax
je 0x401876
push ebp
call 0x403da0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call 0x4033a0
add esp, 0x10
test eax, eax
je 0x401876
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call 0x403510
add esp, 8
test eax, eax
jne 0x40187a
xor eax, eax
jmp 0x40187f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call 0x62341e
add esp, 0x8c
ret
Function at 0x1003f2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
sbb eax, eax
neg eax
leave
ret

Function at 0x1004003
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
call fcn.01003f2d
test al, al
je 0x100401e
push 2
pop eax
jmp 0x100419b
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x818]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x1004176
cmp eax, edi
je 0x1004176
push esi
push esi
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x1004071
push 0x1001160
jmp 0x100417b
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x100408f
push 0x1001174
jmp 0x100417b
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1000
push esi
push esi
push 4
push eax
call ebx
mov edi, eax
cmp edi, esi
jne 0x10040b1
push 0x1001188
jmp 0x100417b
call fcn.01003fb6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
push esi
push esi
push 4
push dword [ebp - 0xc]
call ebx
mov ebx, eax
cmp ebx, esi
jne 0x100411e
push 0x100119c
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.0100508d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
call edi
mov ecx, esi
call fcn.01005031
call edi
cmp eax, 5
jne 0x1004197
push 0x10011b0
or eax, 0xffffffff
call fcn.0100508d
jmp 0x1004147
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
push 8
lea eax, [ebp - 0x14]
push esi
push eax
call dword [0x1006010]
push 4
add esi, 8
lea eax, [ebp - 4]
push esi
push eax
call dword [0x1006010]
add esp, 0x18
push ebx
call edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], 0x696d7678
jne 0x1004171
cmp dword [ebp - 0x10], 0x74636a6e
jne 0x1004171
xor eax, eax
inc eax
test byte [ebp - 4], al
jne 0x1004199
push 2
pop eax
jmp 0x1004199
push 0x100114c
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.0100508d
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.01005031
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004279
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
cmp word [eax], 0x22
jne 0x10042c8
add eax, 2
push 0x22
push eax
call dword [0x100601c]
pop ecx
pop ecx
test eax, eax
je 0x10042a7
cmp word [eax + 2], 0
je 0x10042a7
add eax, 4
jmp 0x10042e1
push 0x10010e8
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.0100508d
call edi
push eax
or eax, 0xffffffff
call fcn.0100508d
xor eax, eax
jmp 0x10042e1
push 0x20
push eax
call dword [0x100601c]
pop ecx
pop ecx
test eax, eax
jne 0x10042de
push 0x10010fc
jmp 0x10042ac
add eax, 2
pop edi
pop esi
ret

Function at 0x1004385
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp dword [eax + 0x7c], edx
je 0x10043fd
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, ecx
add edi, ecx
mov dword [ebp - 4], edx
cmp dword [esi + 0x14], edx
jbe 0x10043fa
jmp 0x10043bb
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, ecx
push 0x1001470
push eax
call dword [0x1006018]
pop ecx
pop ecx
test eax, eax
je 0x10043e2
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x10043b8
jmp 0x10043fa
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.01004358
sub eax, dword [0x100602c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x700e55c2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..text_1
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1cc72884
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402490
Capabilities:
Check if file exists

Disassembly:
mov byte [ecx + 0x32b0], 0
jmp fcn.00411680
Function at 0x407210
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x467594], 2
jl 0x407235
movaps xmm0, xmmword [0x445620]
movaps xmmword [0x452270], xmm0
movaps xmm0, xmmword [0x445610]
movaps xmmword [0x452280], xmm0
push esi
mov esi, dword [esp + 8]
push 0xf0
push 0
push esi
call fcn.00432370
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 0x4074a0
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.00432370
add esp, 0xc
mov dword [edi + 0xb48], 0
lea eax, [edi + 0x840]
push 1
push 0
push eax
call fcn.00407210
mov dword [esp + 8], 0
lea esi, [edi + 0xf4]
cmp dword [0x467594], 2
jl 0x40750a
movaps xmm0, xmmword [0x445620]
movaps xmmword [0x452270], xmm0
movaps xmm0, xmmword [0x445610]
movaps xmmword [0x452280], xmm0
push 0xf0
lea eax, [esi - 0xf4]
push 0
push eax
call fcn.00432370
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 0x4074e5
mov byte [edi + 0x944], 1
mov byte [edi + 0x83c], 1
pop edi
pop esi
pop ecx
ret 4
Function at 0x407e60
Capabilities:
Terminate process

Disassembly:
sub esp, 0xa4
mov eax, dword [0x451a14]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, ecx
cmp byte [esi + 0x84f0], 0
jne 0x407eff
cmp byte [esi + 0x6149], 0
jne 0x407eff
cmp byte [0x452290], 0
jne 0x407eff
push 0x5b
push 5
push 0x44564c
lea eax, [esp + 0x10]
mov byte [0x452290], 1
push 0x50
push eax
call fcn.00405860
add esp, 0x14
lea eax, [esp + 4]
push 0x50
push 0x44565c
push eax
call fcn.00422a40
push 0x50
push 0xbd2
call fcn.0041d800
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00422a40
cmp byte [esi + 0x614b], 0
lea eax, [esp + 4]
jne 0x407f15
push 0x7e4
push eax
push 0xbce
call fcn.0041d800
push eax
call fcn.0040ae10
add esp, 0xc
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.0042f943
add esp, 0xa4
ret
push eax
push 0x445660
call fcn.0040ae10
add esp, 8
push 0
call fcn.00436739
int3

Function at 0x4081b0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
push edi
mov word [ebp + 0x84f2], ax
mov byte [ebp + 0x84e9], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
mov byte [esp + 0x13], 1
push 0
push 0
push ebx
call fcn.00422590
mov esi, eax
test esi, esi
je 0x408245
sub esi, ebx
sar esi, 1
add esi, 2
lea eax, [esi + esi]
push eax
call fcn.0043394c
mov edi, eax
add esp, 4
test edi, edi
je 0x408245
push esi
push edi
push ebx
call fcn.00422590
mov ebx, eax
test ebx, ebx
je 0x408245
cmp byte [esp + 0x13], 0
jne 0x408235
cmp byte [esp + 0x18], 0
mov ecx, ebp
push edi
je 0x408230
call fcn.004083b0
push edi
call fcn.00433947
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x4081d3
call fcn.00407f30
push edi
call fcn.00433947
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x4081d3
cmp byte [esp + 0x18], 0
jne 0x408253
mov ecx, ebp
call fcn.00408260
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x40aa70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [0x451a14]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x814]
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x814]
push edi
mov edi, dword [esp + 0x820]
push 0x400
push ecx
push eax
call fcn.00422760
push 1
call fcn.004369a8
add esp, 4
cmp esi, eax
jne 0x40aac2
cmp byte [0x4532a4], 0
jne 0x40aae1
push 2
call fcn.004369a8
add esp, 4
cmp esi, eax
jne 0x40abc4
cmp byte [0x4532a5], 0
je 0x40abc4
push 1
call fcn.004369a8
xor ecx, ecx
add esp, 4
cmp esi, eax
sete cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push 0x1800
push 0x455aa8
call fcn.00405850
push dword [eax + 4]
push dword [eax]
call fcn.00435a00
mov eax, dword [0x4532a0]
add esp, 0x1c
cmp eax, 3
jne 0x40ab5f
mov ecx, 0x455aa8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab34
sub ecx, edx
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push 0x455aa8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ac33
push 0x1800
push 0x458aa8
push 0x455aa8
cmp eax, 4
jne 0x40ab7a
call fcn.00425020
jmp 0x40ab7f
call fcn.00424fa0
mov eax, dword [0x4532a0]
test eax, eax
je 0x40ab8d
cmp eax, 2
jne 0x40ab9d
push 0x458aa8
push 0x458aa8
call dword [sym.imp.USER32.dll_CharToOemA]
mov ecx, 0x458aa8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aba5
push 0
lea eax, [esp + 0xc]
sub ecx, edx
push eax
push ecx
push 0x458aa8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ac33
push edi
push 0
lea eax, [esp + 0x18]
push eax
push 0x1800
push 0x455aa8
call fcn.00405850
push dword [eax + 4]
push dword [eax]
call fcn.00435a00
push 2
call fcn.004369a8
xor ecx, ecx
add esp, 0x20
cmp esi, eax
setne cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x455aa8
lea esi, [edx + 2]
jmp 0x40ac10
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ac10
push 0
sub edx, esi
lea ecx, [esp + 0x10]
push ecx
sar edx, 1
push edx
push 0x455aa8
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov ecx, dword [esp + 0x810]
pop edi
pop esi
xor ecx, esp
call fcn.0042f943
add esp, 0x80c
ret 0xc
Function at 0x40ae60
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 0x40ae93
test bl, 7
je 0x40ae93
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 + 0x45a2a8]
sub esi, 1
jne 0x40ae72
cmp esi, 8
jb 0x40af29
push edi
mov edi, esi
shr edi, 3
xor eax, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov edx, ebx
shr edx, 0x18
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x45a2a8]
xor edx, dword [ecx*4 + 0x45a6a8]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x45aaa8]
mov ecx, eax
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x45b2a8]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x45b6a8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor edx, dword [ecx*4 + 0x45baa8]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x45aea8]
xor edx, dword [eax*4 + 0x45bea8]
mov eax, edx
sub edi, 1
jne 0x40aea2
pop edi
test esi, esi
je 0x40af4a
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 + 0x45a2a8]
sub esi, 1
jne 0x40af30
pop esi
pop ebx
ret 0xc
Function at 0x40b270
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x158
mov eax, dword [0x451a14]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x164]
cmp dword [edi], 2
jne 0x40b335
mov eax, dword [edi + 4]
push ebx
push ebp
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x134]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push esi
call fcn.0040c520
xor ebx, ebx
mov dword [edi + 4], 0
xor edx, edx
lea ebp, [ebx - 2]
movzx eax, byte [esp + ebx + 0x124]
mov ecx, ebx
and ecx, 3
shl ecx, 3
shl eax, cl
lea ecx, [ebp - 1]
xor edx, eax
and ecx, 3
movzx eax, byte [esp + ebx + 0x125]
shl ecx, 3
shl eax, cl
mov ecx, ebp
xor edx, eax
and ecx, 3
movzx eax, byte [esp + ebx + 0x126]
shl ecx, 3
shl eax, cl
lea ecx, [ebp + 1]
xor edx, eax
and ecx, 3
movzx eax, byte [esp + ebx + 0x127]
add ebp, 4
shl ecx, 3
add ebx, 4
shl eax, cl
xor edx, eax
cmp ebx, 0x20
jb 0x40b2d3
pop ebp
mov dword [edi + 4], edx
pop ebx
cmp dword [edi], 3
jne 0x40b4c0
lea eax, [esp + 0xdc]
xor edx, edx
sub esi, eax
lea esp, [esp]
lea ecx, [esp + 0xdc]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, 0x20
jb 0x40b350
lea eax, [esp + 0xc]
mov dword [esp + 0xfc], 0x36363636
push eax
mov dword [esp + 0x104], 0x36363636
mov dword [esp + 0x108], 0x36363636
mov dword [esp + 0x10c], 0x36363636
mov dword [esp + 0x110], 0x36363636
mov dword [esp + 0x114], 0x36363636
mov dword [esp + 0x118], 0x36363636
mov dword [esp + 0x11c], 0x36363636
call fcn.00421f30
push 0x40
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00421f80
push 0x20
add edi, 4
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00421f80
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00421e10
xor edx, edx
lea ecx, [esp + 0xdc]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0x5c
mov byte [ecx], al
cmp edx, 0x20
jb 0x40b400
lea eax, [esp + 0x74]
mov dword [esp + 0xfc], 0x5c5c5c5c
push eax
mov dword [esp + 0x104], 0x5c5c5c5c
mov dword [esp + 0x108], 0x5c5c5c5c
mov dword [esp + 0x10c], 0x5c5c5c5c
mov dword [esp + 0x110], 0x5c5c5c5c
mov dword [esp + 0x114], 0x5c5c5c5c
mov dword [esp + 0x118], 0x5c5c5c5c
mov dword [esp + 0x11c], 0x5c5c5c5c
call fcn.00421f30
push 0x40
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00421f80
push 0x20
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00421f80
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00421e10
mov ecx, 8
lea esi, [esp + 0x13c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.0042f943
add esp, 0x158
ret 8
Function at 0x40b4e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, ecx
test esi, esi
je 0x40b58d
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x1234
mov ebx, 1
add word [eax + 0x10b8], bp
lea edi, [edi + 1]
movzx edx, word [eax + 0x10b8]
mov ecx, edx
shr ecx, 1
movzx ecx, cl
movzx ecx, word [eax + ecx*4 + 0xba4]
xor word [eax + 0x10ba], cx
mov ecx, edx
shr ecx, 1
movzx ecx, cl
movzx ecx, word [eax + ecx*4 + 0xba6]
sub word [eax + 0x10bc], cx
movzx ecx, word [eax + 0x10bc]
xor ecx, edx
movzx edx, word [eax + 0x10be]
mov word [eax + 0x10b8], cx
mov cx, bx
ror dx, cl
xor dx, word [eax + 0x10ba]
ror dx, cl
movzx ecx, dx
xor word [eax + 0x10b8], cx
mov word [eax + 0x10be], cx
movzx ecx, word [eax + 0x10b8]
shr ecx, 8
xor byte [edi - 1], cl
sub esi, ebx
jne 0x40b500
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x40b5e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x451a14]
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 0x40b651
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.0040c460
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042f943
add esp, 0x2c
ret 4