joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a965
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a8e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41aad4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41aad4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41aa89
jg 0x41a9c1
test eax, eax
je 0x41aa7f
push 1
push 0x1000
call fcn.0040e28f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a9e4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41aa76
push 0x8000
push ebx
call fcn.0040c655
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41aa0d
jg 0x41aa08
cmp ecx, 0x1000
jb 0x41aa0d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00410870
add esp, 0x10
cmp eax, 0xffffffff
je 0x41aa52
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41aa08
jl 0x41aa39
test ecx, ecx
jne 0x41a9fa
push dword [ebp - 0xc]
push ebx
call fcn.0040c655
push esi
call fcn.0040df10
add esp, 0xc
xor ebx, ebx
jmp 0x41aae2
cmp byte [edi + 0x24], 0
je 0x41aa69
cmp dword [edi + 0x20], 5
jne 0x41aa69
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41aa74
mov ebx, dword [edi + 0x18]
jmp 0x41aa76
xor ebx, ebx
push esi
call fcn.0040df10
pop ecx
jmp 0x41aae2
test ecx, ecx
jg 0x41aa4b
jl 0x41aa89
test eax, eax
jae 0x41aa4b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416ac0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41aaa9
cmp byte [edi + 0x1c], 0
je 0x41aa4b
jmp 0x41aada
push ebx
call fcn.00412a00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41aa4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41aae2
cmp byte [edi + 0x1c], 0
je 0x41aadf
mov ebx, dword [edi + 0x18]
jmp 0x41aae2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416ac0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c5e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c60d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c60d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xa86ab0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xaf197c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa86ae3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xa86b2a
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa86b83
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xa86b48
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xa86bb7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xabe23b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xabe23a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa86b90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa876d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa8770b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xaa12e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aa0fa9

Function at 0xaa860c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aa848b

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xfac86d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
clc
pushfd
clc
pushfd
add ecx, edx
pushal
bt sp, bp
pushfd
mov dword [esp + 0x2c], ecx
clc
mov ecx, dword [ebp + 4]
pushfd
push ecx
cmp ecx, 0xffff
mov dword [esp + 4], 0xe02a8af9
mov word [esp], 0x1531
pushfd
lea esp, [esp + 0x38]
jbe 0xfac50a
sbb edi, 0xcbcfbf2a
adc edi, ebp
mov edi, dword [edx + 0x24]
not si
bsf si, di
movzx si, bl
add edi, eax
sub si, ax
mov esi, dword [edx + 0x20]
adc ax, 0xb74b
bt cx, cx
push ebp
cmc
push esi
not ax
pushfd
ror al, cl
mov dword [esp], edi
movzx bp, bl
stc
xchg bp, ax
push ebx
movsx ax, cl
push edx
sal al, cl
shld eax, ebp, cl
ror al, cl
stc
push edx
bsf eax, eax
lea ebp, [esp + 0x1c]
shl ax, cl
bsr ax, ax
mov eax, dword [ebp]
bt dx, 0xd
cmc
test eax, eax
pushfd
lea esp, [esp + 4]
je 0x19d67f2
movzx dx, dl
mov esi, dword [eax + 0x3c]
shl dl, cl
je 0x19d43dd
add esi, eax
rcl edx, 0xd
btr edx, 0x1b
shl dh, 7
not dh
mov edx, dword [esi + 0x78]
call fcn.01a1c472
xor dl, bl
bsr dx, bp
add esi, eax
not dx
sub dx, 0x90a7
mov edx, dword [esi + 0x78]
cmp si, di
test edx, edx
pushal
push edi
push ebp
lea esp, [esp + 0x28]
je 0x19d67f2
bswap cx
not ch
lea ecx, [edx + 0xaee9762]
pushfd
add edx, eax
bswap ecx
pop ecx
mov ecx, dword [esi + 0x7c]
bt esp, ebx
cmc
cmp al, 0xae
jl 0xfa93fb
add ecx, edx
jae 0xfa9084
mov dword [esp], ecx
not ecx
btr cx, 0xc
sal cl, cl
jne 0x19d5e96
mov ecx, dword [ebp + 4]
pushfd
test cl, 7
mov byte [esp], 0xf7
push ebx
cmp ecx, 0xffff
jmp fcn.01a16c82
bswap cx
movsx cx, al
rol cl, cl
mov ecx, dword [ebp + 4]
cmp dh, 0xa5
bt sp, dx
clc
cmp ecx, 0xffff
pushal
call fcn.00fada73
push 0xc3373f26
call fcn.01a1cfb8
pop ecx
wait
jl 0x19d5e9c
enter 0xffffffffffffc1d2, 0xffffffffffffff8b
dec ebp
add al, 0x80
invalid
Function at 0x6d1c932c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d1d54cc]
jne 0x6d1c9336
repz ret
jmp fcn.6d1c99bc

