joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x4ca89c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xdc1635a1
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0x69c6d64b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x405afa
jmp 0x405ab8
mov eax, dword [ebp - 0x14]
sub eax, 0x8ee0c8a4
mov dword [ebp - 0x1c], eax
je 0x405b73
jmp 0x405ace
mov eax, dword [ebp - 0x14]
sub eax, 0xd49291f5
mov dword [ebp - 0x20], eax
je 0x405b47
jmp 0x405ae4
mov eax, dword [ebp - 0x14]
sub eax, 0xdc1635a1
mov dword [ebp - 0x24], eax
je 0x405b15
jmp 0x405b10
mov eax, dword [ebp - 0x14]
sub eax, 0x69c6d64c
mov dword [ebp - 0x28], eax
je 0x405b33
jmp 0x405b10
jmp 0x405b7b
mov eax, 0xd49291f5
mov ecx, 0x69c6d64c
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x405b7b
mov eax, dword [0x4ca89c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x8ee0c8a4
jmp 0x405b7b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4ca89c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x8ee0c8a4
jmp 0x405b7b
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
jmp 0x405a9c
Function at 0x4b643a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ca250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004b48e9
mov dword [ebp - 0x14], eax
cmp dword [0x4cb8e4], edi
jne 0x4b652b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4b64b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b660b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b660b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b660b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4cb8e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4cb8e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4cb8ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb8f4], eax
test eax, eax
je 0x4b6528
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb8f0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b6550
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b6543
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4b6565
push 4
pop eax
jmp 0x4b660d
cmp dword [ebp - 0x14], edi
je 0x4b6565
push dword [0x4cb8e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b654a
mov eax, dword [0x4cb8f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4b65c3
cmp dword [0x4cb8f4], esi
je 0x4b65c3
push eax
call ebx
push dword [0x4cb8f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b65c3
test eax, eax
je 0x4b65c3
call ecx
test eax, eax
je 0x4b65b8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b65b8
test byte [ebp - 8], 1
jne 0x4b65c3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4b65f3
mov eax, dword [0x4cb8e8]
cmp eax, esi
je 0x4b65f0
push eax
call ebx
test eax, eax
je 0x4b65f0
call eax
mov edi, eax
test edi, edi
je 0x4b65f0
mov eax, dword [0x4cb8ec]
cmp eax, esi
je 0x4b65f0
push eax
call ebx
test eax, eax
je 0x4b65f0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4cb8e4]
call ebx
test eax, eax
je 0x4b660b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4b660d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b661c
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x1003c620
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x50
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
add eax, 0x13
mov dword [esp + 0x4c], eax
mov eax, dword [0x10065330]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0xfb12a30a
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 1
sete al
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x37]
xor eax, eax
test cl, 1
mov dword [esp + 0x30], eax
jne 0x1003c70c
jmp 0x1003c682
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov bh, byte [edx + eax]
mov esi, 0x13
xor edx, edx
div esi
mov eax, dword [esp + 0x2c]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x34
mov cl, 0xff
xor cl, 0x34
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x34
and bl, cl
mov ecx, dword [esp + 0x48]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0xd
mov dword [esp + 0x30], eax
jne 0x1003c682
mov eax, dword [0x10065330]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add eax, 0xfb12a30a
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [eax], 1
jmp 0x1003c70c
mov eax, dword [0x10066cc8]
mov dword [esp + 0x18], eax
mov ecx, dword [0x10066cc4]
mov dword [esp + 0x1c], ecx
add eax, 0x975d12c1
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
sub eax, 0x975d12c1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x12], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x13], al
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x12]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x11]
test al, 1
jne 0x1003c783
jmp 0x1003c804
mov eax, dword [0x10066cc8]
mov dword [esp + 4], eax
mov ecx, dword [0x10066cc4]
mov dword [esp + 8], ecx
add eax, 0x5aa36c8d
sub eax, 1
sub eax, 0x5aa36c8d
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 2], cl
cmp eax, 0xa
setl al
mov byte [esp + 3], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
and al, cl
mov byte [esp + 1], al
mov al, byte [esp + 1]
mov dl, byte [esp + 3]
mov cl, byte [esp + 2]
xor cl, dl
or al, cl
mov byte [esp], al
mov al, byte [esp]
test al, 1
jne 0x1003c7fe
jmp 0x1003c804
add esp, 0x50
pop esi
pop ebx
ret
jmp 0x1003c783
Function at 0x10048740
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
add eax, 0x14
mov dword [esp + 0x4c], eax
mov eax, dword [0x10065378]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x8cfe24a0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 1
sete al
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x37]
xor eax, eax
test cl, 1
mov dword [esp + 0x30], eax
jne 0x10048826
jmp 0x100487a3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x2f], dl
mov edi, 0x14
xor edx, edx
div edi
mov eax, dword [esp + 0x28]
mov edi, edx
mov dh, byte [esp + 0x2f]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0x9af4c876
add eax, 1
sub eax, 0x9af4c876
cmp eax, 0x13
mov dword [esp + 0x30], eax
jne 0x100487a3
mov eax, dword [0x10065378]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0x8cfe24a0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 1
jmp 0x10048826
mov eax, dword [0x10066c38]
mov ecx, dword [0x10066c34]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x1d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x1e], cl
xor al, 0xff
mov byte [esp + 0x1f], al
mov cl, byte [esp + 0x1d]
mov ah, byte [esp + 0x1f]
mov al, byte [esp + 0x1e]
xor al, 0xff
mov byte [esp + 0x18], al
mov dl, 1
xor dl, 0
mov byte [esp + 0x19], dl
and ah, 0
mov byte [esp + 0x1a], ah
and cl, dl
mov byte [esp + 0x1b], cl
and al, 0
mov byte [esp + 0x1c], al
mov cl, byte [esp + 0x18]
mov al, byte [esp + 0x1f]
mov ah, byte [esp + 0x1c]
mov dh, byte [esp + 0x1b]
mov dl, byte [esp + 0x1a]
mov bl, byte [esp + 0x19]
mov ch, byte [esp + 0x1e]
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x16], dl
or al, cl
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x17]
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x15], al
mov cl, byte [esp + 0x15]
mov al, byte [esp + 0x16]
or al, cl
mov byte [esp + 0x14], al
mov al, byte [esp + 0x14]
test al, 1
jne 0x100488e8
jmp 0x1004896c
mov eax, dword [0x10066c38]
mov dword [esp + 8], eax
mov ecx, dword [0x10066c34]
mov dword [esp + 0xc], ecx
add eax, 0xd29fafff
sub eax, 1
sub eax, 0xd29fafff
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 5], al
cmp ecx, 0xa
setl cl
mov byte [esp + 6], cl
and al, cl
mov byte [esp + 7], al
mov cl, byte [esp + 6]
mov al, byte [esp + 5]
xor al, cl
mov byte [esp + 4], al
mov cl, byte [esp + 4]
mov al, byte [esp + 7]
or al, cl
mov byte [esp + 3], al
mov al, byte [esp + 3]
test al, 1
jne 0x10048965
jmp 0x1004896c
add esp, 0x50
pop esi
pop edi
pop ebx
ret
jmp 0x100488e8
Function at 0x10049be0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
add eax, 0x19
mov dword [esp + 0x48], eax
mov eax, dword [0x10065380]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
add eax, 0x34a8771c
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 1
sete al
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
xor eax, eax
test cl, 1
mov dword [esp + 0x2c], eax
jne 0x10049daa
jmp 0x10049c42
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov bh, byte [edx + eax]
mov esi, 0x19
xor edx, edx
div esi
mov eax, dword [esp + 0x28]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x58
mov cl, 0xff
xor cl, 0x58
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x58
and bl, cl
mov ecx, dword [esp + 0x44]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0x40
mov dword [esp + 0x2c], eax
jne 0x10049c42
mov eax, dword [0x10066c28]
mov dword [esp + 0x20], eax
mov eax, dword [0x10066c24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
sub eax, 0x7b8be2e8
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ecx, 0x7b8be2e8
imul eax, ecx
and eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, 0
sete cl
mov byte [esp + 0x16], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
mov al, byte [esp + 0x16]
mov dl, al
and dl, cl
mov byte [esp + 0x14], dl
xor al, cl
mov byte [esp + 0x15], al
mov cl, byte [esp + 0x15]
mov al, byte [esp + 0x14]
or al, cl
test al, 1
jne 0x10049d2a
jmp 0x10049db0
mov eax, dword [0x10065380]
add eax, 0x34a8771c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [eax], 1
mov ecx, dword [0x10066c28]
mov eax, dword [0x10066c24]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xe], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xf], al
mov cl, byte [esp + 0xf]
mov al, byte [esp + 0xe]
mov dl, al
and dl, cl
mov byte [esp + 0xc], dl
xor al, cl
mov byte [esp + 0xd], al
mov cl, byte [esp + 0xd]
mov al, byte [esp + 0xc]
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x10049da5
jmp 0x10049db0
jmp 0x10049daa
add esp, 0x4c
pop esi
pop ebx
ret
mov eax, dword [0x10065380]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x34a8771c
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10049d2a
Function at 0x1004db80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
add eax, 0x13
mov dword [esp + 0x54], eax
mov eax, dword [0x1006539c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add eax, 0x5feb25a7
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
cmp eax, 1
sete al
mov byte [esp + 0x3f], al
mov cl, byte [esp + 0x3f]
xor eax, eax
test cl, 1
mov dword [esp + 0x38], eax
jne 0x1004dc60
jmp 0x1004dbe3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x37], dl
mov edi, 0x13
xor edx, edx
div edi
mov eax, dword [esp + 0x30]
mov edi, edx
mov dh, byte [esp + 0x37]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0x14
mov dword [esp + 0x38], eax
jne 0x1004dbe3
mov eax, dword [0x1006539c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
add eax, 0x5feb25a7
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [eax], 1
jmp 0x1004dc60
mov eax, dword [0x10066bf0]
mov dword [esp + 0x1c], eax
mov ecx, dword [0x10066bec]
mov dword [esp + 0x20], ecx
sub eax, 0x83ae098c
sub eax, 1
add eax, 0x83ae098c
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
imul eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x14], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x15], al
xor cl, 0xff
mov byte [esp + 0x16], cl
xor al, 0xff
mov byte [esp + 0x17], al
mov al, byte [esp + 0x16]
mov cl, 1
xor cl, 0
mov byte [esp + 0x12], cl
and al, 0
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov ch, byte [esp + 0x12]
mov dl, byte [esp + 0x15]
mov cl, byte [esp + 0x17]
mov ah, byte [esp + 0x14]
and ah, ch
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x11]
mov dl, byte [esp + 0x12]
mov ah, byte [esp + 0x17]
mov cl, byte [esp + 0x16]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1004dd20
jmp 0x1004dd94
mov eax, dword [0x10066bf0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [0x10066bec]
mov dword [esp + 4], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 2], cl
cmp eax, 0xa
setl al
mov byte [esp + 3], al
mov dl, byte [esp + 3]
mov cl, byte [esp + 2]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 1], al
mov al, byte [esp + 1]
test al, 1
jne 0x1004dd8d
jmp 0x1004dd94
add esp, 0x58
pop esi
pop edi
pop ebx
ret
jmp 0x1004dd20
Function at 0x1004dda0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
add eax, 0x12
mov dword [esp + 0x2c], eax
mov eax, dword [0x100653a0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add eax, 0x7ef823fb
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
sete al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x1004de84
jmp 0x1004de03
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xf], dl
mov edi, 0x12
xor edx, edx
div edi
mov eax, dword [esp + 8]
mov edi, edx
mov dh, byte [esp + 0xf]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
sub eax, 0x7fff2293
add eax, 1
add eax, 0x7fff2293
cmp eax, 0x15
mov dword [esp + 0x10], eax
jne 0x1004de03
mov eax, dword [0x100653a0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x7ef823fb
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004de84
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x100547fd
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005758a
push ebx
push esi
call fcn.100574b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005744a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10057537
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10057589
push edi
push eax
call fcn.100554c7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10057557
call fcn.1005548d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10057588
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005744a
add esp, 0x20
test eax, eax
jne 0x10057576
push edi
call fcn.1005548d
jmp 0x1005757e
push ebx
call fcn.1005548d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100577f7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060078
push 0x10060070
push str.FlsAlloc
push 0x1f
call fcn.10057713
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005782b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005e148]
call esi
jmp 0x10057831
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10057875
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060088
push 0x10060080
push str.FlsGetValue
push 0x21
call fcn.10057713
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100578ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100578b4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060090
push 0x10060088
push str.FlsSetValue
push 0x22
call fcn.10057713
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100578ee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005cf20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005cf4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005cf4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xc0a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xc0a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xc33074
push ecx
mov edi, eax
call fcn.00c1e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc0a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c1e02e
push esi
call fcn.00c1dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc0d850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xc0d8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xc38720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc0d8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00c1e1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xc0d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc38720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc0d92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00c1f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc0d957
mov word [eax], si
add eax, 2
push eax
call fcn.00c1f030
add esp, 4
jmp 0xc0d959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xc0d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc0d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xc0dff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret