joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509b4a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x148]
call fcn.004f9c16
mov edi, dword [ebp + 8]
test eax, eax
jle 0x509b9b
push dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.004f9c39
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx]
test al, al
jne 0x509c2d
inc dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.004f9c16
cmp dword [ebp - 4], eax
jl 0x509b6b
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push 0xfffffffffffffff0
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
cmp dword [edi], ecx
je 0x509bc8
cmp ebx, ecx
jne 0x509c83
test eax, 0x40000000
je 0x509c83
mov edx, dword [edi + 8]
mov edi, dword [edi + 4]
sub edi, 0x100
je 0x509c8c
sub edi, 4
je 0x509c31
dec edi
dec edi
jne 0x509c83
xor eax, eax
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
push edx
stosw word es:[edi], ax
call fcn.0054c037
pop ecx
mov ecx, dword [esi + 0x70]
push reloc.WS2_32.dll_sendto
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x50871a
call dword [eax + 0x1cc]
mov esi, eax
test esi, esi
je 0x509c83
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov al, 1
jmp 0x509c85
cmp dword [esi + 0x74], 0
je 0x509c83
xor eax, eax
push 8
pop ecx
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x10], dx
mov dword [ebp - 0x14], eax
call fcn.004fa7cf
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
cmp edx, 9
jne 0x509c83
cmp dword [esi + 0x74], 0
je 0x509ce5
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x17c]
test al, al
je 0x509ce5
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x188]
test al, al
je 0x509ce5
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
push 0x59cc7c
call dword [eax + 8]
push eax
call fcn.00548b1f
pop ecx
pop ecx
test eax, eax
je 0x509ce5
mov eax, dword [esi + 0x74]
test eax, eax
je 0x509cda
lea ecx, [eax - 8]
jmp 0x509cdc
xor ecx, ecx
call fcn.005253bc
test al, al
jne 0x509c83
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.005099a3
jmp 0x509c2d
Function at 0x525dfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x298], ebx
je 0x525e67
cmp dword [ebp + 8], 0x100
jne 0x525e56
cmp word [ebp + 0xc], 0xd
jne 0x525e56
cmp byte [esi + 0x29e], bl
je 0x525e3a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x525e56
cmp byte [esi + 0x29f], bl
jne 0x525e56
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
je 0x525e52
push ebx
push ebx
push ebx
lea eax, [esi + 8]
push str.return
push eax
call fcn.0050969e
xor eax, eax
jmp 0x525e6a
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x52ad49
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x52ad75
mov ecx, dword [esi + 0x10]
add ecx, 8
mov eax, dword [ecx]
push 0
call dword [eax + 0x18]
mov ecx, eax
call fcn.00507f26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x52adc7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00544280
mov eax, esp
test eax, eax
je 0x52adc7
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
leave
ret 0x10
Function at 0x52c8df
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
push edi
je 0x52c989
cmp dword [esi + 0x10], 0
je 0x52c989
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x52c989
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00544280
mov ebx, esp
test ebx, ebx
je 0x52c989
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
mov edi, 0xe0
push ebx
add ecx, edi
call fcn.0041cf20
test eax, eax
je 0x52c989
mov ecx, dword [esi + 0x10]
push ebx
add ecx, edi
call fcn.0041dca0
mov eax, dword [esi + 0x10]
xor edx, edx
cmp eax, edx
je 0x52c96c
add eax, 8
jmp 0x52c96e
xor eax, eax
mov ecx, dword [esi + 0x10]
push edx
push edx
push edx
push str.textchanged
add ecx, 8
push eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.0050969e
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
leave
ret 0x10

Function at 0x52e500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, esi
mov edx, eax
call fcn.0052d465
test al, al
je 0x52e552
cmp byte [ebp + 8], 0
je 0x52e552
cmp byte [ebp + 0xc], 0
mov byte [esi + 0x11], 1
je 0x52e534
push edx
call fcn.0052e233
jmp 0x52e538
mov byte [esi + 0x10], 1
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x52e56e
push 4
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x52e56e
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x52e56a
push 0
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x11], 0
pop esi
pop ebp
ret 8

Function at 0x52eb00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5c056c], 0xffffffff
jne 0x52eb69
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0053ef70
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x52eb62
cmp dword [ebp - 0x114], 6
jb 0x52eb62
mov dword [0x5c056c], 1
jmp 0x52eb69
and dword [0x5c056c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x5c056c], 1
sete al
xor ecx, ebp
call fcn.0053ea90
leave
ret
Function at 0x532902
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x532927
cmp eax, edi
jge 0x53291f
mov eax, esi
call fcn.005321bb
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x532954
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x532934
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x532973
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x532961
xor eax, eax
jmp 0x532969
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x532957
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x5329a7
mov dword [0x5c3bf8], str.zlib_corrupt
xor eax, eax
jmp 0x5329e7
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x5329bc
mov dword [0x5c3bf8], str.read_past_buffer
jmp 0x5329a3
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x5329d1
mov ecx, edi
call fcn.005322ee
test eax, eax
je 0x5329a3
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0053e160
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x537142
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d8], 0
push edi
je 0x5371cf
cmp dword [esi + 0x2d0], 0
je 0x5371cf
mov eax, dword [esi]
call dword [eax + 0x44]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5371cf
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00544280
mov ebx, esp
test ebx, ebx
je 0x5371cf
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x2d0]
push ebx
add ecx, 0xd8
call fcn.0041dca0
mov ecx, dword [esi + 0x2d0]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x18]
mov ecx, eax
call fcn.0050969e
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
leave
ret 0x10
Function at 0x53caba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53cb36
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00544280
mov dword [ebp - 8], esp
test esp, esp
je 0x53cb5e
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 8]
test eax, eax
je 0x53cb19
push dword [ebp - 8]
lea ecx, [eax + 0xd8]
call fcn.0041dca0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 8], 0
je 0x53cb5e
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0x148]
mov ecx, dword [esi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.killfocus
call fcn.005025c4
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
leave
ret 0x10

Function at 0x53cb74
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x53cbee
mov eax, dword [edi]
call dword [eax + 0xc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53cbee
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00544280
mov ebx, esp
test ebx, ebx
je 0x53cbee
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 8]
test eax, eax
je 0x53cbee
push ebx
lea ecx, [eax + 0xd8]
call fcn.0041dca0
mov ecx, dword [edi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.textchanged
call fcn.005025c4
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
leave
ret 0x10

Function at 0x53ea90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c0c70]
jne 0x53ea9a
repz ret
jmp fcn.0054cfb3
Function at 0x566c05
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00553f49
and dword [ebp - 0x14], 0
cmp dword [0x5c4c10], 0
mov dword [ebp - 0x18], eax
jne 0x566cb8
push 0x5a4558
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x566d60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a454c
push ebx
call edi
test eax, eax
je 0x566d60
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a453c
push ebx
mov dword [0x5c4c10], eax
call edi
push eax
call esi
push 0x5a4528
push ebx
mov dword [0x5c4c14], eax
call edi
push eax
call esi
push 0x5a450c
push ebx
mov dword [0x5c4c18], eax
call edi
push eax
call esi
mov dword [0x5c4c20], eax
test eax, eax
je 0x566cb8
push 0x5a44f4
push ebx
call edi
push eax
call esi
mov dword [0x5c4c1c], eax
mov eax, dword [0x5c4c1c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x566d11
cmp dword [0x5c4c20], ecx
je 0x566d11
push eax
call esi
push dword [0x5c4c20]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x566d11
test ebx, ebx
je 0x566d11
call edi
test eax, eax
je 0x566d08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x566d08
test byte [ebp - 8], 1
jne 0x566d11
or dword [ebp + 0x10], 0x200000
jmp 0x566d44
mov eax, dword [0x5c4c14]
cmp eax, dword [ebp - 0x18]
je 0x566d44
push eax
call esi
test eax, eax
je 0x566d44
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x566d44
mov eax, dword [0x5c4c18]
cmp eax, dword [ebp - 0x18]
je 0x566d44
push eax
call esi
test eax, eax
je 0x566d44
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c4c10]
call esi
test eax, eax
je 0x566d60
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x566d62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053ea90
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

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
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1d4861ee
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x41881bc9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4cba18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x12168]
and dword [ebp - 0x10], 0
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0x4364624b
xor ebx, ebx
inc ebx
push 0xa8
push ebx
mov dword [ebp - 4], 0x64
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
call dword [0x11f04]
mov esi, eax
test esi, esi
je 0x4cbb8f
push 0x2a
pop ecx
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x11f00]
mov eax, dword [0x12164]
add eax, 0x18
mov word [ebp - 0x1a], ax
movzx eax, ax
push 0x4364624b
push eax
push ebx
call dword [0x11f04]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x4cbb8f
movzx ecx, word [ebp - 0x1a]
push dword [ebp - 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [0x11e4c]
lea eax, [ebp - 0x1c]
push eax
call edi
push 0x13d00
lea eax, [ebp - 0x1c]
push eax
call edi
push 0x13d18
lea eax, [ebp - 0x24]
push eax
call dword [0x11f00]
push 0x20
pop ecx
push 4
pop eax
lea edx, [ebp - 4]
mov dword [esi + 0x14], edx
mov dword [esi + 4], ecx
mov dword [esi + 0x20], ecx
lea edx, [ebp - 8]
mov dword [esi + 0x30], edx
mov dword [esi + 0x3c], ecx
xor edi, edi
push edi
mov dword [esi + 8], 0x13d34
mov dword [esi + 0xc], 0x120dc
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 0x13d60
mov dword [esi + 0x28], 0x12080
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x40], 0x13d8c
mov dword [esi + 0x44], 0x1216c
mov dword [esi + 0x48], ebx
mov edx, dword [ebp - 0x20]
push edi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x74], ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push esi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], 0x13dbc
mov dword [esi + 0x60], 0x12078
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], 0x13de8
mov dword [esi + 0x7c], 0x1207c
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], eax
push dword [ebp - 0x18]
push 0x80000000
call dword [0x11e48]
cmp eax, edi
jge 0x4cbbbe
mov eax, dword [ebp - 4]
mov dword [0x120dc], eax
mov eax, dword [ebp - 8]
mov dword [0x12080], eax
mov eax, dword [ebp - 0xc]
mov dword [0x12078], eax
mov eax, dword [ebp - 0x10]
mov dword [0x1207c], eax
lea eax, [ebp - 0x24]
push eax
push 0x1216c
call dword [0x11e44]
mov eax, dword [0x120dc]
test eax, eax
jne 0x4cbbca
mov eax, dword [ebp - 4]
mov edi, dword [0x11f0c]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [0x120dc], eax
xor eax, eax
cmp dword [0x12078], eax
sete al
cmp dword [ebp - 0x18], 0
mov dword [0x12078], eax
je 0x4cbbf8
push 0
push dword [ebp - 0x18]
call edi
test esi, esi
je 0x4cbc01
push 0
push esi
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e085c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x2e074]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x42
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x44
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x46
call dword [0x2db0c]
movzx edx, word [ebx]
movzx ecx, word [ebp + 0x18]
shl eax, 1
add edx, eax
lea esi, [edx + ecx*2]
mov dword [esp], 0x70627375
push esi
push 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
call dword [0x2da4c]
mov edx, eax
test edx, edx
mov dword [ebp - 0x20], edx
je 0x4e093b
push edi
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [ebp - 0x18]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
add eax, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
mov dword [ebx], ecx
pop edi
jmp 0x4e094c
and dword [ebx], 0
jmp 0x4e09c5
cmp word [ebp + 0x1c], 0
je 0x4e0952
inc eax
inc eax
cmp word [eax], 0x6e
jne 0x4e0943
movzx ecx, word [ebp + 0x1c]
dec ecx
dec ecx
je 0x4e09a3
dec ecx
dec ecx
jne 0x4e09c5
movzx ecx, word [ebp + 0x20]
mov edx, ecx
shr edx, 0xc
movzx dx, byte [ebp + edx - 0x14]
mov word [eax], dx
mov edx, ecx
shr edx, 8
and edx, 0xf
movzx dx, byte [ebp + edx - 0x14]
mov word [eax + 2], dx
mov edx, ecx
shr edx, 4
and edx, 0xf
movzx dx, byte [ebp + edx - 0x14]
and ecx, 0xf
movzx cx, byte [ebp + ecx - 0x14]
mov word [eax + 4], dx
mov word [eax + 6], cx
jmp 0x4e09c5
movzx ecx, word [ebp + 0x20]
mov edx, ecx
shr edx, 4
and edx, 0xf
movzx dx, byte [ebp + edx - 0x14]
and ecx, 0xf
movzx cx, byte [ebp + ecx - 0x14]
mov word [eax], dx
mov word [eax + 2], cx
cmp dword [ebp - 0x18], 0
pop esi
pop ebx
je 0x4e09d6
push dword [ebp - 0x18]
call dword [0x2da58]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004ee7f6
leave
ret 0x1c
Function at 0x4f7bee
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
cmp dword [ecx + 0x10], 2
jne 0x4f7c4a
cmp dword [ecx + 0x70], edi
jbe 0x4f7c8d
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edi
mov eax, dword [ecx + 0x6c]
add eax, dword [ebp + 0xc]
xor esi, esi
mov si, word [edx]
add dword [ebp + 0xc], 0x100
xor esi, dword [eax + 0x24]
and esi, 0x7f
xor dword [eax + 0x24], esi
movzx ebx, word [edx + 2]
mov esi, dword [eax + 0x24]
shl ebx, 8
xor ebx, esi
and ebx, 0xf00
xor ebx, esi
inc edi
mov dword [eax + 0x24], ebx
cmp edi, dword [ecx + 0x70]
jb 0x4f7c10
jmp 0x4f7c8d
cmp dword [ecx + 0x70], edi
jbe 0x4f7c8d
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edi
mov eax, dword [ecx + 0x68]
add eax, dword [ebp + 0xc]
xor esi, esi
mov si, word [edx]
add dword [ebp + 0xc], 0x80
xor esi, dword [eax + 4]
and esi, 0x7f
xor dword [eax + 4], esi
movzx ebx, word [edx + 0x30]
mov esi, dword [eax + 4]
shl ebx, 0x10
xor ebx, esi
and ebx, 0x7f0000
xor ebx, esi
inc edi
mov dword [eax + 4], ebx
cmp edi, dword [ecx + 0x70]
jb 0x4f7c55
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc