joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3f8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.WTMR_4e5hqd5w
push 1
mov ebx, edx
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.vy6kspal
push str.zapbumwz
call edi
test esi, esi
je 0x40f437
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.MTXf4it7nxn
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40f453
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f45f
push str.i4lct9ts
push str.e6dfui4a
call edi
push str.ev_zj5y9c6f
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.reg4tqfpij9
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esi, 1
jne 0x40f481
push dword [ebp - 4]
mov eax, dword [0x415090]
mov esi, dword [0x41504c]
call eax
lea eax, [eax*2 + 0x80]
push eax
push 0x40
call esi
mov ecx, dword [ebp + 8]
mov esi, eax
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jge 0x40f4e0
mov ebx, dword [ebp - 4]
mov edx, esi
mov ax, word [ebx + ecx*2]
inc ecx
mov word [edx], ax
lea edx, [edx + 2]
cmp ecx, edi
jl 0x40f4ce
mov ebx, dword [ebp - 8]
mov ecx, dword [0x415144]
xor eax, eax
push esi
push dword [ebx]
mov word [esi + edi*2 + 2], ax
call ecx
mov dword [ebx], eax
test esi, esi
je 0x40f4ff
push esi
call dword [0x4150cc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40f572
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41519c]
push ebx
push esi
push edi
push ecx
mov dword [ebp - 8], ecx
call eax
push str.SMPHR_s0ghjuhj
push 1
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, eax
push str.tkkij5u6v
call edi
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f5d4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.regc6799ixb
push 0x80000001
call ebx
push str.MTXqmnyaccw
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f609
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.regqtltfhln
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f60f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_j0zzaigc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40f630
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.tgxwjgq8p
call edi
mov esi, dword [ebp - 4]
mov ecx, dword [0x41504c]
lea eax, [esi*2 + 0x10]
push eax
push 0x40
call ecx
push esi
mov ebx, eax
xor esi, esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
push esi
push 0xfde9
call dword [0x4150b0]
push str.SMPHR_981qt0ru
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.regnrdniiwc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.MTXhy59p5l0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f6bd
push str.tfwb5v3cm
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.tq3hbp6yu
jmp 0x40f6c2
push str.tycnemtll
call edi
mov eax, dword [ebp - 4]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + eax*2], cx
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f6d4
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
mov edi, dword [0x415090]
mov eax, edx
mov ebx, ecx
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 8], ebx
call edi
push ebx
mov esi, eax
call edi
mov ecx, dword [0x41504c]
sub eax, 0xffffff80
add esi, eax
mov dword [ebp - 4], esi
lea eax, [esi + esi]
push eax
push 0x40
call ecx
push dword [ebp - 8]
mov ebx, eax
mov edx, esi
mov ecx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00401f17
push str.WTMR_d4n95glw
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.jri9sg1i
push str.7jhzmcze
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test esi, esi
je 0x40f74d
push esi
call edi
lea eax, [ebp - 0x150]
push eax
push str.s_qcpszic7
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x482
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0xff5
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.tj8on1ivl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.00401f44
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.WTMR_1tg09lb2
push 1
push 0
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f7d4
push eax
call edi
jmp 0x40f7eb
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.regsmrj0ioy
push 0x80000001
call ebx
push str.XMLyug3967e
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.h2r9r5q3
push str.rjpqyq6m
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.WTMR_fj4uf6fy
push 1
push 0
call esi
push str.egom6y1s
push str.8h3vvsih
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call edi
push str.tbqg9j9qe
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.reg37umb2uj
push 0x80000001
call ebx
push dword [ebp - 8]
call dword [0x4150e0]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f86a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [0x41519c]
mov eax, edx
mov ebx, ecx
mov dword [ebp - 8], eax
push eax
mov dword [ebp - 4], ebx
call edi
push ebx
mov esi, eax
call edi
lea edi, [eax + 0x71]
mov eax, dword [0x41504c]
add edi, esi
push edi
push 0x40
call eax
mov ebx, eax
test edi, edi
je 0x40f8be
cmp edi, 0x7fffffff
jbe 0x40f8b0
mov byte [ebx], 0
jmp 0x40f8be
push ecx
push dword [ebp - 4]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0040e84f
push 0xbf0
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.d092xueo
push str.xjvbqpfw
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x148]
push eax
push str.s_wtda4qvw
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.ev_s66cfugg
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.MTX6cfsaroq
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40f938
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.WTMR_ggtieqn3
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f959
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call esi
push str.WTMR_bwdrqfnw
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test edi, edi
je 0x40f9a3
cmp edi, 0x7fffffff
ja 0x40f9a3
mov eax, edi
mov ecx, ebx
cmp byte [ecx], 0
je 0x40f983
inc ecx
sub eax, 1
jne 0x40f978
test eax, eax
je 0x40f98d
mov ecx, edi
sub ecx, eax
jmp 0x40f98f
xor ecx, ecx
test eax, eax
je 0x40f9a3
push ecx
push dword [ebp - 8]
sub edi, ecx
push ecx
add ecx, ebx
mov edx, edi
call fcn.0040e84f
push str.MTXh58xwnik
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x40f9cf
push str.x3gn18tc
push str.3pjqlasw
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call esi
push str.WTMR_s582te4q
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.x0vxipj2
push str.p9vxrkec
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test esi, esi
je 0x40f9ff
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40fa05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfbf
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [0x4150e0]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40fa29
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.MTX1unh2849
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, eax
test esi, esi
je 0x40fa5d
push str.tqmzhsc2n
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40fa64
push str.tlabmboig
call edi
push 3
pop esi
push str.hxkwdu3w
push str.3badzrvx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub esi, 1
jne 0x40fa67
push str.ev_4pjaq179
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x211
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.reg68cu7aec
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
xor eax, eax
push eax
push 0x5c
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.rega9x1p2of
push 0x80000001
call ebx
push str.WTMR_3avrxbwf
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov eax, dword [0x41504c]
push 0x208
push 0x40
call eax
push str.MTX01p3329q
push 0
push 0
mov ebx, eax
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40fb5c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.h81u6d1q
push str.q9t5q7x8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x40fb79
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.regqy5xvy71
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
push str.XMLrxuntlqx
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.t3gm9dkmk
call edi
push esi
push 0xf51
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push str.regsvbq999r
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x4150a0]
lea ecx, [ebp - 4]
push ecx
push 0x20119
push edi
push dword [0x4153a0]
push 0x80000002
call eax
mov ecx, dword [0x4150d4]
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [0x4152d0]
push dword [ebp - 4]
call ecx
test esi, esi
jne 0x40fc19
test eax, eax
je 0x40fc22
push dword [ebp - 4]
call dword [0x415068]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100740d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007b08
call fcn.01007774
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100b658
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007222
cmp eax, esi
jne 0x1007215
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1007225
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10071fc
xor esi, esi
inc esi
mov eax, dword [0x100b654]
cmp eax, esi
jne 0x1007238
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1007273
mov eax, dword [0x100b654]
test eax, eax
jne 0x100726d
mov dword [0x100b654], esi
push 0x1001290
push 0x1001284
call fcn.01007179
pop ecx
pop ecx
test eax, eax
je 0x1007273
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100733d
mov dword [0x1009094], esi
mov eax, dword [0x100b654]
cmp eax, esi
jne 0x1007297
push 0x1001280
push 0x1001278
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b654], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10072a4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b65c], ebx
je 0x10072c5
push 0x100b65c
call fcn.010076e9
pop ecx
test eax, eax
je 0x10072c5
push ebx
push 2
push ebx
call dword [0x100b65c]
push dword [0x100907c]
push dword [0x1009080]
push dword [0x1009078]
call fcn.010060dd
add esp, 0xc
mov dword [0x1009090], eax
cmp dword [0x1009084], ebx
jne 0x1007323
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1009094], ebx
jne 0x1007331
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009090]
call fcn.010077b9
ret
call fcn.010078c1
jmp 0x10071da

Function at 0x401910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401923
push esp
mov dword [ebp - 0x24], 0x401640
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019c2
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019a3
pop ebp
ret 0x10
Function at 0x409cd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a81b
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.0045efb0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409d52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cd5d
mov eax, dword [eax]
push 0x4841d0
push eax
call fcn.0044f1e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f23b
test bl, bl
je 0x409d52
push 0x4841d0
lea ecx, [esp + 0xc]
call fcn.0045f5cb
push 0x487d4c
lea ecx, [esp + 0xc]
call fcn.0045f5cb
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 0x409d8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f23b
jmp 0x409e59
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 0x409e12
lea edx, [esp + 0x7c]
push 0x487d48
push edx
call fcn.0044f1e4
add esp, 8
test eax, eax
je 0x409e12
lea eax, [esp + 0x7c]
push 0x487d44
push eax
call fcn.0044f1e4
add esp, 8
test eax, eax
je 0x409e12
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 0x409da2
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.0045f23b
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 0x40a650
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 0x40a6b2
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 0x40a6c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a89b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e6d0]
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 0x40a7f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f23b
xor eax, eax
jmp 0x40a86f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f378
push esi
lea ecx, [esp + 0xc]
call fcn.0045f607
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 0x40a84d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a650
test eax, eax
jne 0x40a84d
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.0040a650
test eax, eax
jne 0x40a84d
lea eax, [esp + 0x14]
push 0x487d60
push eax
call fcn.00450220
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a82c
lea ecx, [esp + 0x14]
push 0x487d5c
push ecx
call fcn.004501a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a82c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a82f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f328
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a73e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f23b
xor eax, eax
jmp 0x40a86f
mov byte [esi], 0
push 0x487d58
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.0045f23b
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 0x41bd50
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 0x41bdbe
cmp si, 0x69
ja 0x41bdbe
add esi, 0xffd0
cmp si, 0x11
je 0x41bd8e
push 0x11
call edi
test ax, ax
jge 0x41bd8e
or esi, 0x2000
cmp si, 0x10
je 0x41bda3
push 0x10
call edi
test ax, ax
jge 0x41bda3
or esi, 0x4000
cmp si, 0x12
je 0x41bdb8
push 0x12
call edi
test ax, ax
jge 0x41bdb8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bdcb
mov esi, 0xbd
jmp 0x41bd7f
cmp si, 0x6e
jne 0x41bdd8
mov esi, 0xbe
jmp 0x41bd7f
cmp si, 0x6f
jne 0x41bd79
mov esi, 0xbf
jmp 0x41bd7f

Function at 0x41d470
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49edc8]
xor edx, edx
cmp eax, edx
jne 0x41d496
xor eax, eax
mov byte [eax + 0x49ecc8], al
inc eax
cmp eax, 0x100
jl 0x41d47e
mov dword [0x49edc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49ecc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d527
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 0x41d4fa
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 0x41d4c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d5a0
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 0x41d5f3
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 0x41d5da
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