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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [0x42dc4c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [edx + 4], eax
js 0x407edc
mov ecx, dword [edx]
mov byte [ecx], 0x20
inc dword [edx]
cmp byte [esi + 0x138], 0
je 0x407e9d
xor ebx, ebx
jmp 0x407d6c
mov eax, dword [edx]
inc ebx
mov byte [eax], cl
inc dword [edx]
cmp ebx, 9
jg 0x407db0
mov eax, dword [esi + 0x24]
mov ecx, dword [0x42dc6c]
lea edx, [eax + eax*4]
shl edx, 2
add edx, ecx
movsx ecx, byte [edx + ebx - 0x14]
mov edx, dword [0x42dc4c]
mov eax, dword [edx + 4]
dec eax
test eax, eax
mov dword [edx + 4], eax
jns 0x407d60
mov dword [esp + 4], edx
inc ebx
mov dword [esp], ecx
call sym.__flsbuf
cmp ebx, 9
jle 0x407d6c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x429d88
mov eax, dword [0x42dc4c]
mov ecx, 2
mov dword [esp + 8], ecx
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
call sym._fwrite
mov ebx, dword [0x42d24c]
cmp edi, ebp
mov dword [0x42d2ec], ebx
mov ebx, edi
jmp 0x407e41
mov eax, 0x66666667
imul ebx
mov eax, ebx
mov ecx, edx
sar ecx, 2
cdq
sub ecx, edx
lea eax, [ecx + ecx*4]
add eax, eax
cmp ebx, eax
sete dl
xor ecx, ecx
cmp ebx, edi
setne cl
test ecx, edx
je 0x407e32
mov edx, dword [0x42dc4c]
mov ecx, dword [edx + 4]
dec ecx
mov dword [edx + 4], ecx
test ecx, ecx
js 0x407ec7
mov eax, dword [edx]
mov byte [eax], 0x20
inc dword [edx]
mov dword [esp + 4], ebx
inc ebx
mov dword [esp], esi
call sym._prot_reconstr
cmp ebx, ebp
jle 0x407df0
mov edx, dword [0x42dc4c]
mov ebx, dword [edx + 4]
dec ebx
mov dword [edx + 4], ebx
test ebx, ebx
js 0x407ef1
mov ecx, dword [edx]
mov byte [ecx], 0xa
inc dword [edx]
cmp byte [esi + 0x138], 0
jne 0x407e89
mov ebx, dword [esi]
jmp 0x407e85
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov edx, dword [ebx + 4]
mov dword [esp], edx
call sym._rectrav
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x407e70
mov esi, dword [0x42d2ec]
mov dword [0x42d79c], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + 0x24]
mov edx, 0x429d0a
mov eax, dword [0x42dc7c]
mov dword [esp + 4], edx
mov ebx, dword [0x42dc4c]
sub ecx, eax
mov dword [esp + 8], ecx
mov dword [esp], ebx
call sym._fprintf
jmp 0x407db0
mov dword [esp + 4], edx
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x407e32
mov dword [esp + 4], edx
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x407d4f
mov dword [esp + 4], edx
mov dword [esp], 0xa
call sym.__flsbuf
jmp 0x407e5f
Function at 0x40c9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov edi, dword [esp + 0x18]
mov byte [esp + 3], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebp, dword [0x42dafc]
jmp 0x40c9d4
inc ebx
cmp ebx, edi
setge dl
or byte [esp + 3], dl
jne 0x40ca50
mov eax, dword [esi + ebx*4 - 4]
test eax, eax
jg 0x40c9c4
cmp ecx, ebx
jg 0x40c9e3
lea ecx, [ebx + 1]
cmp ecx, edi
jg 0x40ca56
mov esi, esi
lea edi, [edi]
mov eax, dword [esi + ecx*4 - 4]
test eax, eax
setg byte [esp + 2]
inc ecx
movzx eax, byte [esp + 2]
xor edx, edx
xor al, 1
cmp ecx, edi
setle dl
test edx, eax
jne 0x40c9f0
cmp byte [esp + 2], 0
je 0x40ca56
dec ecx
mov edx, dword [ebp + ebx*4 - 4]
mov eax, dword [ebp + ecx*4 - 4]
cmp ebx, edi
mov dword [ebp + ebx*4 - 4], eax
mov dword [ebp + ecx*4 - 4], edx
mov edx, dword [esi + ebx*4 - 4]
mov eax, dword [esi + ecx*4 - 4]
mov dword [esi + ebx*4 - 4], eax
mov dword [esi + ecx*4 - 4], edx
setge dl
or byte [esp + 3], dl
je 0x40c9d4
jmp 0x40ca50
pop ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 3], 1
jmp 0x40c9c5
Function at 0x41a410
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
jge 0x41a451
nop
lea esi, [esi]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + eax*4], 9
jle 0x41a44c
mov bl, 1
inc eax
cmp eax, ebp
jl 0x41a440
mov dword [esp + 8], edx
mov edi, str._n_____s_are_weighted_as_follows:
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._fprintf
test bl, bl
jne 0x41a5c9
mov eax, dword [esi + 4]
dec eax
test eax, eax
mov dword [esi + 4], eax
js 0x41a61c
mov ecx, dword [esi]
mov byte [ecx], 0xa
inc dword [esi]
xor edi, edi
cmp edi, ebp
jge 0x41a58a
nop
mov eax, 0x88888889
imul edi
mov eax, edi
sar eax, 0x1f
lea edx, [edi + edx]
sar edx, 5
sub edx, eax
mov ebx, edx
shl ebx, 4
sub ebx, edx
shl ebx, 2
cmp edi, ebx
jne 0x41a500
mov ecx, dword [esi + 4]
dec ecx
test ecx, ecx
mov dword [esi + 4], ecx
js 0x41a5f0
mov ebx, dword [esi]
mov byte [ebx], 0xa
inc dword [esi]
mov ebx, 0xc
jmp 0x41a4da
mov eax, dword [esi]
mov byte [eax], 0x20
inc dword [esi]
dec ebx
js 0x41a500
mov edx, dword [esi + 4]
dec edx
test edx, edx
mov dword [esi + 4], edx
jns 0x41a4d0
mov dword [esp + 4], esi
mov dword [esp], 0x20
call sym.__flsbuf
dec ebx
jns 0x41a4da
nop
lea esi, [esi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea ebx, [edi + edx]
mov eax, dword [ecx + ebx*4]
cmp eax, 9
jg 0x41a5b5
mov dword [esp + 8], eax
mov eax, 0x42ac0a
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._fprintf
lea ebx, [edi + 1]
mov eax, 0x66666667
imul ebx
mov ecx, ebx
sar ecx, 0x1f
mov eax, edx
sar eax, 1
sub eax, ecx
lea edi, [eax + eax*4]
cmp ebx, edi
jne 0x41a580
mov eax, 0x88888889
imul ebx
lea edx, [ebx + edx]
sar edx, 5
sub edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
shl ecx, 2
cmp ebx, ecx
je 0x41a580
mov edi, dword [esi + 4]
dec edi
test edi, edi
mov dword [esi + 4], edi
js 0x41a605
mov eax, dword [esi]
mov byte [eax], 0x20
inc dword [esi]
nop
lea esi, [esi]
mov edi, ebx
cmp edi, ebp
jl 0x41a490
mov dword [esp + 0x3c], esi
mov ebx, 2
mov ebp, 1
mov dword [esp + 0x38], ebx
mov esi, 0x42ac7d
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fwrite
mov dword [esp + 4], esi
add eax, 0x37
mov dword [esp], eax
call sym._fputc
jmp 0x41a52c
mov dword [esp + 0xc], esi
mov edx, 0x18
mov ebx, 1
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], str.__A__10__B__11__etc.__n
call sym._fwrite
jmp 0x41a484
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sym.__flsbuf
jmp 0x41a4c8
mov dword [esp + 4], esi
mov edi, ebx
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x41a582
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sym.__flsbuf
jmp 0x41a484
Function at 0x41a640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, str._n_____s_are:_n
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp], ebx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edx
call sym._fprintf
cmp edi, ebp
jge 0x41a76a
lea esi, [esi]
mov eax, 0x88888889
imul edi
mov eax, edi
sar eax, 0x1f
lea edx, [edi + edx]
sar edx, 5
sub edx, eax
mov esi, edx
shl esi, 4
sub esi, edx
shl esi, 2
cmp edi, esi
jne 0x41a6f0
mov ecx, dword [ebx + 4]
dec ecx
test ecx, ecx
mov dword [ebx + 4], ecx
js 0x41a795
mov esi, dword [ebx]
mov byte [esi], 0xa
inc dword [ebx]
mov esi, 0xc
jmp 0x41a6ca
mov eax, dword [ebx]
mov byte [eax], 0x20
inc dword [ebx]
dec esi
js 0x41a6f0
mov edx, dword [ebx + 4]
dec edx
test edx, edx
mov dword [ebx + 4], edx
jns 0x41a6c0
mov dword [esp + 4], ebx
mov dword [esp], 0x20
call sym.__flsbuf
dec esi
jns 0x41a6ca
nop
lea esi, [esi]
mov edx, dword [esp + 0x18]
mov ecx, 0x42ac0a
mov esi, dword [edx + edi*4]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], esi
lea esi, [edi + 1]
call sym._fprintf
mov eax, 0x66666667
mov ecx, esi
imul esi
sar ecx, 0x1f
mov eax, edx
sar eax, 2
sub eax, ecx
lea edi, [eax + eax*4]
add edi, edi
cmp esi, edi
jne 0x41a760
mov eax, 0x88888889
imul esi
lea eax, [esi + edx]
sar eax, 5
sub eax, ecx
mov edi, eax
shl edi, 4
sub edi, eax
shl edi, 2
cmp esi, edi
je 0x41a760
mov ecx, dword [ebx + 4]
dec ecx
test ecx, ecx
mov dword [ebx + 4], ecx
js 0x41a7aa
mov edx, dword [ebx]
mov byte [edx], 0x20
inc dword [ebx]
lea esi, [esi]
mov edi, esi
cmp edi, ebp
jl 0x41a680
mov dword [esp + 0x3c], ebx
mov esi, 2
mov ebp, 1
mov dword [esp + 0x38], esi
mov ebx, 0x42ac7d
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fwrite
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sym.__flsbuf
jmp 0x41a6b8
mov dword [esp + 4], ebx
mov edi, esi
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x41a762
Function at 0x41a970
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [0x42dc4c]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [edx + 4], eax
js 0x41aae8
mov ecx, dword [edx]
mov byte [ecx], 0xa
inc dword [edx]
lea ecx, [ebx - 1]
mov edx, 0x66666667
mov eax, ecx
imul edx
mov esi, ecx
sar esi, 0x1f
sar edx, 2
sub edx, esi
add edx, ebx
mov ebx, edx
shr ebx, 0x1f
add edx, ebx
sar edx, 1
lea esi, [edx + 5]
cmp esi, 8
jg 0x41aaae
mov esi, 9
mov dword [esp], str.Name
mov edx, dword [0x42dc4c]
mov ecx, 4
mov dword [esp + 8], ecx
mov ebx, 1
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
call sym._fwrite
test esi, esi
jle 0x41aa1f
mov ebx, esi
nop
mov edx, dword [0x42dc4c]
mov eax, dword [edx + 4]
dec eax
mov dword [edx + 4], eax
test eax, eax
js 0x41aac1
mov ecx, dword [edx]
mov byte [ecx], 0x20
inc dword [edx]
dec ebx
jne 0x41aa00
mov dword [esp + 8], edi
mov eax, dword [0x42dc4c]
mov ecx, 0x42acb9
mov dword [esp + 4], ecx
mov ebx, 4
mov edi, 1
mov dword [esp], eax
call sym._fprintf
mov dword [esp + 8], ebx
mov edx, dword [0x42dc4c]
mov dword [esp + 4], edi
mov dword [esp], str.____
mov dword [esp + 0xc], edx
call sym._fwrite
test esi, esi
jle 0x41aa8b
mov ebx, esi
mov esi, esi
lea edi, [edi]
mov edx, dword [0x42dc4c]
mov esi, dword [edx + 4]
dec esi
mov dword [edx + 4], esi
test esi, esi
js 0x41aad6
mov edi, dword [edx]
mov byte [edi], 0x20
inc dword [edx]
dec ebx
jne 0x41aa70
mov dword [esp + 0x38], ebp
mov ebp, dword [0x42dc4c]
mov ebx, str._s_n_n
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fprintf
cmp esi, 0x25
jle 0x41a9d1
mov esi, 0x25
jmp 0x41a9d1
mov dword [esp + 4], edx
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x41aa1c
mov dword [esp + 4], edx
mov dword [esp], 0x20
call sym.__flsbuf
jmp 0x41aa88
mov dword [esp + 4], edx
mov dword [esp], 0xa
call sym.__flsbuf
jmp 0x41a99f
Function at 0x4242c0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x5c
cmp byte [0x42dc1c], 0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
jne 0x4242e1
cmp byte [0x42dbbc], 0
je 0x424310
mov eax, dword [0x42db8c]
lea edi, [esp + 0x30]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
test eax, eax
jne 0x424330
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
add esp, 0x5c
ret
mov dword [esp], 0x42c0be
call sym._puts
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
add esp, 0x5c
ret
movsx esi, word [esp + 0x32]
mov ecx, 0x20
mov edx, dword [0x42db8c]
movsx ebx, word [esp + 0x30]
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0xc], eax
imul ebx, esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
call sub.KERNEL32.dll_FillConsoleOutputCharacterA
mov eax, dword [0x42db8c]
sub esp, 0x14
mov dword [esp + 4], edi
xor edi, edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
mov dword [esp + 0x10], esi
movzx esi, word [esp + 0x38]
mov dword [esp + 8], ebx
mov ebx, dword [0x42db8c]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_FillConsoleOutputAttribute
mov edx, dword [0x42db8c]
sub esp, 0x14
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.KERNEL32.dll_SetConsoleCursorPosition
sub esp, 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
add esp, 0x5c
ret
Function at 0x40158f
Capabilities:
Enumerate pe sections
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
push edi
call sub.KERNEL32.dll_GetTickCount
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA

Function at 0x4015b0
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [ebp - 0x104], 0
jne 0x4016ff
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
rcl byte [edi - 0x73], cl
inc esp
or byte [eax], bl
cmp byte [ebp - 0x104], 0
jne 0x40188e
add byte [eax], al
add byte [ebx - 0x3ca2e73c], al
int3
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetFileAttributesExA
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov ecx, dword [0x423dd2]
inc ecx
cdq
idiv ecx
mov edi, eax
and edi, 0xffffffa8
mov dword [ebp - 0x108], edi
or esi, esi
jne 0x4019d7
or ebp, dword [eax]
add dword [eax], eax
add bh, bh
jne 0x4018dc
push edx
jmp 0x4018e6
pop ss
push 0x100
push dword [ebp + 0xc]
push ecx
push dword [0x662a2010]
call dword [0x662a1034]
jmp 0x4018fc
pop esi
pop ebp
ret 8
mov eax, dword [ebp - 0x108]
pop edi
pop esi
leave
ret
Function at 0x415190
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47251b
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.00466de6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415212
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00464b30
mov eax, dword [eax]
push 0x4a7210
push eax
call fcn.004576e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00467071
test bl, bl
je 0x415212
push 0x4a7210
lea ecx, [esp + 0xc]
call fcn.00467401
push 0x4aad8c
lea ecx, [esp + 0xc]
call fcn.00467401
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 0x41524e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00467071
jmp 0x415319
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 0x4152d2
lea edx, [esp + 0x7c]
push 0x4aad88
push edx
call fcn.004576e4
add esp, 8
test eax, eax
je 0x4152d2
lea eax, [esp + 0x7c]
push 0x4aad84
push eax
call fcn.004576e4
add esp, 8
test eax, eax
je 0x4152d2
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 0x415262
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.00467071
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 0x415b10
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 0x415b72
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 0x415b80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47259b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b1304]
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 0x415cb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x415be6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00467071
xor eax, eax
jmp 0x415d2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004671ae
push esi
lea ecx, [esp + 0xc]
call fcn.0046743d
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 0x415d0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00415b10
test eax, eax
jne 0x415d0d
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.00415b10
test eax, eax
jne 0x415d0d
lea eax, [esp + 0x14]
push 0x4aada0
push eax
call fcn.004587f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x415cec
lea ecx, [esp + 0x14]
push 0x4aad9c
push ecx
call fcn.00458770
mov esi, eax
add esp, 8
test esi, esi
jne 0x415cec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x415cef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046715e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x415bfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00467071
xor eax, eax
jmp 0x415d2f
mov byte [esi], 0
push 0x4aad98
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.00467071
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 0x427690
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 0x4276fe
cmp si, 0x69
ja 0x4276fe
add esi, 0xffd0
cmp si, 0x11
je 0x4276ce
push 0x11
call edi
test ax, ax
jge 0x4276ce
or esi, 0x2000
cmp si, 0x10
je 0x4276e3
push 0x10
call edi
test ax, ax
jge 0x4276e3
or esi, 0x4000
cmp si, 0x12
je 0x4276f8
push 0x12
call edi
test ax, ax
jge 0x4276f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42770b
mov esi, 0xbd
jmp 0x4276bf
cmp si, 0x6e
jne 0x427718
mov esi, 0xbe
jmp 0x4276bf
cmp si, 0x6f
jne 0x4276b9
mov esi, 0xbf
jmp 0x4276bf

Function at 0x429160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c1a10]
xor edx, edx
cmp eax, edx
jne 0x429186
xor eax, eax
mov byte [eax + 0x4c1910], al
inc eax
cmp eax, 0x100
jl 0x42916e
mov dword [0x4c1a10], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c1910
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x429217
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 0x4291ea
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 0x4291b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429290
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 0x4292e3
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 0x4292ca
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
Function at 0x42fd20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42feb8
cmp ebp, ebx
jle 0x42feb8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42fd7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42fd85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42fd94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42fd9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00466db2
add esp, 4
cmp eax, ebx
je 0x42fdbc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00466db2
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42feae
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42fe95
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42fe81
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42fe76
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42fe84
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42fe84
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42fe20
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42fe11
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret