joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f0e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45f12a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x45f159
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45f19b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x475544
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47557c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004735ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004735a6
jmp 0x475588
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476c32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476c74
call fcn.0047c84a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476c74
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476c6b
xor eax, eax
jmp 0x476c7c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476c82
pop edi
pop esi
pop ebx
ret 4

Function at 0x47cd7a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47cda8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47cdc6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047cce0
jmp 0x47cdc6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47cdc6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047cce0
test edi, edi
mov eax, edi
jne 0x47cdb0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4078ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4078ae
shr eax, 1
dec edx
jne 0x40789f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407898
pop esi
ret

Function at 0x4078c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x40c648
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c4b1
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c68d
test al, 0x10
je 0x40c68d
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044dd8e
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004507f8
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c75e
cmp bl, 1
jne 0x40c75e
test byte [esp + 0x220], 0x10
jne 0x40c736
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044ddb8
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044dd8e
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044dd8e
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40c74d
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c6da
xor bl, bl
jmp 0x40c6da
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c74f
Function at 0x40c764
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.00453310
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4b1
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4b1
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5a3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c7e2
test al, 0x10
je 0x40c7e2
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044dd8e
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c805
test al, 0x10
je 0x40c805
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044dd8e
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.004507f8
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c99d
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c99d
test byte [esp + 0x858], 0x10
jne 0x40c978
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c9b0
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044ddb8
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044dd8e
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044dd8e
mov eax, esi
push eax
call fcn.0040c45e
add esp, 0x2c
test al, al
je 0x40c90e
cmp byte [ebp + 0x10], 0
je 0x40c959
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c967
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c94b
cmp byte [esp + 0x13], 0
jne 0x40c930
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40c955
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c959
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c955
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c976
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c9a9
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c99b
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c863
mov byte [esp + 0x12], al
jmp 0x40c863
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cbcc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044e3ca
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cbe8
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40cc12
push 0
push esi
call ebp
test eax, eax
je 0x40cc17
mov al, 1
jmp 0x40cc65
cmp eax, 3
jne 0x40cc63
push esi
call fcn.0040d6aa
mov edi, eax
push 0x5c
push edi
call fcn.00451a7a
add esp, 0xc
test eax, eax
jne 0x40cc37
push edi
call fcn.0044de9c
pop ecx
jmp 0x40cc63
and word [eax], 0
push ebx
push edi
call fcn.0040cbcc
push edi
mov bl, al
call fcn.0044de9c
test bl, bl
pop ecx
pop ecx
je 0x40cc5a
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc65
test al, 0x10
jne 0x40cc0e
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc69
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040c4b1
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4b1
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cce2
cmp byte [ebp + 0x10], al
je 0x40ccde
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x40ccda
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ccfb
test al, 0x10
jne 0x40cd02
xor al, al
jmp 0x40cdbb
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd1c
test al, 0x10
je 0x40cd1c
cmp byte [ebp + 0x10], bl
jmp 0x40cd3d
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbcc
test al, al
pop ecx
je 0x40cd3f
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd3f
test al, 0x10
jne 0x40cd43
xor al, al
jmp 0x40cdba
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044dd8e
lea eax, [ebp - 0x438]
push eax
call fcn.0044e3ca
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e3ca
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x49201c]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415be0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fb0b
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.00473f55
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415c62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047149d
mov eax, dword [eax]
push 0x49d250
push eax
call fcn.004634c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004741e0
test bl, bl
je 0x415c62
push 0x49d250
lea ecx, [esp + 0xc]
call fcn.00474570
push 0x4a0dc4
lea ecx, [esp + 0xc]
call fcn.00474570
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 0x415c9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004741e0
jmp 0x415d69
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 0x415d22
lea edx, [esp + 0x7c]
push 0x4a0dc0
push edx
call fcn.004634c4
add esp, 8
test eax, eax
je 0x415d22
lea eax, [esp + 0x7c]
push 0x4a0dbc
push eax
call fcn.004634c4
add esp, 8
test eax, eax
je 0x415d22
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 0x415cb2
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.004741e0
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 0x416560
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 0x4165c2
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 0x4165d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fb8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a9e70]
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 0x416708
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416636
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004741e0
xor eax, eax
jmp 0x41677f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047431d
push esi
lea ecx, [esp + 0xc]
call fcn.004745ac
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 0x41675d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.00416560
test eax, eax
jne 0x41675d
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 bind
mov ecx, edi
call fcn.00416560
test eax, eax
jne 0x41675d
lea eax, [esp + 0x14]
push 0x4a0dd8
push eax
call fcn.00464500
mov esi, eax
add esp, 8
test esi, esi
jne 0x41673c
lea ecx, [esp + 0x14]
push 0x4a0dd4
push ecx
call fcn.00464480
mov esi, eax
add esp, 8
test esi, esi
jne 0x41673c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41673f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004742cd
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41664e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004741e0
xor eax, eax
jmp 0x41677f
mov byte [esi], 0
push 0x4a0dd0
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.004741e0
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 0x428060
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 0x4280ce
cmp si, 0x69
ja 0x4280ce
add esi, 0xffd0
cmp si, 0x11
je 0x42809e
push 0x11
call edi
test ax, ax
jge 0x42809e
or esi, 0x2000
cmp si, 0x10
je 0x4280b3
push 0x10
call edi
test ax, ax
jge 0x4280b3
or esi, 0x4000
cmp si, 0x12
je 0x4280c8
push 0x12
call edi
test ax, ax
jge 0x4280c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4280db
mov esi, 0xbd
jmp 0x42808f
cmp si, 0x6e
jne 0x4280e8
mov esi, 0xbe
jmp 0x42808f
cmp si, 0x6f
jne 0x428089
mov esi, 0xbf
jmp 0x42808f

Function at 0x429920
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4bafc0]
xor edx, edx
cmp eax, edx
jne 0x429946
xor eax, eax
mov byte [eax + 0x4baec0], al
inc eax
cmp eax, 0x100
jl 0x42992e
mov dword [0x4bafc0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4baec0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4299d7
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 0x4299aa
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 0x429978
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429a50
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 0x429aa3
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 0x429a8a
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