joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x405fe0
test byte [ebp + 0x10], 4
jne 0x405fe0
xor al, al
jmp 0x405fe2
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x406009
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x40601b
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.00407095
test eax, eax
je 0x406055
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x406055
cmp word [eax], bx
je 0x406055
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x406069
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406085
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x406085
mov dword [esi + 0xc20], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4060fd
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4060be
push edi
call fcn.0040b675
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.0040b39f
jmp 0x4060c7
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x4060e4
push dword [ebp + 8]
call fcn.0040b3ef
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.0040b39f
jmp 0x4060f3
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040ca2b
push dword [esi + 4]
mov ecx, esi
call fcn.00405df2
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406257
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x40627d
cmp dword [ebp + 0xc], esi
jbe 0x406272
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4062cd
mov ecx, edi
call fcn.00405f7a
test al, al
je 0x4062b3
cmp dword [ebp + 0xc], esi
jbe 0x4062b3
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00406257
jmp 0x4062d0
cmp dword [edi + 0xc], 1
jne 0x4062c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4062c8
xor eax, eax
jmp 0x4062d0
or eax, 0xffffffff
jmp 0x4062d0
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x406528
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x406638
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406555
dec eax
je 0x40654a
dec eax
jne 0x406555
push 0xfffffffffffffff4
jmp 0x40654c
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x4065a4
cmp dword [ebp + 0xc], edi
jbe 0x4065bf
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x40657c
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x4065bf
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x40656c
jmp 0x4065bb
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x406632
cmp byte [esi + 0x14], 0
je 0x406632
cmp dword [esi + 0xc], 0
jne 0x406632
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x417684
push eax
mov ecx, edi
call fcn.00403bfa
test al, al
je 0x40661c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x40655d
test eax, eax
jbe 0x40655d
push 0
mov ecx, esi
call fcn.00405ece
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00406489
jmp 0x40655d
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403d9a
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x406728
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 8]
call fcn.00408154
movsx eax, byte [ebp - 0x400]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x400]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x406768
cmp eax, 5
je 0x406768
xor eax, eax
jmp 0x40676b
xor eax, eax
inc eax
leave
ret 4

Function at 0x40676f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00407095
test eax, eax
je 0x406799
mov eax, dword [esp + 8]
test eax, eax
je 0x406799
cmp word [eax], 0
je 0x406799
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4067b6
cmp dword [esp + 4], 0
je 0x4067b4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4067b4
xor eax, eax
inc eax
jmp 0x4067b6
xor eax, eax
ret 8

Function at 0x4067d6
Capabilities:
Get file attributes

Disassembly:
call fcn.00407095
test eax, eax
je 0x4067f6
mov eax, dword [esp + 8]
test eax, eax
je 0x4067f6
cmp word [eax], 0
je 0x4067f6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x406800
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8
Function at 0x406803
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00407095
test eax, eax
je 0x406828
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406828
cmp word [eax], 0
je 0x406828
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40683a
cmp dword [ebp + 8], 0
je 0x406841
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x406843
xor al, al
pop ebp
ret 0xc

Function at 0x406879
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00407095
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x40689f
cmp esi, ebx
je 0x40689f
cmp word [esi], bx
je 0x40689f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4068ae
cmp dword [ebp + 8], ebx
je 0x4068dc
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x4068c7
cmp byte [ebp + 0x10], bl
je 0x4068c3
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00406803
xor eax, eax
jmp 0x4068df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4068dc
cmp eax, 3
je 0x4068dc
xor eax, eax
inc eax
jmp 0x4068df
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x408b19
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5b18
call fcn.00401200
push 1
call fcn.0040c6a3
push 1
mov ecx, 0x417684
call fcn.00403b7c
call fcn.0040c266
push 0x400
lea eax, [ebp - 0x800]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1000000
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.0040ca2b
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x800]
push eax
mov ecx, 0x417690
call fcn.0040a7ba
lea ecx, [ebp - 0x5b18]
call fcn.00402e0b
push 0x411458
lea eax, [ebp - 0x2447]
push eax
call fcn.0040b4e2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x408c26
cmp byte [eax], 0x22
jne 0x408bba
push 0x22
inc eax
push eax
call fcn.0040b418
test eax, eax
je 0x408c26
push esi
push 0x411454
push eax
call fcn.0040b481
mov esi, eax
test esi, esi
je 0x408c25
jmp 0x408bd3
inc esi
movsx eax, byte [esi]
push eax
call fcn.0040c3aa
test al, al
jne 0x408bd2
movsx eax, byte [esi]
push eax
lea ecx, [ebp - 0x5b18]
call fcn.00402ad1
test al, al
je 0x408c25
movzx eax, byte [esi + 1]
push eax
call fcn.0040c364
movzx eax, al
mov ecx, eax
sub ecx, 0x3f
je 0x408c18
sub ecx, 0x15
je 0x408c10
dec ecx
dec ecx
jne 0x408c25
mov byte [ebp - 0x2447], al
jmp 0x408c25
push 0
lea ecx, [ebp - 0x5b18]
call fcn.004028f1
pop esi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0xc00]
push eax
lea ecx, [ebp - 0x5b18]
call fcn.00402aa6
lea ecx, [ebp - 0x5b18]
call fcn.00402afc
push dword [ebp - 0x2df4]
push dword [ebp - 0x2df8]
call fcn.00402e4f
lea eax, [ebp - 0x31f9]
push eax
call fcn.00402e3e
cmp byte [ebp - 0x2da8], 0
jne 0x408c7d
cmp dword [ebp - 0x2df8], 3
je 0x408c7d
xor al, al
jmp 0x408c7f
mov al, 1
mov byte [0x41768d], al
mov al, byte [ebp - 0x2866]
lea ecx, [ebp - 0x5b18]
mov byte [0x41768e], al
call fcn.00402897
lea ecx, [ebp - 0x5b18]
call fcn.00402a24
lea ecx, [ebp - 0x5b18]
call fcn.00402d25
call fcn.0040640e
mov eax, dword [0x417684]
leave
ret
Function at 0x40a9d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040b2ec
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40aae6
cmp ebx, edx
jge 0x40aa2d
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40aa2f
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40aa12
cmp ecx, edx
jne 0x40aa37
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a9fe
cmp eax, 0xa
jg 0x40aae6
mov dword [ebp - 4], 0x41b6b8
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41b7d8]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41b7d8]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41b7d8]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41b7d8]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x40aa92
add eax, edx
dec edi
jne 0x40aa90
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40aae6
cmp ebx, edx
jge 0x40aacf
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40aad1
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40aab3
cmp ecx, edx
jne 0x40aad8
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40aaa5
cmp dword [ebp + 8], 0xa
jle 0x40aa4b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40aaed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x4186b8]
xor dl, byte [eax + ebx*4 + 0x418eb8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4192b8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x418ab8]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40ab15
inc eax
cmp eax, edi
jl 0x40ab08
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040b2ec
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40ab06
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bb33
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x41b8e0], esi
jne 0x40bb4c
mov ecx, 0x41b8d8
call fcn.0040baf4
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40bba2
cmp dword [0x41b8e0], esi
je 0x40bbd3
test bl, 0xf
jne 0x40bbd3
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040b2ec
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41b8e0]
test eax, eax
jne 0x40bbfb
push str.CryptProtectMemory_failed
mov esi, 0x417684
mov ecx, esi
call fcn.00403c84
mov ecx, esi
call fcn.0040c6a2
push 2
mov ecx, esi
call fcn.00403d61
jmp 0x40bbfb
cmp dword [0x41b8e4], esi
je 0x40bbd3
test bl, 0xf
jne 0x40bbd3
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040b2ec
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41b8e4]
test eax, eax
jne 0x40bbfb
push str.CryptUnprotectMemory_failed
jmp 0x40bb84
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x40bbfb
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esi, ecx
push edi
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
inc ecx
inc ecx
cmp edx, ebx
jb 0x40bbe8
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40c06e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x6c512d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
btc ax, 1
add al, 0x8e
push ebp
cmc
mov al, 0xbe
pushal
rcr ah, 5
mov dword [esp + 0x1c], esi
das
test dh, 9
push ecx
mov dword [esp + 0x1c], edi
adc ebp, 0x8d909b75
das

Function at 0x6c65f6
Capabilities:
Authenticate hmac

