joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4458ea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4458fa
xor eax, eax
jmp 0x445ac3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x445a7b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x461260]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x445903
cmp dword [ebp + 0x10], 0
je 0x445abd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x461260]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x445a81
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4527f0
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x461680
call fcn.00452e1c
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [0x4580f8]
call ebx
cmp word [eax], 0x5a4d
jne 0x452830
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452830
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x452848
cmp eax, 0x20b
je 0x452835
mov dword [ebp - 0x1c], edi
jmp 0x45285c
cmp dword [ecx + 0x84], 0xe
jbe 0x452830
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x452856
cmp dword [ecx + 0x74], 0xe
jbe 0x452830
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [0x458b50]
pop ecx
or dword [0x46ffe4], 0xffffffff
or dword [0x46ffe8], 0xffffffff
call dword [0x458b54]
mov ecx, dword [0x46ff94]
mov dword [eax], ecx
call dword [0x458b58]
mov ecx, dword [0x46ff90]
mov dword [eax], ecx
mov eax, dword [0x458b5c]
mov eax, dword [eax]
mov dword [0x46ffe0], eax
call fcn.00452e74
call fcn.00452f14
cmp dword [0x46c180], edi
jne 0x4528bc
push fcn.00452f14
call dword [0x458b60]
pop ecx
call fcn.00452f02
push 0x469050
push 0x46904c
call fcn.00452efc
push 0x452eb8
call fcn.00452b96
mov eax, dword [0x46ff8c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x46ff88]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x458b68]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x452910
push 8
call fcn.00452e6e
pop ecx
push 0x469048
push section..data
call fcn.00452efc
pop ecx
pop ecx
mov eax, dword [0x458b70]
mov esi, dword [eax]
cmp esi, edi
jne 0x45293a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4529f4
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4529a9
cmp ax, di
je 0x452950
cmp dword [ebp - 0x20], edi
jne 0x4529a9
mov ax, word [esi]
cmp ax, di
je 0x452965
cmp ax, 0x20
ja 0x452965
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x452950
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [0x458174]
test byte [ebp - 0x58], 1
je 0x452981
movzx eax, word [ebp - 0x54]
jmp 0x452984
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00453094
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4529a1
push esi
call dword [0x458b74]
call dword [0x458b78]
jmp 0x4529ee
cmp ax, 0x22
jne 0x4529ba
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x45293a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00452e57
ret
Function at 0x401282
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret

Function at 0x402dab
Capabilities:
Acquire debug privileges

Disassembly:
xor eax, eax
cmp byte [esp + 4], al
push esi
mov esi, ecx
mov byte [esi], al
je 0x402ddb
test byte [0x4ddda4], 4
jne 0x402ddb
push eax
push 2
mov byte [esi], 1
or byte [0x4ddda4], 4
push str.SeDebugPrivilege
call fcn.004136a0
add esp, 0xc
mov eax, esi
pop esi
ret 4
Function at 0x4039ad
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x4039c5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.00444fb1
test edi, edi
jg 0x403a50
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4c1d6c
call ebx
mov edi, eax
test edi, edi
jg 0x403a3f
mov eax, dword [esi]
push ebp
push eax
push 0x4c1d60
call ebx
mov edi, eax
test edi, edi
jg 0x403a3f
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403a4f
mov eax, dword [esi]
push 0x4c1d54
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403a4f
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4dd0f0
mov ecx, ebx
call fcn.0041c291
test edi, edi
jle 0x403a6e
push dword [esi]
call fcn.004ade73
test eax, eax
pop ecx
jne 0x403a9c
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041c291
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403e8f
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403ec5
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403ed4
mov eax, 0x4c1f64
push eax
mov ecx, 0x4dcc98
call fcn.0044e8eb
push dword [0x4dcc98]
call fcn.00445c39
cmp eax, 1
pop ecx
jle 0x403ef6
mov word [0x4e0018], ax
leave
ret

Function at 0x40404f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4dcc4c]
test ecx, ecx
jle 0x404082
mov dword [0x4dcc4c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x4dcc4c], eax
jmp 0x4040ba
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x4040b2
sub eax, dword [0x4dcc4c]
cmp eax, dword [ebp + 8]
jae 0x4040c2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4db2d4], bl
jg 0x404092
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4dcc4c]
pop esi
test ecx, ecx
jle 0x4040d7
mov dword [0x4dcc4c], eax
xor eax, eax
cmp byte [0x4db2d4], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x4042ac
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4db2d4], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x4042c3
push esi
call edi
cmp dword [0x4dcc5c], 0
je 0x4042de
push 0x1e
pop esi
jmp 0x4042de
cmp dword [0x4dcc50], 0
je 0x4042e1
push 0xa
call edi
dec esi
jns 0x4042d1
mov eax, dword [0x4dcc50]
test eax, eax
pop edi
pop esi
je 0x4042ff
push 0
push eax
mov dword [0x4dcc50], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x4db2d4], 0xff
ret
Function at 0x404307
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x404348
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404359
mov byte [ebp - 1], bl
jmp 0x404359
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x404395
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x4dcc64], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4dcc64]
cmp eax, ebx
je 0x404395
cmp byte [ebp - 1], bl
je 0x404390
push 0x64
push ebx
push eax
call fcn.004ae820
mov eax, dword [0x4dcc64]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fc7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x405fe3
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x406001
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x40618c
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.00444fb1
push esi
call fcn.004039ad
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.00405b5e
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x406044
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x4060ef
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4c2350
mov dword [ebp - 0x1c], eax
call fcn.00440ef7
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4060ae
push edi
push edi
push 5
mov ecx, 0x4dd0f0
call fcn.004161d8
dec dword [ebp - 8]
jns 0x406041
jmp 0x406168
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x40618c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.00405b5e
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x4060f1
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.00405c00
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x406163
push edi
push edi
push 5
mov ecx, 0x4dd0f0
call fcn.004161d8
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x4060fa
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x40616d
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x40617b
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x406189
cmp dword [ebp - 4], edi
je 0x406189
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0043e825
lea ecx, [ebp - 0x14]
call fcn.0043e825
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061a3
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.00404307
pop ecx
pop ecx
call fcn.00403e8f
mov byte [0x4dcc3e], 1
call fcn.00439364
call fcn.0044070d
push str.TaskbarButtonCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push 0x24
pop edi
mov dword [0x4dcc40], eax
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32
mov dword [0x4dcff0], eax
mov dword [ebp - 4], eax
call esi
push str.GDI32
mov dword [0x4dcfec], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c2400
push dword [ebp - 4]
mov dword [0x4dcff4], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x4dcbe4], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x40627b
lea ecx, [ebp - 0x28]
push ecx
call eax
call fcn.00441641
shrd eax, edx, 0x10
shr edx, 0x10
cmp word [ebp - 0x28], bx
je 0x4062cb
cmp eax, 0x50000
jbe 0x4062cb
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4dcc38], eax
call esi
cmp dword [0x4dcc38], ebx
mov dword [0x4dcc34], eax
jne 0x4062c0
mov dword [0x4dcc34], ebx
mov bl, 1
mov word [0x4dcc20], 0x100
movsx eax, bl
push str.bX64
push eax
mov esi, 0x4dd0f0
push esi
mov byte [0x4dcc3d], bl
call fcn.00447664
push str.ptrlen
push 4
push esi
call fcn.00447664
push str.WM_TASKBARBUTTONCREATED
push dword [0x4dcc40]
push esi
call fcn.00447664
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40630b
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], eax
lea ecx, [eax + 8]
push ebx
mov bx, word [eax]
mov dword [ebp - 8], ecx
mov ax, word [ecx]
call fcn.0043e785
test al, al
jne 0x40632f
inc ecx
inc ecx
mov dword [ebp - 8], ecx
push 0x63
lea eax, [ebp - 0x78]
push eax
push str.DEBUGMDG
mov byte [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x78], 0x31
jne 0x406351
mov byte [0x4dcc48], 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [0x4dcc4c], eax
call fcn.0044e827
lea ecx, [ebp - 0xc]
call fcn.00444f6c
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov ecx, 0x4dd0f0
call fcn.004553cd
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044e8eb
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.0043e825
lea ecx, [ebp - 0x14]
call fcn.0043e825
mov ecx, dword [ebp - 8]
call fcn.004040e6
push str._InstallService
mov edi, eax
push 0xf
pop esi
mov dword [ebp - 8], edi
call fcn.00402d7c
test al, al
pop ecx
pop edi
pop esi
je 0x4063f2
push 0x1e
push str._Service
push dword [ebp - 8]
mov byte [ebp - 1], 0x49
call fcn.004145c5
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x1e
call fcn.004040e6
mov dword [ebp - 8], eax
jmp 0x40640d
push 8
lea eax, [ebp - 8]
push eax
push 0x4c2488
call fcn.00446fac
add esp, 0xc
test al, al
je 0x40646c
mov byte [ebp - 1], 0x53
cmp bx, 0x22
jne 0x406447
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 8]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x406447
mov ax, word [ecx]
call fcn.0043e785
test al, al
je 0x406439
dec ecx
dec ecx
cmp ecx, edx
ja 0x406427
cmp ecx, edx
jbe 0x406447
cmp word [ecx], 0x22
jne 0x406447
and word [ecx], 0
sub dword [ebp - 8], 2
movsx ax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov word [eax], 0x7e
push dword [ebp - 8]
call fcn.0040f89b
jmp 0x40648c
push 0xe
lea eax, [ebp - 8]
push eax
push str._RemoveService
call fcn.00446fac
add esp, 0xc
test al, al
pop ebx
je 0x406495
push dword [ebp - 8]
call fcn.00406728
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x10]
call fcn.0043e825
xor eax, eax
leave
ret
Function at 0x40652d
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [0x4dcc54], eax
cmp word [eax], 0x7e
push edi
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 1], bl
jne 0x406567
inc eax
inc eax
mov dword [0x4dcc54], eax
cmp word [eax], 0x49
sete byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.00405b76
pop ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
sub esi, dword [ebp - 0x10]
mov eax, 0x400
sar esi, 1
cmp esi, eax
jle 0x406589
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call fcn.0043e7bd
push 6
push dword [ebp - 0xc]
push str.__gui_
call fcn.0043fbc2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
test al, al
je 0x4065de
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0043e7bd
pop ecx
push dword [ebp + 8]
call edi
inc eax
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0041457b
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x828]
push eax
call fcn.004145c5
add esp, 0xc
push dword [ebp - 0x10]
mov word [ebp + esi - 0x828], bx
mov byte [0x4e0003], bl
call edi
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 8]
call fcn.00444f8a
mov eax, dword [ebp - 8]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x40671b
mov eax, dword [ebp - 8]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 8]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp + 8], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x406664
mov ax, word [edx]
call fcn.0043e785
test al, al
je 0x406662
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp + 8]
jb 0x406653
cmp di, bx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
mov dword [ebp + 8], eax
je 0x406685
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp + 8], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x4c24d8
push edi
call fcn.004145c5
push esi
push dword [ebp - 0x10]
add edi, 0x1e
push edi
call fcn.00405b5e
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x406718
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
or eax, 0x10
push ebx
push 2
push eax
push 0xf01ff
lea eax, [ebp - 0x828]
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x406718
cmp byte [ebp - 1], bl
je 0x406718
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x406718
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp + 8]
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.0043e825
pop edi
pop esi
pop ebx
leave
ret