joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fd400
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x804
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
lea ecx, [ecx]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
lea esi, [eax + eax]
and edx, 0x1b
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
xor edx, esi
xor eax, edx
inc ecx
and eax, 0xff
cmp ecx, 0x100
jl 0x5fd420
mov eax, 1
mov ecx, 0x7e7ef0
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, 0xff
cmp ecx, 0x7e7f18
jl 0x5fd460
mov byte [0x7ea018], 0x63
mov byte [0x7e8f7b], 0
mov ebx, 1
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x7ea018], al
mov byte [eax + 0x7e8f18], bl
inc ebx
cmp ebx, 0x100
jl 0x5fd498
xor ecx, ecx
lea ebx, [ebx]
movzx esi, byte [ecx + 0x7ea018]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x7e9c18], eax
rol eax, 8
mov dword [ecx*4 + 0x7e9818], eax
rol eax, 8
mov dword [ecx*4 + 0x7e9418], eax
rol eax, 8
mov dword [ecx*4 + 0x7e9018], eax
movzx eax, byte [ecx + 0x7e8f18]
test eax, eax
je 0x5fd5c6
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x5fd5ce
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x7e8b18], edx
rol edx, 8
mov dword [ecx*4 + 0x7e8718], edx
rol edx, 8
mov dword [ecx*4 + 0x7e8318], edx
rol edx, 8
mov dword [ecx*4 + 0x7e7f18], edx
inc ecx
cmp ecx, 0x100
jl 0x5fd510
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00606374
add esp, 0x804
ret
Function at 0x5fd630
Capabilities:
Encode data using xor

Disassembly:
jmp 0x5fd630
sub esp, 0x11c
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
mov eax, edx
sub eax, 0x80
push edi
mov edi, dword [esp + 0x124]
je 0x5fd681
sub eax, 0x40
je 0x5fd679
sub eax, 0x40
jne 0x5fd834
mov dword [edi], 0xe
jmp 0x5fd687
mov dword [edi], 0xc
jmp 0x5fd687
mov dword [edi], 0xa
push esi
push edx
push ecx
lea eax, [esp + 0x10]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0040ec37
mov eax, dword [esp + 0x14]
shl eax, 4
add eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [edi]
dec ecx
add esi, 0x10
sub eax, 0x10
test ecx, ecx
jle 0x5fd81d
nop
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x7ea018]
mov edx, dword [edx*4 + 0x7e7f18]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8318]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8718]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8b18]
dec ecx
mov dword [esi], edx
mov edx, dword [eax + 4]
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x7ea018]
and edx, 0xff
movzx edx, byte [edx + 0x7ea018]
mov edx, dword [edx*4 + 0x7e8b18]
xor edx, dword [edi*4 + 0x7e7f18]
movzx edi, byte [eax + 6]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8318]
movzx edi, byte [eax + 5]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8718]
add esi, 0x10
mov dword [esi - 0xc], edx
mov edx, dword [eax + 8]
movzx edi, byte [eax + 0xb]
movzx edi, byte [edi + 0x7ea018]
and edx, 0xff
movzx edx, byte [edx + 0x7ea018]
mov edx, dword [edx*4 + 0x7e8b18]
xor edx, dword [edi*4 + 0x7e7f18]
movzx edi, byte [eax + 0xa]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8318]
movzx edi, byte [eax + 9]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8718]
sub eax, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax + 0x1c]
movzx edi, byte [eax + 0x1f]
movzx edi, byte [edi + 0x7ea018]
and edx, 0xff
movzx edx, byte [edx + 0x7ea018]
mov edx, dword [edx*4 + 0x7e8b18]
xor edx, dword [edi*4 + 0x7e7f18]
movzx edi, byte [eax + 0x1e]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8318]
movzx edi, byte [eax + 0x1d]
movzx edi, byte [edi + 0x7ea018]
xor edx, dword [edi*4 + 0x7e8718]
mov dword [esi - 4], edx
test ecx, ecx
jg 0x5fd6d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
pop esi
mov ecx, dword [esp + 0x11c]
pop edi
xor ecx, esp
call fcn.00606374
add esp, 0x11c
ret
Function at 0x5feac0
Capabilities:
Read file on windows

