joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x45f144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x400
mov esi, eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00435af0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
lea eax, [ebp - 0x404]
je 0x432d10
push dword [ebp - 0x408]
push esi
push esi
push edi
push str.Y:VirtualUSBSniffer.cpp
push str.File:__s__Line__d_r_nGetLastError_0x_x__u__s_n
push 0x400
push eax
call fcn.00432c20
add esp, 0x20
jmp 0x432d2b
push esi
push esi
push edi
push str.Y:VirtualUSBSniffer.cpp
push str.File:__s__Line__d_r_nGetLastError_0x_x__u_r_n
push 0x400
push eax
call fcn.00432c20
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004339a8
mov esp, ebp
pop ebp
ret

Function at 0x4461f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044606a

Function at 0x449608
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044915b
Function at 0x478d9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d8e0]
jne 0x478da7
repz ret
jmp fcn.0047ba5c

Function at 0x481d37
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d8e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047b455
and dword [ebp - 0x14], 0
cmp dword [0x491a00], 0
mov dword [ebp - 0x18], eax
jne 0x481dea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x481e92
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x481e92
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x491a00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x491a04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x491a08], eax
call edi
push eax
call esi
mov dword [0x491a10], eax
test eax, eax
je 0x481dea
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x491a0c], eax
mov eax, dword [0x491a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x481e43
cmp dword [0x491a10], ecx
je 0x481e43
push eax
call esi
push dword [0x491a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x481e43
test ebx, ebx
je 0x481e43
call edi
test eax, eax
je 0x481e3a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x481e3a
test byte [ebp - 8], 1
jne 0x481e43
or dword [ebp + 0x10], 0x200000
jmp 0x481e76
mov eax, dword [0x491a04]
cmp eax, dword [ebp - 0x18]
je 0x481e76
push eax
call esi
test eax, eax
je 0x481e76
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x481e76
mov eax, dword [0x491a08]
cmp eax, dword [ebp - 0x18]
je 0x481e76
push eax
call esi
test eax, eax
je 0x481e76
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x491a00]
call esi
test eax, eax
je 0x481e92
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x481e94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478d9d
leave
ret
Function at 0x41499d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d1b0
cmp edx, dword [eax]
je 0x4149bf
add eax, 8
inc ecx
cmp eax, 0x41d240
jl 0x4149b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d1b0]
jne 0x414aed
mov eax, dword [0x421a88]
cmp eax, 1
je 0x414ac7
test eax, eax
jne 0x4149f0
cmp dword [0x41ad28], 1
je 0x414ac7
cmp edx, 0xfc
je 0x414aed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414a27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416330
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414a6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416330
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418680
push edi
call fcn.00416480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413a30
lea eax, [ebp - 0xa0]
push 0x418660
push eax
call fcn.00413a30
push dword [esi + 0x41d1b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004163f6
add esp, 0x2c
pop edi
jmp 0x414aed
lea eax, [ebp + 8]
lea esi, [esi + 0x41d1b4]
push 0
push eax
push dword [esi]
call fcn.00416330
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40eba3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409d9f
mov dword [ebp - 0x14], eax
cmp dword [0x4af85c], esi
jne 0x40ec96
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ec23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ed76
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ed76
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ed76
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4af85c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4af860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4af864], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4af86c], eax
test eax, eax
je 0x40ec93
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4af868], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ecbb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ecae
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ecd0
push 4
pop eax
jmp 0x40ed78
cmp dword [ebp - 0x14], esi
je 0x40ecd0
push dword [0x4af85c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ecb5
mov eax, dword [0x4af868]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ed2e
cmp dword [0x4af86c], edi
je 0x40ed2e
push eax
call ebx
push dword [0x4af86c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ed2e
test eax, eax
je 0x40ed2e
call ecx
test eax, eax
je 0x40ed23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ed23
test byte [ebp - 8], 1
jne 0x40ed2e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ed5e
mov eax, dword [0x4af860]
cmp eax, edi
je 0x40ed5b
push eax
call ebx
test eax, eax
je 0x40ed5b
call eax
mov esi, eax
test esi, esi
je 0x40ed5b
mov eax, dword [0x4af864]
cmp eax, edi
je 0x40ed5b
push eax
call ebx
test eax, eax
je 0x40ed5b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4af85c]
call ebx
test eax, eax
je 0x40ed76
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ed78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404398
mov esp, ebp
pop ebp
ret
Function at 0x402631
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f040]
jne 0x40263b
repz ret
jmp fcn.004088ec

Function at 0x4167c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004042b9
and dword [ebp - 4], 0
cmp dword [0x4209d4], 0
mov ebx, eax
jne 0x416874
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416925
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d028
push edi
call esi
test eax, eax
je 0x416925
push eax
call fcn.00404247
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4209d4], eax
call esi
push eax
call fcn.00404247
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4209d8], eax
call esi
push eax
call fcn.00404247
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4209dc], eax
call esi
push eax
call fcn.00404247
pop ecx
mov dword [0x4209e4], eax
test eax, eax
je 0x416874
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404247
pop ecx
mov dword [0x4209e0], eax
mov eax, dword [0x4209e0]
cmp eax, ebx
je 0x4168cc
cmp dword [0x4209e4], ebx
je 0x4168cc
push eax
call fcn.004042c2
push dword [0x4209e4]
mov esi, eax
call fcn.004042c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4168cc
test edi, edi
je 0x4168cc
call esi
test eax, eax
je 0x4168c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4168c3
test byte [ebp - 0xc], 1
jne 0x4168cc
or dword [ebp + 0x10], 0x200000
jmp 0x416905
mov eax, dword [0x4209d8]
cmp eax, ebx
je 0x416905
push eax
call fcn.004042c2
pop ecx
test eax, eax
je 0x416905
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416905
mov eax, dword [0x4209dc]
cmp eax, ebx
je 0x416905
push eax
call fcn.004042c2
pop ecx
test eax, eax
je 0x416905
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4209d4]
call fcn.004042c2
pop ecx
test eax, eax
je 0x416925
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416927
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4151e1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41c108
call fcn.0041599a
push 1
call fcn.00415264
pop ecx
test al, al
jne 0x415098
push 7
call fcn.00415762
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041522f
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415091
test eax, eax
jne 0x415102
mov dword [0x41fc3c], ecx
push 0x418358
push 0x418344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4150e5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4151db
push 0x418340
push 0x418318
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41fc3c], 2
jmp 0x415107
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004153d1
pop ecx
call fcn.00415756
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415137
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415137
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004156eb
call esi
call fcn.0041575c
mov esi, eax
cmp dword [esi], edi
je 0x415155
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415155
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00415878
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004158ab
test al, al
jne 0x415180
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415189
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004153ee
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4151db
call fcn.004159df
ret
call fcn.00414f1f
jmp 0x415079

Function at 0x43b653
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub ebx, edi
or ebx, ebx
sub edi, 0xed7e8244
call fcn.0043b689
or edi, ebx
dec ebx
add edi, 0x5417127
xor dword [esi], edx
sub edi, 1
inc esi
inc ebx
or ebx, edi
inc edi
cmp esi, eax
jne fcn.0043b653
add edi, 1
ret
Function at 0x41feb4
Capabilities:
Encode data using xor

Disassembly:
sal dword [0x9a10db5b], 1
sub al, 0x58
adc esp, dword [eax + 0x74ef7fe]
push eax
push edi
outsb dx, byte [esi]
cmp ah, byte [edx]
sub bh, ch
cmpsd dword [esi], dword es:[edi]
js 0x41fed9
pop edi
daa
jno 0x41ff30
adc byte [0xb0917d6a], dl
inc eax
xchg esi, eax
cmp ecx, 0x3f
stc
aas
invalid
xchg edx, eax
xor byte [edx - 0x55], bl
sub eax, dword [ebp - 0x4850c2b]
test ebp, edx
jp 0x41fef0
aad 0xf3
jp 0x41fef0
sti
sal dword [edx + 0x10d82653], 0x1f
shl dl, 0xdd
jecxz 0x41feeb
cmp byte [ebx + eax - 0x3866c51a], bh
jecxz 0x41fef1
xor byte [edi + edx], dl
aaa
invalid
push 1
dec ecx
retf
inc esp
sbb edi, ecx
mov cl, 0x5d
loope 0x41ff30
cmp dword [edi + 0x24], 0x72e32f94
das
jecxz 0x41ffa5
wait
adc al, 0xaf
adc eax, dword [esi]
jb 0x41ff1a
push ss
push ss
dec ebp
jecxz 0x41fef4
push edx
cwde
sbb esi, esi
adc byte [edi + 0x80fdd8], 0x9b
wait
mov bh, 0xe0
sub edi, ebp
mov esi, 0xb23a937b
jp 0x41ff6b
jp 0x41ff3b
sub al, 0xe1
movsd dword es:[edi], dword [esi]
imul eax, dword [eax - 0x113a9f0b], 0x5d
jle 0x41ff25
loop 0x41ff40
mov bl, byte [ebx + 0x190d901e]
iretd
or eax, 0x4bfdcf19
imul edx, dword [esi + edi + 0x1a14ad84], 0x3970c3f7
rol dword [ecx + 0x27], 0x3f
enter 0xffffffffffffea07, 1
cdq
dec eax
push ecx
xchg edx, eax
sub al, 0x5b
xlatb
fbstp tbyte [esi]
or edi, ecx
pop ecx
cmp ah, byte [esi]
xchg esi, eax
mov dh, 0xad
retf
Function at 0x401031
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00405b00
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010e2
cmp dword [ebp - 0x98], 2
jne 0x4010e0
mov eax, dword [ebp - 0xa4]
mov ecx, eax
sub ecx, 5
je 0x4010c5
dec ecx
jne 0x4010d5
mov ecx, dword [ebp - 0xa0]
sub ecx, esi
je 0x4010b1
dec ecx
jne 0x4010d5
xor eax, eax
cmp byte [ebp + 0x72], 1
setne al
dec eax
and eax, 0x10
add eax, 0x601
jmp 0x4010e2
xor eax, eax
cmp byte [ebp + 0x72], 1
setne al
dec eax
and eax, 0xfffffff0
add eax, 0x610
jmp 0x4010e2
mov ecx, dword [ebp - 0xa0]
sub ecx, esi
je 0x401145
dec ecx
je 0x40113e
dec ecx
je 0x4010f2
shl eax, 8
or eax, dword [ebp - 0xa0]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004058f9
add ebp, 0x78
leave
ret
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [ebp + 0x72], 1
jne 0x401116
cmp word [ebp - 0xcc], 9
jne 0x401116
mov eax, 0x502
jmp 0x4010e2
mov eax, 0x8000
cmp word [ebp + 0x70], ax
jne 0x401128
mov eax, 0x532
jmp 0x4010e2
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x512
jmp 0x4010e2
mov eax, 0x501
jmp 0x4010e2
mov eax, 0x500
jmp 0x4010e2

