joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1072eea
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
mov eax, 0x1092087
call fcn.01027038
sub esp, 0x30
push esi
push edi
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.01071992
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0101a5f5
push 0x100a844
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0101a383
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.0101a5f5
push 0x100a838
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0101a383
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.01072196
mov esi, eax
cmp esi, edi
jl 0x107304c
mov eax, dword [ebp - 0x28]
cmp eax, edi
mov esi, 0x1001eb0
jne 0x1072f6c
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
mov ebx, 0x80
push ebx
push eax
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1072f85
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x28], 0
je 0x1072f95
mov esi, dword [ebp - 0x28]
push esi
lea ecx, [ebp - 0x3c]
call fcn.010719ef
mov esi, eax
test esi, esi
jl 0x107304b
push ebx
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
mov esi, 0x1001eb0
jne 0x1072fbc
mov eax, esi
push ebx
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1072fc9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1072fd9
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x107300a
call edi
cmp eax, 2
je 0x107300a
test eax, eax
jg 0x1072ffe
mov esi, eax
jmp 0x107304b
and eax, 0xffff
or eax, 0x80070000
jmp 0x1072ffa
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1073013
mov eax, esi
push dword [ebp + 0xc]
push eax
call ebx
test eax, eax
jne 0x1073039
call edi
test eax, eax
jg 0x1073027
call edi
jmp 0x1072ffa
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107304b
cmp dword [ebp - 0x18], 0
je 0x1073042
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
pop ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.0101937d
push 1
lea ecx, [ebp - 0x2c]
call fcn.0101937d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.010700f5
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1073181
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x109209e
call fcn.01027038
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
push edi
jne 0x1073285
lea ecx, [ebp - 0x40]
call fcn.01023e31
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.01024f5f
mov edi, eax
cmp edi, ebx
lea ecx, [ebp - 0x40]
jl 0x107326e
push ebx
push ebx
push 0x100000
push ebx
push ebx
push 0x1002e00
call fcn.01024a75
mov edi, eax
cmp edi, ebx
jl 0x107326b
cmp dword [esi + 0x10], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jne 0x10731ff
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
jmp 0x1073241
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, 0x1001eb0
jne 0x107320d
mov eax, edi
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1073244
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1073244
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1073234
mov eax, edi
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], ebx
jne 0x1073279
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107325b
call esi
mov edi, eax
jmp 0x107326b
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
lea ecx, [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.01024856
jmp 0x1073287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.01024856
xor edi, edi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1074a7d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x1074ab7
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [esi + edx]
mov edi, eax
shr edi, 0x18
xor edx, edi
and edx, 0xff
shl eax, 8
xor eax, dword [edx*4 + 0x10a55e8]
inc esi
cmp esi, dword [ebp + 0x10]
mov dword [ecx], eax
jl 0x1074a8e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1074b2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10a1e18]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push SysReAllocString
push eax
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20c], eax
jne 0x1074b99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1074b84
call esi
mov esi, eax
jmp 0x1074c24
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1074c24
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x208]
push ecx
mov esi, 0x200
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
jmp 0x1074beb
cmp dword [ebp - 0x208], 0
je 0x1074c15
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01074a7d
push 0
lea eax, [ebp - 0x208]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call edi
test eax, eax
jne 0x1074bb8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1074c03
call esi
mov esi, eax
jmp 0x1074c17
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1074c17
xor esi, esi
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0101cfd1
leave
ret 8

Function at 0x1076915
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0106262b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0101dc46
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1076965
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x10769ab
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x10769ab
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x10765f8
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x10769cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10769bd
call esi
mov esi, eax
jmp 0x10769d3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10769d3
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1078648
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0106262b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0101dc46
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1078698
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x10786de
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x10786de
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1077f37
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1078702
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10786f0
call esi
mov esi, eax
jmp 0x1078706
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1078706
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1079229
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x1092639
call fcn.01027038
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.010790d2
mov al, byte [edi + 0x2c]
and dword [ebp - 4], 0
mov byte [esi + 0x2c], al
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call fcn.0102185f
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov ax, word [edi + 0x50]
mov word [esi + 0x50], ax
mov al, byte [edi + 0x52]
mov byte [esi + 0x52], al
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ax, word [edi + 0x58]
mov word [esi + 0x58], ax
lea eax, [edi + 0x5c]
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call fcn.01077985
lea eax, [edi + 0x60]
push eax
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 2
call fcn.01077985
lea eax, [edi + 0x64]
push eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.01077985
add edi, 0x68
push edi
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 4
call fcn.01077985
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1079ec0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10a1e18]
push 0xa
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1004
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1079efd
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call dword [sym.imp.ntdll.dll_strtoul]
add esp, 0xc
test eax, eax
jne 0x1079f03
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp - 4]
call fcn.0101cfd1
leave
ret 4
Function at 0x107b841
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0106262b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0101dc46
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x107b891
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x107b8d7
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x107b8d7
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x107b786
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x107b8fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b8e9
call esi
mov esi, eax
jmp 0x107b8ff
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107b8ff
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x107e723
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0105b171
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0105afc5
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x107e773
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x107e7b9
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x107e7b9
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x107df3e
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x107e7dd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107e7cb
call esi
mov esi, eax
jmp 0x107e7e1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107e7e1
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x108aa41
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x1093978
call fcn.01027038
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 0xa
call fcn.0108a9db
mov eax, dword [esi + 0x60]
test eax, eax
mov byte [ebp - 4], 9
je 0x108aa73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
lea ecx, [esi + 0x4c]
call fcn.0101937d
mov eax, dword [esi + 0x48]
test eax, eax
mov byte [ebp - 4], 7
je 0x108aa8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x40]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [esi + 0x3c]
call edi
push dword [esi + 0x38]
call edi
push dword [esi + 0x34]
call edi
push dword [esi + 0x30]
call edi
push dword [esi + 0x2c]
call edi
push dword [esi + 0x28]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0101d5da
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x108acc6
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x1093a1f
call fcn.01027038
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call fcn.0101d953
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
push ebx
push ebx
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 8
call fcn.01042839
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xa
mov byte [ecx + 8], bl
call fcn.01089f76
or word [esi + 0x24], 0xffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x44], 0x64
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46425b
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.00458d76
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409082
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456c8d
mov eax, dword [eax]
push 0x4801c0
push eax
call fcn.00449af4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459001
test bl, bl
je 0x409082
push 0x4801c0
lea ecx, [esp + 0xc]
call fcn.00459391
push 0x483d3c
lea ecx, [esp + 0xc]
call fcn.00459391
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 0x4090be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459001
jmp 0x409189
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 0x409142
lea edx, [esp + 0x7c]
push 0x483d38
push edx
call fcn.00449af4
add esp, 8
test eax, eax
je 0x409142
lea eax, [esp + 0x7c]
push 0x483d34
push eax
call fcn.00449af4
add esp, 8
test eax, eax
je 0x409142
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 0x4090d2
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.00459001
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 0x409980
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 0x4099e2
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 0x4099f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4642db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48a1e0]
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 0x409b28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409a56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459001
xor eax, eax
jmp 0x409b9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045913e
push esi
lea ecx, [esp + 0xc]
call fcn.004593cd
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 0x409b7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409980
test eax, eax
jne 0x409b7d
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.00409980
test eax, eax
jne 0x409b7d
lea eax, [esp + 0x14]
push 0x483d50
push eax
call fcn.0044ab30
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b5c
lea ecx, [esp + 0x14]
push 0x483d4c
push ecx
call fcn.0044aab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409b5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004590ee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409a6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459001
xor eax, eax
jmp 0x409b9f
mov byte [esi], 0
push 0x483d48
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.00459001
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 0x41a1b0
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 0x41a21e
cmp si, 0x69
ja 0x41a21e
add esi, 0xffd0
cmp si, 0x11
je 0x41a1ee
push 0x11
call edi
test ax, ax
jge 0x41a1ee
or esi, 0x2000
cmp si, 0x10
je 0x41a203
push 0x10
call edi
test ax, ax
jge 0x41a203
or esi, 0x4000
cmp si, 0x12
je 0x41a218
push 0x12
call edi
test ax, ax
jge 0x41a218
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a22b
mov esi, 0xbd
jmp 0x41a1df
cmp si, 0x6e
jne 0x41a238
mov esi, 0xbe
jmp 0x41a1df
cmp si, 0x6f
jne 0x41a1d9
mov esi, 0xbf
jmp 0x41a1df

Function at 0x41b8d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49a838]
xor edx, edx
cmp eax, edx
jne 0x41b8f6
xor eax, eax
mov byte [eax + 0x49a738], al
inc eax
cmp eax, 0x100
jl 0x41b8de
mov dword [0x49a838], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49a738
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b987
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 0x41b95a
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 0x41b928
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ba00
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 0x41ba53
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 0x41ba3a
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