joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10115ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1016034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
mov ebx, dword [0x1016074]
push edi
push 0x100627c
push 1
push esi
call dword [eax + 0x30]
test eax, eax
jl 0x101167a
mov eax, dword [esi]
push edi
push 0x10064f4
push 1
push esi
call dword [eax + 0x30]
test eax, eax
jl 0x101167a
push edi
push 0x10064d8
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.010115ae
add esp, 0x10
test eax, eax
jl 0x101167a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011662
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1011673
test al, 0x10
jne 0x101166d
mov eax, 0x8000ffff
jmp 0x101167a
mov ebx, dword [0x1016070]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100a4c9
leave
ret

Function at 0x1011dc7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x10045c8
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011e1b
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x10045e4
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1011e12
cmp dword [ebp - 8], 4
jne 0x1011e12
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1011f36
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 1
jne 0x1011f7e
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1006af8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1011fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1011f75
mov dword [0x1016078], esi
jmp 0x1011fa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1011fa5
mov eax, dword [0x1016078]
cmp eax, 0xffffffff
je 0x1011fa5
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x1016078]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x1016078], 0xffffffff
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x10127cd
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
push 0x1006ad0
call fcn.0100e3f5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push edi
push edi
cmp eax, 1
jne 0x1012829
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x10072cc
push 0x1006a08
push 0x258
push edi
mov ebx, 0x100147c
push ebx
mov edi, 0xf0000
push edi
push 0x1007290
push 0x4000074
call fcn.01007def
pop ecx
pop ecx
jmp 0x1012863
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x10072cc
push 0x1006a08
push 0x25c
push edi
mov ebx, 0x100147c
push ebx
mov edi, 0xf0000
push edi
call esi
push eax
push 0x1007248
push 0x3000075
call fcn.01007def
add esp, 0xc
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
push 0x40002
push dword [ebp + 8]
xor eax, eax
push 1
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov dword [ebp - 4], eax
cmp eax, 1
jne 0x10128d0
cmp dword [ebp + 8], eax
mov dword [ebp + 8], 0x1007234
je 0x1012899
mov dword [ebp + 8], 0x1007220
push 0
push 0
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x10072cc
push 0x1006a08
push 0x263
push 0
push ebx
push edi
push dword [ebp + 8]
push 0x10071d0
push 0x4000076
call fcn.01007def
add esp, 0xc
jmp 0x101291c
cmp dword [ebp + 8], 1
mov dword [ebp + 8], 0x1007234
je 0x10128e4
mov dword [ebp + 8], 0x1007220
push 0
push 0
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x10072cc
push 0x1006a08
push 0x268
push 0
push ebx
push edi
call esi
push eax
push dword [ebp + 8]
push 0x1007168
push 0x2000077
call fcn.01007def
add esp, 0x10
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3b980e6e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x161963bc
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e54
nop
mov ecx, 0x29a0314d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4aca7965
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1a615fb2
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5e76446c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40777c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407798
shr eax, 1
xor eax, 0xedb88320
jmp 0x40779a
shr eax, 1
dec edx
jne 0x40778b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407784
pop esi
ret

Function at 0x4077b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4077d3
call fcn.0040777c
push 1
push 0x40c558
call fcn.004043d0
mov eax, edi
test esi, esi
je 0x4077fe
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4077d9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x425f90
Capabilities:
Encode data using xor

Disassembly:
adc dword [edx - 0x5942eae0], eax
sal dword [ebx + 0x1d9c24a5], 1
add byte ss:[ecx - 0x30a7b91f], bl
invalid

Function at 0x4461d0
Capabilities:
Encode data using xor

Disassembly:
sub esi, dword [eax]
outsb dx, byte [esi]
sti
lcall 0xfb43, 0x99578f58
sbb eax, 0x217e81e9
jne 0x4461db
adc ebp, dword [edx - 0x35]
or byte [ecx], cl
add byte [edx - 0x6d], al
or dword [eax], eax
inc edx
xchg ebx, eax
frstor dword [ecx]
mov byte [ebx - 0x61], al
xchg ebp, eax
call 0xf4e6d51b
popal
fbstp tbyte [ebx]
sub dword [ebx - 0x70], ebp
xchg edi, eax
ljmp 0x7ee3
movsd dword es:[edi], dword gs:[esi]
xor byte [edi], ah
jp 0x44616c
mov edx, esi
lcall 0x9def, 0xe318d466
lodsd eax, dword [esi]
outsd dx, dword [esi]
sbb ecx, dword [edx]
jb 0x446182
jnp 0x446200
cwde
pushfd
push eax
pop edx
jmp 0x4461bf
jecxz 0x446177
sbb al, 0x86
test dword [ecx + 4], ecx
cmp dh, byte [ebx + 0x12]
or al, 0x76
xor eax, 0xcb30235f
dec ecx
mov ds, eax
lds esi, [edi - 0x51]
movsb byte es:[edi], byte [esi]
hlt
adc eax, 0xe398017c
popal
adc cl, bl
inc ecx
mov byte [0x7f6fa873], al
cwde
outsd dx, dword [esi]
jg 0x446276
cwde
sbb byte [eax - 0x4f4d55b0], 0x1c
pushal
xor al, 0x77
pop esp
inc ebp
lcall 0x8834, 0xeae4e323
jns 0x44620c
je 0x446250
lodsb al, byte [esi]
cdq
dec ecx
xchg esp, eax
mov al, byte [0xf580b9e5]
aad 0x4f
xchg dword [ebx], ecx
in eax, dx
loopne 0x446217
push cs
or ch, dl
mov ebx, ecx
mov eax, dword [eax + edx*4]
cmc
lodsd eax, dword [esi]
test eax, 0x5ecc0275
add esp, edi
dec edx
popfd
and ebx, dword [ecx - 0x38]
in al, 0xe6
dec byte [eax]
pop ebp
movsb byte es:[edi], byte [esi]
or byte [ebp - 0x5c], bl
dec esp
cwde
mov edx, 0xe7b55eb5
test dword [ebp + 0x2a], esi
mov byte [0xfde7ec26], al
cmp dword [edx + ebx*8 + 0x6f], 0xcdb36f50
jl 0x44623f
outsd dx, dword [esi]
push eax
outsd dx, dword [esi]
mov bl, 0xcd
adc eax, 0x168591e6
adc bl, byte [edx]
jg 0x446263
or ch, ch
scasd eax, dword es:[edi]
int3

Function at 0x556ed6
Capabilities:
Encode data using xor

Disassembly:
pop ebp
sub ebx, dword [ecx]
sub eax, 0xc713a583
sub eax, 0xdc830e5f
mov dword [esi], 0x2f22aef9
rcl dword [esi + edx], 0x23
not bl
invalid
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 0xc]
xor edi, edi
add edx, 0xfffffff0
je 0x401068
mov ecx, dword [ebp + 8]
add ecx, 2
lea esp, [esp]
xor eax, eax
mov bl, byte [ecx + eax - 2]
cmp bl, byte [eax + esi]
jne 0x40105d
mov bl, byte [ecx + eax - 1]
cmp bl, byte [eax + esi + 1]
jne 0x401052
mov bl, byte [ecx + eax]
cmp bl, byte [eax + esi + 2]
jne 0x401055
mov bl, byte [ecx + eax + 1]
cmp bl, byte [eax + esi + 3]
jne 0x40105a
add eax, 4
cmp eax, 0x10
jb 0x401022
jmp 0x40105d
inc eax
jmp 0x40105d
add eax, 2
jmp 0x40105d
add eax, 3
cmp eax, 0x10
je 0x40106f
inc edi
inc ecx
cmp edi, edx
jb 0x401020
pop edi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4013c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.00428490
push esi
lea edx, [ebp - 0x804]
push str._EmbedModule___s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403556
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40355c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ebx
je 0x40356b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x403ad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x403b35
cmp dword [ebp - 0x118], 0
jne 0x403b35
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x403b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x403bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x403c25
cmp eax, 6
jbe 0x403c13
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
jne 0x403c25
mov eax, dword [ebp - 0x118]
cmp eax, 1
jbe 0x403c25
cmp eax, 2
jae 0x403c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004217e4
mov esp, ebp
pop ebp
ret
Function at 0x404850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x4048ac
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x4048ac
cmp word [ebp - 0xc], ax
je 0x4048ae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x4048c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jb 0x404940
jne 0x404953
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x404940
cmp eax, 2
jne 0x40492f
mov eax, dword [0x48943c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x404961
mov ax, word [ebp - 0xc]
cmp ax, 3
je 0x40491c
jae 0x404961
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x404961
cmp dword [ebp - 0x118], 0
je 0x40491c
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x404980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428490
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x4049dd
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x4049dd
cmp word [ebp - 0xc], 0
je 0x4049df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
Function at 0x404db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.00428490
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x404e00
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x404e00
lea edx, [ebp - 0x198]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404e55
mov dword [0x48ba78], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x43c900
push ecx
call esi
test eax, eax
je 0x404ea0
mov dword [0x48ba78], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.RegNumber
push edx
mov dword [0x48ba78], 1
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404f07
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.00422560
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004217e4
mov esp, ebp
pop ebp
ret
Function at 0x405b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00428490
add esp, 0xc
push edi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bd8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405c19
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x20c]
push 0x43c7d4
push edx
call fcn.00422da3
add esp, 8
test eax, eax
jne 0x405c0a
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x405bf1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp edi, 1
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004217e4
mov esp, ebp
pop ebp
ret

Function at 0x405c40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x84e]
push edx
mov dword [ebp - 0x85c], eax
mov word [ebp - 0x850], cx
call fcn.00428490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x850]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [ebp - 0x850]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x405d89
push ebx
push esi
call fcn.0042182d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405d88
push ebx
push esi
push 0
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x405d7f
push 0
lea eax, [ebp - 0x858]
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 0x858], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x405d7f
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x405d7f
push edi
mov ecx, 0x12
mov esi, str.StringFileInfo12345678FileVersion
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
mov dword [ebp - 0x854], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
pop edi
test eax, eax
je 0x405d7f
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x405d7f
mov edx, dword [ebp - 0x85c]
sub edx, eax
jmp 0x405d70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405d70
push ebx
call fcn.004217f3
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004217e4
mov esp, ebp
pop ebp
ret