Function at 0x40118a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00405b00
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x4011db
cmp dword [ebp - 0x78], 2
jae 0x4011dd
cmp dword [ebp - 0x7c], 6
jbe 0x4011e4
call fcn.0040114c
mov esi, eax
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004058f9
add ebp, 0xa0
leave
ret
Function at 0x4013e2
Capabilities:
Manipulate safe mode programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov edi, str.SYSTEMCurrentControlSetControlSafeBootNetwork_atashost
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40142a
push str.RegisterServiceForSafeMode_key_exist
call fcn.00404898
xor esi, esi
pop ecx
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40144b
push eax
push str.RegisterServiceForSafeMode_FAIL__d
call fcn.00404898
pop ecx
pop ecx
xor eax, eax
jmp 0x401426
push str.RegisterServiceForSafeMode_SUCCESS
call fcn.00404898
mov esi, 0x4143cc
push esi
call fcn.004059e1
pop ecx
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x40141b
Function at 0x401496
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push ecx
push ebp
call fcn.004013e2
push dword [esp + 0x10]
call fcn.00404898
mov dword [esp], 0x60000003
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 4], eax
cmp eax, ebp
jne 0x4014c6
xor eax, eax
pop ebp
pop ecx
pop ecx
ret
push ebx
push esi
push edi
mov ebx, 0xf01ff
push ebx
mov edi, str.atashost
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
je 0x4014fd
xor ebp, ebp
inc ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebx
jmp 0x4014c2
push str.CreateService
call fcn.00404898
pop ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push dword [esp + 0x30]
push 1
push 2
push 0x10
push ebx
push str.WebEx_Service_Host_for_Support_Center
push edi
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, ebp
jne 0x4015b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
ja 0x401574
je 0x40156d
sub eax, 5
je 0x401566
dec eax
je 0x40155f
sub eax, 0x2e
je 0x401558
sub eax, 0x23
jne 0x401584
push str.ERROR_INVALID_PARAMETER
jmp 0x40159e
push str.ERROR_DUP_NAME
jmp 0x40159e
push str.ERROR_INVALID_HANDLE
jmp 0x40159e
push str.ERROR_ACCESS_DENIED
jmp 0x40159e
push str.ERROR_INVALID_NAME
jmp 0x40159e
sub eax, 0x421
je 0x401599
dec eax
dec eax
je 0x401592
sub eax, 0xe
je 0x40158b
push str.Other_error
jmp 0x40159e
push str.ERROR_SERVICE_EXISTS
jmp 0x40159e
push str.ERROR_CIRCULAR_DEPENDENCY
jmp 0x40159e
push str.ERROR_INVALID_SERVICE_ACCOUNT
call fcn.00404898
pop ecx
push str.Create_Service_fail
call fcn.00404898
pop ecx
jmp 0x4014ec
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
inc ebp
push ebp
push esi
mov dword [esp + 0x20], str.WebEx_Support_Center.
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4015db
push str.fail_to_add_service_description.
call fcn.00404898
pop ecx
push str.Create_Service_OK
call fcn.00404898
pop ecx
jmp 0x4014e5
Function at 0x401c45
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push str.call_CreateProcessAsAnotherUser_curdir_s_arg_s
call fcn.00404898
xor esi, esi
add esp, 0xc
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, esi
jne 0x401c8b
xor eax, eax
jmp 0x401d80
lea eax, [ebp - 8]
push eax
push 0x102
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ca8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c84
lea eax, [ebp - 4]
push eax
push 1
push 1
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
lea eax, [ebp + 8]
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [ebp - 4]
push 0x44
pop edi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00405b00
add esp, 0xc
push 0xa
pop eax
mov dword [ebp - 0x64], edi
mov word [ebp - 0x34], ax
mov dword [ebp - 0x5c], str.winsta0default
xor edi, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push esi
push 0x30
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
cmp ebx, esi
jne 0x401d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_spawn_process_to_user_session.__d
call fcn.00404898
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3c
jl 0x401cfb
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 4]
call edi
cmp ebx, esi
pop ebx
jne 0x401d68
push dword [ebp - 0xc]
call edi
jmp 0x401c84
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0xc]
call edi
push str.spawn_process_successfully
call fcn.00404898
mov eax, dword [ebp - 0x20]
pop ecx
pop edi
pop esi
leave
ret