joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428e20
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47d220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x428f69
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x428f69
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428f69
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x428f69
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x428f55
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x428f4e
cmp dword [ebp - 0x1c], ebx
jne 0x428f4e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x428eed
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x428ee7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x428ef9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00408060
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.004130e7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x428f4e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x433227
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x433175
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x434920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460753
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x47d220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x47d248]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.00434870
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x434b01
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00438a20
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x469c64
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x434b01
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x4349f5
cmp eax, 2
jne 0x434b01
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x434a16
test cl, 1
jne 0x434b01
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x434a1c
jmp 0x434b01
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x434b01
call fcn.00405650
mov ecx, eax
test ecx, ecx
je 0x434b2c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.00432bd0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x469c6c
push eax
call fcn.00434fa0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.00433160
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x434ae5
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x434a86
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.00434b40
push dword [0x47d250]
lea eax, [ebp - 0x74]
push dword [0x47d24c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x434ac2
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x434ade
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x434b03
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x434b01
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x434b0e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431482
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004053f0
int3
Function at 0x434ca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460788
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47d220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x47d248]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.00434870
test eax, eax
je 0x434dc8
mov esi, dword [ebp - 0x18]
mov edi, dword [str.SOFTWAREComMaster]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x434d73
cmp dword [esi], 0
je 0x434d66
push 0x469b18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x434d33
mov eax, 1
jmp 0x434d94
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434d6c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call eax
jmp 0x434d94
cmp dword [esi + 4], 0
jne 0x434d73
mov eax, 1
jmp 0x434d94
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x434dbe
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x434da6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x434dcb
xor ebx, ebx
jmp 0x434e6f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x434e6f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x434e28
mov ecx, dword [ebx]
test ecx, ecx
je 0x434e8e
push ecx
push eax
call fcn.0044374e
add esp, 8
test eax, eax
je 0x434e28
mov edx, dword [edi]
test edx, edx
je 0x434e28
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434e00
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x434e33
lea eax, [edx + 0xd]
jmp 0x434e68
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434e40
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x469c64
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x434e7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004053f0
int3
Function at 0x436490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436501
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4364cf
cmp eax, 2
jne 0x4364eb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4364fb
test ecx, ecx
je 0x4364f6
test cl, 1
jne 0x4364eb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4364fb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x456af9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004567b9

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x69f31ea7
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6d077ac9
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000d6b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100366f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x1004a1d4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x30]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xc], eax
cmp ecx, ebx
je 0x1000d6fa
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x10038a20
push ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x1000d814
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x10039b70
push eax
mov eax, dword [ecx + 0x10]
mov byte [esp + 0x34], 1
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1000d7fc
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x1c]
mov byte [esp + 0x30], 2
call eax
test eax, eax
mov eax, dword [esp + 0x30]
jl 0x1000d7d7
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x1000d7d3
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1000d7bb
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push 0x10039b70
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 3
cmp eax, ebx
je 0x1000d79a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 2
cmp eax, ebx
je 0x1000d7bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x1000d767
mov eax, dword [esp + 0x30]
mov byte [esp + 0x28], 1
cmp eax, ebx
je 0x1000d7e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x28], bl
cmp eax, ebx
je 0x1000d7fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ebx
je 0x1000d814
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x100111c0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x58
push 0
push esi
call fcn.100238f0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop esi
ret
Function at 0x10011ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
xor edx, edx
test eax, eax
je 0x10011b46
cmp dword [ecx + 4], edx
jbe 0x10011b46
push esi
cmp byte [esp + 8], dl
je 0x10011b16
mov esi, dword [0x1004ba74]
push edi
mov edi, esi
inc esi
test edi, edi
mov dword [0x1004ba74], esi
pop edi
jne 0x10011b42
cmp dword [ecx + 4], edx
jbe 0x10011b42
mov edi, edi
movzx si, byte [0x1004b5d8]
xor word [eax + edx*2], si
inc edx
cmp edx, dword [ecx + 4]
jb 0x10011b00
pop esi
ret 4
sub dword [0x1004ba74], 1
jne 0x10011b42
cmp dword [ecx + 4], edx
jbe 0x10011b42
jmp 0x10011b30
movzx si, byte [0x1004b5d8]
xor word [eax + edx*2], si
inc edx
cmp edx, dword [ecx + 4]
jb 0x10011b30
pop esi
ret 4
mov eax, dword [esp + 4]
ret 4

Function at 0x10012190
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
mov dword [esp + 0xc], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x20], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
lea edi, [edx + 0x20]
mov esi, ecx
shr esi, 5
add esi, dword [esp + 0x20]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0xc]
sub edx, 0x61c88647
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
add eax, esi
mov esi, eax
shr esi, 5
add esi, dword [esp + 0x10]
mov ebx, eax
shl ebx, 4
add ebx, dword [esp + 0x14]
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
sub edi, 1
jne 0x100121c3
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret

Function at 0x10012220
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0xc], edi
mov edx, 0xc6ef3720
mov dword [esp + 0x20], esi
mov edi, 0x20
jmp 0x10012260
mov esi, ecx
shr esi, 5
add esi, dword [esp + 0x20]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0xc]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [esp + 0x10]
mov ebx, eax
shl ebx, 4
add ebx, dword [esp + 0x14]
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
sub edi, 1
jne 0x10012260
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret
Function at 0x10013210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov eax, ebp
push edi
mov esi, ecx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013220
sub eax, edx
sar eax, 1
mov edi, eax
test ebp, ebp
je 0x100132a9
test edi, edi
jbe 0x100132a9
mov eax, dword [esi]
test eax, eax
je 0x10013248
push eax
call fcn.1002467b
add esp, 4
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esi], 0
mov dword [esi + 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.1002298f
mov dword [esi], eax
add esp, 4
xor eax, eax
mov dword [esi + 4], edi
test edi, edi
jbe 0x100132a1
lea esp, [esp]
movzx edx, word [ebp + eax*2]
mov ecx, dword [esi]
mov word [ecx + eax*2], dx
mov ecx, dword [esi]
movzx edx, byte [0x1004b5d8]
xor word [ecx + eax*2], dx
lea ecx, [ecx + eax*2]
inc eax
cmp eax, dword [esi + 4]
jb 0x10013280
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10018020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x48
mov eax, dword [0x1004a1d4]
xor eax, esp
mov dword [esp + 0x44], eax
mov cl, 0xb1
mov dl, 0xac
mov al, 0xae
mov byte [esp + 0xb], cl
mov byte [esp + 0x10], cl
mov dword [esp], 0
mov byte [esp + 4], 0x4f
mov byte [esp + 5], 0x55
mov byte [esp + 6], 0xa5
mov byte [esp + 7], 0x54
mov byte [esp + 8], 0x5a
mov byte [esp + 9], 0xab
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x5d
mov byte [esp + 0xe], 0xad
mov byte [esp + 0xf], dl
mov byte [esp + 0x11], 0xb2
mov byte [esp + 0x12], 0xb7
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x66
mov byte [esp + 0x15], 0xb0
mov byte [esp + 0x16], 0xbc
mov byte [esp + 0x17], 0xb6
mov byte [esp + 0x18], 0x68
mov byte [esp + 0x19], 0xb9
mov byte [esp + 0x1a], 0x6c
mov byte [esp + 0x1b], 0xba
mov byte [esp + 0x1c], 0xbb
mov byte [esp + 0x1d], 0x6d
mov byte [esp + 0x1e], 0x70
mov byte [esp + 0x1f], 0xc0
mov byte [esp + 0x20], 0x71
mov byte [esp + 0x21], 0xc3
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], 0x74
xor ecx, ecx
mov eax, ecx
and eax, 0x80000003
jns 0x100180e5
dec eax
or eax, 0xfffffffc
inc eax
add eax, eax
mov edx, eax
mov eax, ecx
sub eax, edx
mov dl, byte [esp + eax + 7]
add eax, 3
sub dl, al
add dl, 0x31
xor dl, 0xe3
mov byte [esp + ecx + 0x24], dl
inc ecx
cmp ecx, 0x20
jl 0x100180d7
push edi
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], 0
mov byte [edi], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x10018127
mov ecx, dword [edi]
jmp 0x10018129
mov ecx, edi
lea edx, [esp + 0x28]
cmp edx, ecx
jb 0x10018173
cmp eax, 0x10
jb 0x1001813a
mov ecx, dword [edi]
jmp 0x1001813c
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
lea ecx, [esp + 0x28]
cmp edx, ecx
jbe 0x10018173
cmp eax, 0x10
jb 0x10018150
mov edi, dword [edi]
push 0x20
lea edx, [esp + 0x2c]
sub edx, edi
push edx
push esi
mov ecx, esi
call fcn.10004140
mov eax, esi
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10023f6e
add esp, 0x48
ret
cmp eax, 0x20
jae 0x10018185
mov eax, dword [esi + 0x14]
push eax
push 0x20
mov ecx, esi
call fcn.10003e60
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x10018191
mov eax, dword [edi]
jmp 0x10018193
mov eax, edi
push 0x20
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.10023812
add esp, 0x10
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], 0x20
jb 0x100181b3
mov edi, dword [edi]
mov ecx, dword [esp + 0x48]
mov byte [edi + 0x20], 0
pop edi
xor ecx, esp
mov eax, esi
call fcn.10023f6e
add esp, 0x48
ret