joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405726
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4497f0], 0x44
push eax
xor eax, eax
push 0x4497f0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405761
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x446ff0
push esi
call fcn.00405f4c
push esi
call fcn.00405ac9
mov edi, eax
test edi, edi
jne 0x405b39
xor eax, eax
jmp 0x405b8b
push edi
call fcn.004061d4
test byte [0x453fb8], 0x80
je 0x405b52
mov al, byte [edi]
test al, al
je 0x405b35
cmp al, 0x5c
je 0x405b35
sub edi, esi
push esi
call fcn.00405f62
cmp eax, edi
push esi
jle 0x405b75
call fcn.0040641a
test eax, eax
je 0x405b6d
test byte [eax], 0x10
je 0x405b35
push esi
call fcn.00405a7c
jmp 0x405b54
call fcn.00405a35
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c02
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c1e
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c21
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c95
mov eax, edi
dec edi
test eax, eax
jne 0x405c5b
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c8f
Function at 0x405c99
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406441
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cbd
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405df6
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x449978], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x449978
je 0x405d01
push 1
push 0
push esi
call fcn.00405c21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dfc
cmp eax, edi
jg 0x405dfc
mov esi, 0x4493f0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dfc
cmp eax, edi
jg 0x405dfc
push esi
push ebp
push str._s_s_r_n
push 0x448ff0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x453fb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f80
push 4
push 0xc0000000
push esi
call fcn.00405c21
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405df6
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405def
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405def
cmp edi, dword [esp + 0x18]
jne 0x405def
push str._Rename__r_n
push esi
call fcn.00405b90
test eax, eax
jne 0x405e03
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f4c
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x448ff0
push eax
call fcn.00405bdc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x454030]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aab0
push eax
call fcn.00405b90
test eax, eax
je 0x405dba
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e2a
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e1f
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dbc
Function at 0x405e32
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ea3
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e92
cmp dword [ebp + 0x14], 1
je 0x405e94
cmp dword [ebp + 0x14], 2
je 0x405e94
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40626d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406292
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406289
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x406305
cmp dword [0x44b720], ebx
je 0x406305
cmp byte [0x44b320], bl
je 0x4062d1
cmp dword [0x40a880], 0xffffffff
jne 0x4062da
push 4
push 0x40000000
push 0x44b320
call fcn.00405c21
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x406305
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x406305
push esi
mov esi, 0x44f740
push 0x40aac8
push esi
call fcn.00405f6f
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f62
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x449d7c], esi
push edi
jne 0x4064f1
mov ecx, 0x449d78
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064cd
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x44a178
jl 0x4064c8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406526
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x449d78]
xor eax, esi
inc ecx
dec edx
jne 0x406509
pop edi
pop esi
not eax
ret 0xc
Function at 0x40d8ee
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 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
adc ch, ah
sub esp, 0x78
push esi
mov edx, dword [eax]
or al, 0x56
lea eax, [ebp - 0x78]
push 0x78
push esp
push esi
call 0x274086e0
mov ecx, dword [ebp + 8]
mov ecx, esi
imul eax, eax, 0x51500040
add edx, 0x40
push str._s:__s___d__n
push eax
call dword [0x8e40c180]
mov eax, dword [0x4102ac]
add esp, 0x14
test eax, eax
je 0x401efc
push eax
push 0xc6d254
call dword [sym.imp.MSVCRT.dll_printf]
or dword [eax + 8], 0x56
call dword [0x40c126]
pop esi
nop
nop
add eax, 0x9090a390
nop
nop
nop
nop
adc dword [ebp - 0x75], 0xffffffec
push ebp
mov ebp, esp
sub dword [edi], 0x7d
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jecxz 0x401ec3
mov dword [eax], ebp
or al, ch
adc ecx, dword [ebx]
add byte [ebx + 0x410ba0], ah
or ah, bl
movsb byte es:[edi], byte [esi]
xor al, 0x6b
add byte [ebx + 0x14468bd8], cl
test dword [ebp + 0x4075b78b], eax
mov eax, dword [edx + 0x6f0b6a04]
add byte [ecx - 0x21], dl
xchg esi, eax
cmpsd dword [esi], dword es:[edi]
add byte [eax], al
mov dword [esi + 0x838], ebx
fmul dword [ebx - 0x7a7aebba]
mov esi, dword [edi - 0x7d74bf8b]
add al, 0x6a
or ebp, dword [edi]
push ecx
fist word [esi - 0x76ffff59]
sahf
cmp byte [eax], cl
add byte [eax], al
std
mov esi, 0x530827
mov dword [esi + 0x18], 0xa000d700
mov edx, dword [0x41a8ec]
mov dword [esi + 0x14], edx
mov eax, dword [0x410260]
test eax, eax
je 0x401f3a
sal byte [ebx + edi - 0x5f], 0x70
add al, byte [ecx - 0x3c]
mov eax, dword [0xc4410270]
mov ecx, edx
add ecx, eax
mov dword [esi + 0x14], ecx
jmp 0x401edb
add byte [eax], al
add byte [0x598b1856], al
add eax, 0x598b1856
xor al, dl
inc eax
add byte [ebx + 0x4d8d0446], cl
pop esi
sbb edx, ebx
push ecx
push edx
jne 0x401f37
insd dword es:[edi], dx
lds eax, [eax]
add byte [ebp - 0x7ccc8bfe], al
sbb eax, 0x3d2e740b
fisubr dword [ebx]
or dword [ecx], esp
je 0x401f8a
cmp eax, 0xafcd9
je 0x401fd2
add al, 0x57
std
or al, byte [eax]
push ds
pop edi
cmp eax, 0x41fd24
leave
adc bh, byte [0xabb10]
inc esi
or edi, dword [edx + 0xb23b3]
jne 0xd6402030
mov ebx, esp
or byte [ebx + 0x4102a01d], cl
add byte [edi], bh
cmp eax, 0x418fa4
add esp, dword [0x8900d783]
or esp, dword [eax + 0x18004102]
xor dword [esi + edx + 0x568b0041], esp
sbb byte [ebx - 0x2ffcebb2], cl
sub ecx, eax
mov dword [esi + 0x62], edx
movsb byte es:[edi], byte [esi]
dec esi
adc al, 0x27
test dword [edi], edi
invalid
xchg esp, eax
movsb byte es:[edi], byte [esi]
or eax, dword [ecx]
aam 0x56
add al, 7
xchg byte [eax + 8], al
add byte [eax], al
mov ecx, dword [0x410ba4]
inc eax
add dword [eax], eax
add byte [eax], al
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], ax
mov dword [esi - 0xefff7bc], ecx
mov ecx, dword [0x4117f8]
invalid
Function at 0x404ce0
Capabilities:
Encode data using xor

