joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e3a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x1005f040]
xor eax, esp
mov dword [esp + 0x2c], eax
movaps xmm0, xmmword [0x1005a500]
xor edx, edx
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0x29273a3b
movaps xmm0, xmmword [0x1005a0e0]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0x222e0a6d
mov dword [esp + 0x28], 0x100523a
mov al, dl
add al, 0x29
xor byte [esp + edx], al
inc edx
cmp edx, 0x2a
jb 0x1003e3ed
push ecx
lea eax, [esp + 4]
mov byte [esp + 0x2f], 0
push eax
mov edx, 0x1010caa4
call fcn.1003451c
pop ecx
pop ecx
test al, al
je 0x1003e45a
mov eax, dword [0x1010caa4]
sub eax, 0
je 0x1003e44f
sub eax, 1
je 0x1003e448
sub eax, 1
je 0x1003e441
sub eax, 1
je 0x1003e43a
sub eax, 1
jne 0x1003e456
call fcn.1004736a
jmp 0x1003e456
call fcn.100479d4
jmp 0x1003e456
call fcn.100467e2
jmp 0x1003e456
call fcn.10046e5e
jmp 0x1003e456
xor ecx, ecx
call fcn.10045e6c
mov al, 1
jmp 0x1003e45c
xor al, al
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1004caf7
mov esp, ebp
pop ebp
ret
Function at 0x10040e0c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x10040e29
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x33
jb 0x10040e17
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x10040e2b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x10040e51
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x1a4
jb 0x10040e39
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x10040e53
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x10040e70
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x2b
jb 0x10040e5e
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x10040e72
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x10040e8f
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x21
jb 0x10040e7d
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x10040e91
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x10040eae
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x67
jb 0x10040e9c
mov byte [esi + 0x68], 0
pop esi
ret

Function at 0x10040eb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x10040ecd
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x40
jb 0x10040ebb
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x10040ecf
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x10040ef5
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x8a
jb 0x10040edd
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x10040ef7
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x10040f14
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x29]
xor byte [ecx], al
inc edx
cmp edx, 0x2a
jb 0x10040f02
mov byte [esi + 0x2b], 0
pop esi
ret
Function at 0x1004dbc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1004dd70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004dc8d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005f090]
jb 0x1004dc0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005f094]
ja 0x1004dc0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004dbda
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004dc30
jmp 0x1004dc8d
cmp dword [ebp - 0x14], 0x10000
jne 0x1004dc73
cmp dword [ebp - 0x18], 0x10000
jb 0x1004dc73
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004dc66
mov eax, dword [ebp - 8]
jmp 0x1004dc8f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004dc88
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004dd70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004dbda
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004dca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004dda0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004dd65
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005f090]
jb 0x1004dce5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005f094]
ja 0x1004dce5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004dcb5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004dd0b
jmp 0x1004dd65
cmp dword [ebp - 0x14], 0x10000
jne 0x1004dd4e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004dd4e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004dd41
mov eax, dword [ebp - 8]
jmp 0x1004dd67
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004dd60
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004dda0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004dcb5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001128
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, 0x100
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x864]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10010b8
mov edi, 0x400
push 0x80000002
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10010b0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x864]
push eax
push edi
push 0x10010a8
push 0x100109c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x100108c
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x40ea42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40ea51
pop dword [ebp - 0x2c]
mov eax, 0x698e08b7
sub eax, 0x694d1e66
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x4e109
push 0
mov eax, 0x58064db3
add eax, 0xa83e6509
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x1d0f91de
sub ecx, 0x1d0f516e
mov edi, eax
mov ebx, 0x487e00
add ebx, dword [ebp - 0x2c]
mov edx, 0xc4f301c4
xor dword [ebp - 0x20], ebx
mov esi, dword [ebx]
mov dword [ebp - 0xc], 0xdda58bd0
xor esi, edx
xor dword [ebp - 0xc], 0x73ff4ebf
mov dword [edi], esi
sub dword [ebp - 8], 0xbedfbafb
add edi, 0xac517a1c
sub edi, 0xac517a18
add ebx, 0x9e966a02
add ebx, 0x61699602
loop 0x40eaa4
add eax, 0xa2fcb4c5
sub eax, 0xa2fbc032
mov ebx, eax
add eax, 0x557bb040
sub eax, 0x557bb03b
mov ecx, 0x4e7c1d19
sub ecx, 0x4e3c1d19
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1173a85
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov edi, dword [0x138327c]
mov ecx, edi
xor ebx, ebx
xor esi, esi
call fcn.0117e3f2
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov dword [ebp + esi*4 - 0x410], esi
inc esi
movzx eax, byte [edx + edi]
mov dword [ebp + esi*4 - 0x814], eax
cmp esi, 0x100
jl 0x1173aa4
xor edx, edx
mov ecx, dword [ebp + edx - 0x810]
lea eax, [ebp + edx - 0x410]
mov esi, dword [eax]
add ecx, esi
add ebx, ecx
and ebx, 0x800000ff
jns 0x1173aeb
dec ebx
or ebx, 0xffffff00
inc ebx
lea ecx, [ebp + ebx*4 - 0x410]
mov edi, dword [ecx]
add edx, 4
mov dword [eax], edi
mov dword [ecx], esi
cmp edx, 0x400
jl 0x1173ac7
mov ecx, dword [ebp + 8]
call fcn.0117e3f2
mov ebx, eax
lea eax, [ebx + 1]
push eax
call dword [0x117f010]
xor esi, esi
xor edi, edi
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
cmp ebx, esi
jle 0x1173bc1
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
inc esi
and esi, 0x800000ff
jns 0x1173b47
dec esi
or esi, 0xffffff00
inc esi
lea eax, [ebp + esi*4 - 0x410]
mov ecx, dword [eax]
add edi, ecx
and edi, 0x800000ff
jns 0x1173b62
dec edi
or edi, 0xffffff00
inc edi
lea edx, [ebp + edi*4 - 0x410]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x1173b81
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0xc]
mov cl, byte [edx]
movzx ebx, cl
lea eax, [ebp + eax*4 - 0x410]
cmp dword [eax], ebx
jne 0x1173b9c
mov eax, dword [ebp - 4]
mov byte [eax + edx], cl
jmp 0x1173ba6
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
inc dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp - 0xc], edx
call fcn.0117e3f2
cmp dword [ebp - 8], eax
jl 0x1173b36
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
pop edi
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 0xc]
pop esi
mov dword [ecx], eax
pop ebx
leave
ret

Function at 0x1174fa3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0x40
push 0
push esi
call fcn.01175532
add esp, 0x10
test eax, eax
jne 0x1174fc3
xor eax, eax
inc eax
jmp 0x1175059
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1175056
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1175056
push dword [ebp + 8]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call fcn.01175532
add esp, 0x10
test eax, eax
je 0x1174fbb
cmp dword [edi], 0x4550
jne 0x1175056
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x1175056
movzx eax, word [esi + 0x46]
test ax, ax
je 0x1175056
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.0117e38d
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x117502b
push 3
jmp 0x1175058
push dword [ebp + 8]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.01175532
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x1175059
push 2
pop eax
pop edi
pop ebp
ret
Function at 0x117e400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x117fbe1
mov esi, edi
call str.5l18
push dword [0x13831f8]
lea esi, [ebp - 0x10]
call str.5l18
lea eax, [ebp - 0x24]
push eax
call dword [0x1383704]
mov ecx, dword [ebp - 0x16]
and dword [ebp - 4], 0
imul ecx, ecx, 5
cmp dword [ebp + 8], 0
mov word [0x13835d0], cx
jle 0x117e492
movzx esi, cx
push ebx
mov eax, esi
shr eax, 2
xor eax, esi
shr eax, 1
xor eax, esi
shr eax, 2
xor eax, esi
and eax, 1
mov dword [0x13835d4], eax
shl eax, 0xf
shr cx, 1
or cx, ax
movzx esi, cx
xor edx, edx
push 0xb
pop ebx
mov eax, esi
div ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [edi]
mov dl, byte [edx + eax]
mov eax, dword [ebp - 4]
mov byte [eax + ebx], dl
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 8]
jl 0x117e446
mov word [0x13835d0], cx
pop ebx
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x10]
call fcn.011722ef
mov eax, edi
pop esi
leave
ret

Function at 0x117e970
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x1383798]
test ecx, ecx
jne 0x117e983
xor eax, eax
leave
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x117e97f
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x117e97f
mov eax, dword [eax + ecx + 0x78]
and dword [ebp - 4], 0
push ebx
add eax, ecx
mov ebx, dword [eax + 0x24]
push esi
mov esi, dword [eax + 0x20]
push edi
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add edi, ecx
add ebx, ecx
add esi, ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x117e9e5
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax*4]
add eax, dword [0x1383798]
mov edx, dword [0x1383338]
call fcn.0117e3a4
test eax, eax
je 0x117e9ec
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x117e9bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
movzx eax, word [ebx + eax*2]
mov eax, dword [edi + eax*4]
add eax, dword [0x1383798]
jmp 0x117e9e7
Function at 0x4567d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cd43b
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.004c2231
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x456852
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c0117
mov eax, dword [eax]
push 0x4f2cb8
push eax
call fcn.004b2d14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c24bc
test bl, bl
je 0x456852
push 0x4f2cb8
lea ecx, [esp + 0xc]
call fcn.004c284c
push 0x4f2cc4
lea ecx, [esp + 0xc]
call fcn.004c284c
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 0x45688e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c24bc
jmp 0x456959
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 0x456912
lea edx, [esp + 0x7c]
push 0x4f2cc0
push edx
call fcn.004b2d14
add esp, 8
test eax, eax
je 0x456912
lea eax, [esp + 0x7c]
push 0x4f2cbc
push eax
call fcn.004b2d14
add esp, 8
test eax, eax
je 0x456912
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 0x4568a2
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.004c24bc
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 0x457160
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 0x4571c2
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 0x4571d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cd4bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4fefe4]
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 0x457308
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x457236
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c24bc
xor eax, eax
jmp 0x45737f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c25f9
push esi
lea ecx, [esp + 0xc]
call fcn.004c2888
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4f2cf8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x45735d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.00457160
test eax, eax
jne 0x45735d
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 connect
mov ecx, edi
call fcn.00457160
test eax, eax
jne 0x45735d
lea eax, [esp + 0x14]
push 0x4f2cd4
push eax
call fcn.004b3e60
mov esi, eax
add esp, 8
test esi, esi
jne 0x45733c
lea ecx, [esp + 0x14]
push 0x4f2cd0
push ecx
call fcn.004b3de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45733c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x45733f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c25a9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45724e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c24bc
xor eax, eax
jmp 0x45737f
mov byte [esi], 0
push 0x4f2ccc
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.004c24bc
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 0x45d646
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x45d66e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x466590
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 0x4665fe
cmp si, 0x69
ja 0x4665fe
add esi, 0xffd0
cmp si, 0x11
je 0x4665ce
push 0x11
call edi
test ax, ax
jge 0x4665ce
or esi, 0x2000
cmp si, 0x10
je 0x4665e3
push 0x10
call edi
test ax, ax
jge 0x4665e3
or esi, 0x4000
cmp si, 0x12
je 0x4665f8
push 0x12
call edi
test ax, ax
jge 0x4665f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x46660b
mov esi, 0xbd
jmp 0x4665bf
cmp si, 0x6e
jne 0x466618
mov esi, 0xbe
jmp 0x4665bf
cmp si, 0x6f
jne 0x4665b9
mov esi, 0xbf
jmp 0x4665bf

Function at 0x4680f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x50f8e0]
xor edx, edx
cmp eax, edx
jne 0x468116
xor eax, eax
mov byte [eax + 0x50f7e0], al
inc eax
cmp eax, 0x100
jl 0x4680fe
mov dword [0x50f8e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x50f7e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4681a7
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 0x46817a
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 0x468148
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x468220
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 0x468273
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 0x46825a
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