joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d76
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x411ddf
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00413816
mov ecx, esi
call fcn.0041171a
test al, al
jne 0x411dd7
lea ecx, [ebp - 4]
call fcn.004137f7
lea ecx, [ebp - 8]
call fcn.00413c29
push eax
lea eax, [ebp - 4]
push 0x42f818
push eax
call fcn.00413b94
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00413c29
push eax
push 0x42f804
call fcn.00413622
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.0041d2c3
lea ecx, [ebp - 8]
call fcn.004138d1
pop esi
leave
ret

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

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x412259
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f328]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x41223f
pop edi
pop esi
ret

Function at 0x41413d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x104]
push eax
call fcn.004141bf
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x4141ba
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c2c0
test eax, eax
pop ecx
pop ecx
jne 0x4141a2
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.0041c2c0
test eax, eax
pop ecx
pop ecx
je 0x4141b6
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x41417a
jmp 0x41414d
xor al, al
jmp 0x4141bc
mov al, 1
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414297
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x4142a2
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 0x4142c9
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x4142be
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41cc8f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a08
push 0x420c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4370e8], eax
movzx ecx, ah
mov dword [0x4370f4], ecx
and eax, 0xff
mov dword [0x4370f0], eax
shl eax, 8
add eax, ecx
mov dword [0x4370ec], eax
movzx eax, word [0x4370ea]
mov dword [0x4370e8], eax
push 1
call fcn.0041f98a
pop ecx
test eax, eax
jne 0x41ccfd
push 0x1c
call fcn.0041cdbf
pop ecx
call fcn.0041f5c9
test eax, eax
jne 0x41cd0e
push 0x10
call fcn.0041cdbf
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004218c1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4387d8], eax
call fcn.0042178f
mov dword [0x4370d8], eax
call fcn.0042154a
call fcn.00421491
call fcn.0041d296
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00421433
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x41cd5d
movzx eax, word [ebp - 0x2c]
jmp 0x41cd60
push 0xa
pop eax
push eax
push dword [ebp - 0x60]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x64], eax
push eax
call fcn.0041d2c3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004212bf
pop ecx
pop ecx
ret

Function at 0x41d2e5
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0041d389
xor edi, edi
inc edi
cmp dword [0x437124], edi
jne 0x41d307
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x437120], edi
mov byte [0x43711c], bl
jne 0x41d35b
mov eax, dword [0x4387d4]
push esi
test eax, eax
je 0x41d349
mov ecx, dword [0x4387d0]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x41d349
mov eax, dword [esi]
test eax, eax
je 0x41d33e
call eax
sub esi, 4
cmp esi, dword [0x4387d4]
jae 0x41d336
push 0x42c094
push 0x42c08c
call fcn.0041d39b
pop ecx
pop ecx
pop esi
push 0x42c09c
push 0x42c098
call fcn.0041d39b
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x41d377
pop edi
jmp fcn.0041d392
push dword [esp + 8]
mov dword [0x437124], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41f653
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x431a70]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41f6b0
push 0x74
push 1
call fcn.0041e083
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41f6a8
push esi
push dword [0x431a70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41f6a8
push esi
call fcn.0041f640
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41f6b0
push 0x10
call fcn.0041cd9a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x421ab5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x433ea0]
je 0x421ad2
inc eax
cmp eax, 0x12
jb 0x421ac3
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x433ea0]
jne 0x421c00
mov eax, dword [0x4370e0]
cmp eax, 1
je 0x421bda
test eax, eax
jne 0x421b03
cmp dword [0x4316a4], 1
je 0x421bda
cmp ecx, 0xfc
je 0x421c00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421b3a
lea eax, [ebp - 0x1a4]
push 0x429ee0
push eax
call fcn.0041c1d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421b7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429edc
push edi
call fcn.0041c3c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x429ec0
push eax
call fcn.0041c1d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c1e0
lea eax, [ebp - 0xa0]
push 0x429ebc
push eax
call fcn.0041c1e0
push dword [esi + 0x433ea4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c1e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x429e94
push eax
call fcn.00425250
add esp, 0x2c
pop edi
jmp 0x421c00
lea eax, [ebp + 8]
lea esi, [esi + 0x433ea4]
push 0
push eax
push dword [esi]
call fcn.0041c150
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x421e1a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x421fe0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x437680]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x421fe0
test cl, 0x48
je 0x421e80
mov al, byte [eax + 5]
cmp al, 0xa
je 0x421e80
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x421eba
call fcn.0041d97a
mov dword [eax], 9
call fcn.0041d983
mov dword [eax], esi
jmp 0x421eca
cmp eax, 0x6d
je 0x421fe0
push eax
call fcn.0041d90c
pop ecx
or eax, 0xffffffff
jmp 0x421fe2
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x421fdb
test edx, edx
je 0x421ef5
cmp byte [ebx], 0xa
jne 0x421ef5
or al, 4
jmp 0x421ef7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x421fd5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x421fc5
cmp al, 0xd
je 0x421f2b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x421fb7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x421f45
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x421f40
add dword [ebp + 0x10], 2
jmp 0x421f99
mov dword [ebp + 0x10], eax
jmp 0x421fb3
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421fb3
cmp dword [ebp - 0xc], 0
je 0x421fb3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x421f8e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x421f99
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x421fb6
cmp ebx, dword [ebp + 0xc]
jne 0x421f9e
cmp byte [ebp - 1], 0xa
jne 0x421f9e
mov byte [ebx], 0xa
jmp 0x421fb6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421c68
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x421fb7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x421f0f
jmp 0x421fd5
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x421fd5
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x421fe2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423369
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x423389
xor eax, eax
jmp 0x4234f2
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x437680]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4233b9
push 2
push edi
push dword [ebp + 8]
call fcn.00421c68
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42348b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x4234c6
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x423414
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x423405
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x4233e8
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423454
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x42345d
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x4233d9
jmp 0x42345f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4234ef
cmp dword [ebp + 8], edi
je 0x4234c6
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x4234b8
call fcn.0041d97a
mov dword [eax], 9
call fcn.0041d983
mov dword [eax], esi
jmp 0x4234c1
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4234ad
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x42345f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x42345f
push dword [ebp + 8]
call fcn.0041d90c
pop ecx
or eax, 0xffffffff
jmp 0x4234f2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4234db
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x423382
call fcn.0041d97a
mov dword [eax], 0x1c
call fcn.0041d983
mov dword [eax], edi
jmp 0x4234c1
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4249a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push 0x429f7c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x424a26
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.0041de81
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x424a2a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push 0x429f7c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push 0x429fa4
push eax
call fcn.0041c368
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x424ad4
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4142c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f05b
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.00471cfc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046f61a
mov eax, dword [eax]
push 0x56f240
push eax
call fcn.00462124
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00471f87
test bl, bl
je 0x414342
push 0x56f240
lea ecx, [esp + 0xc]
call fcn.00472363
push 0x572da8
lea ecx, [esp + 0xc]
call fcn.00472363
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 0x41437e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00471f87
jmp 0x414449
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 0x414402
lea edx, [esp + 0x7c]
push 0x572da4
push edx
call fcn.00462124
add esp, 8
test eax, eax
je 0x414402
lea eax, [esp + 0x7c]
push 0x572da0
push eax
call fcn.00462124
add esp, 8
test eax, eax
je 0x414402
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 0x414392
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.00471f87
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 0x414c40
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 0x414ca2
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 0x414cb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f0db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x579d18]
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 0x414de8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414d16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471f87
xor eax, eax
jmp 0x414e5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00472110
push esi
lea ecx, [esp + 0xc]
call fcn.0047239f
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 0x414e3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00414c40
test eax, eax
jne 0x414e3d
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.00414c40
test eax, eax
jne 0x414e3d
lea eax, [esp + 0x14]
push 0x572dbc
push eax
call fcn.00463200
mov esi, eax
add esp, 8
test esi, esi
jne 0x414e1c
lea ecx, [esp + 0x14]
push 0x572db8
push ecx
call fcn.00463180
mov esi, eax
add esp, 8
test esi, esi
jne 0x414e1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x414e1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004720c0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x414d2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471f87
xor eax, eax
jmp 0x414e5f
mov byte [esi], 0
push 0x572db4
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.00471f87
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 0x426940
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 0x4269ae
cmp si, 0x69
ja 0x4269ae
add esi, 0xffd0
cmp si, 0x11
je 0x42697e
push 0x11
call edi
test ax, ax
jge 0x42697e
or esi, 0x2000
cmp si, 0x10
je 0x426993
push 0x10
call edi
test ax, ax
jge 0x426993
or esi, 0x4000
cmp si, 0x12
je 0x4269a8
push 0x12
call edi
test ax, ax
jge 0x4269a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4269bb
mov esi, 0xbd
jmp 0x42696f
cmp si, 0x6e
jne 0x4269c8
mov esi, 0xbe
jmp 0x42696f
cmp si, 0x6f
jne 0x426969
mov esi, 0xbf
jmp 0x42696f

Function at 0x428170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58ab48]
xor edx, edx
cmp eax, edx
jne 0x428196
xor eax, eax
mov byte [eax + 0x58aa48], al
inc eax
cmp eax, 0x100
jl 0x42817e
mov dword [0x58ab48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58aa48
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x428227
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 0x4281fa
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 0x4281c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4282a0
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 0x4282f3
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 0x4282da
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