joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.00507730
add esp, 8
test al, al
je 0x507145
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x507145
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x507730
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x508be0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x508c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x508c0b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0xe44058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e441a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe4407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe4406a
add dl, dl
jne 0xe44089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe440dc
xor eax, eax
add dl, dl
jne 0xe44096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe4417d
add dl, dl
jne 0xe440a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe440b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe440bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe440c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe440d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe44075
mov eax, 1
add dl, dl
jne 0xe440ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe440f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe440e1
sub eax, ebx
mov ebx, 1
jne 0xe44128
mov ecx, 1
add dl, dl
jne 0xe4410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe44119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe44105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe44075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe4413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe4414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe44136
cmp eax, 0x7d00
jae 0xe4416d
cmp eax, 0x500
jb 0xe44168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe44075
cmp eax, 0x7f
ja 0xe44170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe44075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe4419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe44075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401119
push str.NtWriteVirtualMemory
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e678], eax
cmp dword [0x41e678], 0
jne 0x401050
push str.____NtWriteVirtualMemory_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
push str.NtQuerySystemInformation
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e674], eax
cmp dword [0x41e674], 0
jne 0x401084
push str.____NtQuerySystemInformation_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
push str.RtlInitUnicodeString
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e670], eax
cmp dword [0x41e670], 0
jne 0x4010b5
push str.____RtlInitUnicodeString_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
push str.NtFsControlFile
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e66c], eax
cmp dword [0x41e66c], 0
jne 0x4010e6
push str.____NtFsControlFile_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
push str.NtCreateFile
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e668], eax
cmp dword [0x41e668], 0
jne 0x401117
push str.____NtCreateFile_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
jmp 0x40112d
push str.____NTDLL_not_loaded_n
call fcn.00401570
add esp, 4
mov eax, 1
jmp 0x40112f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401c79
Capabilities:
Parse pe header

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

Function at 0x408cc6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417638
push 0x417630
push str.FlsAlloc
push 0x1f
call fcn.00408b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cfa
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
jmp 0x408d00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408d44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417648
push 0x417640
push str.FlsGetValue
push 0x21
call fcn.00408b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408d83
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417650
push 0x417648
push str.FlsSetValue
push 0x22
call fcn.00408b85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408dbd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c100
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c19d
push ebx
push esi
call fcn.0040c0c9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c05d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c14a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c19c
push edi
push eax
call fcn.00409475
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c16a
call fcn.00407c1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c19b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c05d
add esp, 0x20
test eax, eax
jne 0x40c189
push edi
call fcn.00407c1b
jmp 0x40c191
push ebx
call fcn.00407c1b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x414880
Capabilities:
Parse pe header

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

Function at 0x421870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x421892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421888
mov eax, 1
add ebx, ebx
jne 0x4218ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4218a0
jne 0x4218bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4218a0
xor ecx, ecx
sub eax, 3
jb 0x4218d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421942
mov ebp, eax
add ebx, ebx
jne 0x4218db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4218e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42190c
inc ecx
add ebx, ebx
jne 0x4218f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4218ed
jne 0x421909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4218ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42192c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42191d
jmp 0x42188e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42192c
add edi, ecx
jmp 0x42188e
pop esi
mov edi, esi
mov ecx, 0x436
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42194a
cmp byte [edi], 7
jne 0x42194a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42194f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4219be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25c38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42197c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25c40]
or eax, eax
je 0x4219b8
mov dword [ebx], eax
add ebx, 4
jmp 0x421999
call dword [esi + 0x25c3c]
mov ebp, dword [esi + 0x25c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4219f2
sub esp, 0xffffff80
jmp 0x405762
Function at 0x10799058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.107991a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1079907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1079906a
add dl, dl
jne 0x10799089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107990dc
xor eax, eax
add dl, dl
jne 0x10799096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1079917d
add dl, dl
jne 0x107990a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107990b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107990bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107990c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107990d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10799075
mov eax, 1
add dl, dl
jne 0x107990ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107990f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107990e1
sub eax, ebx
mov ebx, 1
jne 0x10799128
mov ecx, 1
add dl, dl
jne 0x1079910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10799119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10799105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10799075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1079913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1079914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10799136
cmp eax, 0x7d00
jae 0x1079916d
cmp eax, 0x500
jb 0x10799168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10799075
cmp eax, 0x7f
ja 0x10799170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10799075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1079919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10799075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x43d540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4da36b
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.004ce4dc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43d5c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004cbb60
mov eax, dword [eax]
push 0x52cd50
push eax
call fcn.004bcb14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ce767
test bl, bl
je 0x43d5c2
push 0x52cd50
lea ecx, [esp + 0xc]
call fcn.004ceaf7
push 0x52cd5c
lea ecx, [esp + 0xc]
call fcn.004ceaf7
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 0x43d5fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ce767
jmp 0x43d6c9
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 0x43d682
lea edx, [esp + 0x7c]
push 0x52cd58
push edx
call fcn.004bcb14
add esp, 8
test eax, eax
je 0x43d682
lea eax, [esp + 0x7c]
push 0x52cd54
push eax
call fcn.004bcb14
add esp, 8
test eax, eax
je 0x43d682
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 0x43d612
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.004ce767
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 0x43ded0
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 0x43df32
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 0x43df40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4da3eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x53b058]
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 0x43e078
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43dfa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ce767
xor eax, eax
jmp 0x43e0ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ce8a4
push esi
lea ecx, [esp + 0xc]
call fcn.004ceb33
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 0x43e0cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0043ded0
test eax, eax
jne 0x43e0cd
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.0043ded0
test eax, eax
jne 0x43e0cd
lea eax, [esp + 0x14]
push 0x52cd6c
push eax
call fcn.004bdcf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43e0ac
lea ecx, [esp + 0x14]
push 0x52cd68
push ecx
call fcn.004bdc70
mov esi, eax
add esp, 8
test esi, esi
jne 0x43e0ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43e0af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004ce854
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43dfbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ce767
xor eax, eax
jmp 0x43e0ef
mov byte [esi], 0
push 0x52cd64
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.004ce767
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 0x452c10
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 0x452c7e
cmp si, 0x69
ja 0x452c7e
add esi, 0xffd0
cmp si, 0x11
je 0x452c4e
push 0x11
call edi
test ax, ax
jge 0x452c4e
or esi, 0x2000
cmp si, 0x10
je 0x452c63
push 0x10
call edi
test ax, ax
jge 0x452c63
or esi, 0x4000
cmp si, 0x12
je 0x452c78
push 0x12
call edi
test ax, ax
jge 0x452c78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x452c8b
mov esi, 0xbd
jmp 0x452c3f
cmp si, 0x6e
jne 0x452c98
mov esi, 0xbe
jmp 0x452c3f
cmp si, 0x6f
jne 0x452c39
mov esi, 0xbf
jmp 0x452c3f

Function at 0x454660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x54ba18]
xor edx, edx
cmp eax, edx
jne 0x454686
xor eax, eax
mov byte [eax + 0x54b918], al
inc eax
cmp eax, 0x100
jl 0x45466e
mov dword [0x54ba18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x54b918
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x454717
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 0x4546ea
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 0x4546b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x454790
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 0x4547e3
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 0x4547ca
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