joyce8/EMBER2024-capa huggingface dataset:
Function at 0xef49eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xf1d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 8], edi
mov esi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xef4a45
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0xf18afc
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 8]
test esi, esi
je 0xef4a53
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00efdec2
leave
ret

Function at 0xef4d58
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0xf10c30
call fcn.00f100e8
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, 0xf18e8c
mov dword [ebp - 0x34], eax
mov eax, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
cmp word [edi], si
je 0xef4d86
mov eax, edi
lea edx, [ebp - 0x18]
push edx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xef4daa
mov ecx, eax
call fcn.00ef1040
jmp 0xef4e42
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0xef4dbb
mov eax, 0x8000005c
jmp 0xef4e42
cmp dword [ebp - 0x14], 1
je 0xef4dce
cmp dword [ebp - 0x14], 2
je 0xef4dce
mov eax, 0x8000005d
jmp 0xef4e42
mov dword [ebp - 0x2c], esi
shr eax, 1
lea ecx, [ebp - 0x2c]
push ecx
add eax, 2
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00ef56ae
mov byte [ebp - 4], 2
cmp word [edi], si
je 0xef4df1
mov ebx, edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push esi
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xef4e19
mov ecx, eax
call fcn.00ef1040
mov esi, eax
jmp 0xef4e38
mov edi, dword [ebp - 0x28]
mov edx, esi
mov eax, edi
cmp word [edi], si
je 0xef4e2e
lea eax, [eax + 2]
inc edx
cmp word [eax], si
jne 0xef4e25
mov ecx, dword [ebp - 0x34]
push edx
push edi
call fcn.00ef5ca8
lea ecx, [ebp - 0x28]
call fcn.00ef568f
mov eax, esi
call fcn.00f10097
ret 0xc
Function at 0xef560c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0xf1e674]
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
nop
test ecx, ecx
jne 0xef564f
lea ecx, [ebp - 0x14]
call fcn.00ef4aaa
test eax, eax
jne 0xef565e
movzx eax, byte [ebp - 0x14]
mov edx, 0xf1e674
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x10]
or ecx, eax
mov eax, ecx
xchg dword [edx], eax
cmp ecx, 0x602
jb 0xef565e
call fcn.00ef4e4a
jmp 0xef566e
push 0xf1857c
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xf1857c
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push dword [ebp + 0x14]
mov edx, esi
push ebx
push edi
call fcn.00ef5354
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0xef74ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf10f24
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0xf1d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [ebp + 8]
xor edi, edi
and dword [ebp - 0xa4], edi
mov dword [ebp - 0xac], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
cmp eax, 0x40
jb 0xef755e
cmp eax, 0x7ffffffe
jbe 0xef755a
mov eax, 0x7ffffffe
mov edi, dword [ebx]
jmp 0xef7567
push 0x40
lea edi, [ebp - 0x94]
pop eax
add eax, eax
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push edi
lea eax, [ebp - 0x9c]
push eax
push 0
push ecx
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xef7654
cmp eax, 0xea
jne 0xef768f
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa4]
shr edi, 1
cmp ecx, 5
jb 0xef75c0
cmp edi, 0x3fffffff
jae 0xef75bb
add edi, edi
jmp 0xef75c0
mov edi, 0x7ffffffe
mov eax, dword [ebx]
xor edx, edx
and dword [ebx + 4], 0
mov word [eax], dx
cmp edi, 0x7ffffffe
ja 0xef76c0
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
cmp edi, eax
jbe 0xef763c
push 2
lea eax, [edi*2 + 2]
push eax
lea ecx, [ebx + 0xc]
call fcn.00ef145b
mov dword [ebp - 0xa0], eax
test eax, eax
je 0xef76c0
mov ecx, dword [ebx + 4]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebx]
push eax
call fcn.00f00cc0
add esp, 0xc
mov ecx, ebx
push 0
call fcn.00ef5b8e
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov dword [ebx], eax
mov eax, edi
mov dword [ebx + 8], edi
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa8]
inc ecx
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xac]
jmp 0xef7549
cmp dword [ebp - 0x9c], 1
je 0xef7665
mov dword [esi], 0x65d
jmp 0xef7691
mov ecx, dword [ebp - 0x98]
shr ecx, 1
je 0xef7679
xor eax, eax
cmp word [edi + ecx*2 - 2], ax
jne 0xef7679
dec ecx
cmp dword [ebp - 0xa0], 0x40
jb 0xef76ad
mov eax, dword [ebx]
xor edx, edx
mov dword [ebx + 4], ecx
mov word [eax + ecx*2], dx
xor eax, eax
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00efdec2
leave
ret
push ecx
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.00ef8ebe
test al, al
jne 0xef768d
mov dword [esi], 8
jmp 0xef7691

Function at 0xef773e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xef776e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00ef1040
test eax, eax
je 0xef776e
cmp eax, 0x80010102
je 0xef776a
cmp eax, 0x80010103
jne 0xef7770
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x44df49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x44df62
call fcn.00415a0e
mov esi, dword [eax + 0xc]
push 0x58a8f4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44dfb8
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44dfb7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x44df98
xor esi, esi
jmp 0x44dfae
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0044dfc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d3df2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
enter 0x5f83, 0xffffffffffffff8d
inc ebp
test al, 0x50
call fcn.004d3b5d
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
Function at 0x4d3eb5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test edx, edx
je 0x4d3e3b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
inc ebp
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
jb 0x4d3e31
inc ebp
retf 0xc67f
inc ebp
retf
push edx
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004d3b4d
cwde
neg byte [esi - 0x3fba7207]
push eax
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004d3b4d
jecxz 0x4d3e55
jb 0x4d3e31
inc ebp
retf 0xc67f
in al, dx
mov esi, 0x88e8458d
inc ebp
call 0x51359c43
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
inc ebp
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
aam 0x88
pop ebp
aam 0x50
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004d3b4d
pop ds
or eax, 0x9d88801f
jl 0x4d3fd2
invalid
invalid
Function at 0x4d3eea
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test edx, edx
je 0x4d3e3b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
inc ebp
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
jb 0x4d3e31
inc ebp
retf 0xc67f
inc ebp
retf
push edx
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004d3b4d
cwde
neg byte [esi - 0x3fba7207]
push eax
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004d3b4d
jecxz 0x4d3e55
jb 0x4d3e31
inc ebp
retf 0xc67f
in al, dx
mov esi, 0x88e8458d
inc ebp
call 0x51359c43
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
inc ebp
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
aam 0x88
pop ebp
aam 0x50
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004d3b4d
pop ds
or eax, 0x9d88801f
jl 0x4d3fd2
invalid
invalid
Function at 0x4d3f6b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test edx, edx
je 0x4d3e3b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
inc ebp
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
jb 0x4d3e31
inc ebp
retf 0xc67f
inc ebp
retf
push edx
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004d3b4d
cwde
neg byte [esi - 0x3fba7207]
push eax
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004d3b4d
jecxz 0x4d3e55
jb 0x4d3e31
inc ebp
retf 0xc67f
in al, dx
mov esi, 0x88e8458d
inc ebp
call 0x51359c43
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
inc ebp
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
aam 0x88
pop ebp
aam 0x50
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.004d3b5d
push eax
push esi
push dword [ebp + 8]
call fcn.004d3b12
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004d3b4d
pop ds
or eax, 0x9d88801f
jl 0x4d3fd2
invalid
invalid
Function at 0x4d428d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4d4224
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4d4242
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4d42a0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4d4287
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4d4290
or byte [eax + ecx], 2
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x4d429a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4d427c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4d4206
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4d42ed
dec eax
je 0x4d42e4
sub eax, 3
je 0x4d42db
mov dword [ebp - 4], 0x40
jmp 0x4d430a
mov dword [ebp - 4], 4
jmp 0x4d42f0
mov dword [ebp - 4], 0x20
jmp 0x4d42f0
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4d433c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4d42bc
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004d3b4d
sti
stosb byte es:[edi], al
dec eax
inc eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4d4348
push 0x8000
push ebx
push esi
call dword [ebp - 8]
Function at 0x41933f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41c8c8
call fcn.00419618
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x419393
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x419393
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x4193ab
cmp ecx, 0x20b
je 0x419398
mov dword [ebp - 0x1c], ebx
jmp 0x4193c2
cmp dword [eax + 0x400084], 0xe
jbe 0x419393
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x4193bc
cmp dword [eax + 0x400074], 0xe
jbe 0x419393
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x422ae8], edi
mov dword [0x422aec], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x420acc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x420ac8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x422ae4], eax
call fcn.00419614
cmp dword [0x41e640], ebx
jne 0x41941f
push fcn.00419614
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00419602
push 0x41a408
push 0x41a404
call sub.msvcrt.dll__initterm
mov eax, dword [0x420ac4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x420ac0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41a400
push 0x41a394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x4194aa
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41948a
cmp cl, 0x22
jne 0x41947b
cmp byte [eax], 0x22
jne 0x419493
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41949e
cmp cl, 0x20
jbe 0x41948f
test byte [ebp - 0x54], 1
je 0x4194b5
movzx ecx, word [ebp - 0x50]
jmp 0x4194b8
cmp byte [eax], 0x20
jbe 0x419493
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4194aa
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406f63
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4194d6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x419512
mov eax, esi
jmp 0x419526
call fcn.00419653
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x402129
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push esi
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, 6
jne 0x402157
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
jmp 0x4021b2
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4021b0
sub esi, 0
je 0x4021a8
dec esi
je 0x4021a0
dec esi
je 0x402198
dec esi
je 0x402190
dec esi
je 0x402188
dec esi
jne 0x4021b0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x4021b4
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x4021b4
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x4021b4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
jmp 0x4021b4
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
jmp 0x4021b4
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x4021b4
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402202
Capabilities:
Check os version

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40235a
mov eax, dword [esp + 0x20]
dec eax
je 0x40233d
dec eax
jne 0x40235a
lea eax, [esp + 0x140]
xor ebp, ebp
push eax
call fcn.004021bb
pop ecx
test eax, eax
je 0x40226e
mov ebx, dword [esp + 0x144]
mov edi, dword [esp + 0x148]
cmp byte [esp + 0x25a], 1
jmp 0x40229b
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4022a0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13e], 1
jne 0x4022a0
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x402339
dec ebx
je 0x402335
dec ebx
je 0x402314
dec ebx
je 0x4022ce
sub ebx, 4
jne 0x40235a
test edi, edi
jne 0x40235a
push 0x6e
jmp 0x402359
sub edi, 0
je 0x402306
dec edi
je 0x4022f8
dec edi
je 0x4022ea
dec edi
jne 0x40235a
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40235a
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40235a
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40235a
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40235a
sub edi, 0
je 0x402331
dec edi
je 0x40232d
dec edi
jne 0x40235a
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40235a
push 0x3c
jmp 0x402359
push 0x32
jmp 0x402359
push 0x14
jmp 0x402359
push 5
jmp 0x402359
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402357
cmp eax, 0xa
je 0x402353
cmp eax, 0x5a
jne 0x40235a
push 0x28
jmp 0x402359
push 0x1e
jmp 0x402359
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret