joyce8/EMBER2024-capa huggingface dataset:
Function at 0x609f4d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x609fb8
push 0x3d
push dword [ebp + 8]
call fcn.0060b971
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x609fb8
cmp dword [ebp + 8], esi
je 0x609fb8
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x664888]
cmp eax, dword [0x66488c]
jne 0x609f9e
mov edi, eax
call fcn.00609eec
mov dword [0x664888], eax
cmp eax, ebx
jne 0x609ff7
cmp dword [ebp + 0xc], ebx
je 0x609fc0
cmp dword [0x664890], ebx
je 0x609fc0
call fcn.00605f7b
test eax, eax
je 0x609ff7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x60a0fb
push 4
call fcn.006021ea
cmp eax, ebx
pop ecx
mov dword [0x664888], eax
je 0x609fb8
mov dword [eax], ebx
cmp dword [0x664890], ebx
jne 0x609ff7
push 4
call fcn.006021ea
cmp eax, ebx
pop ecx
mov dword [0x664890], eax
je 0x609fb8
mov dword [eax], ebx
mov ebx, dword [0x664888]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00609e9f
mov edi, eax
test edi, edi
pop ecx
jl 0x60a050
cmp dword [ebx], 0
je 0x60a050
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00602140
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x60a038
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x60a086
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x60a02f
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00603a30
test eax, eax
pop ecx
pop ecx
je 0x60a086
jmp 0x60a081
cmp dword [ebp - 4], 0
jne 0x60a0f4
test edi, edi
jge 0x60a060
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00603a30
test eax, eax
pop ecx
pop ecx
je 0x609fb8
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x664888], eax
cmp dword [ebp + 0xc], 0
je 0x60a0dd
push dword [ebp + 8]
call fcn.00605ef0
inc eax
inc eax
push eax
call fcn.006021ea
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x60a0dd
push dword [ebp + 8]
push esi
call fcn.00608f50
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x60a0d6
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00602140
pop ecx
cmp dword [ebp - 4], 0
je 0x60a0ec
push dword [ebp + 8]
call fcn.00602140
pop ecx
mov eax, dword [ebp - 8]
jmp 0x609fbb
push esi
call fcn.00602140
pop ecx
xor eax, eax
jmp 0x609fbb
Function at 0x60a930
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00602270
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x60a9c5
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x664868]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x60a9c5
cmp eax, 1
je 0x60a9dd
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x60a9c5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x60a99a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x60a9c1
xor eax, eax
inc eax
jmp 0x60a9f9
cmp esi, ebx
jae 0x60a9c9
xor eax, eax
jmp 0x60a9f9
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x664868]
jmp 0x60a9df
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x60aa01
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x664b44], ebx
push esi
push edi
jne 0x60aa81
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x60aabc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x64122c
push edi
call esi
test eax, eax
mov dword [0x664b44], eax
je 0x60aabc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x664b48], eax
call esi
cmp dword [0x664868], 2
mov dword [0x664b4c], eax
jne 0x60aa81
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x664b54], eax
je 0x60aa81
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x664b50], eax
mov eax, dword [0x664b50]
test eax, eax
je 0x60aac6
call eax
test eax, eax
je 0x60aaad
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x664b54]
test eax, eax
je 0x60aaad
test byte [ebp - 8], 1
jne 0x60aac6
cmp dword [0x664874], 4
jb 0x60aac0
or byte [ebp + 0x12], 0x20
jmp 0x60aae5
xor eax, eax
jmp 0x60aaf5
or byte [ebp + 0x12], 4
jmp 0x60aae5
mov eax, dword [0x664b48]
test eax, eax
je 0x60aae5
call eax
mov ebx, eax
test ebx, ebx
je 0x60aae5
mov eax, dword [0x664b4c]
test eax, eax
je 0x60aae5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x664b44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x60b9d8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00602270
mov eax, dword [0x659c50]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x74c580]
mov dword [ebp - 4], eax
jae 0x60bb18
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x74c5a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x60bb18
push 1
push esi
push ebx
call fcn.00609511
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x60bb22
push 2
push esi
push ebx
call fcn.00609511
add esp, 0xc
cmp eax, 0xffffffff
je 0x60bb22
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x60bac5
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.0060a8d0
push 0x8000
push ebx
call fcn.00604313
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x60ba84
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00609306
add esp, 0xc
cmp eax, 0xffffffff
je 0x60baa2
sub edi, eax
test edi, edi
jg 0x60ba79
jmp 0x60bab8
cmp dword [0x664860], 5
jne 0x60bab5
mov dword [0x66485c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00604313
pop ecx
pop ecx
jmp 0x60bb05
jge 0x60bb05
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00609511
push ebx
call fcn.0060a48f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x60bb05
mov dword [0x66485c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x664860], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00609511
add esp, 0xc
mov eax, esi
pop edi
jmp 0x60bb25
mov dword [0x66485c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00606017
leave
ret
Function at 0x6122f8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
shr eax, 2
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x61225f
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
mov esi, esi
lea edi, [edi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x612224
emms
jmp 0x6122ed
mov eax, dword [ebp + 0xc]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0xc], edx
rdtsc
mov esi, dword [ebp - 0xc]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x61220e
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x6122b4
sfence
emms
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
test dword [0x664b88], 0xfffffe00
jne 0x6121c4
test dword [0x664b88], 0xffffff80
jne 0x6121a0
test dword [0x664b88], 0xffffffff
jne 0x6123e4
call fcn.00612488
jmp fcn.006122f8
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x61fdd6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x659c50]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x61fe4f
push ebx
call fcn.0061fd9f
test eax, eax
pop ecx
jne 0x61fe21
mov dword [0x664860], 0xf
mov dword [0x66485c], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00606017
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x61fe61
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x61fe11
inc eax
cmp eax, 0x104
ja 0x61fe11
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x61fe98
cmp eax, dword [ebp + 0x10]
jg 0x61fe7c
mov eax, dword [ebp + 0x10]
push eax
call fcn.006021ea
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x61feac
mov dword [0x66485c], 0xc
jmp 0x61fe11
cmp eax, dword [ebp + 0x10]
jle 0x61feac
mov dword [0x66485c], 0x22
jmp 0x61fe11
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00608f50
pop ecx
pop ecx
jmp 0x61fe13
Function at 0x401e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x402bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push str.WaitForSingleObject
push 0x40b144
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x404aa5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40d188]
je 0x404ac0
inc edi
cmp edi, 0x17
jb 0x404ab1
cmp edi, 0x17
jae 0x404c40
push ebp
push 3
call fcn.00406b80
cmp eax, 1
pop ecx
je 0x404c0c
push 3
call fcn.00406b80
test eax, eax
pop ecx
jne 0x404af4
cmp dword [section..data], 1
je 0x404c0c
cmp ebx, 0xfc
je 0x404c3f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40e368
push ebp
call fcn.00406b1b
add esp, 0xc
test eax, eax
je 0x404b2a
push esi
push esi
push esi
push esi
push esi
call fcn.00404384
add esp, 0x14
push 0x104
mov esi, 0x40e381
push esi
push 0
mov byte [0x40e485], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b6e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406b1b
add esp, 0xc
test eax, eax
je 0x404b6e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404384
add esp, 0x14
push esi
call fcn.00406a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404bb3
push esi
call fcn.00406a90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40e67c
push 0x40b76c
sub ecx, eax
push ecx
push eax
call fcn.004069d2
add esp, 0x14
test eax, eax
je 0x404bb3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404384
add esp, 0x14
jmp 0x404bb5
xor esi, esi
push 0x40b768
push ebx
push ebp
call fcn.00406961
add esp, 0xc
test eax, eax
je 0x404bd5
push esi
push esi
push esi
push esi
push esi
call fcn.00404384
add esp, 0x14
push dword [edi*8 + 0x40d18c]
push ebx
push ebp
call fcn.00406961
add esp, 0xc
test eax, eax
je 0x404bf7
push esi
push esi
push esi
push esi
push esi
call fcn.00404384
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004067a4
add esp, 0xc
jmp 0x404c3f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x404c3f
cmp ebp, 0xffffffff
je 0x404c3f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40d18c]
push dword [esi]
call fcn.00406a90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405f28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d314]
jne 0x405f32
repz ret
jmp fcn.004084b3
Function at 0x4067a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405611
xor ebx, ebx
cmp dword [0x40e924], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40687a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40695a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40695a
push eax
call fcn.004055a3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e924], eax
call esi
push eax
call fcn.004055a3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e928], eax
call esi
push eax
call fcn.004055a3
mov dword [0x40e92c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404832
test eax, eax
pop ecx
pop ecx
je 0x406848
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404384
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40687a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004055a3
cmp eax, ebx
pop ecx
mov dword [0x40e934], eax
je 0x40687a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004055a3
pop ecx
mov dword [0x40e930], eax
mov eax, dword [0x40e930]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4068ff
cmp dword [0x40e934], ecx
je 0x4068ff
push eax
call fcn.0040561a
push dword [0x40e934]
mov esi, eax
call fcn.0040561a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4068ff
cmp edi, ebx
je 0x4068ff
call esi
cmp eax, ebx
je 0x4068cc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068cc
test byte [ebp - 0x18], 1
jne 0x4068ff
lea eax, [ebp - 0x10]
push eax
call fcn.00404869
test eax, eax
pop ecx
je 0x4068e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404384
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4068f6
or dword [ebp + 0x10], 0x200000
jmp 0x40693a
or dword [ebp + 0x10], 0x40000
jmp 0x40693a
mov eax, dword [0x40e928]
cmp eax, dword [ebp - 8]
je 0x40693a
push eax
call fcn.0040561a
cmp eax, ebx
pop ecx
je 0x40693a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40693a
mov eax, dword [0x40e92c]
cmp eax, dword [ebp - 8]
je 0x40693a
push eax
call fcn.0040561a
cmp eax, ebx
pop ecx
je 0x40693a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e924]
call fcn.0040561a
cmp eax, ebx
pop ecx
je 0x40695a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40695c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1044b55
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1426ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
xor edi, edi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1044bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0104499a
mov edi, eax
jmp 0x1044bcd
cmp dword [ebp - 0x108], 2
jne 0x1044bc9
cmp dword [ebp - 0x114], 6
jb 0x1044bc9
xor eax, eax
inc eax
jmp 0x1044bcb
xor eax, eax
mov dword [esi], eax
test edi, edi
jge 0x1044bf6
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x1044bf6
test byte [eax + 0x3c], 2
je 0x1044bf6
push edi
push 0x100279c
push 0x27
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01043c41
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01043035
leave
ret 4

Function at 0x1044f6d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1426ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0x120]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1044fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0104499a
mov ebx, eax
jmp 0x1044ff4
cmp dword [ebp - 0x11c], 6
jae 0x1044fef
cmp dword [ebp - 0x11c], 5
jne 0x1044feb
cmp dword [ebp - 0x118], 2
jne 0x1044feb
cmp word [ebp - 0xc], 2
jae 0x1044fef
xor eax, eax
jmp 0x1044ff2
xor eax, eax
inc eax
mov dword [edi], eax
test ebx, ebx
jge 0x104501d
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x104501d
test byte [eax + 0x3c], 2
je 0x104501d
push ebx
push 0x100273c
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01043c41
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01043035
leave
ret 4

Function at 0x1045a5d
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1427994]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1427998]
mov esi, ecx
cmp dword [esi + 0x18], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x1045a8f
push esi
lea ecx, [ebp - 0xc]
call fcn.010448ec
cmp dword [esi + 0x20], edi
je 0x1045ae4
cmp dword [esi + 0x1c], edi
jne 0x1045ae4
lea ecx, [ebp - 0xc]
call fcn.01044917
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x64
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
call fcn.01044e7e
cmp dword [ebp - 4], edi
jge 0x1045ae4
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x1045ae4
test byte [eax + 0x3c], 2
je 0x1045ae4
push dword [ebp - 4]
push 0x100273c
push 0xc
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01043c41
lea ecx, [ebp - 0xc]
call fcn.01044917
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x104661e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x104663f
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104614f
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x10466fe
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.01044c5f
test eax, eax
je 0x10466f7
cmp dword [ebp - 4], edi
jne 0x10466b5
cmp dword [ebp + 8], edi
jbe 0x10466f0
push dword [ebp + 8]
call fcn.0104309c
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0104572b
cmp esi, edi
je 0x10466ab
mov dword [ebp - 4], esi
jmp 0x1046660
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x10466fa
cmp dword [ebp - 0x10], 4
je 0x10466c2
mov esi, 0x8007000d
jmp 0x10466fe
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01044948
mov esi, eax
cmp esi, edi
jl 0x10466fe
cmp dword [ebp + 0xc], edi
je 0x10466e2
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x10466fa
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10466fa
mov esi, 0x8000ffff
jmp 0x10466fe
mov esi, dword [ebp + 0xc]
cmp esi, edi
jge 0x1046723
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x1046723
test byte [eax + 0x3c], 2
je 0x1046723
push esi
push 0x10027bc
push 0x22
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01043c41
lea ecx, [ebp - 4]
call fcn.0104572b
lea ecx, [ebp - 0xc]
call fcn.01045411
lea ecx, [ebp - 8]
call fcn.01045411
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x104d46e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push esi
jne 0x104d51c
call fcn.0136ac47
xchg esi, eax
dec ebp
add al, 0x30
test al, 0x82
inc esp
pushal
movsb byte es:[edi], byte [esi]
add byte [eax + esi*4 + 0x76], 0
add byte [eax + 0xaa3f7e8], ah
add byte [edx], bh
add byte [eax], al
rcr byte [esp + ecx + 0x42], 1
xor byte [ebp - 0x1f], bh
or al, 0x90
pushal
or al, 0x42
mov al, 0xe8
cmp dword [ebx - 0x728fffdc], 0xe
rol al, 0xee
inc ecx
sar byte [esi + ebp*8 + 0x140041], 0
invalid
call fcn.01200ea5
mov esp, 0x61a04267
adc al, byte [0x4267b820]
adc byte [0xe8700000], ch
pop edx
mov dword [0x7000a], eax
add al, ah
push 0x6bb04209
test byte [eax + eax*8], 0x6c
or dword [edx + 0x40], eax
call fcn.011f8030
inc eax
adc cl, byte [0x420560d0]
mov al, byte [0x40420564]
pop ss
add byte [eax], al
shr al, 1
adc eax, dword [eax + ecx]
add dword [eax], eax
jo 0x104d5a1
mov ebx, 0xbb387041
inc ecx
nop
push ds
pop eax
pop ss
push eax
call fcn.01299031
ret 0x1ee7
inc ecx
push eax
lodsb al, byte [esi]
sub al, 0x41
pushal
invalid
Function at 0x1050601
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
call fcn.01044c5f
cmp dword [ebp - 4], 0
jge 0x105064e
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x105064e
test byte [eax + 0x3c], 2
je 0x105064e
push dword [ebp - 4]
push 0x1003038
push 0x2c
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01043c41
mov eax, dword [ebp - 4]
leave
ret 8