joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a05
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x457b1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457b1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046cce9
mov esi, eax
test esi, esi
je 0x457b1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x457b1d
mov ecx, esi
call fcn.00457970
cmp edi, eax
jge 0x457b1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457aa3
mov dword [esp + 0x34], 1
jmp 0x457afe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x457b1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00456f20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46d68d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d6c5
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.0046b744
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b71c
jmp 0x46d6d1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ed82
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 0x46edc4
call fcn.0047487f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46edc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46edbb
xor eax, eax
jmp 0x46edcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046edd2
pop edi
pop esi
pop ebx
ret 4
Function at 0x474daf
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 0x474ddd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474dfb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474d15
jmp 0x474dfb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474dfb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474d15
test edi, edi
mov eax, edi
jne 0x474de5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push edi
mov eax, esi
call fcn.00401a7e
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x4022e3
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00406446
add esp, 0x420
ret
cmp eax, 0x208
jae 0x4022ca
lea ecx, [esp + 8]
push ecx
push 0x209
call edi
test eax, eax
je 0x4022ca
cmp eax, 0x208
jae 0x4022ca
lea eax, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401b4a
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00406446
add esp, 0x420
ret

Function at 0x4024f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x407021
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov eax, dword [0x40a020]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x1048], ebx
mov dword [esi + 0x104c], ebx
mov dword [esi + 0x1050], ebx
push 0x410
push ebx
push esi
mov dword [esp + 0x144], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea eax, [esi + 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esi + 0x820]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea edx, [esi + 0xc20]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x110
lea eax, [esp + 0x1c]
push ebx
push eax
mov byte [esi + 0x1030], bl
mov byte [esi + 0x1031], bl
mov dword [esi + 0x1034], ebx
mov byte [esi + 0x1032], bl
mov byte [esi + 0x1038], 1
mov dword [esp + 0x20], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4025ef
cmp dword [esp + 0x18], 6
jb 0x4025ef
mov byte [esi + 0x1032], 1
call fcn.00402650
mov ecx, esi
call fcn.00403750
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00406446
add esp, 0x130
ret
Function at 0x403750
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x434
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403460
lea ecx, [esi + 0xc20]
mov eax, ecx
lea ebx, [eax + 2]
xor edi, edi
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x403780
sub eax, ebx
sar eax, 1
je 0x40379d
lea eax, [esi + 0x1044]
push eax
call fcn.00403920
push 0x208
lea ecx, [esp + 0x232]
push edi
push ecx
mov word [esp + 0x238], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x230]
mov ebx, 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x208
lea ecx, [esp + 0x22]
push edi
push ecx
mov word [esp + 0x43e], di
mov word [esp + 0x28], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi + 0x1048]
add esi, 0x1044
cmp eax, edi
mov word [esp + 0x222], di
je 0x40383d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403872
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403844
sub eax, edx
sar eax, 1
push 1
add eax, 1
push eax
lea edx, [esp + 0x234]
push edx
push edi
mov edx, esi
lea ecx, [esp + 0x2c]
call fcn.004031f0
jmp 0x403904
mov eax, dword [esi + 4]
cmp eax, edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
je 0x403899
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40389b
call ebx
mov edi, dword [esi + 4]
cmp byte [edi + 0x69c], 1
je 0x4038ae
mov ebp, dword [esi + 8]
cmp edi, ebp
jmp 0x4038e1
mov ebp, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea ecx, [esp + 0x22c]
push ecx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x4038db
lea edx, [esp + 0x1c]
push edx
add edi, 0x280
push edi
call ebp
add esp, 8
test eax, eax
je 0x403904
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x4038e5
call ebx
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4038ef
call ebx
cmp edi, ebp
je 0x403904
mov ebx, dword [esi + 8]
push edi
mov eax, ebp
call fcn.004051b0
mov dword [esi + 8], eax
add esp, 4
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406446
add esp, 0x434
ret
Function at 0x403920
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a020]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x403b25
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403b25
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x7c], edi
push esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00403130
test al, al
je 0x403a2d
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, esi
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
cmp eax, edi
ja 0x403a2d
jb 0x4039dc
cmp ecx, 0xffffe
ja 0x403a2d
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.004047d0
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4039fb
mov ecx, dword [esp + 0x38]
sub ecx, eax
jne 0x403a05
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp ecx, ebp
ja 0x403a2d
jb 0x403a24
cmp eax, esi
jae 0x403a2d
lea ecx, [esp + 0x30]
call fcn.004047d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
cmp esi, edi
je 0x403b25
mov ebx, dword [esp + 0x38]
sub ebx, esi
jne 0x403a56
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x403b25
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x50]
mov byte [esp + 0x7c], 1
call fcn.00405350
cmp ebx, edi
ja 0x403a7e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.004053d0
test al, al
je 0x403b13
mov ebx, dword [esp + 0x44]
cmp ebx, edi
mov ecx, dword [esp + 0x48]
jne 0x403aa4
xor esi, esi
jmp 0x403aa8
mov esi, ecx
sub esi, ebx
mov eax, 0x35ae0b31
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x69d
sub esi, eax
jne 0x403b13
cmp ebx, edi
jne 0x403acc
xor ecx, ecx
jmp 0x403ace
sub ecx, ebx
mov eax, 0x35ae0b31
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
mov esi, ecx
je 0x403b13
mov ebx, dword [esp + 0x84]
push esi
push ebx
call fcn.00404620
imul esi, esi, 0x69d
push esi
lea esi, [esp + 0x44]
call fcn.004048a0
push eax
xor edi, edi
mov esi, ebx
call fcn.004046f0
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.004045f0
lea esi, [esp + 0x30]
call fcn.004045f0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4
Function at 0x404330
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x85c
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x86c], ebx
push esi
push edi
je 0x404488
mov eax, dword [esp + 0x870]
mov eax, dword [eax]
cmp eax, ebx
je 0x404370
cmp byte [eax + 0x1038], bl
je 0x404488
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.COMCTL32.DLL
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
mov dword [esp + 0x20], eax
call esi
cmp eax, ebx
je 0x4043aa
lea ecx, [esp + 0x1c]
push ecx
call eax
push str.User32.dll
call ebp
push str.MessageBoxW
push eax
mov dword [esp + 0x1c], eax
call esi
mov esi, eax
cmp esi, ebx
je 0x4043f2
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a8
je 0x4043e4
cmp eax, 0xd698
je 0x4043e4
push ebx
push 0x408278
push str.The_HaoZip_program_files_may_be_damaged._nPlease_press__OK__goto_the_Official_Website_n_http:__www.haozip.com___download_the_lastest_version_and_reinstall.
jmp 0x4043ef
push ebx
push str.2345
push 0x408688
push ebx
call esi
push 0x7fe
lea edx, [esp + 0x66]
push ebx
push edx
mov word [esp + 0x6c], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x3fe
lea eax, [esp + 0x64]
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 0xffffffff
cmp eax, 0x3fd
ja 0x404441
lea ecx, [esp + 0x60]
push ecx
call edi
cmp eax, 0xffffffff
je 0x404441
test al, 0x10
je 0x40448f
push 0x3fe
lea edx, [esp + 0x64]
push edx
push str._programfiles_x86__Internet_Exploreriexplore.exe
call esi
add eax, 0xffffffff
cmp eax, 0x3fd
ja 0x40446c
lea eax, [esp + 0x60]
push eax
call edi
cmp eax, 0xffffffff
je 0x40446c
test al, 0x10
je 0x40448f
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40447d
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404488
push eax
call esi
xor al, al
jmp 0x404518
push 0x38
lea ecx, [esp + 0x2c]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x60]
push str.Shell32.dll
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], str.http:__www.haozip.com
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 1
mov dword [esp + 0x60], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
cmp esi, ebx
je 0x404500
push str.ShellExecuteExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4044fd
lea ecx, [esp + 0x24]
push ecx
call eax
push esi
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40450b
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404516
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x864]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406446
add esp, 0x85c
ret 8
Function at 0x401640
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 0x401666
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 0x4016fa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016b5
cmp eax, 0x40
je 0x4016b5
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 0x401659
cmp eax, 0x40
je 0x401659
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 0x401659
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 0x407a80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x464e0b
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.00459b3b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407b02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00457a8a
mov eax, dword [eax]
push 0x47b1f0
push eax
call fcn.0044a714
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459dc6
test bl, bl
je 0x407b02
push 0x47b1f0
lea ecx, [esp + 0xc]
call fcn.0045a156
push 0x47ed58
lea ecx, [esp + 0xc]
call fcn.0045a156
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 0x407b3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459dc6
jmp 0x407c09
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 0x407bc2
lea edx, [esp + 0x7c]
push 0x47ed54
push edx
call fcn.0044a714
add esp, 8
test eax, eax
je 0x407bc2
lea eax, [esp + 0x7c]
push 0x47ed50
push eax
call fcn.0044a714
add esp, 8
test eax, eax
je 0x407bc2
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 0x407b52
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.00459dc6
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 0x408400
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 0x408462
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 0x408470
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x464e8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x485474]
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 0x4085a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4084d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459dc6
xor eax, eax
jmp 0x40861f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459f03
push esi
lea ecx, [esp + 0xc]
call fcn.0045a192
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x47ed90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4085fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408400
test eax, eax
jne 0x4085fd
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.00408400
test eax, eax
jne 0x4085fd
lea eax, [esp + 0x14]
push 0x47ed6c
push eax
call fcn.0044b750
mov esi, eax
add esp, 8
test esi, esi
jne 0x4085dc
lea ecx, [esp + 0x14]
push 0x47ed68
push ecx
call fcn.0044b6d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4085dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4085df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459eb3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4084ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459dc6
xor eax, eax
jmp 0x40861f
mov byte [esi], 0
push 0x47ed64
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.00459dc6
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 0x419d60
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 0x419dce
cmp si, 0x69
ja 0x419dce
add esi, 0xffd0
cmp si, 0x11
je 0x419d9e
push 0x11
call edi
test ax, ax
jge 0x419d9e
or esi, 0x2000
cmp si, 0x10
je 0x419db3
push 0x10
call edi
test ax, ax
jge 0x419db3
or esi, 0x4000
cmp si, 0x12
je 0x419dc8
push 0x12
call edi
test ax, ax
jge 0x419dc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419ddb
mov esi, 0xbd
jmp 0x419d8f
cmp si, 0x6e
jne 0x419de8
mov esi, 0xbe
jmp 0x419d8f
cmp si, 0x6f
jne 0x419d89
mov esi, 0xbf
jmp 0x419d8f

Function at 0x41b480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x495ac0]
xor edx, edx
cmp eax, edx
jne 0x41b4a6
xor eax, eax
mov byte [eax + 0x4959c0], al
inc eax
cmp eax, 0x100
jl 0x41b48e
mov dword [0x495ac0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4959c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b537
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 0x41b50a
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 0x41b4d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b5b0
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 0x41b603
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 0x41b5ea
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