Disassembly:
push edi
sub al, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dh, dh
invalid
test bh, 0xf7
add eax, edi
call int.006c4f9a
fstp xword [eax]
mov byte [0x1a70a65c], al
mov ah, 0xae
clc
add cl, byte [esi + 0x60]
push 0x5c
loopne 0x6c5d95
pop ebp
cmpsb byte [esi], byte es:[edi]
jge 0x6c5dc0
dec edi
test al, 0x36
mov edi, edi
cmpsb byte [esi], byte es:[edi]
push ds
xor esi, 0x530a86b1
insd dword es:[edi], dx
mov eax, dword [0x2e6c12dc]
push eax
add al, 0xe7
inc ebx
jp 0x6c5ddd
cmpsb byte [esi], byte es:[edi]
or dl, ah
mov cl, ah
mov eax, 0x2caba30c
jno 0x6c5da8
mov ch, 0x14
jo 0x6c5e47
sbb byte [edi + ecx*2 + 0x566866be], al
or edx, esi
mov dh, 0x1b
mov dword [0x23ece0ee], eax
sub eax, 0x99f5b17f
inc edx
xchg edi, eax
shl dword [ecx], cl
dec eax
jae 0x6c5e32
xor eax, 0xb0d1e5ff
mov byte ds:[0x55312263], al
in eax, 0xd1
mov al, 0x3e
mov byte [0x55312263], al
sub al, 0xc6
cwde
ljmp 0x26c4
add edi, eax
test ah, 0x6b
cmc
push esp
mov edi, dword [edi + ecx*4]
test ch, 0x70
push esp
pushal
cmp al, 0x17
test edi, edi
pushfd
lea esp, [esp + 0x30]
je 0x6c776d
jmp 0x6c5de0
Function at 0x41a460
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4afa1b
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.004a37cd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41a4e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a0dcd
mov eax, dword [eax]
push 0x662214
push eax
call fcn.00492194
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a3a58
test bl, bl
je 0x41a4e2
push 0x662214
lea ecx, [esp + 0xc]
call fcn.004a3de8
push 0x665da0
lea ecx, [esp + 0xc]
call fcn.004a3de8
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 0x41a51e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a3a58
jmp 0x41a5e9
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 0x41a5a2
lea edx, [esp + 0x7c]
push 0x665d9c
push edx
call fcn.00492194
add esp, 8
test eax, eax
je 0x41a5a2
lea eax, [esp + 0x7c]
push 0x665d98
push eax
call fcn.00492194
add esp, 8
test eax, eax
je 0x41a5a2
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 0x41a532
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.004a3a58
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 0x41ae00
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 0x41ae62
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 0x41ae70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4afa9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x66ec78]
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 0x41afa8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41aed6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a3a58
xor eax, eax
jmp 0x41b01f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a3b95
push esi
lea ecx, [esp + 0xc]
call fcn.004a3e24
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x665dd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41affd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x665dd0
push closesocket
call fcn.0041ae00
test eax, eax
jne 0x41affd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x665dbc
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0041ae00
test eax, eax
jne 0x41affd
lea eax, [esp + 0x14]
push 0x665db4
push eax
call fcn.004931d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41afdc
lea ecx, [esp + 0x14]
push 0x665db0
push ecx
call fcn.00493150
mov esi, eax
add esp, 8
test esi, esi
jne 0x41afdc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41afdf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a3b45
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41aeee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a3a58
xor eax, eax
jmp 0x41b01f
mov byte [esi], 0
push 0x665dac
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.004a3a58
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 0x430d00
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 0x430d6e
cmp si, 0x69
ja 0x430d6e
add esi, 0xffd0
cmp si, 0x11
je 0x430d3e
push 0x11
call edi
test ax, ax
jge 0x430d3e
or esi, 0x2000
cmp si, 0x10
je 0x430d53
push 0x10
call edi
test ax, ax
jge 0x430d53
or esi, 0x4000
cmp si, 0x12
je 0x430d68
push 0x12
call edi
test ax, ax
jge 0x430d68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x430d7b
mov esi, 0xbd
jmp 0x430d2f
cmp si, 0x6e
jne 0x430d88
mov esi, 0xbe
jmp 0x430d2f
cmp si, 0x6f
jne 0x430d29
mov esi, 0xbf
jmp 0x430d2f

Function at 0x432540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x67fee0]
xor edx, edx
cmp eax, edx
jne 0x432566
xor eax, eax
mov byte [eax + 0x67fde0], al
inc eax
cmp eax, 0x100
jl 0x43254e
mov dword [0x67fee0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x67fde0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4325f7
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 0x4325ca
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 0x432598
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x432670
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 0x4326c3
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 0x4326aa
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