joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101682c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10031c10
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push edi
call fcn.10150470
add esp, 0xc
test eax, eax
je 0x101684db
nop dword [eax + eax]
mov ecx, dword [esp + 8]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x20]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.10150470
add esp, 0xc
test eax, eax
jne 0x101682f0
test esi, esi
je 0x101684db
mov eax, dword [esp + 0x50]
cdq
idiv esi
mov edi, dword [esp + 0x5c]
cmp esi, 1
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.10054b20
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.10150470
add esp, 0x18
test eax, eax
je 0x101684a6
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x10168482
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x101684b3
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.10168500
add esp, 0x3c
test eax, eax
je 0x101684d1
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x1016847e
cmp edi, 0x20
jb 0x1016845b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x10168411
cmp edx, ebx
jae 0x1016845b
mov eax, edi
and eax, 0x8000001f
jns 0x1016841f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x10168430
cmp ecx, edi
jge 0x1016847e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x10168470
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.10150470
add esp, 0xc
test eax, eax
jne 0x10168380
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.100c8ac0
add esp, 0x14
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.100c8ac0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
Function at 0x101781a0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100bbb30
add esp, 8
test esi, esi
jg 0x101781f7
je 0x101781d9
cmp esi, 0xffffffff
jne 0x101781f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10178400
add esp, 4
test eax, eax
je 0x101781f7
push 0xa
push edi
call fcn.100bc230
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x10178560
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x1017857b
push eax
push esi
call fcn.10178c10
add esp, 8
test eax, eax
jle 0x101785c3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.100bbb30
add esp, 8
test edi, edi
jg 0x101785c0
push edi
call fcn.101784c0
add esp, 4
test eax, eax
je 0x101785c0
push 0xa
push esi
call fcn.100bc230
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x1017a4d0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.1017a990
mov edi, eax
add esp, 8
test edi, edi
jns 0x1017a50e
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.100c8ac0
add esp, 0x14
jmp 0x1017a5cf
call fcn.1017a8c0
cmp eax, 1
jne 0x1017a5df
test edi, edi
jle 0x1017a527
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.100d0340
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1017a564
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.100c8ac0
add esp, 0x14
jmp 0x1017a5b5
cmp word [ecx + 8], 2
je 0x1017a585
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.100c8ac0
add esp, 0x14
jmp 0x1017a5b5
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100d0340
add esp, 0x10
test ebp, ebp
je 0x1017a5e6
push esi
push str.host
push 2
call fcn.100c8030
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1017a940
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1017a980
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.100c8ac0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4081d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.KCPROFKXP::CloseKxpFile_n
call fcn.00413880
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1058]
and ecx, 1
je 0x408251
push 0
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1054]
movsx eax, word [edx + 0xc]
push eax
push str.m_KxpHead__nProfCount___d_n
call fcn.00413880
add esp, 8
push 0
lea ecx, [ebp - 4]
push ecx
push 0x90
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1054]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x409d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0x90
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x409d69
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1054]
movsx edx, word [ecx + 0xc]
cmp dword [ebp - 0x10], edx
jge 0x409e80
push 0
lea eax, [ebp - 0xc]
push eax
push 0x2bc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x106c]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x106c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x106c]
mov eax, dword [eax + 0x22c]
add eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x106c]
add eax, dword [edx + 0x234]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x106c]
add eax, dword [edx + 0x238]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x106c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00418740
add esp, 8
test eax, eax
jne 0x409e63
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jle 0x409e5e
mov dword [ebp - 0x14], 0
jmp 0x409e23
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jge 0x409e46
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x106c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, dword [eax + ecx*4 + 0x22c]
mov dword [ebp - 4], edx
jmp 0x409e1a
push 1
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x409e83
push 1
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409d60
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x40c720
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c793
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c780
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push str.RemoveRegValue___remove_value_error____ld_for__s_n
call fcn.004139d0
add esp, 0xc
jmp 0x40c787
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c7a8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push str.RemoveRegValue___open_registry_error____ld_for__s_n
call fcn.004139d0
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c970
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
jb 0x40c9af
mov al, 1
jmp 0x40c9b1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret

Function at 0x40d7b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x414], ecx
mov eax, dword [ebp - 0x414]
add eax, 0x14
push eax
push str.SYSTEMCurrentControlSetControlPrintPrinters_sPrinterDriverData
push 0x200
lea ecx, [ebp - 0x410]
push ecx
call fcn.00418afb
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
lea eax, [ebp - 0x410]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40d81f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor al, al
jmp 0x40d84f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40d843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor al, al
jmp 0x40d84f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret 4
Function at 0x40e4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [str.Lang]
mov dword [ebp - 0xc], eax
mov cx, word [0x42b1c8]
mov word [ebp - 8], cx
push 0
lea edx, [ebp - 0x18]
push edx
push 5
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e4f4
xor al, al
jmp 0x40e520
push 5
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00416c29
add esp, 0xc
test eax, eax
jne 0x40e515
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x20
jmp 0x40e51e
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret 8
Function at 0x410550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax + 0x26c], 1
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x410630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x268], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x410670
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a28
call fcn.00420ff0
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2a28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a28]
movzx ecx, byte [eax + 0x10]
test ecx, ecx
je 0x4106bf
mov edx, dword [ebp - 0x2a28]
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [eax + 0x260]
mov dword [edx + 0x25c], ecx
jmp 0x410774
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00416110
add esp, 0xc
mov ecx, dword [ebp - 0x2a28]
add ecx, 0x274
push ecx
push str..pipe_s
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.wszPipePath___s__n
call fcn.004139d0
add esp, 8
push 0
push 0x3e8
push 0x400
push 0x400
push 2
push 6
push 3
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp - 0x2a28]
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [ebp - 0x2a28]
mov edx, dword [ecx + 0x25c]
mov dword [eax + 0x260], edx
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [ebp - 0x2a28]
mov edx, dword [ecx + 0x25c]
mov dword [eax + 0x264], edx
mov eax, dword [ebp - 0x2a28]
movzx ecx, byte [eax + 0x26c]
test ecx, ecx
je 0x41090b
mov edx, dword [ebp - 0x2a28]
cmp dword [edx + 0x25c], 0xffffffff
je 0x41090b
push 0x800
push 0
lea eax, [ebp - 0xa18]
push eax
call fcn.00416110
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0x800
lea edx, [ebp - 0xa18]
push edx
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [eax + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4107fd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x218], 0
jbe 0x410906
lea edx, [ebp - 0xa18]
push edx
mov eax, dword [ebp - 0x218]
push eax
push str.DATA__d____s__n
call fcn.004139d0
add esp, 0xc
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0xa18]
push edx
mov ecx, dword [ebp - 0x2a28]
call fcn.004109a0
mov dword [ebp - 0xa1c], eax
mov eax, dword [ebp - 0x2a28]
movzx ecx, byte [eax + 0x26d]
test ecx, ecx
jne 0x4108f9
xor edx, edx
mov word [ebp - 0x2a20], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x2a1e]
push eax
call fcn.00416110
add esp, 0xc
mov ecx, dword [ebp - 0x2a28]
add ecx, 0x488
push ecx
mov edx, dword [ebp - 0x2a28]
mov eax, dword [edx + 0x480]
push eax
mov ecx, dword [ebp - 0x2a28]
mov edx, dword [ecx + 0x484]
push edx
push str._d__d___s_
push 0x1000
lea eax, [ebp - 0x2a20]
push eax
call fcn.00418fb3
add esp, 0x18
mov dword [ebp - 0x2a24], 0
push 0
lea ecx, [ebp - 0x2a24]
push ecx
lea edx, [ebp - 0x2a20]
push edx
call fcn.00415bde
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x2a20]
push ecx
mov edx, dword [ebp - 0x2a28]
mov eax, dword [edx + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x2a28]
mov byte [ecx + 0x26d], 0
jmp 0x410774
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret
Function at 0x413880
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x301c
call fcn.00420ff0
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, byte [0x430e20]
test eax, eax
jne 0x4138b2
movzx ecx, byte [0x430e21]
test ecx, ecx
jne 0x4138b2
jmp 0x4139c1
lea edx, [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x3018]
push eax
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x100a]
push eax
movzx ecx, word [ebp - 0x100c]
push ecx
movzx edx, word [ebp - 0x100e]
push edx
movzx eax, word [ebp - 0x1010]
push eax
movzx ecx, word [ebp - 0x1018]
push ecx
movzx edx, word [ebp - 0x1012]
push edx
movzx eax, word [ebp - 0x1016]
push eax
push str._02i__02i__02i__02i:_02i:_02i:_03i
lea ecx, [ebp - 0x2018]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea edx, [ebp - 0x1008]
push edx
lea eax, [ebp - 0x2018]
push eax
call fcn.00416a50
add esp, 8
movzx ecx, byte [0x430e20]
test ecx, ecx
je 0x413970
lea edx, [ebp - 0x2018]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, byte [0x430e21]
test eax, eax
je 0x4139c1
push 0x42bf14
push str.KxAdmSvc.log
call fcn.00419259
add esp, 8
mov dword [ebp - 0x301c], eax
cmp dword [ebp - 0x301c], 0
je 0x4139c1
mov ecx, dword [ebp - 0x301c]
push ecx
lea edx, [ebp - 0x2018]
push edx
call fcn.00419086
add esp, 8
mov eax, dword [ebp - 0x301c]
push eax
call fcn.004193d8
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret

Function at 0x4139d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.00420ff0
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 0x18], eax
movzx eax, byte [0x430e20]
test eax, eax
jne 0x4139f4
jmp 0x413a73
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x2018]
push ecx
call fcn.00419344
add esp, 0x10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x2018]
push eax
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 0xa]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
movzx edx, word [ebp - 0x14]
push edx
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
lea edx, [ebp - 0x4018]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea eax, [ebp - 0x4018]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret
Function at 0x414a50
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
push str.KXAPI::DeleteFile_____s__n
call fcn.004139d0
add esp, 8
mov dword [ebp - 4], 1
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x414b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x414aaf
push str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.00413880
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x414b06
cmp dword [ebp - 8], 3
jne 0x414ac7
push str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.00413880
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x414b06
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x414ae1
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.00413880
add esp, 4
jmp 0x414afc
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.00413880
add esp, 4
push 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x414b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00416110
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00416110
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414b99
push 0x104
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x414bd6
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00415af0
add esp, 8
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415aa8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415430
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push str.KXSVC::StartService_n
call fcn.00413880
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x41545a
jmp 0x4154fa
push 0xf003f
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4154e6
mov dword [ebp - 0xc], 0
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4154c6
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4154ba
push str.KXSVC::StartService___Control_service_success_n
call fcn.00413880
add esp, 4
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4154da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::StartService___OpenService_error___d_n
call fcn.00413880
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4154fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::StartService___OpenSCManager_error___d_n
call fcn.00413880
add esp, 8
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8