joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ac9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x41232c]
mov eax, dword [0x4100c0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x407c8f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x412340]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x407c8f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x407b33
xor eax, eax
jmp 0x407ca3
test al, 0x20
je 0x407b44
push 2
push edi
push edi
push ecx
call fcn.0040a30f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407c19
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x407c60
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x407ba6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407b97
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407b79
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407be6
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x407bf2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x407b6d
jmp 0x407bf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x407c8a
cmp dword [ebp + 0x3a4], edi
je 0x407c60
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x407c52
mov dword [0x410e4c], eax
jmp 0x407c96
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407c44
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x407bf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x407bf4
push dword [ebp + 0x3a4]
call fcn.00408b01
pop ecx
jmp 0x407ca0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407c78
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x407b2c
mov dword [0x410e48], 0x1c
mov dword [0x410e4c], edi
jmp 0x407ca0
sub eax, dword [ebp - 0x7c]
jmp 0x407ca3
and dword [0x410e4c], 0
mov dword [0x410e48], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403e99
add ebp, 0x39c
leave
ret
Function at 0x407ee5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x411048], ebx
push esi
push edi
jne 0x407f65
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e1e4
push edi
call esi
test eax, eax
mov dword [0x411048], eax
je 0x407fa0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41104c], eax
call esi
cmp dword [0x410e54], 2
mov dword [0x411050], eax
jne 0x407f65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x411058], eax
je 0x407f65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x411054], eax
mov eax, dword [0x411054]
test eax, eax
je 0x407faa
call eax
test eax, eax
je 0x407f91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x411058]
test eax, eax
je 0x407f91
test byte [ebp - 8], 1
jne 0x407faa
cmp dword [0x410e60], 4
jb 0x407fa4
or byte [ebp + 0x12], 0x20
jmp 0x407fc9
xor eax, eax
jmp 0x407fd9
or byte [ebp + 0x12], 4
jmp 0x407fc9
mov eax, dword [0x41104c]
test eax, eax
je 0x407fc9
call eax
mov ebx, eax
test ebx, ebx
je 0x407fc9
mov eax, dword [0x411050]
test eax, eax
je 0x407fc9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x411048]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a481
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407a00
mov eax, dword [0x4100c0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x41232c]
mov dword [ebp - 4], eax
jae 0x40a5c4
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x412340]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40a5c4
push 1
push esi
push ebx
call fcn.00407a3d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40a5ce
push 2
push esi
push ebx
call fcn.00407a3d
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a5ce
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a56e
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00403c20
push 0x8000
push ebx
call fcn.0040bf2d
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40a52d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00407ac9
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a54b
sub edi, eax
test edi, edi
jg 0x40a522
jmp 0x40a561
cmp dword [0x410e4c], 5
jne 0x40a55e
mov dword [0x410e48], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040bf2d
pop ecx
pop ecx
jmp 0x40a5ae
jge 0x40a5ae
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00407a3d
push ebx
call fcn.00408cee
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40a5ae
mov dword [0x410e48], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x410e4c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00407a3d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a5d1
mov dword [0x410e48], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00403e99
leave
ret
Function at 0x40a5dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x41232c]
push edi
jae 0x40a7b2
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x412340]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40a7b2
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40a688
test dl, 2
jne 0x40a688
test dl, 0x48
je 0x40a652
cmp byte [eax + 5], 0xa
je 0x40a652
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40a683
mov dword [0x410e4c], ecx
jmp 0x40a7b9
cmp eax, 0x6d
jne 0x40a68f
xor eax, eax
jmp 0x40a7c6
push eax
call fcn.00408b01
pop ecx
jmp 0x40a7c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40a7ad
test eax, eax
je 0x40a6c2
cmp byte [ebx], 0xa
jne 0x40a6c2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40a6cb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40a7a7
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40a797
cmp al, 0xd
je 0x40a6fd
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40a789
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40a717
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40a712
add dword [ebp - 8], 2
jmp 0x40a76b
mov dword [ebp - 8], eax
jmp 0x40a785
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a73f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40a785
cmp dword [ebp - 0x10], 0
je 0x40a785
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40a760
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40a76b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40a788
cmp ebx, dword [ebp + 0xc]
jne 0x40a770
cmp byte [ebp - 1], 0xa
jne 0x40a770
mov byte [ebx], 0xa
jmp 0x40a788
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00407a3d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40a789
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40a6e1
jmp 0x40a7a7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40a7a7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40a7c6
and dword [0x410e4c], 0
mov dword [0x410e48], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd58
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40bd71
or eax, 0xffffffff
jmp 0x40bdd2
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40bdce
push 0x3d
push esi
call fcn.0040c581
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40bdce
cmp esi, eax
je 0x40bdce
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x410e74]
sete cl
cmp eax, dword [0x410e78]
mov dword [ebp - 8], ecx
jne 0x40bdb4
mov edi, eax
call fcn.0040bcf7
mov dword [0x410e74], eax
cmp eax, ebx
jne 0x40be0d
cmp dword [ebp + 0xc], ebx
je 0x40bdd6
cmp dword [0x410e7c], ebx
je 0x40bdd6
call fcn.00409e53
test eax, eax
je 0x40be0d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40bddf
xor eax, eax
jmp 0x40bdd1
push 4
call fcn.00405d37
cmp eax, ebx
pop ecx
mov dword [0x410e74], eax
je 0x40bdce
mov dword [eax], ebx
cmp dword [0x410e7c], ebx
jne 0x40be0d
push 4
call fcn.00405d37
cmp eax, ebx
pop ecx
mov dword [0x410e7c], eax
je 0x40bdce
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x410e74]
call fcn.0040bcaa
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40be6e
cmp dword [esi], ebx
je 0x40be6e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00405668
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40be51
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40beaf
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40be48
mov eax, edi
shl eax, 2
push eax
push dword [0x410e74]
call fcn.0040a7cb
cmp eax, ebx
pop ecx
pop ecx
je 0x40beaf
jmp 0x40beaa
cmp dword [ebp - 8], ebx
jne 0x40bf1a
cmp edi, ebx
jge 0x40be7d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x410e74]
call fcn.0040a7cb
cmp eax, ebx
pop ecx
pop ecx
je 0x40bdce
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x410e74], eax
cmp dword [ebp + 0xc], ebx
je 0x40bf04
push dword [ebp - 4]
call fcn.00403ce0
inc eax
inc eax
push eax
call fcn.00405d37
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40bf04
push dword [ebp - 4]
push esi
call fcn.00403d70
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40befd
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00405668
pop ecx
cmp dword [ebp - 8], ebx
je 0x40bf12
push dword [ebp - 4]
call fcn.00405668
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40bdd1
push dword [ebp - 4]
call fcn.00405668
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40bddb
Function at 0x40c1bb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407a00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c256
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x410e54]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40c256
cmp eax, 1
je 0x40c277
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c256
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c223
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c252
xor eax, eax
inc eax
jmp 0x40c296
cmp edi, eax
jae 0x40c25a
xor eax, eax
jmp 0x40c296
cmp eax, esi
jae 0x40c261
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x410e54]
jmp 0x40c27a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413ac0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a701b
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.004972b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413b42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004949ad
mov eax, dword [eax]
push 0xb71cc0
push eax
call fcn.00486aa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00497541
test bl, bl
je 0x413b42
push 0xb71cc0
lea ecx, [esp + 0xc]
call fcn.0049791d
push 0xb71ccc
lea ecx, [esp + 0xc]
call fcn.0049791d
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 0x413b7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00497541
jmp 0x413c49
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 0x413c02
lea edx, [esp + 0x7c]
push 0xb71cc8
push edx
call fcn.00486aa4
add esp, 8
test eax, eax
je 0x413c02
lea eax, [esp + 0x7c]
push 0xb71cc4
push eax
call fcn.00486aa4
add esp, 8
test eax, eax
je 0x413c02
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 0x413b92
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.00497541
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 0x414450
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 0x4144b2
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 0x4144c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a709b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xb7dae0]
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 0x4145f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00497541
xor eax, eax
jmp 0x41466f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004976ca
push esi
lea ecx, [esp + 0xc]
call fcn.00497959
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 0x41464d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00414450
test eax, eax
jne 0x41464d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00414450
test eax, eax
jne 0x41464d
lea eax, [esp + 0x14]
push 0xb71cdc
push eax
call fcn.00487c90
mov esi, eax
add esp, 8
test esi, esi
jne 0x41462c
lea ecx, [esp + 0x14]
push 0xb71cd8
push ecx
call fcn.00487c10
mov esi, eax
add esp, 8
test esi, esi
jne 0x41462c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41462f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049767a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41453e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00497541
xor eax, eax
jmp 0x41466f
mov byte [esi], 0
push 0xb71cd4
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.00497541
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 0x4270b0
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 0x42711e
cmp si, 0x69
ja 0x42711e
add esi, 0xffd0
cmp si, 0x11
je 0x4270ee
push 0x11
call edi
test ax, ax
jge 0x4270ee
or esi, 0x2000
cmp si, 0x10
je 0x427103
push 0x10
call edi
test ax, ax
jge 0x427103
or esi, 0x4000
cmp si, 0x12
je 0x427118
push 0x12
call edi
test ax, ax
jge 0x427118
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42712b
mov esi, 0xbd
jmp 0x4270df
cmp si, 0x6e
jne 0x427138
mov esi, 0xbe
jmp 0x4270df
cmp si, 0x6f
jne 0x4270d9
mov esi, 0xbf
jmp 0x4270df

Function at 0x4289b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb8eb00]
xor edx, edx
cmp eax, edx
jne 0x4289d6
xor eax, eax
mov byte [eax + 0xb8ea00], al
inc eax
cmp eax, 0x100
jl 0x4289be
mov dword [0xb8eb00], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb8ea00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x428a67
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 0x428a3a
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 0x428a08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x428ae0
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 0x428b33
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 0x428b1a
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