Disassembly:
jmp 0x5feac0
sub esp, 0x730
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x72c], eax
mov eax, dword [esp + 0x738]
push ebx
mov ebx, dword [esp + 0x738]
push esi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x5feaf9
xor eax, eax
jmp 0x5fec8e
test eax, eax
je 0x5feaf2
push edi
push ebx
push 1
lea eax, [esp + 0x1a]
push 1
push eax
call fcn.00606ca9
push 0x200
xor edi, edi
lea ecx, [esp + 0x54c]
push edi
push ecx
add esi, 0x10
call fcn.006061b0
lea edx, [esp + 0x30]
push edx
push str._02X
push esi
call fcn.006083d2
add esp, 0x28
test eax, eax
jle 0x5feb6e
lea esp, [esp]
cmp edi, 0x200
jge 0x5feb6e
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
add esi, 2
push str._02X
mov byte [esp + edi + 0x540], al
push esi
inc edi
call fcn.006083d2
add esp, 0xc
test eax, eax
jg 0x5feb40
push ebp
push 0x100
lea edx, [esp + 0x540]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0040e255
mov ebp, dword [esp + 0x758]
mov cl, byte [esp + 0x75c]
add esp, 0xc
xor edi, edi
mov byte [esp + 0x13], cl
test ebp, ebp
jle 0x5fec4d
push ebx
push 0x10
lea edx, [esp + 0x144]
push 1
push edx
call fcn.00606ca9
add esp, 0x10
cmp eax, 0x10
jne 0x5fec76
lea eax, [esp + 0x13c]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0040d90e
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
lea esi, [ecx + edi + 1]
mov cl, byte [esp + eax + 0x13c]
add byte [esp + 0x13], cl
mov byte [esi + eax - 1], cl
mov cl, byte [esp + eax + 0x13d]
add byte [esp + 0x14], cl
mov byte [esi + eax], cl
mov cl, byte [esp + eax + 0x13e]
add byte [esp + 0x15], cl
mov byte [esi + eax + 1], cl
mov cl, byte [esp + eax + 0x13f]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x5febf1
add dl, byte [esp + 0x15]
mov ebx, dword [esp + 0x1c]
add dl, byte [esp + 0x14]
add edi, 0x10
add byte [esp + 0x13], dl
cmp edi, ebp
jl 0x5feba5
push ebx
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.00606ca9
mov al, byte [esp + 0x26]
add esp, 0x10
cmp al, byte [esp + 0x17]
jne 0x5fec76
cmp al, byte [esp + 0x13]
jne 0x5fec76
mov eax, 1
jmp 0x5fec8c
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x734]
pop esi
pop ebx
xor ecx, esp
call fcn.00606374
add esp, 0x730
ret 0x10

Function at 0x606374
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x79d4f0]
jne 0x60637e
repz ret
jmp fcn.0060e206
Function at 0x61cb7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x79d4f0]
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.0061303f
and dword [ebp - 0x14], 0
cmp dword [0x7eb618], 0
mov dword [ebp - 0x18], eax
jne 0x61cc32
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x61ccda
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x61ccda
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7eb618], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7eb61c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7eb620], eax
call edi
push eax
call esi
mov dword [0x7eb628], eax
test eax, eax
je 0x61cc32
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7eb624], eax
mov eax, dword [0x7eb624]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x61cc8b
cmp dword [0x7eb628], ecx
je 0x61cc8b
push eax
call esi
push dword [0x7eb628]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x61cc8b
test ebx, ebx
je 0x61cc8b
call edi
test eax, eax
je 0x61cc82
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x61cc82
test byte [ebp - 8], 1
jne 0x61cc8b
or dword [ebp + 0x10], 0x200000
jmp 0x61ccbe
mov eax, dword [0x7eb61c]
cmp eax, dword [ebp - 0x18]
je 0x61ccbe
push eax
call esi
test eax, eax
je 0x61ccbe
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x61ccbe
mov eax, dword [0x7eb620]
cmp eax, dword [ebp - 0x18]
je 0x61ccbe
push eax
call esi
test eax, eax
je 0x61ccbe
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7eb618]
call esi
test eax, eax
je 0x61ccda
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x61ccdc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00606374
leave
ret
Function at 0x413821
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x413842
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x413839
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x413831
mov eax, ebx
leave
ret

Function at 0x413868
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4138c7
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4138f4
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4138e3
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4138d4
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x41391a
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4138bb
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x41415a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword ds:[ebp - 0x20], 0xff8bff8b
mov dword ds:[ebp - 0x14], 0xff8bff8b
mov dword ds:[ebp - 0x1c], 0xff8bff8b
push 0x7fc
push dword [ebp - 0x20]
call fcn.004137e7
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x414339
push dword [ebp - 4]
call fcn.004137cb
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41422a
jmp 0x414339
push dword [ebp - 4]
call fcn.004137cb
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x41427e
lea eax, [ebp - 4]
push eax
call fcn.00414140
mov dword [ebp - 0x28], eax
push 0
push 4
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0xffffffff
push dword [ebp - 0x14]
call fcn.004139f2
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41427e
mov eax, 1
jmp 0x414280
xor eax, eax
test eax, eax
je 0x41432e
push ebx
push esi
push edx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
lea eax, [eax + 0x78]
mov eax, dword [eax]
lea esi, [eax + ebx]
mov dword [ebp - 0x10], esi
lea edx, [esi + 0x20]
mov edx, dword [edx]
add edx, ebx
mov edx, dword [edx]
add edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x18]
mov eax, dword [eax]
dec eax
mov dword [ebp - 4], eax
pop ebx
pop esi
pop edx
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x414326
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
call fcn.00413f5d
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x414315
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop edi
leave
ret 8
push dword [ebp - 0xc]
call fcn.00414119
add dword [ebp - 8], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4142c8
add esp, 0xc
jmp 0x414339
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x414203
add esp, 0xc
mov edi, edi
mov edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0
jmp 0x41435a
mov esp, ebp
pop ebp
ret 8
Function at 0x42a2d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49c68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049079d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a352
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048dd80
mov eax, dword [eax]
push 0x5d7224
push eax
call fcn.0047ff64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00490a28
test bl, bl
je 0x42a352
push 0x5d7224
lea ecx, [esp + 0xc]
call fcn.00490db8
push 0x5dadb0
lea ecx, [esp + 0xc]
call fcn.00490db8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42a38e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00490a28
jmp 0x42a459
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42a412
lea edx, [esp + 0x7c]
push 0x5dadac
push edx
call fcn.0047ff64
add esp, 8
test eax, eax
je 0x42a412
lea eax, [esp + 0x7c]
push 0x5dada8
push eax
call fcn.0047ff64
add esp, 8
test eax, eax
je 0x42a412
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42a3a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00490a28
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42ac50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42acb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x42acc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49c70b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5e3674]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x42adf8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42ad26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00490a28
xor eax, eax
jmp 0x42ae6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00490b65
push esi
lea ecx, [esp + 0xc]
call fcn.00490df4
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42ae4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0042ac50
test eax, eax
jne 0x42ae4d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0042ac50
test eax, eax
jne 0x42ae4d
lea eax, [esp + 0x14]
push 0x5dadc4
push eax
call fcn.00481070
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ae2c
lea ecx, [esp + 0x14]
push 0x5dadc0
push ecx
call fcn.00480ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ae2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42ae2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00490b15
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42ad3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00490a28
xor eax, eax
jmp 0x42ae6f
mov byte [esi], 0
push 0x5dadbc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00490a28
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x440170
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4401de
cmp si, 0x69
ja 0x4401de
add esi, 0xffd0
cmp si, 0x11
je 0x4401ae
push 0x11
call edi
test ax, ax
jge 0x4401ae
or esi, 0x2000
cmp si, 0x10
je 0x4401c3
push 0x10
call edi
test ax, ax
jge 0x4401c3
or esi, 0x4000
cmp si, 0x12
je 0x4401d8
push 0x12
call edi
test ax, ax
jge 0x4401d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4401eb
mov esi, 0xbd
jmp 0x44019f
cmp si, 0x6e
jne 0x4401f8
mov esi, 0xbe
jmp 0x44019f
cmp si, 0x6f
jne 0x440199
mov esi, 0xbf
jmp 0x44019f

Function at 0x4419b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5f3f20]
xor edx, edx
cmp eax, edx
jne 0x4419d6
xor eax, eax
mov byte [eax + 0x5f3e20], al
inc eax
cmp eax, 0x100
jl 0x4419be
mov dword [0x5f3f20], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5f3e20
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x441a67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x441a3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x441a08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x441ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x441b33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x441b1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret