joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40d040]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x402cbd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40cf40]
lea edi, [ecx*4 + 0x40cf40]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x402cbd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x402b7e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x402b8f
push 2
push ebp
push eax
call fcn.00403510
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x402cee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x402c39
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x402bea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x402bd7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x402bba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402cdf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x402c35
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x402bb6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402cae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402c82
cmp eax, 5
jne 0x402c6b
mov dword [0x40ba80], eax
mov dword [0x40ba7c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00405060
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x402ca2
cmp byte [ebp], 0x1a
jne 0x402ca2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ba7c], 0x1c
jmp 0x402cc7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ba7c], 9
pop edi
pop esi
pop ebp
mov dword [0x40ba80], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x402c35
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d1f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x402c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x402c39
Function at 0x403eb0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40bbe0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403ef2
call edi
mov esi, eax
test esi, esi
je 0x403edc
mov eax, 1
jmp 0x403eed
call ebp
mov ebx, eax
test ebx, ebx
je 0x403fff
mov eax, 2
mov dword [0x40bbe0], eax
cmp eax, 1
jne 0x403f92
test esi, esi
jne 0x403f0b
call edi
mov esi, eax
test esi, esi
je 0x403fff
cmp word [esi], 0
mov eax, esi
je 0x403f25
add eax, 2
cmp word [eax], 0
jne 0x403f13
add eax, 2
cmp word [eax], 0
jne 0x403f13
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403f84
push edi
call fcn.00401680
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403f84
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f76
push ebx
call fcn.004014e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403fff
test ebx, ebx
jne 0x403fa3
call ebp
mov ebx, eax
test ebx, ebx
je 0x403fff
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403fbb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403fab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403fab
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00401680
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403fdd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404710
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40b290
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404734
add eax, 8
inc ebp
cmp eax, 0x40b320
jb 0x404725
cmp ecx, dword [ebp*8 + 0x40b290]
jne 0x4048db
mov eax, dword [0x40ba78]
cmp eax, 1
je 0x40489d
test eax, eax
jne 0x404760
cmp dword [0x4090c4], 1
je 0x40489d
cmp ecx, 0xfc
je 0x4048db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40479b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4047e4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4083c8
add ebx, ecx
push ebx
call fcn.00406250
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4083a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40b294]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004061c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40cf40]
test eax, eax
je 0x4048ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4048b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40b294]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404bf0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x404dae
push 0x3d
push edi
call fcn.004064f0
mov esi, eax
add esp, 8
test esi, esi
je 0x404dae
cmp edi, esi
je 0x404dae
mov dl, byte [esi + 1]
mov ecx, dword [0x40baa8]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x40baa4]
cmp eax, ecx
jne 0x404c47
push eax
call fcn.00404e80
add esp, 4
mov dword [0x40baa4], eax
test eax, eax
jne 0x404cc2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404c6e
mov eax, dword [0x40baac]
test eax, eax
je 0x404c6e
call fcn.00401ff0
test eax, eax
je 0x404cbd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x404c7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00401680
add esp, 4
mov dword [0x40baa4], eax
test eax, eax
je 0x404dae
mov dword [eax], 0
mov eax, dword [0x40baac]
test eax, eax
jne 0x404cbd
push 4
call fcn.00401680
add esp, 4
mov dword [0x40baac], eax
test eax, eax
je 0x404dae
mov dword [eax], 0
mov eax, dword [0x40baa4]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00404e00
mov esi, eax
add esp, 8
test esi, esi
jl 0x404dbf
cmp dword [ebx], 0
je 0x404dbf
test ebp, ebp
je 0x404db7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004014e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x404d19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x404d08
lea eax, [esi*4]
push eax
push ebx
call fcn.00406350
add esp, 8
test eax, eax
je 0x404d33
mov dword [0x40baa4], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404da6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00401680
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404da6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004014e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x404d37
test ebp, ebp
jne 0x404da6
test esi, esi
jge 0x404dc9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00406350
add esp, 8
test eax, eax
je 0x404dae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x40baa4], eax
jmp 0x404d37
Function at 0x406700
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00406fe0
mov eax, dword [0x40d040]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x406862
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40cf40]
test byte [edx + ecx*8 + 4], 1
je 0x406862
push 1
push ebp
push ebx
call fcn.00403510
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40686c
push 2
push ebp
push ebx
call fcn.00403510
add esp, 0xc
cmp eax, 0xffffffff
je 0x40686c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x406808
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00406f60
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4067af
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00402b10
add esp, 0xc
cmp eax, 0xffffffff
je 0x4067cb
sub esi, eax
test esi, esi
jle 0x4067e1
jmp 0x4067a0
cmp dword [0x40ba80], 5
jne 0x4067de
mov dword [0x40ba7c], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00406f60
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00403510
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x406849
push 0
push ecx
push ebx
call fcn.00403510
add esp, 0xc
push ebx
call fcn.00405340
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x406849
mov dword [0x40ba7c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ba80], eax
push 0
push edi
push ebx
call fcn.00403510
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40ba7c], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x57b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0057b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0057b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0057b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0057b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x57bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x58d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x57bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x57bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402b95
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402ba9
mov dword [esi + 0x10], 8
xor al, al
pop esi
ret
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x402c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bfc
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402bf3
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x402be4
mov ecx, 0x8664
cmp ax, cx
jne 0x402bf3
push dword [edi + 0x58]
mov ecx, esi
call main
mov dword [edi + 0x58], eax
jmp 0x402c0c
mov dword [esi + 0x10], 7
jmp 0x402c0c
mov dword [esi + 0x10], 6
jmp 0x402c0c
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
sete al
pop esi
ret

Function at 0x402d01
Capabilities:
Parse pe header

Disassembly:
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402d57
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402d4e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402d45
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
jne 0x402d3b
and dword [ecx + 0x10], 0
mov eax, dword [eax + 0x58]
pop esi
ret
mov esi, 0x8664
cmp dx, si
je 0x402d32
mov dword [ecx + 0x10], 7
jmp 0x402d5e
mov dword [ecx + 0x10], 6
jmp 0x402d5e
mov dword [ecx + 0x10], 1
xor eax, eax
pop esi
ret

Function at 0x40547c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40548b
pop dword [ebp - 0x10]
mov eax, 0xf32b3dd0
add eax, 0xd1516bb
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd374ed00
add dword [ebp - 0x20], 0x7add584b
mov dword [ebp - 0x1c], 0x917a66d3
sub dword [ebp - 0x1c], 0x5f471a8e
mov dword [ebp - 0x18], 0xd78ed5f
sub dword [ebp - 0x18], 0xc12ca931
mov dword [ebp - 0x14], 0x8b703079
sub dword [ebp - 0x14], 0x8b703079
lea eax, [ebp - 0x20]
push eax
mov eax, 0x8db8bef7
sub eax, 0x8d761ea3
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x34d91d43
add dword [ebp - 0x20], 0x3f994c13
mov dword [ebp - 0x1c], 0xf4fccc1c
sub dword [ebp - 0x1c], 0xb3906aa7
mov dword [ebp - 0x18], 0xcf1a60a4
sub dword [ebp - 0x18], 0x6baaf438
mov dword [ebp - 0x14], 0xcd800d48
sub dword [ebp - 0x14], 0xcd800d48
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xe99abd5d
sub eax, 0xe9581d05
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3eb04
push 0
call eax
mov ecx, 0x90cc550a
add ecx, 0x6f33ee51
mov edx, eax
mov esi, 0xf6c10e66
add esi, 0x9939d9a
add esi, dword [ebp - 0x10]
mov ebx, 0xcbee3bfe
add ebx, 0x13dbb6be
mov edi, dword [esi]
add dword [ebp - 0xc], esi
xor edi, ebx
sub dword [ebp - 0xc], 0xf7dc0345
mov dword [edx], edi
sub dword [ebp - 4], 0xee55ef77
add edx, 4
add esi, 4
loop 0x4055ad
add eax, 0x6a041670
add eax, 0x95fce9cf
mov ebx, eax
add eax, 0x740491e3
add eax, 0x8bfb6e22
mov ecx, 0x644ce6a6
add ecx, 0x9bf3195a
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push str.4___fss_5_____._4059r29_s_sc_9._4ay
call 0x40105d
test eax, eax
je 0x401056
push 0x403100
push str.4___fss_5_____._4059r29_s_sc_9._4ay
call fcn.00401080
test eax, eax
je 0x401056
xor ecx, ecx
xor ebx, ebx
push str.4___fss_5_____._4059r29_s_sc_9._4ay
call fcn.004010a6
xor byte [ecx + str.4___fss_5_____._4059r29_s_sc_9._4ay], 0x5c
inc ecx
mov ebx, ecx
cmp ebx, eax
je 0x40103f
jmp 0x40102f
push 5
push 0
push 0
push str.4___fss_5_____._4059r29_s_sc_9._4ay
push str.OPEN
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
push esi
cld
mov esi, dword [ebp + 8]
test esi, 0xff
je 0x401074
mov eax, 0
jmp 0x40107b
mov eax, 1
jmp 0x40107b
pop esi
leave
ret 4
Function at 0x401800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a882
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push str.default
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.00402c30
mov dword [ebp - 4], ebx
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 1
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x24], ebx
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 4
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
lea ecx, [esi + 0x2c]
mov dword [ecx], eax
cmp dword [ebp + 0xc], 0x3c
mov byte [ebp - 4], 5
mov dword [esi + 0x30], 0x4616a0
jne 0x401918
push 0xb
push str.EbonBrowser
call fcn.00403370
push 0x17
push str.SoftwareEbonmediaEbon
lea ecx, [esi + 0x28]
call fcn.00403370
push 0x12
call fcn.0042f13f
add esp, 4
cmp eax, ebx
je 0x401911
or ecx, 0xffffffff
mov dword [eax], 0x12
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov word [eax + 0xc], bx
mov dword [eax + 0xe], ecx
jmp 0x401913
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x1c], ebx
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 8
Function at 0x402770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042f1ca
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._I64d
push eax
call fcn.004032e0
mov esi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [esi - 0xc], 0
je 0x402866
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x28]
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x103
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402866
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push str.zi_date
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402840
cmp dword [ebp + 8], 1
je 0x40285c
mov eax, dword [esi - 0xc]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x10]
push edx
push esi
push 1
push 0
push str.zi_date
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4028a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x28]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4028f6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push 3
push 0
push str.zi_inf
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x4031f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40320b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403242
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40323e
jmp 0x403230
cmp esi, eax
jae 0x403242
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403230
cmp esi, eax
jb 0x403249
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4036ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40369d
cmp eax, 2
jne 0x4036b8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4036c8
test eax, eax
je 0x4036c3
test al, 1
jne 0x4036b8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4036c8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x403870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4038a2
push str.EbonmediaInstaller
push 0x104
push esi
call fcn.0042f95a
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 4