Function at 0x4162b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4162ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4162d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4162c0
mov eax, 1
add ebx, ebx
jne 0x4162e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162d8
jne 0x4162f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162d8
xor ecx, ecx
sub eax, 3
jb 0x416308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41637a
mov ebp, eax
add ebx, ebx
jne 0x416313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416344
inc ecx
add ebx, ebx
jne 0x416330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416325
jne 0x416341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416355
jmp 0x4162c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416364
add edi, ecx
jmp 0x4162c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0x4163bd
mov dword [ebx], eax
add ebx, 4
jmp 0x41639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163f4
cmp al, 0xef
ja 0x4163e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416428
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x79d2dc7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x79d2dc86
pushal
call 0x79d2dc8c
pop ebp
sub ebp, 0x10
sub ebp, 0x39dc7c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x79d2dcb0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x79d2dcb9
mov eax, 0x39dc7c
add eax, ebp
add eax, 0x63
mov ecx, 0x60e
mov edx, 0xaad8142b
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d2dcd0
jmp 0x79d2dce3
mov al, byte [0x17a2a0e6]
sub ebp, dword [ebx]
sub ebp, dword [edx + 0x2b2bd3ea]
sub ebp, dword [eax]
out 0x93, al
sub byte [ebx], ch
sub ebp, dword [ebx]
xchg ecx, eax
add ebp, dword [ebx]
sub ebp, dword [ebx]
fmul st(1), st(0)
sub bl, ah
mov al, byte [0x2b2b27aa]
sub ebp, dword [eax]
out dx, al
cmpsb byte [esi], byte es:[edi]
dec edi
invalid

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4f03f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4f5494]
cmp dword [eax + 0x28], 0
jne 0x4f0408
xor eax, eax
jmp 0x4f0537
mov ecx, dword [0x4f5414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x4f5408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x4f5404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x4f5408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x4f5404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x4f548c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x4f4604
push 0x4f4620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x4f5400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004f0330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x4f03c0
mov edx, dword [0x4f5494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4f540c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4f0537
cmp dword [ebp - 0x38], 0x12
jne 0x4f052b
mov dword [0x4f541c], 0
call fcn.004f0540
xor eax, eax
jmp 0x4f0537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4f04fc
mov esp, ebp
pop ebp
ret 4

Function at 0x4f1840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4f220c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4f4118
sub eax, eax
test esi, esi
je 0x4f22e4
sub eax, 1
test ecx, ecx
je 0x4f22e2
test esi, 3
je 0x4f224a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4f222f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x4f22c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4f2254
mov ecx, edx
test ecx, ecx
je 0x4f22e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4f22cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4f22ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004f236f
jae 0x4f22fa
xor ecx, ecx
call fcn.004f236f
jae 0x4f2329
xor eax, eax
call fcn.004f236f
jae 0x4f2339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004f236f
adc al, al
jae 0x4f231b
jne 0x4f2365
stosb byte es:[edi], al
jmp 0x4f22fd
call fcn.004f237b
sub ecx, ebx
jne 0x4f2342
call fcn.004f2379
jmp 0x4f2361
lodsb al, byte [esi]
shr eax, 1
je 0x4f238b
adc ecx, ecx
jmp 0x4f235e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004f2379
cmp eax, 0x7d00
jae 0x4f235e
cmp ah, 5
jae 0x4f235f
cmp eax, 0x7f
ja 0x4f2360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f22fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4f2c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f5000]
jne 0x4f2c86
repz ret
jmp fcn.004f2f2d
Function at 0x41afb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49df9b
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.00492506
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41b032
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048fb0f
mov eax, dword [eax]
push 0x4cacdc
push eax
call fcn.00481cd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00492791
test bl, bl
je 0x41b032
push 0x4cacdc
lea ecx, [esp + 0xc]
call fcn.00492b21
push 0x4cace8
lea ecx, [esp + 0xc]
call fcn.00492b21
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 0x41b06e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00492791
jmp 0x41b139
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 0x41b0f2
lea edx, [esp + 0x7c]
push 0x4cace4
push edx
call fcn.00481cd4
add esp, 8
test eax, eax
je 0x41b0f2
lea eax, [esp + 0x7c]
push 0x4cace0
push eax
call fcn.00481cd4
add esp, 8
test eax, eax
je 0x41b0f2
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 0x41b082
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.00492791
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 0x41b930
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 0x41b992
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 0x41b9a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e01b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d4cf0]
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 0x41bad8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41ba06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00492791
xor eax, eax
jmp 0x41bb4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004928ce
push esi
lea ecx, [esp + 0xc]
call fcn.00492b5d
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 0x41bb2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041b930
test eax, eax
jne 0x41bb2d
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 SysReAllocString
mov ecx, edi
call fcn.0041b930
test eax, eax
jne 0x41bb2d
lea eax, [esp + 0x14]
push 0x4cacf8
push eax
call fcn.00482e20
mov esi, eax
add esp, 8
test esi, esi
jne 0x41bb0c
lea ecx, [esp + 0x14]
push 0x4cacf4
push ecx
call fcn.00482da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41bb0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41bb0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049287e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41ba1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00492791
xor eax, eax
jmp 0x41bb4f
mov byte [esi], 0
push 0x4cacf0
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.00492791
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 0x42edc0
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 0x42ee2e
cmp si, 0x69
ja 0x42ee2e
add esi, 0xffd0
cmp si, 0x11
je 0x42edfe
push 0x11
call edi
test ax, ax
jge 0x42edfe
or esi, 0x2000
cmp si, 0x10
je 0x42ee13
push 0x10
call edi
test ax, ax
jge 0x42ee13
or esi, 0x4000
cmp si, 0x12
je 0x42ee28
push 0x12
call edi
test ax, ax
jge 0x42ee28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42ee3b
mov esi, 0xbd
jmp 0x42edef
cmp si, 0x6e
jne 0x42ee48
mov esi, 0xbe
jmp 0x42edef
cmp si, 0x6f
jne 0x42ede9
mov esi, 0xbf
jmp 0x42edef

Function at 0x430700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e55e8]
xor edx, edx
cmp eax, edx
jne 0x430726
xor eax, eax
mov byte [eax + 0x4e54e8], al
inc eax
cmp eax, 0x100
jl 0x43070e
mov dword [0x4e55e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e54e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4307b7
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 0x43078a
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 0x430758
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x430830
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 0x430883
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 0x43086a
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