joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f7b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x51f816
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x51f816
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x51f7f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x51fba0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x51fbd8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x520860
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5208a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x520d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5441c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005208d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00520950
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00520950
lea ecx, [esi + 0xc]
call fcn.0053466a
lea ecx, [esi + 0x10]
call fcn.0053466a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00521ee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00521ee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00521ee0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005346df
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005346df
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x536aad
Capabilities:
Get graphical window text

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

Function at 0x5381a3
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 0x5381e5
call fcn.0053e1e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5381e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5381dc
xor eax, eax
jmp 0x5381ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005381f3
pop edi
pop esi
pop ebx
ret 4

Function at 0x53e711
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 0x53e73f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53e75d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053e677
jmp 0x53e75d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53e75d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053e677
test edi, edi
mov eax, edi
jne 0x53e747
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401170
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
push edi
mov dword [0x40cccc], esi
call fcn.00401760
test eax, eax
jne 0x40118e
pop edi
pop esi
add esp, 0x20
ret
call fcn.00401a80
test eax, eax
jne 0x4011a4
call fcn.00402380
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.00401b70
test eax, eax
jne 0x4011ba
call fcn.004022e0
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0x40000
push str.Electric_Rain__Inc.___Swift_3D_V4.00_Readme
push str.EPROJECTOR
push 0x10100
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
mov dword [0x40ccc8], eax
call edi
mov eax, dword [0x40ccc8]
test eax, eax
jne 0x40120f
call fcn.004022e0
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
call fcn.00401d00
call fcn.00402100
test eax, eax
jne 0x401233
call fcn.004022e0
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
mov ecx, dword [0x40ccc8]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x40ccc8]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x40cd74]
mov ecx, dword [esp + 8]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4012a5
mov edx, dword [0x40cd6c]
test edx, edx
je 0x4012a5
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
sub edx, esi
mov esi, dword [0x40cd88]
sub edx, ecx
add esi, edx
mov edx, dword [esp + 0x14]
mov dword [0x40cd88], esi
mov esi, dword [esp + 0x24]
sub edx, esi
mov esi, dword [0x40cd84]
sub edx, eax
add esi, edx
mov dword [0x40cd84], esi
mov edx, dword [0x40cd84]
push 0x20
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push edx
mov edx, dword [0x40cd88]
push edx
push eax
mov eax, dword [0x40ccc8]
push ecx
push 1
push eax
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [0x40cdac]
push 0x20
push ecx
push edx
push 0
push 0
push 0xffffffffffffffff
push eax
call esi
mov ecx, dword [esp + 0x30]
mov edx, dword [0x40ccc8]
push ecx
push edx
call edi
mov eax, dword [0x40ccc8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x40ccc8]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x4016a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x4016f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40cccc]
push esi
and eax, 0xffff
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x40cccc]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xc]
push esi
mov dword [ecx], eax
mov edx, dword [0x40cccc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret

Function at 0x401740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40175a
test eax, eax
je 0x40175a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x401f70
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x148
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
push str.C:_temp114445328Readme.exe
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401fc1
lea eax, [esp + 8]
push 0x4086f8
push eax
mov dword [esp + 0x10], str.Cant_locate_projector_file
call fcn.004028b6
lea ecx, [esp + 0xc]
push 0x40cdb0
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push str.C:_temp114445328Readme.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402016
push str.C:_temp114445328Readme.exe
lea edx, [esp + 0x54]
push str.Cannot_launch__s_projector.
push edx
call fcn.00402970
add esp, 0xc
lea ecx, [esp + 8]
lea eax, [esp + 0x50]
push 0x4086f8
push ecx
mov dword [esp + 0x10], eax
call fcn.004028b6
mov edx, dword [0x40cdb4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40cdb0]
mov eax, dword [0x40cdbc]
mov esi, dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x1388
push ecx
mov dword [0x40cd94], eax
call esi
cmp eax, 0x102
jne 0x40205d
mov edx, dword [0x40cdb0]
push 0x1388
push edx
call esi
cmp eax, 0x102
je 0x402048
pop edi
pop esi
add esp, 0x148
ret

Function at 0x402070
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40cdac]
push esi
push 0
push 0
push 0x10
push eax
mov dword [0x40cda8], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x40cdac]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x40cdb0]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
je 0x4020cd
mov eax, dword [0x40cdb0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x40cdb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [0x40cdb0], edx
mov dword [0x40cdb4], edx
mov dword [0x40cdb8], edx
mov dword [0x40cdbc], edx
ret
Function at 0x402100
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.00401f70
push 0
push 0x4022a0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x402158
lea eax, [ebp - 0x14]
push 0x4086f8
push eax
mov dword [ebp - 0x14], str.Cannot_enumerate_projector_windows.
call fcn.004028b6
mov ecx, dword [0x40cdac]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40217e
lea edx, [ebp - 0x18]
push 0x4086f8
push edx
mov dword [ebp - 0x18], str.Unknown_error_
call fcn.004028b6
mov eax, dword [0x40cdac]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
test eax, eax
jne 0x4021a5
lea ecx, [ebp - 0x1c]
push 0x4086f8
push ecx
mov dword [ebp - 0x1c], str.Cannot_remove_projector_menu
call fcn.004028b6
mov edx, dword [0x40cd94]
mov eax, dword [0x40cdac]
mov ecx, dword [0x40ccc8]
push edx
push eax
push ecx
call dword [0x40d1d8]
mov eax, dword [0x40ccc8]
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x40cdac]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x40cdac]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push edx
push eax
push 0
push 0
push ecx
call esi
mov edx, dword [0x40ccc8]
mov eax, dword [0x40cdac]
push edx
push eax
call dword [sym.imp.USER32.dll_SetParent]
test eax, eax
jne 0x402228
lea ecx, [ebp - 0x20]
push 0x4086f8
push ecx
mov dword [ebp - 0x20], str.Unknown_error
call fcn.004028b6
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x40cdac]
push 1
push edx
push eax
push 0
push 0
push ecx
call esi
mov edx, dword [0x40cdac]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402380
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x244
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, str.C:_temp114445328
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x40248c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x110]
push edx
push edi
call ebx
test eax, eax
je 0x402485
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x140]
mov eax, 0x40a304
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402446
test cl, cl
je 0x402442
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402446
add eax, 2
add esi, 2
test cl, cl
jne 0x402422
xor eax, eax
jmp 0x40244b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402475
lea eax, [esp + 0x140]
lea ecx, [esp + 0x10]
push eax
push str.C:_temp114445328
push 0x40a2fc
push ecx
call fcn.00402970
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x114]
push eax
push edi
call ebx
test eax, eax
jne 0x402416
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.C:_temp114445328
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x244
ret
Function at 0x404af9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a410
cmp edx, dword [eax]
je 0x404b1b
add eax, 8
inc ecx
cmp eax, 0x40a4a0
jl 0x404b0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a410]
jne 0x404c49
mov eax, dword [0x40d1f0]
cmp eax, 1
je 0x404c23
test eax, eax
jne 0x404b4c
cmp dword [0x40a344], 1
je 0x404c23
cmp edx, 0xfc
je 0x404c49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b83
lea eax, [ebp - 0x1a4]
push 0x4085dc
push eax
call fcn.004067e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004061e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404bc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004061e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085d8
push edi
call fcn.00406ff0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4085bc
push eax
call fcn.004067e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067f0
lea eax, [ebp - 0xa0]
push 0x4085b8
push eax
call fcn.004067f0
push dword [esi + 0x40a414]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x408590
push eax
call fcn.00406f5f
add esp, 0x2c
pop edi
jmp 0x404c49
lea eax, [ebp + 8]
lea esi, [esi + 0x40a414]
push 0
push eax
push dword [esi]
call fcn.004061e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40ba30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a35b
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.0045ee09
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bab2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cd20
mov eax, dword [eax]
push 0x4811f0
push eax
call fcn.0044f954
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f094
test bl, bl
je 0x40bab2
push 0x4811f0
lea ecx, [esp + 0xc]
call fcn.0045f424
push 0x484d64
lea ecx, [esp + 0xc]
call fcn.0045f424
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 0x40baee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f094
jmp 0x40bbb9
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 0x40bb72
lea edx, [esp + 0x7c]
push 0x484d60
push edx
call fcn.0044f954
add esp, 8
test eax, eax
je 0x40bb72
lea eax, [esp + 0x7c]
push 0x484d5c
push eax
call fcn.0044f954
add esp, 8
test eax, eax
je 0x40bb72
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 0x40bb02
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.0045f094
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 0x40c3b0
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 0x40c412
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 0x40c420
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48b29c]
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 0x40c558
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c486
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f094
xor eax, eax
jmp 0x40c5cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f1d1
push esi
lea ecx, [esp + 0xc]
call fcn.0045f460
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 0x40c5ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040c3b0
test eax, eax
jne 0x40c5ad
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 0x80000000
mov ecx, edi
call fcn.0040c3b0
test eax, eax
jne 0x40c5ad
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00450990
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c58c
lea ecx, [esp + 0x14]
push 0x484d74
push ecx
call fcn.00450910
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c58c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c58f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f181
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c49e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f094
xor eax, eax
jmp 0x40c5cf
mov byte [esi], 0
push 0x484d70
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.0045f094
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 0x41fc30
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 0x41fc9e
cmp si, 0x69
ja 0x41fc9e
add esi, 0xffd0
cmp si, 0x11
je 0x41fc6e
push 0x11
call edi
test ax, ax
jge 0x41fc6e
or esi, 0x2000
cmp si, 0x10
je 0x41fc83
push 0x10
call edi
test ax, ax
jge 0x41fc83
or esi, 0x4000
cmp si, 0x12
je 0x41fc98
push 0x12
call edi
test ax, ax
jge 0x41fc98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fcab
mov esi, 0xbd
jmp 0x41fc5f
cmp si, 0x6e
jne 0x41fcb8
mov esi, 0xbe
jmp 0x41fc5f
cmp si, 0x6f
jne 0x41fc59
mov esi, 0xbf
jmp 0x41fc5f

Function at 0x421350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49b920]
xor edx, edx
cmp eax, edx
jne 0x421376
xor eax, eax
mov byte [eax + 0x49b820], al
inc eax
cmp eax, 0x100
jl 0x42135e
mov dword [0x49b920], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49b820
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421407
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 0x4213da
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 0x4213a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421480
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 0x4214d3
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 0x4214ba
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