joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], edx
mov ebx, ecx
test edi, edi
je 0x100468af
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x10046883
mov eax, edi
and dword [ebp + 8], 0
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x100468b8
test ecx, ecx
je 0x100468af
test edi, edi
ja 0x10046878
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100468b1

Function at 0x100468c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], edx
mov ebx, ecx
test edi, edi
je 0x1004690f
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x100468e3
mov eax, edi
and dword [ebp + 8], 0
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x10046918
test ecx, ecx
je 0x1004690f
test edi, edi
ja 0x100468d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10046911

Function at 0x1004699a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx]
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100469bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100469da
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.1003f600
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10046a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x10046a60
mov dword [ecx*4 + 0x100607a0], eax
inc ecx
cmp ecx, 0x100
jb 0x10046a5b
mov edx, 0x800
jmp 0x10046aad
mov eax, dword [ecx*4 + 0x100603a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100607a0]
inc ecx
mov dword [ecx*4 + 0x1006079c], eax
cmp ecx, edx
jb 0x10046a8c
mov dword [0x10060264], 0x100488b9
call fcn.10048a49
pop esi
test eax, eax
jne 0x10046acf
mov dword [0x10060264], 0x10048955
ret
Function at 0x10049670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
xor eax, eax
and esi, 7
mov dword [ebp - 0x10], ebx
cmp edx, 5
jb 0x100497c8
add dword [ebp + 8], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx + edx - 4]
mov dword [ebp - 8], ecx
push edi
lea edi, [eax + ebx]
jmp 0x100496ae
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x100496b3
inc edi
cmp edi, dword [ebp - 8]
jb 0x100496a5
mov eax, edi
sub eax, ebx
cmp edi, dword [ebp - 8]
jae 0x100497aa
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x10049707
xor esi, esi
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x100496db
cmp cl, 0xff
jne 0x10049732
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
cmp dword [ebp + 0x10], 0
je 0x10049740
lea ebx, [edx + eax]
add ebx, dword [ebp + 8]
jmp 0x10049747
dec ecx
shl esi, cl
and esi, 7
je 0x100496cc
movzx ecx, byte [esi + 0x10053234]
mov edx, edi
sub edx, ecx
cmp byte [esi + 0x1005322c], 0
mov cl, byte [edx + 4]
je 0x1004972f
test cl, cl
je 0x1004972f
cmp cl, 0xff
jne 0x100496cc
mov dword [ebp - 4], eax
and esi, 3
add esi, esi
or esi, 1
inc eax
jmp 0x100496a0
sub edx, eax
sub edx, dword [ebp + 8]
mov ebx, edx
test esi, esi
je 0x1004977d
movzx edx, byte [esi + 0x10053234]
shl edx, 3
push 0x18
pop ecx
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x1004976a
cmp dl, 0xff
jne 0x1004977d
push 0x20
xor edx, edx
pop ecx
sub ecx, dword [ebp - 0xc]
inc edx
shl edx, cl
dec edx
xor edx, ebx
jmp 0x100496f9
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0x10]
mov byte [edi + 2], cl
add eax, 5
jmp 0x100496a0
mov edx, eax
sub edx, dword [ebp - 4]
push 3
lea ecx, [edx - 1]
shl esi, cl
pop edi
and esi, 7
cmp edi, edx
mov edx, dword [ebp + 0xc]
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
mov eax, dword [0x635acc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [0x632038]
push eax
mov dword [esp + 0xc], 0
mov dword [0x635acc], eax
add byte [ebp + 0xd8b0914], cl
cmp al, 0x20
arpl word [eax], ax
Function at 0x62a945
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632380
cmp edx, dword [eax]
je 0x62a967
add eax, 8
inc ecx
cmp eax, 0x632410
jl 0x62a958
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632380]
jne 0x62aa95
mov eax, dword [0x636d10]
cmp eax, 1
je 0x62aa6f
test eax, eax
jne 0x62a998
cmp dword [0x6322ac], 1
je 0x62aa6f
cmp edx, 0xfc
je 0x62aa95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a9cf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062b330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062b7c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62aa12
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062b7c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f88c
push edi
call fcn.0062d690
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062b330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062b340
lea eax, [ebp - 0xa0]
push 0x62f86c
push eax
call fcn.0062b340
push dword [esi + 0x632384]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062b340
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d604
add esp, 0x2c
pop edi
jmp 0x62aa95
lea eax, [ebp + 8]
lea esi, [esi + 0x632384]
push 0
push eax
push dword [esi]
call fcn.0062b7c0
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 0x42d3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x42d402
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42d3f8
mov eax, 1
add ebx, ebx
jne 0x42d41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d410
jne 0x42d42c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d410
xor ecx, ecx
sub eax, 3
jb 0x42d440
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d4b2
mov ebp, eax
add ebx, ebx
jne 0x42d44b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d47c
inc ecx
add ebx, ebx
jne 0x42d468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d45d
jne 0x42d479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d45d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d49c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d48d
jmp 0x42d3fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d49c
add edi, ecx
jmp 0x42d3fe
pop esi
mov edi, esi
mov ecx, 0x758
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d4ba
cmp byte [edi], 0xc
jne 0x42d4ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42d4bf
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42d537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fa1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d4ec
mov ecx, edi
jns 0x42d51b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fa20]
or eax, eax
je 0x42d531
mov dword [ebx], eax
add ebx, 4
jmp 0x42d509
call dword [esi + 0x2fa24]
popal
jmp 0x41939e
Function at 0x4011f0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x409f30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x40e050]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e050]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x20]
xor ebp, ebp
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.004019f0
mov dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov esi, ecx
sub esi, eax
sar esi, 1
mov edi, eax
cmp eax, ecx
jbe 0x40125b
call fcn.00402aa0
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x401376
call fcn.00402aa0
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x401278
call fcn.00402aa0
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
jb 0x401287
mov eax, dword [eax]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
jbe 0x40129f
call fcn.00402aa0
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x40137d
call fcn.00402aa0
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4012bc
call fcn.00402aa0
xor edx, edx
mov eax, esi
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4012d4
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x3c]
call fcn.00401ec0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x60], 1
mov edi, dword [ebx + 0x14]
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x401307
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x3c]
call fcn.00402510
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x401384
xor ecx, ecx
mov ebx, 7
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebp
push 0xffffffffffffffff
mov word [edi + 4], cx
push ebp
lea eax, [esp + 0x40]
mov ecx, edi
call fcn.00401b80
cmp dword [esp + 0x50], esi
jb 0x40134f
mov edx, dword [esp + 0x3c]
push edx
call fcn.00402ab0
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
cmp eax, ebp
je 0x40136f
push eax
call fcn.00402ab0
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x4013ce
mov eax, dword [eax]
jmp 0x40126e
mov eax, dword [eax]
jmp 0x4012b2
lea edx, [esp + 0x38]
push edx
push edi
call fcn.004011f0
add esp, 8
cmp dword [esp + 0x50], esi
jb 0x4013a5
mov eax, dword [esp + 0x3c]
push eax
call fcn.00402ab0
add esp, 4
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
cmp eax, ebp
je 0x4013c9
push eax
call fcn.00402ab0
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.00402ab0
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004027b5
add esp, 0x50
ret
Function at 0x401540
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x40e050]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e050]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], vtable.KLMON_SETUP::KlmonDriverInstaller.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jb 0x401597
mov eax, dword [eax + 4]
jmp 0x40159a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x4015c3
push str.GetDriverControl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4015c3
call eax
mov dword [esp + 0x24], eax
cmp eax, edi
jne 0x4015cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
push 4
push edi
push edi
mov dword [esp + 0x80], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x40160f
push 1
push str.KLNetMon
push esi
call ebx
push esi
mov edi, eax
call ebp
test edi, edi
je 0x40160f
push edi
call ebp
lea ecx, [esp + 0x18]
call fcn.00401490
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40163c
push 1
push str.KLNetMon
push esi
call ebx
push esi
mov edi, eax
call ebp
test edi, edi
je 0x40163c
push edi
call ebp
jmp 0x4016da
xor edx, edx
mov ebx, 8
mov edi, 7
xor ebp, ebp
push ebx
mov eax, str._WINDIR_
lea esi, [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], dx
call fcn.00401ec0
mov eax, esi
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x7c], 1
call fcn.004011f0
add esp, 8
mov byte [esp + 0x74], 3
cmp dword [esp + 0x44], ebx
jb 0x401693
mov edx, dword [esp + 0x30]
push edx
call fcn.00402ab0
add esp, 4
xor eax, eax
mov word [esp + 0x30], ax
push 0x1b
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
call fcn.00401df0
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x4016bb
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x74], 0
cmp dword [esp + 0x60], ebx
jb 0x4016da
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00402ab0
add esp, 4
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
call fcn.00401410
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4016f8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004027b5
add esp, 0x64
ret
Function at 0x401720
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409f78
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x40e050]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e050]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
xor esi, esi
xor edi, edi
xor ebp, ebp
cmp dword [eax + 0x18], 8
mov dword [esp + 0x1c], vtable.KLMON_SETUP::KlmonDriverInstaller.0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
jb 0x401777
mov eax, dword [eax + 4]
jmp 0x40177a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
cmp eax, ebp
je 0x4017ab
push str.GetDriverControl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x4017ab
call eax
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebp
jne 0x4017b3
call ebx
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x74], ebp
cmp esi, ebp
je 0x4017bf
mov ebx, esi
jmp 0x401807
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x4017e1
xor eax, eax
jmp 0x401805
cmp eax, 1
jne 0x4017ec
mov eax, dword [esp + 0x18]
jmp 0x401805
cmp eax, 2
jne 0x4017fb
cmp dword [esp + 0x18], ebp
jge 0x4017dd
call ebx
jmp 0x401805
inc eax
neg eax
sbb eax, eax
and eax, 0x643
mov ebx, eax
push 4
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
je 0x401836
push 1
push str.KLNetMon
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
push esi
cmp edi, ebp
jne 0x4018fe
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov word [esp + 0x30], ax
mov edi, 7
push 8
mov eax, str._WINDIR_
lea esi, [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
call fcn.00401ec0
mov ecx, esi
push ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x7c], 1
call fcn.004011f0
add esp, 8
mov esi, 8
mov byte [esp + 0x74], 3
cmp dword [esp + 0x44], esi
jb 0x40188c
mov eax, dword [esp + 0x30]
push eax
call fcn.00402ab0
add esp, 4
xor ecx, ecx
push 0x1b
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], cx
call fcn.00401df0
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x4018b4
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x60], esi
jb 0x4018ce
mov edx, dword [esp + 0x4c]
push edx
call fcn.00402ab0
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4018dd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004027b5
add esp, 0x64
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x4018ce

Function at 0x4027b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e050]
jne 0x4027bf
repz ret
jmp fcn.00403756
Function at 0x40873c
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.00403f2c
and dword [ebp - 4], 0
cmp dword [0x40f88c], 0
mov ebx, eax
jne 0x4087ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40889e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40889e
push eax
call fcn.00403eba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f88c], eax
call esi
push eax
call fcn.00403eba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f890], eax
call esi
push eax
call fcn.00403eba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f894], eax
call esi
push eax
call fcn.00403eba
pop ecx
mov dword [0x40f89c], eax
test eax, eax
je 0x4087ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403eba
pop ecx
mov dword [0x40f898], eax
mov eax, dword [0x40f898]
cmp eax, ebx
je 0x408845
cmp dword [0x40f89c], ebx
je 0x408845
push eax
call fcn.00403f35
push dword [0x40f89c]
mov esi, eax
call fcn.00403f35
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408845
test edi, edi
je 0x408845
call esi
test eax, eax
je 0x40883c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40883c
test byte [ebp - 0xc], 1
jne 0x408845
or dword [ebp + 0x10], 0x200000
jmp 0x40887e
mov eax, dword [0x40f890]
cmp eax, ebx
je 0x40887e
push eax
call fcn.00403f35
pop ecx
test eax, eax
je 0x40887e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40887e
mov eax, dword [0x40f894]
cmp eax, ebx
je 0x40887e
push eax
call fcn.00403f35
pop ecx
test eax, eax
je 0x40887e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f88c]
call fcn.00403f35
pop ecx
test eax, eax
je 0x40889e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4088a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x849008
Capabilities:
Encode data using xor

Disassembly:
jmp 0x849012
pushal
call 0x849018
pop ebp
sub ebp, 0x10
sub ebp, 0x449008
jmp 0x84902e
mov eax, 0x449008
add eax, ebp
add eax, 0x4c
mov ecx, 0x5eb
mov edx, 0x5670f93d
xor byte [eax], dl
inc eax
dec ecx
jne 0x849045
jmp 0x849058
mov dh, 0xf0
mov dh, 0xb4
add dword [0xfcbc3d3d], edi
lds edi, [0xf03e3d3d]
test dword [edi], esi
cmp eax, 0x15873d3d
cmp eax, 0xdfca3d3d
cmc
mov dh, 0xbc
xor dword [0xf83e3d3d], edi
insd dword es:[edi], dx
insd dword es:[edi], dx
push ebp
jne 0x849013
xor edi, dword [0x8dffd55]
cmp eax, 0x5519113c
rcl dh, 1
add ebp, ebp
aad 0x38
cmp eax, 0x15d43d3d
cmp eax, 0xb6683d3d
sal dword [esi + 0x3d3d35b8], 1
cmp eax, 0x3d31a8b6
cmp eax, 0x2db0b63d
cmp eax, 0xd4fc3d3d
aas
or al, 0x3f
mov esi, 0x327439ff
mov eax, 0xc2c2c2c9
pushal
push dword [ecx]
cmp eax, 0x3919b1b6
cmp eax, 0x75553d3d
nop
xor edi, dword [0x8dffd55]
cmp eax, 0xb019113c
pop ecx
sbb ecx, eax
mov ah, 0x31
sbb ebp, edx
cmp byte [0x78d43d3d], bh
aas
cmp eax, 0x1959b03d
sal dword [ecx + edx - 0x3d2e49e7], 0x48
xor edx, eax
dec eax
xor eax, 0x3d3d4fd5
cmp eax, 0x3d3580b6
cmp eax, 0x6ccbc3d
push es
rcl dword [esi - 0x44], 0xcc
push es
push es
rcl dword [esi + 0xe], 0xf4
push cs
out dx, eax
mov esi, 0x327538d5
mov ecx, 0x3d3d3d73
xor dh, byte [ebp + 0x3d3d3d75]
pop ebx
mov dh, 0x21
add al, 0xbd
invalid