Disassembly:
aad 0x4e
add al, 0x80
xor edi, ecx
insb byte es:[edi], dx
mov bl, 0x72
add al, 0x5f
pop esi
pop ebx
mov ecx, dword [esi + 0x5d]
ret 0xb8
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor byte [ebp + 8], bh
lea esi, [edi - 0x46]
ja 0x404ca9
push esi
call 0x7556f0
mov eax, dword [edi + 4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esi], ebx
movsb byte es:[edi], byte [esi]
pop edi
cmp al, 0xcd
or eax, 0xae58e850
add byte [eax], al
mov esi, dword [eax + 4]
xor byte [ebp + 0x75], ah
lea esi, [edi + 0x10]
push esi
jbe 0x404ced
or dword [eax], eax
add byte [ebx + 0x1e891c47], cl
push eax
mov dword [edi + 0x14], ebx
pop ebp
or al, byte fs:[eax]
salc
mov eax, dword [edi + 0x30]
mov ecx, dword [edi - 0x3e]
cmp byte [ecx + 0x2428891c], ah
inc ebx
inc edi
dec ebx
mov dword [eax + 0x10], ecx
adc al, 8
nop
les ecx, [eax]
cmp ecx, eax
mov dword [ebx], esi
hlt

Function at 0x40b840
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x1000
lea ecx, [esp + 0x2e]
jb fcn.0040b840
xor dword [esi], 0x391000
sub eax, 0x1000
test ecx, eax
cmp eax, 0x1000
jae 0x40b84c
sub esi, dword [ebx - 0x75]
les eax, [ebp - 0x741e74ff]
loope 0x40b7f4

Function at 0x401860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401886
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40191a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4018d5
cmp eax, 0x40
je 0x4018d5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401879
cmp eax, 0x40
je 0x401879
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401879
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401670
Capabilities:
Encode data using xor

Disassembly:
push 0x4c6e34
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [eax], bh
add byte [eax], al
add byte [ebp - 0x78e70e26], cl
pushal
stosb byte es:[edi], al
inc edx
mov bl, al
sti
cmp eax, 0xf9a5834b
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov al, 0xae
mov dl, 0xbb
mov al, 0xae
add byte [eax], al
mov ah, 0xcb
mov bl, 0xcc
sal dl, 1
ror ecx, cl
mov dword [0xd2e4c2ba], eax
mov dh, 0xd6
invalid
Function at 0x40b4f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46908b
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.0045ddab
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045bcfa
mov eax, dword [eax]
push 0x4841f0
push eax
call fcn.0044e9d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045e036
test bl, bl
je 0x40b572
push 0x4841f0
lea ecx, [esp + 0xc]
call fcn.0045e3c6
push 0x487d50
lea ecx, [esp + 0xc]
call fcn.0045e3c6
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 0x40b5ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045e036
jmp 0x40b679
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 0x40b632
lea edx, [esp + 0x7c]
push 0x487d4c
push edx
call fcn.0044e9d4
add esp, 8
test eax, eax
je 0x40b632
lea eax, [esp + 0x7c]
push 0x487d48
push eax
call fcn.0044e9d4
add esp, 8
test eax, eax
je 0x40b632
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 0x40b5c2
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.0045e036
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 0x40be70
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 0x40bed2
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 0x40bee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46910b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e2c4]
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 0x40c018
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bf46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e036
xor eax, eax
jmp 0x40c08f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045e173
push esi
lea ecx, [esp + 0xc]
call fcn.0045e402
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 0x40c06d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040be70
test eax, eax
jne 0x40c06d
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.0040be70
test eax, eax
jne 0x40c06d
lea eax, [esp + 0x14]
push 0x487d64
push eax
call fcn.0044fae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c04c
lea ecx, [esp + 0x14]
push 0x487d60
push ecx
call fcn.0044fa60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c04c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c04f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045e123
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bf5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e036
xor eax, eax
jmp 0x40c08f
mov byte [esi], 0
push 0x487d5c
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.0045e036
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 0x41e5a0
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 0x41e60e
cmp si, 0x69
ja 0x41e60e
add esi, 0xffd0
cmp si, 0x11
je 0x41e5de
push 0x11
call edi
test ax, ax
jge 0x41e5de
or esi, 0x2000
cmp si, 0x10
je 0x41e5f3
push 0x10
call edi
test ax, ax
jge 0x41e5f3
or esi, 0x4000
cmp si, 0x12
je 0x41e608
push 0x12
call edi
test ax, ax
jge 0x41e608
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41e61b
mov esi, 0xbd
jmp 0x41e5cf
cmp si, 0x6e
jne 0x41e628
mov esi, 0xbe
jmp 0x41e5cf
cmp si, 0x6f
jne 0x41e5c9
mov esi, 0xbf
jmp 0x41e5cf

Function at 0x41fd50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49e948]
xor edx, edx
cmp eax, edx
jne 0x41fd76
xor eax, eax
mov byte [eax + 0x49e848], al
inc eax
cmp eax, 0x100
jl 0x41fd5e
mov dword [0x49e948], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49e848
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41fe07
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 0x41fdda
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 0x41fda8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41fe80
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 0x41fed3
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 0x41feba
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