joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d3910
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5d3ae3
push ebx
dec edi
lea ebx, [edx + 0xc]
add edx, 0x14
shr edi, 3
push esi
mov esi, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edx
nop
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx]
and al, 0xdf
mov dword [ebp - 0x8c], ecx
or al, 0x40
mov dword [ebp - 0x98], ecx
mov byte [ebx], al
movzx eax, byte [edx]
and al, 0xbf
mov dword [ebp - 0xa0], ecx
or al, 0x20
push ebx
mov byte [edx], al
call fcn.0052d940
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052d700
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0056bf50
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.0052d940
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052d700
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0056bf50
mov ecx, dword [ebp - 0x8c]
add esp, 0x30
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
xor edx, ecx
xor ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
xor ebx, eax
mov dword [ebp - 0x8c], ecx
xor eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x88]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x88]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, dword [ebp - 0x94]
mov byte [ecx + 4], dl
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov edx, ecx
sub edi, 1
jne 0x5d3950
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret

Function at 0x5d3c40
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x60
push 0
push esi
call fcn.005e1780
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x5de318
Capabilities:
Check for sandbox and av modules

Disassembly:
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x5deac7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x5deb4b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x5deb3f
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.005f1988
pop ecx
pop ecx
test eax, eax
je 0x5deb45
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5deb1b
jmp 0x5deb47
mov bl, 1
test esi, esi
je 0x5deb52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
leave
ret

Function at 0x5deb62
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x424
mov eax, 0x612ebd
call fcn.0060b18d
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e1780
add esp, 0xc
lea eax, [ebp - 0x428]
xor bl, bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5dec72
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor esi, esi
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e1780
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005f3b9d
push 0xffffffffffffffff
push dword [esi + 0x6bdb74]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005fcd96
add esp, 0x2c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5dec70
lea ecx, [ebp - 0x430]
call fcn.005de194
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5dec54
mov dword [ebp - 4], 1
cmp dword [ebp - 0x430], eax
je 0x5dec42
push dword [ebp - 0x42c]
call fcn.005df980
or dword [ebp - 4], 0xffffffff
add esi, 4
cmp esi, 0x14
jb 0x5debb2
jmp 0x5dec72
mov bl, 1
and dword [ebp - 4], 0
cmp dword [ebp - 0x430], 0
je 0x5dec72
push dword [ebp - 0x42c]
call fcn.005df980
jmp 0x5dec72
mov bl, 1
mov al, bl
call fcn.0060b148
ret
Function at 0x5ded5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5dede2
push esi
push edi
push 0x80
call fcn.005f0982
pop ecx
mov esi, eax
mov dword [ebp - 8], 0x50
lea eax, [ebp - 8]
xor edi, edi
push eax
push esi
lea eax, [ebp - 0xc]
inc edi
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5dedcc
push dword [ebp + 0x14]
push esi
call fcn.005e310d
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
test esi, esi
je 0x5dedd7
push esi
call fcn.005f0033
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x5dee2d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x424
mov eax, 0x612ebd
call fcn.0060b18d
mov edi, 0x20a
lea eax, [ebp - 0x428]
push edi
push 0
push eax
call fcn.005e1780
add esp, 0xc
lea eax, [ebp - 0x428]
mov esi, 0x104
xor bl, bl
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5def0c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e1780
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005f3b9d
push 0xffffffffffffffff
push dword [0x6bdb98]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005fcd96
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
add esp, 0x2c
push eax
call esi
test eax, eax
jne 0x5def0a
lea ecx, [ebp - 0x430]
call fcn.005de194
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
jne 0x5def02
mov dword [ebp - 4], 1
cmp dword [ebp - 0x430], 0
je 0x5def0c
push dword [ebp - 0x42c]
call fcn.005df980
jmp 0x5def0c
mov bl, 1
and dword [ebp - 4], 0
jmp 0x5deeec
mov bl, 1
mov al, bl
call fcn.0060b148
ret
Function at 0x5defb7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x228], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], esi
mov ebx, ecx
mov dword [ebp - 0x21c], esi
push esi
push eax
mov dword [ebp - 0x214], ebx
mov edi, esi
mov dword [ebp - 0x218], esi
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea ecx, [ebp - 0x220]
push 0x20019
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00416598
test eax, eax
jne 0x5df0f9
lea eax, [ebp - 0x230]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
mov dword [ebp - 0x224], edi
test eax, eax
jne 0x5df0f9
xor edi, edi
inc edi
add ebx, 0x48
xor eax, eax
cmp ax, word [ebp - 0x20c]
je 0x5df0a8
cmp ax, word [ebx]
je 0x5df0a8
push ebx
call fcn.005f0038
pop ecx
cmp eax, 1
jb 0x5df0a8
cmp dword [ebp - 0x210], eax
jbe 0x5df0a8
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005f1afd
add esp, 0xc
test eax, eax
je 0x5df0e1
inc edi
add ebx, 0x40
cmp edi, 3
jb 0x5df06f
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005e1780
mov ebx, dword [ebp - 0x214]
add esp, 0xc
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x210], 0x104
jmp 0x5df035
mov eax, dword [ebp - 0x214]
xor esi, esi
mov ecx, dword [ebp - 0x228]
shl edi, 6
inc esi
mov eax, dword [edi + eax + 4]
mov dword [ecx], eax
cmp dword [ebp - 0x220], 0
je 0x5df10e
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
leave
ret 4

Function at 0x5df159
Capabilities:
Query environment variable

Disassembly:
push 0x10
push 0x6b5808
call fcn.0049a4f0
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x5df20f
cmp dword [ebp + 0xc], esi
je 0x5df20f
cmp dword [ebp + 0x10], 1
jb 0x5df20f
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 1
jb 0x5df20f
mov eax, dword [ebp + 0x10]
dec eax
cmp edi, eax
ja 0x5df20f
mov dword [ebp - 4], esi
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499923
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x5df208
lea eax, [edi + edi]
push eax
push esi
push ecx
call fcn.005e1780
add esp, 0xc
push edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5df208
mov ecx, dword [ebp + 0x10]
dec ecx
cmp eax, ecx
ja 0x5df208
push eax
push edi
push ecx
push dword [ebp + 0xc]
call fcn.005f3b9d
add esp, 0x10
inc esi
jmp 0x5df205
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x5df21e
push dword [ebp - 0x1c]
call fcn.0049991e
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5df230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x5df3d1
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e1780
add esp, 0xc
mov ecx, esi
push edi
push 0x684ae8
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x5df289
mov edi, 0x684ae8
jmp 0x5df39d
push edi
push 0x684b0c
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5df2a4
mov edi, 0x684b0c
jmp 0x5df39d
push edi
push 0x684b20
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5df2bf
mov edi, 0x684b20
jmp 0x5df39d
push edi
push 0x684b30
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5df2fb
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5df3d1
lea eax, [ebp - 0x210]
push eax
push 0x684b30
jmp 0x5df3be
push edi
push 0x684b44
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5df337
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5df3d1
lea eax, [ebp - 0x210]
push eax
push 0x684b44
jmp 0x5df3be
push edi
push 0x684b58
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5df38b
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e1780
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push 0x684b58
jmp 0x5df3be
push edi
mov edi, str._Systemroot_
mov ecx, esi
push edi
call fcn.0040a98a
cmp eax, ebx
je 0x5df3c5
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.005df159
add esp, 0xc
test eax, eax
je 0x5df3d1
lea eax, [ebp - 0x210]
push eax
push edi
mov ecx, esi
call fcn.0043b772
push esi
call fcn.005df121
xor eax, eax
pop ecx
inc eax
jmp 0x5df3d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
leave
ret

Function at 0x5df4c1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x5df54d
push 1
push edi
call fcn.005f0028
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5df54d
push esi
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5df546
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5df546
cmp dword [ebp - 4], edi
je 0x5df546
push 0x10
call fcn.00430c2b
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x5df542
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.005df48d
mov edi, eax
mov eax, edi
jmp 0x5df54f
push esi
call fcn.005f0033
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5df628
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5df6f7
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5df711
mov ecx, edi
cmp edi, 8
jb 0x5df693
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
leave
ret 8
push esi
call fcn.005f0038
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005df78d
mov al, 1
jmp 0x5df700

Function at 0x5ff4e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ff368

Function at 0x605400
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006050c0
Function at 0x40302f
Capabilities:
Terminate process

Disassembly:
push 0x60
push 0x40fde8
call fcn.00407554
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x40e0a4]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x40e0a0]
call ebx
push eax
call dword [0x40e09c]
mov esi, eax
test esi, esi
jne 0x402e9a
push 0x12
call fcn.00402dea
pop ecx
jmp 0x403024
mov dword [esi], edi
push esi
call dword [0x40e098]
push esi
push 0
test eax, eax
jne 0x402eb8
call ebx
push eax
call dword [0x40e094]
jmp 0x403024
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [0x40e094]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x402eea
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x434280], esi
mov dword [0x434288], eax
mov dword [0x43428c], ecx
mov dword [0x434290], edx
mov dword [0x434284], edi
call fcn.00402e0e
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004074f8
pop ecx
test eax, eax
jne 0x402f32
push 0x1c
call fcn.00402dea
pop ecx
call fcn.00404531
test eax, eax
jne 0x402f43
push 0x10
call fcn.00402dea
pop ecx
call fcn.00407455
mov dword [ebp - 4], ebx
call fcn.00407215
test eax, eax
jge 0x402f5c
push 0x1b
call fcn.00406706
pop ecx
call dword [0x40e090]
mov dword [0x435a58], eax
call fcn.004070e0
mov dword [0x433e30], eax
call fcn.00407027
test eax, eax
jge 0x402f82
push 8
call fcn.00406706
pop ecx
call fcn.00406db4
test eax, eax
jge 0x402f93
push 9
call fcn.00406706
pop ecx
push ebx
call fcn.00406822
pop ecx
test eax, eax
je 0x402fa5
push eax
call fcn.00406706
pop ecx
call fcn.00406d57
test byte [ebp - 0x44], bl
je 0x402fb5
movzx ecx, word [ebp - 0x40]
jmp 0x402fb8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x402fd5
push eax
call fcn.00406982
call fcn.004069a4
jmp 0x40300a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x403029
mov eax, 0xff
call fcn.00407599
ret
call fcn.00407746
jmp 0x402e4f

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
sub ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1401bf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.014057e0
mov eax, dword [0x1438010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x1108]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov ebx, eax
mov dword [ebp - 0x110c], 2
xor esi, esi
test ebx, ebx
je 0x1401c92
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 4
lea eax, [ebp - 0x110c]
push eax
push 0
push dword [ebp + esi*4 - 0x1108]
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x1401c67
push esi
lea eax, [ebp - 0x104]
push str.__d__The_low_fragmentation_heap_has_been_enabled._n
push eax
call fcn.0140632a
add esp, 0xc
jmp 0x1401c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x104]
push str.__d__Failed_to_enable_the_low_fragmentation_heap_with_LastError__d_n
push eax
call fcn.0140632a
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call edi
inc esi
cmp esi, ebx
jb 0x1401c34
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.014057cc
mov esp, ebp
pop ebp
ret
Function at 0x1402460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x44
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dl, 0x57
mov dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov dword [ebp + 8], esi
cmp edi, ecx
jle 0x1402496
xor byte [ecx + ebx], dl
lea eax, [ecx + ebx]
mov al, byte [eax]
inc ecx
add al, 0x57
add dl, al
cmp ecx, edi
jl 0x1402485
xor edi, edi
cmp dword [esi + 4], edi
jl 0x14024e7
lea esi, [ebx + 0x64]
cmp dword [esi + 8], 0
je 0x14024ac
mov eax, dword [esi - 8]
mov dword [ebp - 4], eax
mov ecx, dword [esi]
mov eax, dword [esi - 4]
cmp eax, ecx
jle 0x14024c8
sub eax, ecx
push eax
mov eax, dword [esi - 8]
add eax, ecx
push 0
push eax
call fcn.01405e60
add esp, 0xc
push dword [esi]
mov eax, dword [esi + 4]
add eax, ebx
push eax
push dword [esi - 8]
call fcn.01405810
inc edi
add esp, 0xc
add esi, 0x14
cmp edi, dword [ebx + 0x48]
jle 0x14024a0
mov esi, dword [ebp + 8]
push esi
call fcn.01402340
mov ecx, dword [esi + 0x10]
add esp, 4
sub ecx, 0xc
push 0
push 1
push 0
call ecx
mov ecx, dword [esi + 8]
push dword [ebp + 0x10]
xor ecx, 0x7a32bc85
call ecx
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1402700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x1402715
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140270c
cmp dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
cmovne eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1402750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x353a0c0], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
jne 0x1402773
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 0x353a0c0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140276a
cmp dword [ebp - 8], 1
mov eax, 0x353a0c0
cmovne eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x1403580
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x142e590
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1438010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x14035d9
push 0x1435b48
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
call fcn.01406b19
lea eax, [ebp - 0x18]
push eax
push 0x142f834
push 1
push 0
push 0x142f824
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140360a
push 0x1435b48
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 2
push eax
call fcn.01406b19
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x1403630
push 0x1435b48
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
call fcn.01406b19
mov eax, dword [ebp - 0x14]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x1403662
push 0x1435b48
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 4
push eax
call fcn.01406b19
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, 0x140365f
ret
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1403676
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1403683
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret